Skip to content

How to enable LaTeX preview in org, but with tectonic #1098

Answered by nanjj
osvarcha asked this question in Q&A
Discussion options

You must be logged in to vote

Add process name tectonic into org-preview-latex-process-alist:

  (tectonic :programs ("tectonic" "convert") 
               :description "pdf > png"
               :message "you need install the programs: tectonic and imagemagick."
               :image-input-type "pdf" 
               :image-output-type "png"
               :image-size-adjust (1.0 . 1.0) 
               :latex-compiler
                 ("tectonic -Z shell-escape-cwd=%o --outfmt pdf --outdir %o %f")
               :image-converter
               ("convert -density %D -trim -antialias %f -quality 300 %O"))

and customize org-preview-latex-default-process to tectonic.

You need to make sure both tectonic and imagemagick ins…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by osvarcha
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants