[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 23.05.2024 um 14:13: Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD

[NTG-context] simplify side by side Poems

2024-05-23 Thread seyal . zavira
Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD \bTD two gfjgfd oski kwo \eTD \eTR \bTR \bTD One wer s dft

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
nt = "short", righttext = righttext}) context("]") end \stopluacode \startsetups btx:aps:cite:special \btxcitereference \ctxlua{render_cite([==[\currentbtxdataset]==], [==[\currentbtxtag]==], [==[\currentbtxrighttext]==])} \stopsetups \setupbtx[aps:cite][al

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
ot;[>" .. short .. "]") else context("[" .. short .. "]") end end \stopluacode \definebtx[aps:cite:special][aps:cite] \startsetups btx:aps:cite:special \btxcitereference \ctxlua{render_cite([==[\btxflush{year}]==], [==[\btxflush{

[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
Dear list, I've got a problem. Not the first one, but the first one to contribute to the list. ;) system> ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.12  int: english/english system> 'cont-new.mkxl' loaded %== %== \definehead[Datum][subsubsubject] \startsetups[Test

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
.) \definelistalternative[startendfmpages][renderingsetup=list:startendfmpages] \startsetups[list:startendfmpages] \structurelistuservariable{itemAuthor}\crlf \structurelistuservariable{itemTitle}\hfill% \at[\currentlistentrypagenumber]–\at[\lastpagenumber] \vglue1pc \stopsetups where I

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
] [renderingsetup=list:startendpages] \startsetups[list:startendpages] {\ToCEntry} \vglue1pc \stopsetups \starttext {\tfa\bf Contents} \blank[line, fixed] \WORD{Sources} \blank[halfline, fixed] \placelist[SourceTitle][criterium=all] \blank[line, fixed] \WORD{Studies} \blank[halfline, fixed] \placelist

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
Hi Pablo and Bruce, thank you very much for your two solutions. That helps me enormously now. Greetings Thomas Am 21.03.24 um 16:34 schrieb Bruce Horrocks: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
> On 20 Mar 2024, at 18:45, Andres Conrado Montoya > wrote: > > 2. As far as I have found, including the chapter/section number in the > marking is not really a trivial task. I usually hack something using > \headnumber and \getmarking, like so: You can do the follow

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
in pagecolumns manual, everything is put on the top of next page. (BTW, there is a typo: «of aremoved») I don't know, whether this MWE helps is relevant, but just in case, here is what I did: * copy tugboat.mkxl to a new file p-bachotex.mkxl * changed p-bachotex.mkxl like this: \startsetups

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
yes,1em] \setupinterlinespace [line=2\bodyfontsize, height=0.9, depth=0.1] \setupruby [style={\switchtobodyfont[6pt]}] \setuppagenumbering [alternative=doublesided, location=none] \setuphead [title,subject] [align=middle] \startsetups [header:rightpage] \startframed

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > alternative in this c

[NTG-context] Re: \starttable questions

