[NTG-context] Re: more register questions!
Hello Wolfgang and all, I have been trying to extend this to handle endnotes. So far, I have not succeeded; the number is always that of the last endnote. I could possibly increment a counter for each endnote processed, but that seems a hack. -- Rik On 2024-05-03 06:18, Wolfgang Schuster wrote: Thomas A. Schmitz schrieb am 02.05.2024 um 17:01: Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry in the register would look like p. 100\high{20} to show that the term occurs in note 20 on p. 100. But if that's asking too much, I would be content with applying a processor (say, italic) to these register entries. From the looks of the tuc file, Context doesn't appear to "know" that a register entry is within a footnote. But Hans never ceases to amaze me, so maybe there is a way (short of applying special markup to these notes in the source)? You can play with the following example, the main point use to use the \setregisterentry command and pass the footnote counter with the third (optional) argument. \def\IndexPageCommand#1% {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem}\expanded{\setregisterentry[index][entries=\recurselevel]}% \samplefile{lorem}\footnote{xxx\expanded{\setregisterentry[index][entries=\recurselevel][footnote={\rawcountervalue[footnote]}]}}% \samplefile{lorem}} \page \placeindex \stoptext 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 ___ ___ 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 ___
[NTG-context] Re: weird \inlinetypebuffer interaction
Pablo Rodriguez via ntg-context schrieb am 07.05.2024 um 19:40: On 5/6/24 22:45, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: Dear list, I have the following sample: \definefontfamily[mainface][tt][TeX Gyre Termes] Apply the none feature when you set the monospace font, i.e. \definefontfamily[...][tt][...][features=none] Many thanks for your reply, Wolfgang. This solves the issue, but I have two questions. Why is this only required for \inlinetypebuffer and not for \typebuffer? Which is the exact font feature that does the hyphen ligatures? I’m interested in not disabling hz and hanging. \typebuffer disables automatic \endash and \emdash with the \nohyphencollapsing command but the command isn't used for \typeinlinebuffer. \starttext \type{--} = -- \nohyphencollapsing \type{--} = -- \dohyphencollapsing \type{--} = -- \stoptext 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 ___
[NTG-context] Re: intercolumn pull quotes typesetting
Hi all, I am happy to share one way to get "pull quotes between two columns" (in a three columns layout). https://wiki.contextgarden.net/images/5/50/context_3columns_layout.pdf It's not based on Columns / ColumnSet / Page Columns. It just combines \startuseMPgraphic + build_parshape + \framed + \getshapetext (and several precautions regarding offsets, thicknesses, spacings, dimensions, box positioning...) It's not used in this case, but I discovered that \placelocalfootnotes and \reference \at \in etc... are fully functional with \getshapetext :-) The resulting layout isn't as complex as a newspaper, but a lot can be done (at the cost of some investment, but really, it's not that hard). LuaMetaTeX is definitely fun and pretty. Thanks devs and community. => One question <= Would it be possible to define several shapetex like \startshapetex[NAME1], \startshapetex[NAME2], in order to alternate the use of \getshapetext[NAME1] and \getshapetext[NAME2] because currently only one can be active at a time ? Garulfo 2 years ago... Le 13/03/2022 à 22:13, Garulfo a écrit : Hi all, what would be the prefered way to typeset pull quotes (with \startcolumns or even \startcolumnset if needed) between 2 columns. Examples: https://tex.stackexchange.com/questions/45709/how-do-you-create-pull-quotes https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2 Thanks for your ideas and solutions. Garulfo <> ___ 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 ___
[NTG-context] Re: weird \inlinetypebuffer interaction
On 5/6/24 22:45, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 06.05.2024 um 20:06: >> Dear list, >> >> I have the following sample: >> >>\definefontfamily[mainface][tt][TeX Gyre Termes] > > Apply the none feature when you set the monospace font, i.e. > > \definefontfamily[...][tt][...][features=none] Many thanks for your reply, Wolfgang. This solves the issue, but I have two questions. Why is this only required for \inlinetypebuffer and not for \typebuffer? Which is the exact font feature that does the hyphen ligatures? I’m interested in not disabling hz and hanging. Many thanks for your help, Pablo ___ 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 ___
[NTG-context] 18th ConTeXt Meeting, Lutten NL, August 17-23 2024: Registration open
Dear list members! Registration for the 18th ConTeXt Meeting https://meeting.contextgarden.net/2024/ is now open. This year we are hosted in Lutten, The Netherlands, in a converted water tower: https://watertorenlutten.nl/ https://watertorenlutten-nl.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp The accommodation is near to Pragma ADE; Ton Otten is the local organizer. The theme for this meeting is keeping up but as you know we have never been that strict about a particular theme, so feel free to suggest other topics to talk about. Dates and deadlines • June 30st, 2024, deadline for early bird payment • August 1st 2024, registration closes, ask for options after this deadline • August 17th–23th, 2024, 18th ConTeXt Meeting Never been to the ConTeXt Meeting? Don't worry, the group of regular participants is open and friendly, and you don't know what you are missing, unless you come at least once. Different discount options https://meeting.contextgarden.net/2024/fee.shtml are available. We hope to see you in August! Ton, Hans, and Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 ___