In the middle of the desert you can say anything you want
Oh it has another page with a clean reference! Quarto – Revealjs Options
Default presentation size is 1050x700
slide-number: true
hash-type: number
Hide slide:
## Slide Title {visibility="hidden"}
If you exclude title and author from frontmatter, no title slide will be created and you can create your own
Asides exist: :::{.aside}
Many bits from Quarto – Markdown Basics etc. apply for presentations as well!
Comments are HTML comments.
[this is a div]{.to-which .i-can add="stuff"}
For slides w/o titles you can still do this
# {background-image="https://upload.wikimedia.org/wikipedia/commons/2/2b/Ouroboros-Abake.svg" background-position="center" background-size="contain" .center}
Complex layouts are possible with layouts:
::: {layout="1],[-1,1,1,1,-1"}
![](./images/logos/logo_chatgpt.png){.nostretch width="500px" fig-align="center"}
![](./images/logos/l2.png){.nostretch width="200px"}
![](./images/logos/l1.png){.nostretch width="200px"}
![](./images/logos/l3.png){.nostretch width="200px"}
:::
## {.classname}
::: {.classname}
div with class=classname
:::
::: {}
div with no class — we still need the {} for it to be a div
:::
::: {.one-div}
:::: {.inside-another}
But the number of : doesn't matter as long as it's >3 — they aren't even matching by count, it's just divs inside divs inside divs, the number of : is just for readability
::::
:::
quarto-ext/attribution: Display attribution text sideways along the right edge of Revealjs slides.
format:
revealjs: ...
revealjs-plugins:
- attribution
---
## attribution
![testatt](./images/logos/logo_chatgpt.png){.nostretch width="600px" fig-align="center"}
::: {.attribution}
Photo courtesy of [@ingtotheforest](https://unsplash.com/@ingtotheforest)
:::
R
to run.
Sample presentation: RoughNotation; its source: quarto-roughnotation/example.qmd at main · EmilHvitfeldt/quarto-roughnotation
---
title: Simple roughnotation setup
filters:
- roughnotation
---
- [type]{.rn rn-type=circle}
- [animate]{.rn rn-animate=false}
- [animationDuration]{.rn rn-animationDuration=20000}
- [color]{.rn rn-color=blue}
- [strokeWidth]{.rn rn-strokeWidth=3}
- [multiline multiline multiline multiline multiline multiline multiline multiline multiline multiline]{.rn rn-multiline=true}
- [iterations]{.rn rn-iterations=1}
- [rtl]{.rn rn-rtl=false}
also
{.rn rn-type=underline}
Key bits:
And this will be [circled]{.rn rn-type=circle rn-color=orange}
and [underlined]{.rn rn-type=underline rn-color=orange rn-animate=false}
and [boxed]{.rn rn-type=box rn-color=blue rn-animate=false}
and [crossed]{.rn rn-type=crossed-off rn-color=blue rn-animate=false}
and [crossed again]{.rn rn-type=strike-through rn-color=blue rn-animate=false}
rn-index=2
for order so that the animations happpen one after the other
Works for entire divs as well: RoughNotation
It highlights the wrong places for me if the presentation is too narrow, both on mobile and desktop browsers; zooming out helps but too much breaks it again. EDIT: a known issue mentioned in the last slide of the sample presentation, they also suggest zooming.
EDIT: No one said I have to use half a screen for previewing, this is a nice layout that solves multiple problems:
Default theme: quarto-cli/src/resources/formats/revealjs/quarto.scss at main · quarto-dev/quarto-cli
/*-- scss:defaults --*/
$presentation-slide-text-align: center !default;
format:
revealjs:
theme: [default, my_scss_file.scss]
BUT for some things it’s ugly, like lists. Then:
.notcenter {
text-align: left;
}
## UA-CBT
### Outline
::: {.notcenter}
- English example
- Morphology
- Agreement
:::
{.smaller}
works on full slides only, this works for divs too:
.newsmaller {
font-size: calc(#{$presentation-font-size-root} * #{$presentation-font-smaller});
}
.reveal .slide-number {
font-size: 30px !important;
}
Both linked by the excellent and thorough Beautiful Reports and Presentations with Quarto
Quarto – Citations & Footnotes
.biblatex file exported from Zotero and optonally a CSL style (citation-style-language/styles: Official repository for Citation Style Language (CSL) citation styles.)
bibliography: ../../Masterarbeit.bib
csl: ./diabetologia.csl
---
# etc. In diabetologia this gives the usual [1] thingies.
[@key]
[see @key]
Then autocomplete in vim-quarto (!)
Incremental lists are {.incremental}
,
or the entire presentation can be
revealjs:
incremental: true
with {.nonincremental}
parts.
Otherwise Fragments1 exist with more control.
r-stack allows to make images overlapping: Quarto – Advanced Reveal
## Title {.smaller}
::: {.notcenter}
Descr.
:::: {.incremental}
- some
- list
::::
:::
<!-- footnotes here if needed
[^leaderboard]: <https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard>
-->
::: {.notes}
sp. notes.
:::
::: footer
Chapter - Section
:::
The excellent page of quarto presentation tricks Meghan Hall has this:
Text with [red words]{style="color:#cc0000"}.
No special CSS classes needed!
Context: 240423-1912 Better Posters notes
You can disable scaling the stroke size together with the box in the upper-right toolbar! (The same one where locking aspect ratios is)
For things into which text “flows” etc. — if you have a white background making them white works for keeping them selectable when needed. (And removing the background makes them visible).
Damn I love doing random vector stuff.
The book by Better Posters’s author is freaking awesome. Short summary follows, not copypasting too much because copyright, but the book is 12/10.
TL;DR how to do a poster if you read only one chapter
take the width of your paper, subtract 8 inches (200 mm) for the margins,
and divide by three to find your column width. If your poster is 48 inches (1,220 mm), your columns will be 13⅓ inches (340 mm) wide. Yes, it’s an awkward number, but computers don’t care.
> cc (1189-100)/6
181.5
> cc (841-100)/6
123.5
After playing around, this is good enough I guess! (Ignore Y grid)
After ignoring even more advice: (EDIT: oh damn it’s 7, not 6!)
Quoting directly because it’s freaking awesome.
- “Dan Roam argues that there are six basic ways to show something, and you can recognize which you need by the kind of question you hear (Roam 2013)”:
- If you hear a name – a “who or what” – you need a portrait. This is not necessarily a realistic or detailed portrait like a painting or a posed photo. A stick and ball chemical structure is a “portrait” of a molecule. A smiling emoji can be a portrait.
- • If you hear a number – a “how many” – you need a chart or graph. A bar graph is a simple example.
- • If you hear a location or a list – a “where” – you need a map. Again, this need not be a literal cartographic map. Anytime you talk about something “above,” “below,” “closer,” or “overlapping,” you have the potential to create a map. Examples include concept maps, pedigrees and phylogenies, org charts and Venn diagrams.
- • If you hear a history – a “when” – you need a timeline. “Time” is one of the most common variables shown graphically (Tufte 2001).
- • If you hear a sequence or process – a “how” – you need a flowchart.
- • If you hear some complex combinations – a “why” – you need a multi-variable plot, like a scatterplot.
Design is making things look similar (consistency, grids, fonts) and different (h2 vs the text, etc.)
Main rules:
p.85 100-300 dpi is the sweet spot for posters
108 when deciding how much to narrow/widen a line graph, aim for a max slope of about 45 degrees
153 a font family is designed so that different fonts look OK together — DAMN.
The most important takeaway.
[--][ ]
two wides one tall[-] [-----]
swedish flagBad:
[ ][ ]
[ ][ ]
Good:
[ ][ ]
[ ][ ]
221 checklist and ratings
Have been using it casually but now I wanted a quick way to follow internal links in my Thesis and go back.
Zathura can do this and not just this apparently!
zathura(1) — Arch manual pages
f
shows links that can be followed by typing the number and then enter^o, ^i
: Move backward and forward through the jump list! Practically ^o is basically “go back”.It even has a config file, with remapping, design and stuff zathurarc(5) — Arch manual pages
Downsides:
f
are too small, and no way to change them\begin{description}
\item[Brown-UK\footnote{\href{https://github.com/brown-uk/corpus}{https://github.com/brown-uk/corpus}}] is an open, balanced ..
Nope. It’s like tables — you’ll get the mark but not the actual footnote. Hard to notice.
Fought long and hard on this till I got enlightened. The trivial stupid way works.
\providecommand{\dagtab}{%
{\textsuperscript{\dag}}
}
\providecommand{\asttab}{%
{\textsuperscript{*}}
}
% put it wherever in the table
\caption[Evaluation scores]{Scores of selected models.
\dagtab LMES tasks (shortened for brevity)
This was so easy.
\ddag double dagger also exists
! as well
… is hard and nothing worked. If it’s over the margin at least.
After trial and error I got this1.
% \centerline{
\begin{table}[t]
% \begin{center}
\footnotesize
\centering
\addtolength{\leftskip} {-2cm} % increase (absolute) value if needed
\addtolength{\rightskip}{-2cm}
% \begin{adjustbox}{center}
% \resizebox{1.0\textwidth}{!}{% Adjust the scale as needed
\begin{tabular*}{1.25\textwidth}{lrrrrrrrrr}
\hline
& LOW & WIS & cats\_bin & cats\_mc & wordalpha & wordlength & UA-CBT & UP-masked & UP-unmasked \\
\hline
BASELINE-human & 0.97 & 0.94 & 0.97 & 0.98 & 0.92 & 0.94 & 0.94 & 0.84 & 0.88 \\
BASELINE-random & 0.09 & 0.05 & 0.50 & 0.20 & 0.50 & 0.50 & 0.17 & 0.10 & 0.10 \\
Mistral-7B-Instruct-v0.2 & 0.34 & 0.19 & 0.59 & 0.71 & 0.48 & 0.71 & 0.46 & 0.75 & 0.86 \\
Ms-Inst-Ukr-SFT & 0.31 & 0.16 & 0.66 & 0.55 & 0.48 & 0.66 & 0.42 & 0.82 & 0.87 \\
Ms-Inst-Ukr-Slerp & 0.35 & 0.19 & 0.66 & 0.66 & 0.49 & 0.70 & 0.45 & 0.79 & 0.87 \\
Ms-Inst-Ukr-sherl & 0.37 & 0.19 & 0.69 & 0.76 & 0.50 & 0.75 & 0.55 & 0.88 & 0.92 \\
gpt-3.5-turbo & 0.68 & 0.34 & 0.68 & 0.91 & 0.78 & 0.89 & 0.61 & 0.77 & 0.86 \\
gpt-4-1106-preview & 0.67 & 0.39 & 0.86 & 0.93 & 0.85 & 0.95 & 0.97 & 0.96 & 0.97 \\
\hline
\end{tabular*}
% }
% \end{adjustbox}
% \caption[Evaluation scores]{\TODO{Scores of selected models}}
\label{tab:eval}
% \end{center}
\end{table}
% }
The width 1.25\textwidth
has to be manually
chosen otherwise the table lines are too
long or short for the text.
If it’s too low or too high it causes this (left is low):
As usual, when doing these things, Overleaf’s draft mode is golden.
For positioning on the page, quoting Overleaf2:
The parameter `h!` passed to the table environment declaration establishes that this table must be placed _here_, and override LATEX defaults. The positioning parameters that can be passed-in include:
`h`
Will place the table _here_ approximately.
`t`
Position the table at the _top_ of the page.
`b`
Position the table at the _bottom_ of the page.
`p`
Put the table in a special page, for tables only.
`!`
Override internal LATEX parameters.
`H`
Place the table at this precise location, pretty much like h!.
The UNLP workshop generously included a 3 months trial of Grammarly Premium, and this was interesting.
Shown in Fig. XXX
Oxford commas — Grammarly wants them, I seem to not, but I should decide on one
it specified the requirements, THE complexity of the story, … — when I list things I can’t use one article for all of them!
e.g. requires a comma only in American English
I do A LOT of errors with duplicated words (the the)
I don’t know how to spell a number of English words
Many typos are acoustical ones if I’m tired, e.g. doc instead of dog
I use too many words
it removes many of my commas
General impressions
written in python
requires Python to be capitalized!Comma after ‚i.e.‘ and ‚e.g.‘ – Business English & Übersetzungen:
They are followed by commas in American English but not in British English.
kubectl cp
failed with errors, so.
file.io - Super simple file sharing
(rapids) root@lm-eval-sh:/data/output# curl -F "file=@more.zip" https://file.io
{"success":true,"status":200,"id":"xxx","key":"xxx","path":"/","nodeType":"file","name":"more.zip","title":null,"description":null,"size":46277219,"link":"https://file.io/xxx","private":false,"expires":"xxx","downloads":0,"maxDownloads":1,"autoDelete":true,"planId":0,"screeningStatus":"pending","mimeType":"application/octet-stream","created":"2024-04-16T15:19:10.227Z","modified":"2024-04-16T15:19:10.227Z"}
Generally, free curl file sharing online - Google Suche returns many services with potential.