Replies: 7 comments 7 replies
-
The version and package set of TeXLive (or whatever TeX installation you are using) and the available fonts is going to be a relevant data point. |
Beta Was this translation helpful? Give feedback.
-
Ok, these are the texlive-* versions on opensuse:
These are the packages installed in debian:
|
Beta Was this translation helpful? Give feedback.
-
Those are pretty different versions of texlive. Also it isn't clear what fonts are available for each. That might matter too. My next step would probably be to use After that I would start with a minimal latex file directly (you can generate one with |
Beta Was this translation helpful? Give feedback.
-
The difference may arise from changes in the LaTeX template used by Pandoc to generate the LaTeX file. If you want that the PDF of 2 be identical with those of 1 and 3, it may be feasible by running the following steps:
1. Get the default LaTeX template used in 1 or 3 by running pandoc -D latex
2. Put it in 2 in the directory ~/.local/share/pandoc/templates/ (e.g. under the name old-latex-template)
3. In 2, add --template=old-latex-template to you pandoc command.
Depending on the content of your files, you may get “undefined command” errors. In that case, you would have to compare the default LaTeX template of 2 with old-latex-template and adapt the latter to provide the required commands. But I hope that you will not.
|
Beta Was this translation helpful? Give feedback.
-
This is probably not due to texlive differences; it's probably due to pandoc template changes. Here is a relevant old commit: b3473df That commit moved Why don't you use pandoc to create a standalone tex file ( |
Beta Was this translation helpful? Give feedback.
-
If ~/.local/share/pandoc exists on your machine, Pandoc will search for files there and ignore ~/.pandoc
You can generate the LaTeX file with -t latex.
|
Beta Was this translation helpful? Give feedback.
-
Ok my bad :D I was using the wrong template name: `old-latex-template` instead of `old_latext_template`. Now it find it, but i get a lot of errors using the template coming from debian!
You could get the default template from OpenSuse and compare it with that of Debian. Determine which changes have affected the formatting in a noticeable way (e.g. the replacement of polyglossia with babel has not) and create a custom template based on that of OpenSuse that reverts these changes.
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, So i have 3 different systems:
all of them are using lua 5.4
Now i have a pretty big multiple markdown files project that i convert into a pdf book using pandoc., and pdflatex
The problem is that using system 1 and 3 the output is identycal (or if there is a difference is not noticeable), same number of pages, same format etc.
But when i use the second system, i see that the output is 30 pages bigger, and one of the most noticeable differences is the toc:
Here a screenshot of the first page of the table of contents using system 3:
And this is the screenshot using system2:
Both pdf are generated using the same script, and these are the flags that i use in that script:
The pdf in both cases is correctly generated, no warnings, no errors.
Now as you can see there is a big difference. The problem is that i'm not sure how to fix it, and where should i look for.
Does anyone could provide some advice please?
Thanks a million,
Ivan
Beta Was this translation helpful? Give feedback.
All reactions