-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
285 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ __pycache__/ | |
.pixi/ | ||
.vscode/ | ||
.quarto/ | ||
|
||
/.quarto/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
project: | ||
output-dir: out/presentation | ||
execute-dir: project | ||
post-render: src/util/move_quarto_output.py | ||
|
||
bibliography: src/paper/references.bib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "Essays on Cooperative Bargaining" | ||
author: | ||
- Martin Stancsics | ||
format: | ||
revealjs: | ||
embed-resources: true | ||
theme: | ||
- default | ||
- include/custom.scss | ||
include-in-header: | ||
- include/mathjax-settings.html | ||
- include/sections-in-footer.html | ||
toc: true | ||
toc-depth: 1 | ||
toc-title: Agenda | ||
--- | ||
|
||
# Introduction | ||
|
||
## Motivation | ||
|
||
# Thank you {.unnumbered .unlisted} | ||
|
||
## References | ||
|
||
::: {#refs} | ||
::: | ||
|
||
## Appendix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
$highlight: #5692e4; | ||
|
||
|
||
/*-- scss:rules --*/ | ||
|
||
#section-title { | ||
color: #666666; | ||
font-size: 16px; | ||
bottom: 10px; | ||
position: fixed; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
margin: 0 0; | ||
font-family: Helvetica, sans-serif; | ||
|
||
@media screen and (max-width: 800px) { | ||
font-size: 12px; | ||
bottom: 7px; | ||
} | ||
|
||
} | ||
|
||
.reveal .crossref { | ||
text-align: right; | ||
font-size: smaller; | ||
} | ||
|
||
.reveal div.slide-number { | ||
font-size: 16px; | ||
@media screen and (max-width: 800px) { | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
h1.title { | ||
font-size: calc(var(--r-heading1-size) * 0.7); | ||
} | ||
|
||
nav[role="doc-toc"] li { | ||
margin: 20px 0; | ||
} | ||
|
||
nav[role="doc-toc"] a { | ||
color: inherit; | ||
} | ||
|
||
nav[role="doc-toc"] a:hover { | ||
color: $highlight; | ||
} | ||
|
||
.reveal .citation a[role="doc-biblioref"] { | ||
color: inherit; | ||
} | ||
|
||
.reveal .citation a[role="doc-biblioref"][aria-expanded=true] { | ||
color: $highlight; | ||
} | ||
|
||
.reveal .citation { | ||
color: inherit; | ||
} | ||
|
||
.reveal ul li li { | ||
font-size: 0.75em; | ||
line-height: 1.2em; | ||
} | ||
|
||
.reveal strong { | ||
color: $highlight; | ||
} | ||
|
||
.reveal strong .citation { | ||
color: $highlight; | ||
} | ||
|
||
.reveal strong .citation a[role="doc-biblioref"] { | ||
color: $highlight; | ||
} | ||
|
||
.reveal .smaller { | ||
font-size: 0.75em; | ||
line-height: 1.2em; | ||
} | ||
|
||
.reveal .highlight-block { | ||
display: block; | ||
text-align: left; | ||
font-style: normal; | ||
border-style: solid; | ||
border-color: $highlight; | ||
padding-left: 30px; | ||
padding-right: 30px; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
margin-left: 30px; | ||
margin-right: 30px; | ||
border-width: 5px; | ||
} | ||
|
||
.reveal .proposition:before { | ||
content: "Proposition. "; | ||
font-weight: bold; | ||
color: $highlight; | ||
font-style: normal; | ||
} | ||
|
||
.reveal .idea:before { | ||
content: "Idea. "; | ||
font-weight: bold; | ||
color: $highlight; | ||
font-style: normal; | ||
} | ||
|
||
.chatlog { | ||
padding: 10px; | ||
border-style: solid; | ||
border-radius: 10px; | ||
border-color: black; | ||
border-width: 2px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Script> | ||
MathJax = { | ||
loader: {load: ["input/tex", "output/svg"]}, | ||
svg: { | ||
scale: 0.9 | ||
}, | ||
chtml: { | ||
scale: 0.9 | ||
} | ||
}; | ||
</Script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<script> | ||
function add_sc_sb_title() { | ||
|
||
function get_title() { | ||
var h1_arr = []; | ||
|
||
Reveal.getSlides().forEach(el => { | ||
if (!el.matches('#title-slide')) { | ||
var h1 = el.querySelector('.title-slide h1')?.innerText; | ||
h1_arr.push(h1); | ||
}; | ||
}); | ||
|
||
return h1_arr | ||
}; | ||
|
||
function fill_array(ar) { | ||
let last_val = ar[0] || " "; | ||
for (let i = 1; i < ar.length; i++) { | ||
if (typeof ar[i] === 'undefined') { | ||
ar[i] = last_val; | ||
} else { | ||
last_val = ar[i]; | ||
} | ||
} | ||
return ar | ||
}; | ||
|
||
|
||
if (Reveal.isReady()) { | ||
|
||
var h1_array = get_title(); | ||
var filled_h1_array = fill_array(h1_array); | ||
|
||
Reveal.getSlides().forEach((el, idx) => { | ||
if (!el.matches('#title-slide')) { | ||
el.setAttribute('data-sc-title', filled_h1_array[(idx - 1)]) | ||
} | ||
}); | ||
|
||
var section_title = document.createElement("div"); | ||
section_title.id = "section-title"; | ||
|
||
slide_num = document.querySelector("div.slide-number"); | ||
slide_num.parentNode.insertBefore(section_title, slide_num); | ||
|
||
function changeSectionTitle(event) { | ||
let sp = Reveal.getSlidesElement().querySelector('.stack.present'); | ||
if (sp != null) { | ||
var section_text = event.currentSlide.getAttribute('data-sc-title') || " "; | ||
if (event.currentSlide.matches('.title-slide.level1')) { | ||
section_title.innerText = ""; | ||
} else if (event.currentSlide.matches('.title-slide.level2')) { | ||
section_title.innerText = section_text; | ||
} else { | ||
section_title.innerText = section_text; | ||
}; | ||
}; | ||
} | ||
|
||
Reveal.on( 'slidechanged', changeSectionTitle); | ||
}; | ||
}; | ||
|
||
|
||
window.addEventListener("load", (event) => { | ||
add_sc_sb_title(); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import pathlib | ||
|
||
out_dir = pathlib.Path(os.environ["QUARTO_PROJECT_OUTPUT_DIR"]) | ||
src_dir = out_dir / "src" | ||
output_files = src_dir.glob("presentation/*.html") | ||
output_files = [ | ||
pathlib.Path(file) for file | ||
in os.environ["QUARTO_PROJECT_OUTPUT_FILES"].split() | ||
] | ||
for output_file in output_files: | ||
output_file.rename(out_dir / output_file.name) | ||
(src_dir / "presentation").rmdir() | ||
src_dir.rmdir() |