* [NTG-context] 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?
@ 2024-08-13 14:49 fm117575
2024-08-13 15:40 ` [NTG-context] " Hans Hagen via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: fm117575 @ 2024-08-13 14:49 UTC (permalink / raw)
To: ntg-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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: 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?
2024-08-13 14:49 [NTG-context] 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? fm117575
@ 2024-08-13 15:40 ` Hans Hagen via ntg-context
2024-08-13 17:22 ` Wolfgang Schuster
2024-08-13 18:30 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2024-08-13 15:40 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: 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?
2024-08-13 15:40 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-08-13 17:22 ` Wolfgang Schuster
2024-08-13 18:30 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2024-08-13 17:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: 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?
2024-08-13 15:40 ` [NTG-context] " Hans Hagen via ntg-context
2024-08-13 17:22 ` Wolfgang Schuster
@ 2024-08-13 18:30 ` Wolfgang Schuster
2024-08-13 19:10 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2024-08-13 18:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: 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?
2024-08-13 18:30 ` Wolfgang Schuster
@ 2024-08-13 19:10 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2024-08-13 19:10 UTC (permalink / raw)
To: ntg-context
On 8/13/2024 8:30 PM, Wolfgang Schuster wrote:
> 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.
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-13 19:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-13 14:49 [NTG-context] 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? fm117575
2024-08-13 15:40 ` [NTG-context] " Hans Hagen via ntg-context
2024-08-13 17:22 ` Wolfgang Schuster
2024-08-13 18:30 ` Wolfgang Schuster
2024-08-13 19:10 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).