howtos:how_to_convert_latex_to_qmd
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| howtos:how_to_convert_latex_to_qmd [2026-02-28 07:13 am] – created hcho | howtos:how_to_convert_latex_to_qmd [2026-02-28 07:53 am] (current) – hcho | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code bash> | <code bash> | ||
| - | # convert tex to qmd first | + | # convert tex to tempory |
| - | pandoc main.tex | + | pandoc main.tex --to=markdown+tex_math_dollars+raw_tex --wrap=none -o main.tmp |
| # extract citations | # extract citations | ||
| Line 11: | Line 11: | ||
| # extract cited bib entries only | # extract cited bib entries only | ||
| - | bibtool -x refs.keys -i full.bib -o refs.bib | + | bibtool -x refs.keys |
| # add yaml header | # add yaml header | ||
| Line 24: | Line 24: | ||
| toc: true | toc: true | ||
| number-sections: | number-sections: | ||
| - | bibliography: | + | bibliography: |
| --- | --- | ||
| Line 31: | Line 31: | ||
| # delete tmp file | # delete tmp file | ||
| - | rm *.tmp | + | rm main.tmp |
| # render | # render | ||
| quarto render main.qmd --to pdf | quarto render main.qmd --to pdf | ||
| </ | </ | ||
howtos/how_to_convert_latex_to_qmd.1772288027.txt.gz · Last modified: by hcho
