Re: [NTG-context] Distance between table rows
Could have known that :-O Thanks Wolfgang for pointing that out! Cheers, Tim On 25 Mar 2020, 14:36 +0100, Wolfgang Schuster , wrote: > Tim Steenvoorden schrieb am 25.03.2020 um 10:31: > > Hi all, > > > > Trying to make my life a bit easier to add distances between tabulate > > rows. Found the \TB macro on the wiki. But why does below code _not_ add > > extra space when using the freshly defined \SR command below. So between > > the _second_ and _third_ row? Some TeX expansion thing going on here? > > No, the command already exists but is local to the tabulate environment > and your custom command is just overwritten. > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] reference a paragraph
Alan Braslau schrieb am 25.03.2020 um 15:09: Hello, One creates references for structure elements as, for example, \startsubject [reference=sub:mysubject] ... \stopsubject and then can refer to these using, e.g. \on{page} [sub:subject] How might one reference a *paragraph*, for example? Parallel syntax might suggest \startparagraph [reference=p:myparagraph] but this is not implemented. Perhaps there is another referencing command that I am not aware of? xxx\pagereference[p:myparagraph] xxx \dontleavehmode\pagereference[p:myparagraph]xxx xxx Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] reference a paragraph
Hello, One creates references for structure elements as, for example, \startsubject [reference=sub:mysubject] ... \stopsubject and then can refer to these using, e.g. \on{page} [sub:subject] How might one reference a *paragraph*, for example? Parallel syntax might suggest \startparagraph [reference=p:myparagraph] but this is not implemented. Perhaps there is another referencing command that I am not aware of? Thank you Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Distance between table rows
Tim Steenvoorden schrieb am 25.03.2020 um 10:31: Hi all, Trying to make my life a bit easier to add distances between tabulate rows. Found the \TB macro on the wiki. But why does below code _not_ add extra space when using the freshly defined \SR command below. So between the _second_ and _third_ row? Some TeX expansion thing going on here? No, the command already exists but is local to the tabulate environment and your custom command is just overwritten. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing default rule thickness (globally)
Benjamin Buchmuller schrieb am 25.03.2020 um 09:27: Hi! I would like to change the rule thickness that is used by default in ConTeXt. However, from the command documentation (http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need to basically change this for [...] (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how? You can use \setuplinewidth[] to change the default value for all (there can be lines which have a fixed value) lines. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to calculate the height of text of a certain width?
Sorry, I forgot the mentioned pdf-file. Rudolf dowithnextbox-2.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to calculate the height of text of a certain width?
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote: > > When you need the height for the layer offset you can use \dowithnextbox > because it hides \setbox etc. > > \definelayer[TextBox] > > \showframe[text][text] > > \starttext > > \dowithnextbox > {\setlayer > [TextBox] > [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax, > y=\the\dimexpr(\textheight-\nextboxht)/3\relax] > {\flushnextbox}} > \hbox{\framed[width=300pt,align=normal]{\samplefile{ward}}} > > \flushlayer[TextBox] > > \stoptext Thank you! I played with the example a bit, all works well with one exception: When I replace "align=normal" by "align=left" the frame gets too wide at it's left edge. I append this pdf-file. But "align=right" works well and that's what I'm using most. Your Example is well suited to be used in page design! > > > > > > \starttexdefinition NextboxDimension > > >\starttabulate > > >\NC Width \EQ \the\nextboxwd \NC\NR > > >\NC Height \NC \the\nextboxht \NC\NR > > >\stoptabulate > > > \stoptexdefinition > > > > > > \starttext > > > > > > \dowithnextboxcs > > >\NextboxDimension > > >\vbox > > > {\samplefile{ward}} > > > > > > \dowithnextboxcs > > >\NextboxDimension > > >\vbox > > > {\setupalign[flushright] > > > \samplefile{ward}} > > > > > > \dowithnextboxcs > > >\NextboxDimension > > >\vbox > > > {\hsize=200pt > > > \samplefile{ward}} > > > > > > \dowithnextboxcs > > >\NextboxDimension > > >\vbox > > > {\hsize=200pt > > > \setupalign[flushright] > > > \samplefile{ward}} > > > > > > \stoptext > > > The \dowithnextbox command stores the passed argument in the named box > \nextbox and performs the content of the first argument (or the command when > you use \dowithnextbox*cs*). > > The get the width and height of the box you can use \wd\nextbox or the > wrapper \nextboxwd. The content of the box can be flushed with \flushnextbox > but when you need only a copy of it you have to use \copy\nextbox. > > Wolfgang > Thank you very much for the example and the explanation therefore! It should be well suitable to evaluate width and height of boxes and to pass them to luacode programs by 'tokens.getters.macro("...")' for instance. Thank you again! Rudolf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Primes far too high in Lucida Type1
Hi all, Nobody a clue on this? Cheers, Tim On 22 Mar 2020, 12:14 +0100, Tim Steenvoorden , wrote: > P.S. Same thing happens with math placed on top of arrows, like here > > $e,\sigma \xrightarrow{i} e',\sigma’$ > > Like to fix that too. > > > Cheers, > Tim > > On 22 Mar 2020, 12:10 +0100, Tim Steenvoorden , > wrote: > > Hi all, > > > > I’m trying to typeset a document using Lucida Type1 fonts. Primes are put > > way too high. Also, kerning with punctuation characters placed after a > > prime are too wide. This can be seen in attached rendering of below example. > > > > $e,\sigma \rightarrow e',\sigma’$ > > > > Is there a quick way to fix this? I don’t have access tot the OTF > > unfortunately. Running ConTeXt TeXlive 2019 on macOS 10.15.3. > > > > Cheers, > > Tim > > > > > > > > > > context --version > > mtx-context | ConTeXt Process Management 1.02 > > mtx-context | > > mtx-context | main context file: > > /usr/local/texlive/2019basic/texmf-dist/tex/context/base/mkiv/context.mkiv > > mtx-context | current version: 2019.03.21 21:39 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Distance between table rows
Hi all, Trying to make my life a bit easier to add distances between tabulate rows. Found the \TB macro on the wiki. But why does below code _not_ add extra space when using the freshly defined \SR command below. So between the _second_ and _third_ row? Some TeX expansion thing going on here? ``` \define\SR {\NC\NR\TB[halfline]} \starttabulate[|r|l|] \NC one \NC two \NC\NR \NC two \NC three \SR \NC four \NC five \NC\NR \TB[halfline] \NC five \NC six \NC\NR \stoptabulate ``` Cheers, Tim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with long indices in LMTX
Hello list Sorry to ask again. What do I miss in following MWE? \starttext \m{F_{\rm longIndex}=m_{\rm longIndex}a} \stoptext The index longIndex overlaps the following characters "=" and "a" when processed with lmtx. No problems with mkiv. Thanks for your help Christian Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hello > > Following MWE produces strange output in latest LMTX. mkiv (also latest) > output is ok. > > \usetypescript[palatino] > \setupbodyfont[palatino,11pt] > \starttext > \m{F_{\rm longIndex}=m_{\rm longIndex}a} > \stoptext > > The spacing in the index is wrong. > > What am I missing? > > Thanks in advance > Christian > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Changing default rule thickness (globally)
Hi! I would like to change the rule thickness that is used by default in ConTeXt. However, from the command documentation (http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need to basically change this for \basegrid[rulethickness=...] \setupbar[rulethickness=...] \setupchemical[rulethickness=...] \setupeffect[rulethickness=...] \setupfillinlines[rulethickness=...] \setupfillinrules[rulethickness=...] \setupframed[rulethickness=...] \setuplinefillers[rulethickness=...] \setupmarginrules[rulethickness=...] \setupmixedcolumns[rulethickness=...] \setupnote[rulethickness=...] \setupparagraphs[rulethickness=...] \setupsidebar[rulethickness=...] \setuptables[rulethickness=...] \setuptabulation[rulethickness=...] \setuptextbackground[rulethickness=...] \setuptextrules[rulethickness=...] \setupthinrules[rulethickness=...] \setupxtable[rulethickness=...] (And for \setupbackgrounds for [top header text footer bottom].) I’m sure there is a more elegant way to do this. But how? Cheers Benjamin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___