Thank you for the clarification! I didn’t have any specific issues, I was just curious because I wanted to manipulate the generated LaTeX but found that the PDF output was different from what I expected. Now that I understand the reasoning behind this, it makes much more sense.
I appreciate your help, and thanks again for taking the time to explain! On Sun, Feb 9, 2025 at 2:33 PM Patrice Dumas <pertu...@free.fr> wrote: > On Sat, Feb 08, 2025 at 02:45:22AM +0300, thexxiv wrote: > > Why is PDF generated from LaTeX different from TeX? > > First, we do not try to have exact same output in general, Texinfo is > semantic, so the main objective is to have the same meaning conveyed, > not necessarily the same output. Having similar output is better, in > general, but it is a secondary objective. > > Now, there are two main reasons why the PDF generated from LaTeX would > be different for the PDF generated by Texinfo TeX: > * sometime it is not easy to find a good LaTeX code for some Texinfo > constructs, which could mean something quite different from Texinfo > TeX output. We have a bunch of TODO at the beginning of > Texinfo/Convert/LaTeX.pm > * sometime the LaTeX output is different because it is, even though > semantically it is the same. That is not an problem as such, and > I see no good reason to try to do otherwise. For example, in LaTeX, > chapter level commands generate bigger fonts and much more vertical > whitespace than in Texinfo TeX, but there is no specific reason to > consider that one or the other is a better output. > > Also, your question is not very helpful, do you have specific issues you > would like to report? > > -- > Pat >