lnnrtwttkhn / version-control-book

Source code for the Version Control Book, a guide to Git for scientists
https://lennartwittkuhn.com/version-control-book/
Creative Commons Attribution Share Alike 4.0 International
7 stars 5 forks source link

figure out how to use underscore in code chunk filenames with pdf #121

Open lnnrtwttkhn opened 8 months ago

lnnrtwttkhn commented 8 months ago
compilation failed- error
Missing $ inserted.
<inserted text> 
                $
l.9138 \caption{\texttt{_quarto.yml (excerpt)}}

You may need to $ $ around an expression in this file.

this comes from underscores in the filename option of code chunks, e.g.,

```{bash, filename="quarto.yml", echo=c(1:5)}
#| file: _quarto.yml
#| code-line-numbers: true


tried a few things, but nothing worked so far. will just remove the underscore for now.

_Originally posted by @lnnrtwttkhn in https://github.com/lnnrtwttkhn/version-control-book/issues/106#issuecomment-1966890486_