Question

Using fullpage.sty in a document preamble breaks latex preview by generating a full page preview images with page numbers. I.e., this code:

#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_HEADER: \usepackage{fullpage}

\begin{equation}
E=mc^2
\end{equation}

will generate the preview image:

enter image description here

How to exclude fullpage package from LaTeX preview preamble? Also, is it a bug and needs a bug report?

Was it helpful?

Solution

according to org-latex-preview#Minted if you add the fullpage.sty package to org-latex-packages-alist in your emacs configuration file like so:

(add-to-list 'org-latex-packages-alist '("" "fullpage" nil))

it should use it for exporting but not for the preview.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top