I am writing a paper in Org-mode and I will need a PDF output through LaTeX. Though, I had issues with spacing (had too large gaps), so I checked the .tex file generated by Org-mode. Apparently, it added \\
at the end of every line, which made the gaps huge (probably making it think a new paragraph is created). Plus, it loaded a number of the packages I employed twice. I am sharing both the .org and the .tex files here (a simplified version of the original document).
1 Answer
I couldn't export your org file since I had a lot of LaTeX errors, but I think your questions can be answered without your (not so minimal :-)) working example.
Apparently, it added \ at the end of every line, which made the gaps huge (probably making it think a new paragraph is created).
That's just because you explicitly requested this behaviour with #+OPTIONS: \n:t
. Set it to nil
to avoid that.
Plus, it loaded a number of the packages I employed twice
The packages added by default by the org exporter can be customized thanks to the variable org-latex-default-packages-alist
. It is not recommended to remove them, however (instead, it's probably better not to call them manually in your header, unless you want to specify some options, or you have some package conflicts).
org-latex-classes
andorg-latex-default-class
.