CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_convert_latex_to_qmd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_convert_latex_to_qmd [2026-02-28 07:14 am] hchohowtos:how_to_convert_latex_to_qmd [2026-02-28 07:53 am] (current) hcho
Line 3: Line 3:
 <code bash> <code bash>
 # convert tex to tempory qmd # convert tex to tempory qmd
-pandoc main.tex --from=latex --to=markdown+tex_math_dollars+raw_tex --wrap=none -o main.tmp+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 --preserve.key.case=on -i full.bib -o references.bib
  
 # add yaml header # add yaml header
Line 24: Line 24:
     toc: true     toc: true
     number-sections: true     number-sections: true
-bibliography: refs.bib+bibliography: references.bib
 --- ---
  
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
 </code> </code>
howtos/how_to_convert_latex_to_qmd.1772288049.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki