-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code blocks are shuffled in the PDF export of a tutorial #466
Comments
Hi, and sorry for the delay, I checked this bug, and first thought it was due to ZMarkdown, but the LaTeX seems to be correctly generated on the website (line 13774 and following). I do not understand how it could be due to the template... Can you confirm if the LaTeX is indeed correct, or if I am mistaking? I will open an issue on the LaTeX side if the error is not due to the generation of the LaTeX file. |
Hi, Sorry for the delay but yes I confirm that the LaTex file is good. Voici un exemple de document CSV :
\begin{CodeBlock}{csv}
nom,type,degats
charge,normal,20
tonnerre,foudre,50
jet-de-flotte,aquatique,40
brûlure,flamme,40
\end{CodeBlock}
\captionof{listing}{attaques.csv}
Une première ligne (l’en-tête) identifie les noms des colonnes, elle est facultative, mais il faudra en tenir compte lors de l’analyse du fichier. |
Thanks, I transferred on the LaTeX template repository, I am tagging the issue here while waiting for the answer. |
Karnaj says that the issue is due to the LaTeX package used for code blocks not supporting the |
Ok thanks for the details. |
Hi,
zgorg2004 noticed on Zeste de Savoir that some blocks of code didn't contain the correct content in the PDF export of Un zeste de Python.
For example at page 269 we can see:
The name of the listing is correct (
attaques.csv
) but the content is the one of an earlier extract (new.ini
page 268).Everything is good in the HTML version of the tutorial: https://zestedesavoir.com/tutoriels/2514/un-zeste-de-python/6-entrees-sorties/7-formatage/#4-4-csv
The text was updated successfully, but these errors were encountered: