New answers tagged

0

I found a solution: (defvar is-latex (org-export-derived-backend-p org-export-current-backend 'latex)) #+BEGIN_SRC latex :file (unless is-latex "myfile.svg") :imagemagick (not is-latex) :results (if is-latex "latex" "graphics file") This works in a sample file I made (gist), but: It does not include the packages provided in ...


1

If you want to disable display of all messages: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-message t) (TeX-command-force "LaTeX") (TeX-clean-confirm t) (TeX-save-query nil) (master (TeX-master-file)) (process (and (stringp ...


2

Following the link of @Basil, here's the needed ELisp code. (setq search-whitespace-regexp "[[:space:]\n]+")) To enable this whenever I edit LaTeX documents, I added the following code to my init file. (defun my-latex-search-setting () (setq search-whitespace-regexp "[[:space:]\n]+")) (add-hook 'latex-mode-hook #'my-latex-search-...


3

I don't know what you mean by "assume that current[l]y no latex plugins or settings are applied to the document as they do not affect the output of the PDF" but taking it literally, it is not true: Org mode converts the Org mode file to a TeX file first and then processes the TeX file through some processor (e.g. pdflatex) to produce the PDF file. ...


Top 50 recent answers are included