[NTG-context] Referencing the page on which an endnote was generated
List, I would like to create headings for the endnotes appendix chapter of a book with headings like "Notes for pages x–y" but can find no way to capture x and y. Is there a way to get those page numbers to insert into the header? -- Rik ___ 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] Difference in right justification in LMTX
Dear list. Given the following MWE (could not reproduce with smaller example). \setuppapersize[A5][A5] \definefontfeature[base][mode=node, protrusion=quality, expansion=quality] \definefontfamily[mainfont][serif][EBGaramond][features=base] \setupalign[hanging, lesshyphenation, hz] \setupbodyfont[mainfont, 9pt] \showframe \starttext les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur surete sur la {\righttoleft terre. Dieu} donc crea l'homme a son image. \stoptext I notice that LMTX seems to add some small gap at right margin in the 1st typeset line. I attach the pdf I get with luatex and lmtx. The showframe directive makes it more visible. Joseph Test2_lmtx.pdf Description: Adobe PDF document Test2_mkiv.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] Emacs with context lmtx
Hi Vladimir, This seems to work well : (eval-after-load "context" '(setq TeX-command-list (append '( ("context" "PATH=/home/viserion/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (MarkIV)") ("luametatex" "PATH=/home/viserion/data/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (LMTX)") ) TeX-command-list ) ) ) Thank you so much. Fabrice Le mar. 9 avr. 2019 à 09:04, Vladimir Lomov a écrit : > Hello, > ** Fabrice Couvreur [2019-04-09 00:58:46 +0200]: > > > Hi Vladimir, > > I use AUCTeX and I compile with the command C-c C-c. The configuration > you > > proposed for my .emacs file last time works perfectly. So I tried to do > the > > same thing with context lmtx and if I add this > > > > ("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $ > > PATH context --purgeall% s" > > TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list) > > I get the message > > > > For information about GNU Emacs and the GNU system, type C-h C-a. > > File mode specification error: (wrong-type-argument symbolp (ConTeXt > PATH = > > / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH > > context -purgeall% s TeX-run-command nil t : help Run context (LMTX))) > > This message tells that something wrong with your settings (I assume the > spaces in above strings are side effect of mail system). The 'cons' > function that you use allows to add only one element to a list (see > Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp > but tested a bit and think this should work: > > 8< > (eval-after-load "context" > '(setq TeX-command-list > (append > '( > ("ConTeXt" "PATH=...:$PATH context --purgeall %s" > TeX-run-command nil t :help "Run context (MarkIV)") > ("LMTX""PATH=...:$PATH context --purgeall %s" > TeX-run-command t t :help "Run context (LMTX)") > ) TeX-command-list > ) > ) > ) > 8< > > I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses > 'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead > of 'TeX-run-command'. Also you may change the 'nil t' to 't > (context-mode)' if you what to edit (expanded) string and only want to > see these entries for buffers set in 'context' mode. > > And please check the binary name and it's location (I didn't play with > LMTX yet). > > > Fabrice > > --- > WBR, Vladimir Lomov > > -- > Anyone here knowledgable in matters of water fowl? If you > walk through a park, and a goose starts following you... and > ends up following you more than half a mile until you reach > your car... at 11pm. Is the goose rabid or something? > ___ 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] serial letters
Henning Hraban Ramm schrieb am 08.04.2019 um 15:26: How would you approach serial letters, e.g. to all members of a club? (Actually I need to send out donation receipts.) I’d like to use the letter module, since my usual letter design is using it. I can export the addresses to CSV, JSON, Lua tables or whatever or transfer them to a SQLite db. Would it make more sense to read them in Lua and combine this data with a buffer, or to write a single tex file for every letter? I know how to do the latter, but I’d like to learn a more ConTeXt-ish way. Would it make sense to use the bibliographies module? You can use the letter module when you drop the normal letter-environment which is to limited in this case because it uses the buffer mechanism to store the content. To have more control over the content for the opening etc. you can switch to the setups alternative (even the content can be set in this way instead of the default buffer) and set all texts with a setups-block. The letter itself can be flushed with the \placeletter command, below is a simple example where I flush the letter after each variables setting but you should be able to do the same with a lua table or csv file. \usemodule[letter] \setuplettersection [opening] [alternative=setups] \startsetups [letter:section:opening] \doifelse{\getvariable{address}{sex}}{male} {Dear Sir,} {Dear Madam,} \stopsetups \setvariable{address}{set}{\placeletter} \starttext \startlettercontent \unknown \stoplettercontent \setvariables [address] [name=John, sex=male] \setvariables [address] [name=Anna, sex=female] \stoptext 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] endnotes customizing how?
On 4/9/2019 11:19, Hans van der Meer wrote: In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? dr. Hans van der Meer ___ 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 ___ Not sure exactly what you want, but if it helps, here is what I have used. \setupnote handles the in-text reference to the note, \setupnotation handles the note itself. The choice of SignalStyle depends on the appearance of the chosen font's superiors, if they exist. \define[1]\SignalStyle{\high{\small\hairspace#1}} %definefontfeature [f:su] % [sups=yes] %define[1]\SignalStyle{\feature[+][f:su]{\hairspace#1}} \setupnote [endnote][ textseparator={,}, textstyle=\SignalStyle, location=none, bodyfont=, ] \setupnotation[endnote] [headstyle=\small, numbercommand=, after={\blank[halfline]}, ] -- Rik ___ 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] endnotes customizing how?
Hans van der Meer schrieb am 09.04.2019 um 17:19: In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] \setupnote [endnote] [setups=setups:endnotes] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? \setupnotation [endnote] [style=italic] 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] endnotes customizing how?
In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4) \setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? dr. Hans van der Meer ___ 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] Emacs with context lmtx
Hello, ** Fabrice Couvreur [2019-04-09 00:58:46 +0200]: > Hi Vladimir, > I use AUCTeX and I compile with the command C-c C-c. The configuration you > proposed for my .emacs file last time works perfectly. So I tried to do the > same thing with context lmtx and if I add this > > ("ConTeXt" "PATH = /home/viserion/data/context/tex/texmf-linux-64/bin: $ > PATH context --purgeall% s" > TeX-run-command nil t: help "Run context (LMTX)") TeX-command-list) > I get the message > > For information about GNU Emacs and the GNU system, type C-h C-a. > File mode specification error: (wrong-type-argument symbolp (ConTeXt PATH = > / home / viserion / data / context / tex / texmf-linux-64 / bin: $ PATH > context -purgeall% s TeX-run-command nil t : help Run context (LMTX))) This message tells that something wrong with your settings (I assume the spaces in above strings are side effect of mail system). The 'cons' function that you use allows to add only one element to a list (see Emacs Lisp documentation). I'm not familiar very well with Emacs Lisp but tested a bit and think this should work: 8< (eval-after-load "context" '(setq TeX-command-list (append '( ("ConTeXt" "PATH=...:$PATH context --purgeall %s" TeX-run-command nil t :help "Run context (MarkIV)") ("LMTX""PATH=...:$PATH context --purgeall %s" TeX-run-command t t :help "Run context (LMTX)") ) TeX-command-list ) ) ) 8< I'm not absolutely sure about 'TeX-run-command' (code of AUCTeX uses 'TeX-run-TeX' for TeX stuff). You may test and use 'TeX-run-TeX' instead of 'TeX-run-command'. Also you may change the 'nil t' to 't (context-mode)' if you what to edit (expanded) string and only want to see these entries for buffers set in 'context' mode. And please check the binary name and it's location (I didn't play with LMTX yet). > Fabrice --- WBR, Vladimir Lomov -- Anyone here knowledgable in matters of water fowl? If you walk through a park, and a goose starts following you... and ends up following you more than half a mile until you reach your car... at 11pm. Is the goose rabid or something? signature.asc Description: PGP signature ___ 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 ___