2024-01-25 Thread Wolfgang Schuster
es. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable]   \setupTABLE [frame=off,align=middle,loffset=.5

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
Am 25.09.23 um 17:52 schrieb Pablo Rodriguez: Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf

[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
Dear list, I have the following sample (with current latest from 2023.09.18 21:13): \setuppapersize[A6] \starttext \startsetups[forfootnote] \setupitemgroup [itemize][1] [ before={\endgraf{\ttbf[before]}\endgraf}, after={\endgraf

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, alternative=setups, setups=frontispiz, color=white, background=color, backgroundcolor=Eifel, ] \startsetups[frontispiz] \starttransparent[tlumi]% \externalfigure[\structureuservariable{image}][ width=\measure{MaxWidth}, ]% \stoptransparent% \stopsetups \setuphead[chapter][ page

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
,section}] \startsetups [SecToc] \startframedtext [width=\textwidth, align=middle, frame=off] \placelist [section] [ criterium=chapter, ] \stopframedtext \stopsetups While that produces a result, it is nothing like what I want above. Has anyone put together a TOC of this kind and might

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
something based in key=value assignments? setups? datasets? Not really sure, but If you know a better solution or point me in the direction of something I can use to replace that macro, it would be greatly appreciated. \startsetups [document:start] \doifdocumentvariable {englishabstract

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread Hans Hagen
, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best, Denis \startsetups[mypenalties] \setdefaultpenalties \setpenalties

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
> > typesetting the example below results in lines printed above each other? > Without the penalties, this doesn't happen. What am I missing here? How I > can use the penalties without the not wanted overprinting? > > > > Best, > > Denis > > > > > &g

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
[ref.buffer] \usebtxdefinitions[apa] \definebtx [apa:cite:theorem] [apa:cite] \startsetups btx:apa:cite:theorem \btxflushauthorname{author} \btxcomma \btxflush{year} \fastsetup{btx:cite:righttext} \stopsetups \setupenumeration[ before={\blank[medium]}, after={\blank

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
\startsetups[mypenalties] \setdefaultpenalties \setpenalties\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
\startsetups[mypenalties] \setdefaultpenalties \setpenalties\clubpenalties{1}{150} \setpenalties\widowpenalties{1}{1} \setpenalties\displaywidowpenalties{1}{1} \stopsetups \setuplayout[setups=mypenalties] \starttext \starttabulate[|p(.15\textwidth)|p

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
Dear list, typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting? Best, Denis \startsetups[mypenalties] \setdefaultpenalties

[NTG-context] Re: breakpoints in verbatim text

2023-08-18 Thread Hans Hagen
but Hans suggestion to provide a hook which can be used to re-enable the feature, e.g.     \startsetups [typing:mine]         \setbreakpoints[compound]     \stopsetups     \setuptyping [CUSTOM] [setups=typing:mine] The only flaw I can see in the suggestion is the use

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
zeverbatim and then   \startsetups typing:mine   \setbreakpoints[compound]   \stopsetups with   \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible interferen

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Hans Hagen
gparameter \to \everyinitializeverbatim and then \startsetups typing:mine \setbreakpoints[compound] \stopsetups with \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible interferen

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
as intermediate: % \startsetups[userdata:idautor] % \dontleavehmode % \imghref % {\externalfigure[cvlac.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{vclac}} % \quad % \imghref % {\externalfigure[orcid.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{orcid

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
][renderingsetup=userdata:idautor] \startsetups[userdata:idautor] \dontleavehmode \imghref {\externalfigure[cvlac.pdf][logo]} {\userdataparameter{cvlac}} \quad \imghref {\externalfigure[orcid.pdf][logo]} {\userdataparameter{orcid}} \quad \imghref {\externalfigure

[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title

[NTG-context] disable header for endnotes

2023-08-16 Thread jbf
be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
On Aug 12, 2023, 3:49 PM -0600, Hans Hagen , wrote: > you'll figure it out, right? I hope so and I'm working on it -- with your help -) > the demo shows both: x/.y scaling and 90/180/270 rotation Yes, here is what I have so far: == % % Hans' original template % \start

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
yesterday, not sure which one to focus on in this case -) \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}> choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \s

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ot; and map that one onto a > file (YourFont YourFontBold etc) > - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) > \startsetups glyph:iTee > \dontleavehmode\hpack\b

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
\definetextbackground[TextConcurrentFrame][ mp=GraphicConcurrent, frame=off, topoffset=1em, leftoffset=1em, before=\blank[2*big], after=\blank, location=paragraph, ] \startsetups concurrent:before \ConcurrentTextSet{% % Be sure to format "a.m." and other special

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) \st

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
undaries. draw llcorner multipars[ index ] -- ulcorner multipars[ index ]; fi \stopuseMPgraphic \definetextbackground[TextConcurrentFrame][ mp=GraphicConcurrent, frame=off, topoffset=1em, leftoffset=1em, before=\blank[2*big], after=\blank, location=paragraph, ] \startsetups conc

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbo

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
[TextConcurrentFrame] [mp=GraphicConcurrent, % mp=mpos:region:draw, method=mpos:region, frame=off, topoffset=1em, leftoffset=1em, before=\blank[2*big], after=\blank, location=paragraph] % And use setups to get a nicer definition: \startsetups concurrent:before \ConcurrentTex

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
s up to the user to decide to use {} (as before) or not but it is less > error prone. > > It is now also possible to nest setups as in > > \starttext > > \startsetups one > \startsetups [three] > HERE > \stopsetups > \stopsetups > > \startsetups two &g

[NTG-context] upload

2023-08-09 Thread Hans Hagen
to decide to use {} (as before) or not but it is less error prone. It is now also possible to nest setups as in \starttext \startsetups one \startsetups [three] HERE \stopsetups \stopsetups \startsetups two \startsetups [three] THERE \stopsetups \stopsetups \setups

[NTG-context] Re: Par Builder Tests

2023-07-28 Thread Keith McKay
te: Hi Keith, Here an example that Mikael made for such a book: \showframe % let's very strict \startsetups [*default]     \directsetup{*reset}     \frozen\widowpenalty    1     \frozen\clubpenalty 1     \frozen\displaywidowpenalty 1     \frozen\brokenpenalty   0 % \

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Keith McKay
Thanks Hans! I'll have a play and keep an eye on updates Best Wishes Keith On 21/07/2023 17:10, Hans Hagen via ntg-context wrote: Hi Keith, Here an example that Mikael made for such a book: \showframe % let's very strict \startsetups [*default]     \directsetup{*reset}     \frozen

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen via ntg-context
Hi Keith, Here an example that Mikael made for such a book: \showframe % let's very strict \startsetups [*default] \directsetup{*reset} \frozen\widowpenalty1 \frozen\clubpenalty 1 \frozen\displaywidowpenalty 1 \frozen\brokenpenalty 0

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
to the files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150

[NTG-context] definedocument, begin & closing

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startdocument, the setups "document:start" and "document:stop" get inserted at the beginning and end. But if I define my own document, it doesn’t work. What’s wrong? """ \definedocument[presentation] \startsetups[presentation:start] {\bfd\d

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
> > a > > > > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x} > > > > or > > > > x \rightarrowfill x > > x \leftarrowfill x > > > > or > > > > \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x}

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
% \setupexternalfigures % [location={default,global}] % \startsetups adaptive:test % \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup % \externalfigure % [cow.pdf] % [width=\usedadaptivewidth, %height=\dimexpr

Re: [NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-04 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年6月2日周五 19:37写道: > For Japanese I currently use > > \startsetups [japanese] > \setscript [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \definefallbackfamily > [archimate] > [ss] > [Hiragino Sans] >

[NTG-context] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-02 Thread Gerben Wierda via ntg-context
For Japanese I currently use \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=range:japanese, tf=style:W3, it=style:W3, bf=style:W5, bi=style:W5, force=yes

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Gerben Wierda via ntg-context
= > \definefallbackfamily > [archimate] > [ss] > [Hiragino Sans] > [preset=range:japanese, >tf=style:W3, >it=style:W3, >bf=style:W5, >bi=style:W5, >force=yes] > > \definefontfamily [archimate] [ss] [Optima] > > \setup

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
[Hiragino Sans] > [preset=range:japanese, >tf=style:W3, >it=style:W3, >bf=style:W5, >bi=style:W5, >force=yes] > > \definefontfamily [archimate] [ss] [Optima] > > \setupbodyfont[archimate] > > \startsetups [japanese] > \set

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \mainlanguage [ja] \starttext \setupindenting[none] \setupindenting[no] \framed[width=\textwidth,frame=off

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
] [renderingsetup=list:toclist] \setupheadtext[section=Table of Contents] \startsetups toclist \framed[align=normal, frame=off]{\placelist [section] [criterium=all, alternative=toclist]} \stopsetups \definehspace[tspace][4cm] \setupframed[ height=fit, width=fit, location=middle, frame

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
de [JA]         \setscript [nihongo]         \mainlanguage [ja]     \stopmode but for documents which use multiple script/languages at the same time replace the previous setup with     \startsetups [japanese]         \setscript [nihongo]     \stopsetups     \setuplanguage [ja] [setups=japanese] a

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
what \directsetup does, but there's no doubt it works in this case! So the following has done what I needed: \startsetups[setups:footnotes] \setupwhitespace[.01em] \stopsetups \setupnote[before=\directsetup{setups:footnotes}] Julian On 23/4/23 20:34, Henning Hraban Ramm via ntg-context

Re: [NTG-context] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
what \directsetup does, but there's no doubt it works in this case! So the following has done what I needed: \startsetups[setups:footnotes] \setupwhitespace[.01em] \stopsetups \setupnote[before=\directsetup{setups:footnotes}] Julian On 23/4/23 20:34, Henning Hraban Ramm via ntg-context

[NTG-context] interlines space for local footnotes

2023-04-22 Thread jbf via ntg-context
I am using only local footnotes in a document, but am having difficulty influencing the interlines space between these notes. Since I am only using local footnotes, I thought initially that the following would work for them \startsetups[footnote:interlinespace] \setupinterlinespace[line

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
=\vbox,align=middle,stack=yes] \defineuserdata [margintext] [alternative=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [ style={\switchtobodyfont[10pt]}, width=\rightmarginwidth

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
to put large settings into a setups-blocks and > pass the block to a setup-command. > > \startsetups [apage] > \startMPcode > StartPage; > ... > StopPage; > \stopMPcode > \stopsetups > > \defineoverlay[apage][\directsetup{apage}] > > Wolfgang > > ___

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Wolfgang Schuster via ntg-context
,   footer=1cm] Another useful method is to put large settings into a setups-blocks and pass the block to a setup-command. \startsetups [apage] \startMPcode StartPage; ... StopPage; \stopMPcode \stopsetups \defineoverlay[apage][\directsetup{apage}] Wolfgang

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread jbf via ntg-context
. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [{\pagenumber \hskip1em \setup{headertext}}] [ ] My second attempt (quite crass, but it works

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread Hans Hagen via ntg-context
On 1/30/2023 1:14 AM, jbf via ntg-context wrote: Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title

[NTG-context] how to change metadata halfway through document

2023-01-29 Thread jbf via ntg-context
Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
}: #2} \setuphead[chapter][   command=\MyChapter, ] Is this what you meant? Hraban Perhaps: \setuppagenumbering[alternative=doublesided,location=bottom] \startsetups chapter:headings   \doifsomethingelse{\structureuservariable{custom}}     {\setupheaderte

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-26 Thread Hans Hagen via ntg-context
tups \startxmlsetups xml:html \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlcontext{#1} \par \stopxmlsetups \startxmlsetups xml:em \dontleavehmode{\em\xmlflush{#1}} \stopxmlsetups \xmlregistersetup{xml:xhtml} \usemodule[gimmicks] % in latest uploads \chardef\MacAnulty

Re: [NTG-context] number of chapters

2022-07-20 Thread Taco Hoekwater via ntg-context
pter][last] These are not > > What’s the difference? > > And even if I use \definecolor within a setup, I get the same color for every > chapter – how and where must I delay expansion? > > \usemodule[visual] > > \startsetups[MyChapterSetup] > \definecolor[M

Re: [NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
} or \someheadnumber[chapter][current] \someheadnumber[chapter][last] What’s the difference? And even if I use \definecolor within a setup, I get the same color for every chapter – how and where must I delay expansion? \usemodule[visual] \startsetups[MyChapterSetup] \definecolor[MyChapterColor][h={360

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
hus, it does not get defined. If I patch the btx:sbl:cite:footnote setup as follows, then I no longer get the "Undefined control sequence \currentbtxloctext" error: ``` % Inline footnote citation setup (with intelligent trailing punctuation replacement) \startsetups btx:sbl:cite:fo

[NTG-context] headings in line numbering

2022-06-18 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setuppapersize[A6] \definelinenote[otherlinenote] \setupnote[otherlinenote] [compress=yes] \startsetups[line:notes] \setupinterlinespace[line=2.9ex] \stopsetups \setupnote[linenote] [paragraph=yes, compress=yes, compressmethod

Re: [NTG-context] interwordspace error after update

2022-06-06 Thread Hans Hagen via ntg-context
On 6/6/2022 8:12 PM, Steffen Wolfrum via ntg-context wrote: with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work: \startsetups footnotesetup \interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung! \interwordstretch 1.7pt \interwordshrink 0.9pt

[NTG-context] interwordspace error after update

2022-06-06 Thread Steffen Wolfrum via ntg-context
Hi, with my last ConTeXt ver 2022.01.21 20:31 LMTX (arm64) this work: \startsetups footnotesetup \interwordspace 2.75pt % \setuptolerance[NEUNspace] hat hier keine Wirkung! \interwordstretch 1.7pt \interwordshrink 0.9pt \setupinterlinespace[line=11pt, height=.79,depth=.21] \lineskiplimit

Re: [NTG-context] Typesetting modern Greek (UTF8) with ConTeXt

2022-06-06 Thread Pablo Rodriguez via ntg-context
ont[archimate] \definefontfamily [mgopencosm] [ss] [MgOpenCosmetica] [preset=range:greek, force=yes] \startsetups[greek-typeface] \switchtobodyfont[mgopencosm] \stopsetups \setuplanguage[agr][setups={greek-typeface}] \startbuffer Ο κόσμος θα ήταν απίσ

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \defineaddress[thd][name={Name of Third Institute or Affiliation, City, Country}] \processcommacommand[fst,snd,thd]\useaddress \startsetups [document:start] The Title\dorecurse{10}{\expanded{\thanks{Work

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread Bruce Horrocks via ntg-context
which was added >> to avoid problems like in your example. >> >> \startsetups headertext >> \bTABLEnested[setups=headertable,option=stretch] >> ... >> \eTABLEnested >> \stopsetups > > Splendid (as always)! Definitely a better solution for Stef

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread śrīrāma via ntg-context
On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote: > Use the TABLEnested environment in your document header which was added > to avoid problems like in your example. > > \startsetups headertext > \bTABLEnested[setups=headertable,option=stretch] > ... > \eTABL

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread Wolfgang Schuster via ntg-context
was added to avoid problems like in your example. \startsetups headertext \bTABLEnested[setups=headertable,option=stretch] ... \eTABLEnested \stopsetups Wolfgang ___ If your question is of interest to others as well

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
finehspace[tnumber][0.5em] \startsetups [fheader] \startframed[width=max,frame=off] \startoverlay {\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-15795

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\setups{headertext}] \definehspace[tnumber][0.5em] \startsetups [headertable] \setupTABLE[frame=off] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushright] \stopsetups

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
][{\directsetup{figure}\tightlayer[figure]}] \startsetups figure \setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022} \stopsetups \externalfigure[cow][background={foreground,figure}] \stoptext \starttext \definecollector[example] \setcollector [example] {\externalfigure[cow

Re: [NTG-context] XML processing instructions

2022-05-03 Thread Duncan Hothersall via ntg-context
= string.gsub(data, '<%?capdm %*force_line_stop%?>', '') return data end \stopluacode \startsetups xml:directive:injector:newline \crlf \stopsetups Duncan On Mon, 2 May 2022 at 09:24, Duncan Hothersall wrote: > Many thanks Denis. Very useful tip on the injectors and generalised > c

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
name=author, command=yes, % Create \defineauthor style=yes, % Create \useauthorstyleandcolor setup=list, % Create \setupauthor parent=documentauthor, ] \def\AuthorList{} \define[1]\useauthor {\edef\currentauthor{#1}% {\authorparameter{given-name} \space

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Duncan Hothersall via ntg-context
> I have used context’s own injectors for this : > > > > > > > > \startsetups xml:directive:injector:addlinetopage > > \adaptlayout[lines=+1] > > \stopsetups > > > > Or, for your line break example : > > > > > > > > \

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Denis Maier via ntg-context
That was too quick, sorry. Hi Duncan, I have used context’s own injectors for this : \startsetups xml:directive:injector:addlinetopage \adaptlayout[lines=+1] \stopsetups Or, for your line break example : \startsetups xml:directive:injector:newline \crlf \stopsetups Also, I have

Re: [NTG-context] XML processing instructions

2022-05-02 Thread Denis Maier via ntg-context
Hi Duncan, I have used context’s own injectors for this : \startsetups xml:directive:injector:addlinetopage \adaptlayout[lines=+1] \stopsetups Or, for your line break example : Von: ntg-context Im Auftrag von Duncan Hothersall via ntg-context Gesendet: Montag, 2. Mai 2022 09:20

[NTG-context] Fwd: lua-widow-control module error in LMTX

2022-04-27 Thread Eduardo Bohoyo via ntg-context
t;0", or values     greater than ten thousand, then something is wrong here.  2. Something is "hiding" the widow/orphan penalties from lwc.     Something like "\vadjust{\penalty X}" or the e-TeX "\-penalties"     commands could potentially do this.     One potential so

Re: [NTG-context] lua-widow-control module error in LMTX

2022-04-27 Thread Max Chernoff via ntg-context
ike "\vadjust{\penalty X}" or the e-TeX "\-penalties" commands could potentially do this. One potential solution for (a subset of) this problem would be to modify lwc.mkxl to insert "\directsetup{*reset}" at line 52, to get: \startset

[NTG-context] new upload

2022-04-19 Thread Hans Hagen via ntg-context
) withpen pencircle scaled AdaptiveThickness withcolor white ; enddef ; \stopMPdefinitions \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -.9\usedadaptivedepth \bgroup \hss \startMPcode TickTock

[NTG-context] new upload

2022-04-15 Thread Hans Hagen via ntg-context
*AdaptiveThickness) withpen pencircle scaled AdaptiveThickness withcolor white ; enddef ; \stopMPdefinitions \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -.9\usedadaptivedepth \bgroup \hss \startMPcode

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
tertilde c\textasciitilde d \stoptext \definepageinjectionalternative [chapter:image] [renderingsetup=pageinjection:chapter:image] \startsetups [pageinjection:chapter:image] \centerbox{\externalfigure[\dummyparameter{name}]} \stopsetups \definepageinjection [chapter:start] [empt

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-19 Thread jbf via ntg-context
title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-19 Thread Henning Hraban Ramm via ntg-context
title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical. Clearly I'm wrong

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
chapter instead of the chapter title. So why can't I create a setups along the lines of: \startsetups[contributor] \getmarking[\structureuservariable{author}] \stopsetups Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I tried it but it doesn't work. I thought it would be logical

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
Off list for the moment. Late at night where I am. I will take a look at this more closely on the morrow. Thanks. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread Henning Hraban Ramm via ntg-context
at the beginning. Like in: \setuppagenumbering[alternative=doublesided] \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{Un Nom} \stopsetups \startsetups[text left

Re: [NTG-context] Calling in chapter number in list={}

2022-03-17 Thread Henning Hraban Ramm via ntg-context
]\MeinEintrag{#3: #2 (#1)} % Seite: Titel (Nummer) \setuplist[alternative=interactive,command=\MeinEintrag] or define your own alternative: \definelistalternative[j][renderingsetup=list:jbf] \startsetups[list:jbf] ... \currentlist... \stopsetups HTH Hraban Am 16.03.22 um 22:03 schrieb jbf via

Re: [NTG-context] help with facing page image

2022-03-11 Thread jbf via ntg-context
=pageinjection:chapter:image] \startsetups [pageinjection:chapter:image]   \centerbox{\externalfigure[\dummyparameter{name}]} \stopsetups \definepageinjection   [chapter:start]   [empty]   [page=left] \definepageinjection   [chapter:insert]   [previouspage]   [alternative=chapter:image,    offset=1cm,    pagestate

Re: [NTG-context] help with facing page image

2022-03-11 Thread Wolfgang Schuster via ntg-context
on the available space. The best solution to change orientation, size etc. of the included images is to use the \useexternalfigure command and make all changes in the style file. \definepageinjectionalternative   [chapter:image]   [renderingsetup=pageinjection:chapter:image] \startsetups

Re: [NTG-context] help with facing page image

2022-03-10 Thread jbf via ntg-context
some images of cows, 'spider', 'hacker' and 'mill' and have them renamed as {chap-cover-1, ... chap-cover-6} for a total of 6 chapter images. %%% start example \definepageinjectionalternative [chapter:image] [renderingsetup=pageinjection:chapter:image] \startsetups

  1   2   3   4   5   6   7   8   9   10   >