manuskript icon indicating copy to clipboard operation
manuskript copied to clipboard

LaTeX export adds additional new lines in arguments, can't compile

Open Disar opened this issue 2 years ago • 1 comments

When I export to latex through pandoc the output generates the following

\documentclass[

10pt,

a4paper,

]{book}

The additional enters between arguments cause compile errors. These extra enters appear for other arguments as well through the document.

As an alternative I've exported to markdown first and then converted to latex by manually calling pandoc and that seems to work fine. However it seems like I don't get the same look. If this is a problem Pandoc rather than manuscript, could you share the settings that are used to generate the .tex file?

Disar avatar Sep 12 '22 13:09 Disar

PDF export seems to work fine though, so for now I can skip the latex option for now. But I don't believe the empty lines are intended?

Disar avatar Sep 12 '22 13:09 Disar

Which version do you use? I can't reproduce it with 0.14.0 neither the develop branch. Which operating system are you using and which version of Pandoc?

TheJackiMonster avatar Feb 10 '23 22:02 TheJackiMonster

Unfortunately I don't have the same system anymore, got a new one recently and have nothing of the old installs are left. I can verify on my new computer if it still happens asap.

Disar avatar Feb 10 '23 23:02 Disar

I see the problem with version 0.15.0 (Python 3.10.6, PyQt 5.15.6, Qt 5.15.3) on ubuntu 22.04

It seems to me that it also causes that giving any other font-size than 12pt in the pandoc-setup doesn't have any effect when creating a pdf. E.g. both 10pt and 16pt give the same pdf result while 12pt gives different and a larger font-size in the pdf than the other two.

dadorner avatar May 08 '23 21:05 dadorner

I ran a short test with a shorter text than my novel. Find attached the directory with the test project (test.msk and test folder), the exported pdfs with font-sizes 10pt,12pt,16pt (folder pdf_export) and the exported and compiled latex files also with 10pt, 12pt, 16pt (folder latex_export). The really strange thing is that even with the latex files that differ only by the font-size pdflatex generates the same result as with the pdf exports, namely that the 12pt export has a larger font-size that both 10pt and 16pt which are identical. As I don't know the details of all settings that are set during export, I don't know for sure whether the problems I observe are related to the export from manuscript or maybe are due to some issue with pdflatex. However I haven't seen any problems with pdflatex on my system in the last years. lore_ipsum.tar.gz

Just to check whether it's related to my system, I used the exported latex files on overleaf and there the same behaviour can be observed. You can check here https://www.overleaf.com/read/pnrfnhyqpkfg by selecting the different files and recompile.

dadorner avatar May 08 '23 22:05 dadorner