Complete novice, why does it seem that LuaLaTeX (Compiled via LaTeX Workshop with MikTeX and added packages on Windows) will generate a more compact result than ConTeXt?
Hello, ConTeXt mailing list! I have a question regarding a difference in the code that I have which uses the same paper size and margin settings, and also the same indentation rules and font size and font. It seems that ConTeXt (which I compiled via Windows Terminal, this *is* the proper way to compile ConTeXt docs, right?) seems to make text that is less... compact, and I am not sure if this is due to me not adding features that I **should** have turned on in ConTeXt when using Times New Roman that is installed by default on Windows. I also was not able to get a "proper (?)" single quote like when Word or LaTeX compiles "Don't", that ' is a straight quote in the compiled text. I also heard that ConTeXT would be much better for typography since it does have a more advanced typographical engine as the base (and this is a big reason as to why I want to switch to ConTeXt, pretty much everything is built in, I just can't understand documentation that well), and this may be because my code is very basic and I do not know how do properly do ConTeXt. Is it possible that ConTeXt also has a more "correct" way of formatting? Anyways, thank you for reading and taking the time to read this post. LuaLaTeX code: https://pastebin.com/p5aWxAyK ConTeXt code: https://pastebin.com/DsMnxMvY ConTeXT current version: 2024.07.31 19:43
On 8/13/2024 4:49 PM, fm117575@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference in the code that I have which uses the same paper size and margin settings, and also the same indentation rules and font size and font. It seems that ConTeXt (which I compiled via Windows Terminal, this *is* the proper way to compile ConTeXt docs, right?) seems to make text that is less... compact, and I am not sure if this is due to me not adding features that I **should** have turned on in ConTeXt when using Times New Roman that is installed by default on Windows. I also was not able to get a "proper (?)" single quote like when Word or LaTeX compiles "Don't", that ' is a straight quote in the compiled text.
I also heard that ConTeXT would be much better for typography since it does have a more advanced typographical engine as the base (and this is a big reason as to why I want to switch to ConTeXt, pretty much everything is built in, I just can't understand documentation that well), and this may be because my code is very basic and I do not know how do properly do ConTeXt. Is it possible that ConTeXt also has a more "correct" way of formatting? Anyways, thank you for reading and taking the time to read this post.
LuaLaTeX code: https://pastebin.com/p5aWxAyK
ConTeXt code: https://pastebin.com/DsMnxMvY Can you explain what you mean with less compact? Can we assume that you are running the LMTX version? (luametatex engine)
\showframe \setuppapersize [letter] [letter] \setuplayout[ backspace=0.5in, topspace=0.5in, header=0in, % No headers footer=0in, % Space for the footer width=middle, height=middle, ] \setupbodyfont[termes,12pt] \mainlanguage[en] \setupindenting[yes,0.5in] \startsetups document:start \centerline{\documentvariable{title}} \centerline{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] ... \stopdocument ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen via ntg-context schrieb am 13.08.2024 um 17:40:
On 8/13/2024 4:49 PM, fm117575@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference in the code that I have which uses the same paper size and margin settings, and also the same indentation rules and font size and font. It seems that ConTeXt (which I compiled via Windows Terminal, this *is* the proper way to compile ConTeXt docs, right?) seems to make text that is less... compact, and I am not sure if this is due to me not adding features that I **should** have turned on in ConTeXt when using Times New Roman that is installed by default on Windows. I also was not able to get a "proper (?)" single quote like when Word or LaTeX compiles "Don't", that ' is a straight quote in the compiled text.
I also heard that ConTeXT would be much better for typography since it does have a more advanced typographical engine as the base (and this is a big reason as to why I want to switch to ConTeXt, pretty much everything is built in, I just can't understand documentation that well), and this may be because my code is very basic and I do not know how do properly do ConTeXt. Is it possible that ConTeXt also has a more "correct" way of formatting? Anyways, thank you for reading and taking the time to read this post.
LuaLaTeX code: https://pastebin.com/p5aWxAyK
ConTeXt code: https://pastebin.com/DsMnxMvY Can you explain what you mean with less compact? Can we assume that you are running the LMTX version? (luametatex engine)
[...]
\setupbodyfont[termes,12pt]
To get Times New Roman as font replace the \setupbodyfont line from the example of Hans with the following settings. The \definefontfeature line replaces all ' in your text with a apostrophe. \definefontfeature [default] [default] [trep=yes] \definefontfamily [TimesNewRoman] [rm] [Times New Roman] \definetypeface [TimesNewRoman] [mm] [math] [termes] \setupbodyfont [TimesNewRoman,12pt] Wolfgang
Hans Hagen via ntg-context schrieb am 13.08.2024 um 17:40:
On 8/13/2024 4:49 PM, fm117575@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference in the code that I have which uses the same paper size and margin settings, and also the same indentation rules and font size and font. It seems that ConTeXt (which I compiled via Windows Terminal, this *is* the proper way to compile ConTeXt docs, right?) seems to make text that is less... compact, and I am not sure if this is due to me not adding features that I **should** have turned on in ConTeXt when using Times New Roman that is installed by default on Windows. I also was not able to get a "proper (?)" single quote like when Word or LaTeX compiles "Don't", that ' is a straight quote in the compiled text.
I also heard that ConTeXT would be much better for typography since it does have a more advanced typographical engine as the base (and this is a big reason as to why I want to switch to ConTeXt, pretty much everything is built in, I just can't understand documentation that well), and this may be because my code is very basic and I do not know how do properly do ConTeXt. Is it possible that ConTeXt also has a more "correct" way of formatting? Anyways, thank you for reading and taking the time to read this post.
LuaLaTeX code: https://pastebin.com/p5aWxAyK
ConTeXt code: https://pastebin.com/DsMnxMvY Can you explain what you mean with less compact?
The default baseline distance of LaTeX is AFAIK 1.2 times the font size, adding \setupinterlinespace [line=1.2\bodyfontsize] to the document setup should produce similar results with ConTeXt. Wolfgang
Hans Hagen via ntg-context schrieb am 13.08.2024 um 17:40:
On 8/13/2024 4:49 PM, fm117575@students.panola.edu wrote:
Hello, ConTeXt mailing list! I have a question regarding a difference in the code that I have which uses the same paper size and margin settings, and also the same indentation rules and font size and font. It seems that ConTeXt (which I compiled via Windows Terminal, this *is* the proper way to compile ConTeXt docs, right?) seems to make text that is less... compact, and I am not sure if this is due to me not adding features that I **should** have turned on in ConTeXt when using Times New Roman that is installed by default on Windows. I also was not able to get a "proper (?)" single quote like when Word or LaTeX compiles "Don't", that ' is a straight quote in the compiled text.
I also heard that ConTeXT would be much better for typography since it does have a more advanced typographical engine as the base (and this is a big reason as to why I want to switch to ConTeXt, pretty much everything is built in, I just can't understand documentation that well), and this may be because my code is very basic and I do not know how do properly do ConTeXt. Is it possible that ConTeXt also has a more "correct" way of formatting? Anyways, thank you for reading and taking the time to read this post.
LuaLaTeX code: https://pastebin.com/p5aWxAyK
ConTeXt code: https://pastebin.com/DsMnxMvY Can you explain what you mean with less compact?
The default baseline distance of LaTeX is AFAIK 1.2 times the font size, adding
\setupinterlinespace [line=1.2\bodyfontsize]
to the document setup should produce similar results with ConTeXt.
On 8/13/2024 8:30 PM, Wolfgang Schuster wrote: that interlinespace is kind of bad as it can lead to inconsistent line spacing [dp \the\strutdp] \dorecurse{"FFFF}{% \ifdim\fontchardp\font#1>\strutdp \char#1 \space \fi } [ht \the\strutht] \dorecurse{"FFFF}{% \ifdim\fontcharht\font#1>\strutht \char#1 \space \fi } So, if oen really wants to go that cramped, maybe try \setupinterlinespace [line=1.2\bodyfontsize,height=.75,depth=.25] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
fm117575@students.panola.edu
-
Hans Hagen
-
Hans Hagen
-
Wolfgang Schuster