-
Notifications
You must be signed in to change notification settings - Fork 1
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
Andreas Blätte
authored and
Andreas Blätte
committed
Dec 22, 2023
1 parent
44955c2
commit 0895ba4
Showing
14 changed files
with
1,225 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* https://stackoverflow.com/questions/56373198/get-xaringan-incremental-animations-to-print-to-pdf */ | ||
|
||
.title-slide { | ||
background-image: url(img/Dry_Chili_pepper.jpg); | ||
/* background-position: 100% 0%; ## just start changing this */ | ||
background-size: 300px; | ||
background-color: #fff; | ||
padding-left: 100px; /* delete this for 4:3 aspect ratio */ | ||
} | ||
|
||
|
||
.remark-slide-content { | ||
background-color: #FAFAFA; | ||
border-top: 80px solid #6B84AC; | ||
font-size: 20px; | ||
font-weight: 300; | ||
line-height: 1.5; | ||
padding: 1em 2em 1em 2em; | ||
} | ||
|
||
hr, .title-slide h2::after, .mline h1::after { | ||
content: ''; | ||
display: block; | ||
border: none; | ||
background-color: #efefef; | ||
/* color: #EB811B; */ | ||
height: 3px; | ||
} | ||
@media print { | ||
.has-continuation { | ||
display: block !important; | ||
} | ||
} | ||
|
||
.inverse { | ||
background-color: #6B84AC; | ||
border-top: 0px !important; | ||
color: #ffffff; | ||
/* text-shadow: 0 0 20px #333; */ | ||
} | ||
|
||
|
||
.inverse h1{ | ||
margin-top: 425px; | ||
} | ||
|
||
.inverse2 h1{ | ||
margin-top: 100px; | ||
text-align: right; | ||
} | ||
|
||
.inverse2 h2 { | ||
color: #efefef; | ||
text-align: right; | ||
} | ||
|
||
|
||
.title-slide h1 { | ||
margin-top: 100px; | ||
color: #efefef; | ||
} | ||
|
||
|
||
|
||
.title-slide h2 { | ||
color: #efefef; | ||
} | ||
|
||
.title-slide h3 { | ||
color: #efefef; | ||
} | ||
|
||
.white{ | ||
background-color: #ffffff !important; | ||
} | ||
|
||
h1 { | ||
margin-top: -95px; | ||
color: #efefef; | ||
text-align: left; | ||
} | ||
|
||
.smallpic{ | ||
width: 2500px; | ||
height: 180px | ||
} | ||
|
||
.attribution{ | ||
padding-left: 650px; | ||
font-size: 15px; | ||
color: #efefef; | ||
} | ||
|
||
.attribution a { | ||
color: #efefef; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,66 @@ | ||
--- | ||
title: "The PolMine Cookbook" | ||
author: "Andreas Blaette, Christoph Leonhardt" | ||
output: | ||
xaringan::moon_reader: | ||
css: [default, metropolis, robot-fonts, './css/cookbook.css'] | ||
seal: false | ||
nature: | ||
countIncrementalSlides: false | ||
titleSlideClass: ["title-slide", "nobackground", "inverse"] | ||
editor_options: | ||
chunk_output_type: console | ||
--- | ||
|
||
background-image: url(img/Oranges.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Picture: Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Oranges.jpg)] | ||
|
||
|
||
# Cookin' with PolMine | ||
## A Cookbook for Corpus Analysis | ||
|
||
--- | ||
|
||
|
||
background-image: url(img/Spices.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Ramesh NG](https://commons.wikimedia.org/wiki/File:Dry_Chili_pepper.jpg)] | ||
|
||
|
||
# The CQP Syntax | ||
## Spice up your Queries | ||
|
||
[Click here to see recipe!](subset.html) | ||
|
||
--- | ||
|
||
background-image: url(img/Making_potato_wedges.jpg) | ||
background-size: cover | ||
class: nobackground, inverse2 | ||
|
||
.attribution[[W. Carter](https://upload.wikimedia.org/wikipedia/commons/4/49/Making_potato_wedges.jpg)] | ||
|
||
|
||
# Corpus Slices | ||
## Subsetting by Structural Annotation | ||
|
||
[Click here to see recipe!](subset.html) | ||
|
||
--- | ||
|
||
background-image: url(img/Dry_tagliatelle_pasta.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Mathias Braux](https://upload.wikimedia.org/wikipedia/commons/3/32/Dry_tagliatelle_pasta.jpg)] | ||
|
||
# Textual Tagliatelle | ||
## Unraveling Sentence Annotation | ||
|
||
[Click here to see recipe!](sentences_intro.html) | ||
|
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,185 @@ | ||
<!DOCTYPE html> | ||
<html lang="" xml:lang=""> | ||
<head> | ||
<title>The PolMine Cookbook</title> | ||
<meta charset="utf-8" /> | ||
<meta name="author" content="Andreas Blaette, Christoph Leonhardt" /> | ||
<script src="index_files/header-attrs-2.25/header-attrs.js"></script> | ||
<link href="index_files/remark-css-0.0.1/default.css" rel="stylesheet" /> | ||
<link href="index_files/remark-css-0.0.1/metropolis.css" rel="stylesheet" /> | ||
<link href="index_files/remark-css-0.0.1/robot-fonts.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="css/cookbook.css" type="text/css" /> | ||
</head> | ||
<body> | ||
<textarea id="source"> | ||
|
||
|
||
background-image: url(img/Oranges.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Picture: Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Oranges.jpg)] | ||
|
||
|
||
# Cookin' with PolMine | ||
## A Cookbook for Corpus Analysis | ||
|
||
--- | ||
|
||
|
||
background-image: url(img/Spices.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Ramesh NG](https://commons.wikimedia.org/wiki/File:Dry_Chili_pepper.jpg)] | ||
|
||
|
||
# The CQP Syntax | ||
## Spice up your Queries | ||
|
||
[Click here to see recipe!](subset.html) | ||
|
||
--- | ||
|
||
background-image: url(img/Making_potato_wedges.jpg) | ||
background-size: cover | ||
class: nobackground, inverse2 | ||
|
||
.attribution[[W. Carter](https://upload.wikimedia.org/wikipedia/commons/4/49/Making_potato_wedges.jpg)] | ||
|
||
|
||
# Corpus Slices | ||
## Subsetting by Structural Annotation | ||
|
||
[Click here to see recipe!](subset.html) | ||
|
||
--- | ||
|
||
background-image: url(img/Dry_tagliatelle_pasta.jpg) | ||
background-size: cover | ||
class: nobackground, inverse | ||
|
||
.attribution[[Mathias Braux](https://upload.wikimedia.org/wikipedia/commons/3/32/Dry_tagliatelle_pasta.jpg)] | ||
|
||
# Textual Tagliatelle | ||
## Unraveling Sentence Annotation | ||
|
||
[Click here to see recipe!](sentences_intro.html) | ||
|
||
</textarea> | ||
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style> | ||
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script> | ||
<script>var slideshow = remark.create({ | ||
"countIncrementalSlides": false | ||
}); | ||
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) { | ||
window.dispatchEvent(new Event('resize')); | ||
}); | ||
(function(d) { | ||
var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler"); | ||
if (!r) return; | ||
s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }"; | ||
d.head.appendChild(s); | ||
})(document); | ||
|
||
(function(d) { | ||
var el = d.getElementsByClassName("remark-slides-area"); | ||
if (!el) return; | ||
var slide, slides = slideshow.getSlides(), els = el[0].children; | ||
for (var i = 1; i < slides.length; i++) { | ||
slide = slides[i]; | ||
if (slide.properties.continued === "true" || slide.properties.count === "false") { | ||
els[i - 1].className += ' has-continuation'; | ||
} | ||
} | ||
var s = d.createElement("style"); | ||
s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }"; | ||
d.head.appendChild(s); | ||
})(document); | ||
// delete the temporary CSS (for displaying all slides initially) when the user | ||
// starts to view slides | ||
(function() { | ||
var deleted = false; | ||
slideshow.on('beforeShowSlide', function(slide) { | ||
if (deleted) return; | ||
var sheets = document.styleSheets, node; | ||
for (var i = 0; i < sheets.length; i++) { | ||
node = sheets[i].ownerNode; | ||
if (node.dataset["target"] !== "print-only") continue; | ||
node.parentNode.removeChild(node); | ||
} | ||
deleted = true; | ||
}); | ||
})(); | ||
// add `data-at-shortcutkeys` attribute to <body> to resolve conflicts with JAWS | ||
// screen reader (see PR #262) | ||
(function(d) { | ||
let res = {}; | ||
d.querySelectorAll('.remark-help-content table tr').forEach(tr => { | ||
const t = tr.querySelector('td:nth-child(2)').innerText; | ||
tr.querySelectorAll('td:first-child .key').forEach(key => { | ||
const k = key.innerText; | ||
if (/^[a-z]$/.test(k)) res[k] = t; // must be a single letter (key) | ||
}); | ||
}); | ||
d.body.setAttribute('data-at-shortcutkeys', JSON.stringify(res)); | ||
})(document); | ||
(function() { | ||
"use strict" | ||
// Replace <script> tags in slides area to make them executable | ||
var scripts = document.querySelectorAll( | ||
'.remark-slides-area .remark-slide-container script' | ||
); | ||
if (!scripts.length) return; | ||
for (var i = 0; i < scripts.length; i++) { | ||
var s = document.createElement('script'); | ||
var code = document.createTextNode(scripts[i].textContent); | ||
s.appendChild(code); | ||
var scriptAttrs = scripts[i].attributes; | ||
for (var j = 0; j < scriptAttrs.length; j++) { | ||
s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value); | ||
} | ||
scripts[i].parentElement.replaceChild(s, scripts[i]); | ||
} | ||
})(); | ||
(function() { | ||
var links = document.getElementsByTagName('a'); | ||
for (var i = 0; i < links.length; i++) { | ||
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) { | ||
links[i].target = '_blank'; | ||
} | ||
} | ||
})();</script> | ||
|
||
<script> | ||
slideshow._releaseMath = function(el) { | ||
var i, text, code, codes = el.getElementsByTagName('code'); | ||
for (i = 0; i < codes.length;) { | ||
code = codes[i]; | ||
if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) { | ||
text = code.textContent; | ||
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) || | ||
/^\$\$(.|\s)+\$\$$/.test(text) || | ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) { | ||
code.outerHTML = code.innerHTML; // remove <code></code> | ||
continue; | ||
} | ||
} | ||
i++; | ||
} | ||
}; | ||
slideshow._releaseMath(document); | ||
</script> | ||
<!-- dynamically load mathjax for compatibility with self-contained --> | ||
<script> | ||
(function () { | ||
var script = document.createElement('script'); | ||
script.type = 'text/javascript'; | ||
script.src = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML'; | ||
if (location.protocol !== 'file:' && /^https?:/.test(script.src)) | ||
script.src = script.src.replace(/^https?:/, ''); | ||
document.getElementsByTagName('head')[0].appendChild(script); | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
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,12 @@ | ||
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to | ||
// be compatible with the behavior of Pandoc < 2.8). | ||
document.addEventListener('DOMContentLoaded', function(e) { | ||
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child"); | ||
var i, h, a; | ||
for (i = 0; i < hs.length; i++) { | ||
h = hs[i]; | ||
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6 | ||
a = h.attributes; | ||
while (a.length > 0) h.removeAttribute(a[0].name); | ||
} | ||
}); |
Oops, something went wrong.