# serhii.net

In the middle of the desert you can say anything you want

• To get images, rename the pptx to .zip1 and just copy them from the archive
• zipinfo lists everything
• ssine/pptx2md: a pptx to markdown converter does this automatically!

• --qmd
• Had to install deps manually
• In LibreOffice could delete the footer and header in the master slide, giving me clean slides.
• LibreOffice could delete header only, but not the footer — had to use MS Office for this
• // Ha: [Falk358/quarto_translator: A python project for translating quarto markdown files using the openai API](https://github.com/Falk358/quarto_translator+

• Tested it on a small file, it actually works nicely

## LaTeX

### Colorful equations

How do I write LaTeX with colors in quarto presentations? · quarto-dev/quarto-cli · Discussion #4429

\begin{aligned} \color{green}{\bf{Net Benefit}} = \frac{\color{green}{\bf{TP}}}{\text{N}} - \frac{\color{red}{\bf{FP}}}{\text{N}} * {\frac{{p_{t}}}{{1 - p_{t}}}} \end{aligned}

$$\color{red}{w_0} + x_1*w_1 + x_2*w_2 + x_1*w_1$$


It uses the usual names: LaTeX Color Definitions

HA, it can even do usual RGB hex colors!

The useful to me are Cardinal/Carmine and Cerulean/Blue?..

## Quarto align stuff right

\\\{=html}
<style>
.flushright {
text-align: right;
}
</style>

::: {.flushright}


But actually,

::: {style="text-align: right;"}
$\small{E(W) = \frac{1}{n} \sum_{i=1}^{n} \mathcal{L} \left( \color{blue}{f(x^{(i)}; W)}, \color{red}{y_{true}^{(i)}} \right)}$
:::


## Height and aspect ratios

Preview in a long/high browser window to see what the actual width of the presentation is. PDF export also uses the actual width

## Misc

• ✕ aka MULTIPLICATION X is a really nice cross mark to use in random pictures.3
• \times` in latex
• ⮕ is a good arrow.
Nel mezzo del deserto posso dire tutto quello che voglio.