[NTG-context] setup parameter problem

2021-06-07 Thread Hans van der Meer
The code below seems ok in \startsection[title=] but not when I program the parameter collection with \def\setupparameters{\getparameters[prefix]} In that case even [title={enclosed value}] crashes with error message: Use of \doMacro doesn't match its definition. Obviously I am missing something

Re: [NTG-context] where to break a long header

2021-06-06 Thread Steffen Wolfrum
@ub.unibe.ch schrieb am 05.06.2021 um 08:16: >> \startsection[title={A very \\ long title},list={A very long title}] > > Be careful with spaces before and after \\. In the table of contents \\ is > converted to a space and in the worst case you get three spaces instead of > one. >

Re: [NTG-context] where to break a long header

2021-06-05 Thread Wolfgang Schuster
denis.ma...@ub.unibe.ch schrieb am 05.06.2021 um 08:16: \startsection[title={A very \\ long title},list={A very long title}] Be careful with spaces before and after \\. In the table of contents \\ is converted to a space and in the worst case you get three spaces instead of one. \starttext

Re: [NTG-context] where to break a long header

2021-06-05 Thread Sandra Snan
Thank you so much! That was awesome! That was the missing puzzle piece: the book is now perfect! writes: > \startsection[title={A very \\ long title},list={A very long title}] > > Von: ntg-context im Auftrag von Sandra Snan > > Gesen

Re: [NTG-context] where to break a long header

2021-06-05 Thread denis.maier
\startsection[title={A very \\ long title},list={A very long title}] Von: ntg-context im Auftrag von Sandra Snan Gesendet: Samstag, 5. Juni 2021 07:59:33 An: ntg-context@ntg.nl Betreff: [NTG-context] where to break a long header I had an unsually long

Re: [NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Jun 2021 14:17:15 -0600, Wolfgang Schuster wrote: \setupnote [footnote] [location=none] That did the trick; many thanks! == \setupnote [footnote] [location=none] \starttext \startsection[title={},reference={}] \input ward \startfootnote \input ward

[NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد
=bychapter] \starttext \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward \startfootnote \input ward \stopfootnote{} \stopsection \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward

[NTG-context] injectors not working in LMTX?

2021-03-25 Thread Pablo Rodriguez
\placelist[section][criterium=text] \blank[3*big] \placeregister[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \startsection[title=Beta] second \index{second} \startsection[title=Gamma] third \index{third} \startsection[title=Delta] fourth \index

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Adam Reviczky
gt; \starttext > > \setupcaption[figure][way=bytext,prefixsegments=1:*] > > \setupformulas[way=bytext,prefixsegments=1:*] > > \startsection[title=Section] > > \startsubsection[title=SubSection] > > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure >

Re: [NTG-context] Formula numbering including all prefix segments

2021-03-21 Thread Hans Hagen
,prefixsegments=1:*] \setupformulas[way=bytext,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection

[NTG-context] Formula numbering including all prefix segments

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

[NTG-context] (no subject)

2021-03-20 Thread Adam Reviczky
,prefixsegments=1:*] \startsection[title=Section] \startsubsection[title=SubSection] \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure \startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2 \stopformula \stopplaceformula \stopsubsection \stopsection \placelistoffigures[criterium=all

[NTG-context] Multiple Layouts

2021-03-13 Thread Jeroen
] \startchapter[title={Bryson and Tufte}] \dorecurse{5}{ \startsection[title={Bryson}] \input{bryson} \stopsection \startsection[title={Tufte}] \input{tufte} \stopsection} \stopchapter \startchapter[title={Zapf and Ward}] \dorecurse{5}{ \startsection[title={Zapf}] \input{zapf} \stopsection

[NTG-context] (no subject)

2021-03-13 Thread Jeroen
] \startchapter[title={Bryson and Tufte}] \dorecurse{5}{ \startsection[title={Bryson}] \input{bryson} \stopsection \startsection[title={Tufte}] \input{tufte} \stopsection} \stopchapter \startchapter[title={Zapf and Ward}] \dorecurse{5}{ \startsection[title={Zapf}] \input{zapf} \stopsection

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Henning Hraban Ramm
nd doesn’t affect others, but I like to streamline my workflows... >> (4) subprocess parameters >> >> I’d like to forward some parameters from \starttikz to the temp buffer, e.g. >> \starttikz[name=example][mystyle=thick] >> (using the same syntax as \startsection

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
nd the concern. How do you plan to use a `name=value` option? > (4) subprocess parameters > > I’d like to forward some parameters from \starttikz to the temp buffer, e.g. > \starttikz[name=example][mystyle=thick] > (using the same syntax as \startsection with a second pai

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-28 Thread Henning Hraban Ramm
TNAME/example_##.tmp". Is there a configuration hook in the module to change name generation? (4) subprocess parameters I’d like to forward some parameters from \starttikz to the temp buffer, e.g. \starttikz[name=example][mystyle=thick] (using the same syntax as \startsection with a second pa

Re: [NTG-context] expansion of xml userdata

2021-01-17 Thread Jano Kula
On Sun, 17 Jan 2021 at 21:27, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > > Do you know how to force expansion of userdata? > > You can drop "expansion=yes" when you use > > \normalexpanded{\startsection[..,..=..,..][..,..=..,..]} &

Re: [NTG-context] expansion of xml userdata

2021-01-17 Thread Wolfgang Schuster
know how to force expansion of userdata? You can drop "expansion=yes" when you use \normalexpanded{\startsection[..,..=..,..][..,..=..,..]} Wolfgang ___ If your question is of interest to others as well, p

[NTG-context] expansion of xml userdata

2021-01-17 Thread Jano Kula
:section \startsection[title=\xmlatt{#1}{title}] [usertitle=\xmlatt{#1}{title}] \stopsection \stopxmlsetups \starttext \placelist[section] \xmlprocessbuffer{xml:name}{doc}{} \stoptext xml-one-file-head-toc.tex Description: Bin

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread jbf
] \startsection [title=Some Section] \samplefile{knuth} \stopsection \stopchapter \stoppart \stoptext And the string “Section 1 Mypart” shows up there. Below is exactly what I have in my preamble. Note that I have also included \setuphead [section] which is the true 'section

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
head [chapter] [sectionsegments=chapter] \setuphead [section] [sectionsegments=chapter:section] \starttext \startpart [title=Mypart] \startchapter [title=Some Chapter] \startsection [title=Some Section] \samplefile{knuth} \stopsection \stopchapter \stoppart \stoptext

Re: [NTG-context] Polar pgfplots seems to be broken (Aditya Mahajan)

2020-12-21 Thread Gavin
ntitled.tex: ! Undefined control sequence >>> >>> \pgfplots@environment@polaraxis@ [#1]->\begin >>> {axis}[#1,data cs=polar,axis >>> type=polar] >>> l.18\startpolaraxis[] >>> &

Re: [NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Aditya Mahajan
{axis}[#1,data cs=polar,axis > > type=polar] > > l.18\startpolaraxis[] > > > > 16 \startsection[title={Polar Plot}] > > 17 \starttikzpicture % tikz code > > 18 >> \st

[NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Gavin
\startpolaraxis[] > > 16 \startsection[title={Polar Plot}] > 17\starttikzpicture % tikz code > 18 >> \startpolaraxis[] > 19 > \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)}; > 20

[NTG-context] Automatically setting the value of list key in annotation module

2020-12-07 Thread Aditya Mahajan
Hi, In the annotation module, is it possible to automatically set the value of the `list` key to be the same as the value of `title` key (as is the case with \startsection, for example). Here is a non-working example: \usemodule[annotation] \defineannotation[test][alternative=paragraph

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Bruce Horrocks
>>> Did you enable interactions? \setupinteractions[state=start] >>> >>> But when I recently tried to manually set some bookmarks instead of visible >>> chapter titles, I also didn’t get any; didn’t investigate further yet. > there are some examples

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Hans Hagen
bookmarks when you use \startsection etc an dalso add them any place to named lists. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] Current LMTX unable to compile file metafun-positioning.tex - error on line 240

2020-11-23 Thread Giulio Bertellini
ack. Giulio B. 234 \startsection[title={A more detailed view}] 235 236 As we know, a decent portion of \TEX's attention is focused on breaking 237 paragraphs into lines and determining the optimal point to split off the page. 238 Trying to locate the optimal points to break li

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext Marco

[NTG-context] format error with latest 2020-11-16 19:40 with mkiv (luatex)

2020-11-16 Thread Adam Reviczky
ector{#1}{#2}} 39 %D \placeregister[index][criterium=text] 40 %D \page 41 %D \startsection[title=Alpha] first \index{first} \stopsection 42 %D \startsection[title=Beta] second \index{second} \stopsection 43 %D \startsection[title=Gamma] third

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
amepage]\hskip 0pt}] > > \starttext > > \showframe > > \dorecurse{50}{a } > > \startsection[title=spec] > > \startxtable > > > What happens when you \hskip is that you switch to horizontal > mode and the preferred to do this is to use

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 19:11: Weirdly enough, "\hskip 0pt" solves the problem.     \setuphead[section][after={\blank[samepage]\hskip 0pt}]     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec]     \startxtable What happens when

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
s at the top of the page: > > > > \starttext > > \showframe > > \dorecurse{50}{a } > > \startsection[title=spec][before={\blank[preference,big]}, > > after={\blank[samepage,big]}] > > Your settings in the second argument of \startsection make no sense &

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 10.11.2020 um 18:06: Thanks for the suggestion, but as illustrated by the second example, copied here, where the section title is at the top of the page:     \starttext     \showframe     \dorecurse{50}{a }     \startsection[title=spec][before={\blank[preference

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
testpage[4]\blank[2*big]}] > > Wolfgang > Hi Wolfgang, Thanks for the suggestion, but as illustrated by the second example, copied here, where the section title is at the top of the page: \starttext \showframe \dorecurse{50}{a } \startsection[title=spec][before={\blank[preferenc

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
On Tue, 10 Nov 2020 at 17:37, Pablo Rodriguez wrote: > On 11/10/20 5:23 PM, Sylvain Hubert wrote: > > My mistake, but the problem survives the fix: > > > > \setuphead[section][after={\blank[samepage,big]}] > > \starttext > > \showframe > > \

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Pablo Rodriguez
On 11/10/20 5:23 PM, Sylvain Hubert wrote: > My mistake, but the problem survives the fix: > >     \setuphead[section][after={\blank[samepage,big]}] >     \starttext >     \showframe >     \dorecurse{50}{a } >     \startsection[title=spec] >     \startxtable Hi Sylvain,

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
My mistake, but the problem survives the fix: \setuphead[section][after={\blank[samepage,big]}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow

Re: [NTG-context] page ends with a section title followed by a table

2020-11-10 Thread Sylvain Hubert
eed brings the solution closer and it does format the previous example correctly. However, when I went back to the original document, neither [before={\blank[preference, big]}] nor [after={\blank[samepage, big]}] nor both worked. I trimmed it into the following example which behaves the same:

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Sylvain Hubert
b c} > > > > The naive way doesn't work because it makes all the spaces collapse: > > > > \define[1]\same{#1} > > > \definetype [typeTEX] [option=tex] > > \starttext > > \type{

Re: [NTG-context] \type{...} as macro argument

2020-11-08 Thread Wolfgang Schuster
:     \define[1]\same{#1} \definetype [typeTEX] [option=tex] \starttext \type{\startsection[title=\tex{type}]} \typeTEX{\startsection[title=\tex{typeTEX}]} \stoptext Wolfgang ___ If your question is of interest to others

Re: [NTG-context] \section with userdata

2020-11-07 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 07.11.2020 um 22:42: The motivation of using \section was to avoid \stopsection, but I just found out that \stopsection is not really necessary. Now I would like to ask whether there is any difference between \section{Title} and \startsection[title=Title]. You get

Re: [NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
The motivation of using \section was to avoid \stopsection, but I just found out that \stopsection is not really necessary. Now I would like to ask whether there is any difference between \section{Title} and \startsection[title=Title]. Thanks. On Sat, 7 Nov 2020 at 22:33, Sylvain Hubert wrote

[NTG-context] \section with userdata

2020-11-07 Thread Sylvain Hubert
Dear List, it is known that we can supply additional userdata like authors to \startsection: \startsection[title=Title][author=Someone] so that the author can be included in the table of contents using \structurelistuservariable{author}. Now I would like to do the same with \section

Re: [NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 07.11.2020 um 20:32: Dear List, I have sections tagged with authors:     \startsection[title={Title}][author={Author}] ... \stopsection The authors were to be included in the table of contents using \structurelistuservariable{author}. Now I would also like

[NTG-context] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
Dear List, I have sections tagged with authors: \startsection[title={Title}][author={Author}] ... \stopsection The authors were to be included in the table of contents using \structurelistuservariable{author}. Now I would also like to mention the authors inside the sections

Re: [NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Otared Kavian
}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \startcolor[white] a \stopcolor \index{Something}\index{A\recurselevel} } \stopchapter } \completeindex \stoptext Best regards: OK > On 31 Oct 2020, at 17:56, Henning Hraban Ramm wrote: > >

[NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Henning Hraban Ramm
didn’t help. The MWE shows that index entries in empty sections are ignored, i.e. “Something” is supposedly only on p.6: \usemodule[visual] \starttext \dorecurse{5}{% \startchapter[title={\recurselevel}] \dorecurse{5}{% \startsection[title={\fakewords{3}{5}}] \index{Something}\index

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
as {\em Dictionnaire des Philosophes Antiques} edited in 5 volumes under the direction of Richard Goulet (\cite[alternative=entry][philosophie moderne::goulet1994]). \stopchapter % Bibliography \starttext \startbackmatter \startchapter[title={Bibliographie}] \startsection[title

Re: [NTG-context] Sections in content: macros v text

2020-10-07 Thread Tomas Hala
hanks in advance for any hint. # > # >Best wishes, # > # >Tomáš # > # >MWE (TL2020): # >\starttext # >\define\name{aa} \startsection[title=\name,list=\name] \stopsection # >\define\name{bb} \startsection[title=\name,list=\name] \stopsection # >\completecontent # >

Re: [NTG-context] xml bookmarks + chapter no. in header

2020-10-07 Thread Pablo Rodriguez
placelist[section] % this doesn’t work \def\name{aa} \placelist[section] \startsection[title=\name, list=\expanded\name] \stopsection \def\name{bb} \startsection[title=\name, list=\expanded\name] \stopsection \completecontent \stoptext

Re: [NTG-context] Sections in content: macros v text

2020-10-07 Thread Wolfgang Schuster
discussed by I am not able to find any solution how to send the text "aa" to the content in this case. Thanks in advance for any hint. Best wishes, Tomáš MWE (TL2020): \starttext \define\name{aa} \startsection[title=\name,list=\name] \stopsection \define\name{bb} \startsection[title=\name,

[NTG-context] Sections in content: macros v text

2020-10-05 Thread Tomas Hala
how to send the text "aa" to the content in this case. Thanks in advance for any hint. Best wishes, Tomáš MWE (TL2020): \starttext \define\name{aa} \startsection[title=\name,list=\name] \stopsection \define\name{bb} \startsection[title=\name,list=\name] \stopsection \completecontent

Re: [NTG-context] color problem

2020-10-02 Thread Henri Menke
plus][h=606ABD] > > \definecolor[A4plus][h=FFC700] > > \definecolor[A5plus][h=D0202B] > > \definecolor[A6plus][h=EF8600] > > \definecolor[A7plus][h=0082AA] > > > \setupcolors[textcolor=A1plus] > > > \usemodule[tikz] > > > > \starttext >

[NTG-context] color problem

2020-10-01 Thread Susanne G. Loeber
=FFC700] \definecolor[A5plus][h=D0202B] \definecolor[A6plus][h=EF8600] \definecolor[A7plus][h=0082AA] \setupcolors[textcolor=A1plus] \usemodule[tikz] \starttext \startchapter[title={Colour test}, ref=colourtest] \startsection[title={Section}] \starttikzpicture \draw[text=A6plus] (0,0

Re: [NTG-context] Typing efficiency

2020-09-06 Thread Jan Willem Flamma
rtmode[nl]>  \setupselector[language][n=2]>  \keepblocks[nltext]> \stopmode>   > \starttext>   > \startsection[title=\select{language}{English title}{Dutch title}]>   > \beginentext>  This is English text.> \endentext> \beginnltext>  This is Dutch

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Wolfgang Schuster
\startmode[nl] \setupselector[language][n=2] \keepblocks[nltext] \stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \beginentext This is English text. \endentext \beginnltext This is Dutch text. \endnltext \stopsection \stoptext

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Taco Hoekwater
] \keepblocks[nltext] \stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \beginentext This is English text. \endentext \beginnltext This is Dutch text. \endnltext \stopsection \stoptext Best wishes, Taco > On 4 Sep 2020, at 14:02, Jan Willem Fla

[NTG-context] Typing efficiency

2020-09-04 Thread Jan Willem Flamma
  ===\setupinteraction[state=start] %\enablemode[nl]\enablemode[en] \defineselector [language] [max=2,n=1]\startmode[en]    \setupselector[language][n=1]\stopmode\startmode[nl]    \setupselector[language][n=2]\stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \startbuffer[en

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
Hi, If there are a few special numberings of floats, and one wants floats numbered 1.6a and 1.6b, the following seems to work: Best regards: Otared %%% begin ownnumber-in-floats.tex \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
y)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7... Something like \startitem[number={R}] or \startsection[number={3a}] would be nice. If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Woul

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
l numbering, e.g. of chapters or >> itemization items. >> E.g. in my songbook, I’d like to have the verses numbered but interrupted by >> a chorus numbered as "C" (i.e. "R" in German). >> Similarly the paragraphs of some (by)laws that were changed a lot and use a

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
temization items. E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German). Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7... Something like \startite

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
l numbering, e.g. of chapters or itemization items. E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German). Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a

[NTG-context] TOC chapter and section numbering

2020-08-18 Thread Adrian
=1.5em,margin=3em] \starttext \title{contents} \placecontent \startchapter[title={Introductory}] \startsection[title={The concept of a function}] \stopsection \startsection[title={Extension and intension}] \stopsection \startsection[title={Functions of several variables}] \stopsection

Re: [NTG-context] reading a single element from XML

2020-08-16 Thread Pablo Rodriguez
This is another D paragraph. \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{html}{xml:gen} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:gen \xmlfilter{#1}{/**/div/command(xml:chapter)} \stopxmlsetups \start

Re: [NTG-context] \checkpage in the TOC

2020-08-12 Thread Willi Egger
gt;> inbetween={\checkpage[willi][lines=4]} >> Thank you for advice! >> Kind regards >> Willi >> ] > Here's an example of an actually already quite old mechanism .. > > \showinjector > > \setinjector[register][3][\column] > \setinjector[list] [2][{\blank

Re: [NTG-context] \checkpage in the TOC

2020-08-11 Thread Hans Hagen
[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \stopsection \startsection[title=Beta] second \index{second} \stopsection \startsection[title=Gamma] third \index{third} \stopsection \startsection[title=Delta] fourth \index{fourth} \stopsection

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
, prefix=yes, prefixsegments=chapter, titlestyle=bold, width=broad] \defineenumeration [theorem] [text=Théorème, number=yes, style=italic] \starttext \startchapter [title={First chapter}] \startsection [title={First section}] \startsubsection [title={First

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-05 Thread Willi Egger
t; > \startsetups [section:end] > \ifodd\namedheadnumber{section} > \directsetup{section:odd} > \else > \directsetup{section:even} > \fi > \stopsetups > > \setuphead > [section] > [aftersection=\directsetup{section:end}] > > \starttext &g

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Wolfgang Schuster
[section] [aftersection=\directsetup{section:end}] \starttext \startsection[title=Ward] \input ward \stopsection \page \startsection[title=Knuth] \input knuth \stopsection \stoptext end example Wolfgang ___ If you

[NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Willi Egger
} \stopsection% } \stopsetups \starttext \startsection[title=Ward] \setuppagenumbering[conversion=romannumerals] \input ward \stopmysection \startsection[title=Knuth

Re: [NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
ments=subsection,conversion=n] > > \starttext > > \startchapter[title=Dummy chapter] > > \startsection[title=Dummy section] > > \startsubsection[title=Dummy subsection] > > \input knuth > > \stopsubsection > > \stopsection > > \stopchapter > >

Re: [NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Wolfgang Schuster
[subsection][numbercommand=,textstyle={\it},sectionsegments=subsection,conversion=n] \starttext \startchapter[title=Dummy chapter] \startsection[title=Dummy section] \startsubsection[title=Dummy subsection] \input knuth \stopsubsection \stopsection \stopchapter \stoptext This caused by the second

[NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
,numbercommand=\WORDS] \setuphead[section][sectionsegments=section,align=middle,textstyle={\bf},conversion=R,numbercommand={\bf}] \setuphead[subsection][numbercommand=,textstyle={\it},sectionsegments=subsection,conversion=n] \starttext \startchapter[title=Dummy chapter] \startsection[title=Dummy

[NTG-context] no reference output for \namedstructurevariable

2020-07-29 Thread Damien Thiriet
Hello, I am facing some issue with \usernamedvariable. Consider this MWE \starttext \startsection[title={Mammals and eggs},reference={mammals}] \namedstructurevariable{section}{title} \namedstructurevariable{section}{reference} and \currentstructurereference \stopsection \stoptext

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
> reference spread over two lines with different font style and > > justification, plus a slightly different text for the table of contents. > > > > So that I can alter the styling of the section headings without having > > to recode each \startsection command, I ha

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread Wolfgang Schuster
the styling of the section headings without having to recode each \startsection command, I have used variables and a macro command for the style. This works for section 'title' and 'marking', but not for the 'list' attribute. The title argument works only because it is placed in the text

[NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
to recode each \startsection command, I have used variables and a macro command for the style. This works for section 'title' and 'marking', but not for the 'list' attribute. The minimal working example below shows what I'm trying to do. Best wishes and many thanks in advance. James \define

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
for ConTeXt's community to use it as a "new" or an "updated" french interface, I may try to produce a 40~50 pages documentation for the basics commands (during 2020 S2): • \starttext • \startchapter, \startsection, \starttitle, \startsubject, \setuphead, \completecont

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Lukas/ConTeXt
Hello Peter, playing with "grid" option within \setuplayout and \setuphead might help - see: \setuplayout[grid=no] \setuphead[section][grid=no] \starttext \startsection[title=Space is ok here] \input tufte \stopsection \blank \startcolumns[n=2] \startsection

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Wolfgang Schuster
Peter Münster schrieb am 15.07.2020 um 14:55: Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space

[NTG-context] white-space after section-head in columns

2020-07-15 Thread Peter Münster
Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space is ok here] \input tufte \stopsection \startc

[NTG-context] About the table of contents

2020-07-11 Thread Fabrice Couvreur
[chapter,section,subsection] [criterium=all, interaction=all, alternative=c] \startchapter [title=My first chapter] \dorecurse{2}{\input knuth} \startsection [title=My first section] \dorecurse{2}{\input knuth} \startsubsection [title=My first subsection

[NTG-context] Translation of ConTeXt interface

2020-06-26 Thread Garulfo
ode as hard coded delimiter > for the environment. While it is easy to create a synonym for > \startluacode this isn't the case for \stopluacode because the > environment always look for \stopluacode as stopper and alternative > names are ignored. \startsec

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
t; but I can’t find it or figure it out… > > (Please let me know where it is!) > > I want more space before each top-level item.MWE: > > \defineitemgroup[mdshw][levels=2] > > \setupitemgroup[mdshw][1][n] > > \setupitemgroup[mdshw][2][a, packed, 1*broad][left=

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
before each top-level item.  MWE: # #  # #\defineitemgroup[mdshw][levels=2] # # \setupitemgroup[mdshw][1][n] # # \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), #stopper=] # #  # #  # #\starttext # #  # #\startsection{First

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
Thanks Wolfgang! 1. Where can this solution be found? (wiki or elsewhere) 2. I'm guessing that you're saying that my \startsection should have [title={...}] instead of what I gave? -Original Message- From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang

Re: [NTG-context] spacing before items

2020-06-16 Thread Tomas Hala
] # # \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), #stopper=] # #  # #  # #\starttext # #  # #\startsection{First Section} # #  # #\startmdshw # # \item Choose the correct answer. # #  \startmdshw # #  \item This one

Re: [NTG-context] spacing before items

2020-06-16 Thread Wolfgang Schuster
] \setupitemgroup[mdshw][1][n] \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=] \starttext \startsection{First Section} \startsection[title={...}] The first entry uses the "before" value while inner entries use "inbetween". \starttext \setupite

[NTG-context] spacing before items

2020-06-16 Thread Mike Cooper
] \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=] \starttext \startsection{First Section} \startmdshw \item Choose the correct answer. \startmdshw \item This one \item This one \item This one \stopmdshw \item Choose

Re: [NTG-context] using modeset

2020-06-11 Thread Wolfgang Schuster
and a Dutch case. Within this two cases I would still apply all sorts of other modes using \startmode and \doifmode. Duplication is unavoidable but it would make sense to try and re-use the existing structural elements such as \startsection \startsubsection \placefigure etc as much as possible

[NTG-context] using modeset

2020-06-11 Thread Jan Willem Flamma
of other modes using \startmode and \doifmode. Duplication is unavoidable but it would make sense to try and re-use the existing structural elements such as \startsection \startsubsection \placefigure etc as much as possible. After all, only the title and caption text needs to be translated.I tried

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
] \setelementnature[mycommand][mixed] \starttext \startsection[title={Sample document}] \startparagraph This is a paragraph \stopparagraph \startelement[mycommand][name=whatever] This is mycommand \stopelement \stopsection \stoptext ``` gives ``` http://www.w3.org/1998/Math/MathML

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
\startsection[title={Sample document}] \startparagraph This is a paragraph \stopparagraph \startelement[mycommand][name=whatever] This is mycommand \stopelement \stopsection \stoptext ``` Using `\dostarttagged{mycommand}{whatever}` does export as ``, and looking at the code, I don't see why

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Hans Hagen
On 5/18/2020 9:09 AM, Aditya Mahajan wrote: Hi, What is needed to enable export of user defined macros? Consider the following example: ``` \def\startmycommand{\dostarttagged{mycommand}\empty} \def\stopmycommand {\dostoptagged} \setupbackend[export=xml, level=0] \starttext \startsection

[NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
Hi, What is needed to enable export of user defined macros? Consider the following example: ``` \def\startmycommand{\dostarttagged{mycommand}\empty} \def\stopmycommand {\dostoptagged} \setupbackend[export=xml, level=0] \starttext \startsection[title={Sample document}] \startparagraph

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
On 4/20/20 7:23 PM, Wolfgang Schuster wrote: > [...] > The argument of the beforesection-key is placed before ConTeXt stores > the values of \startsection which means you can do it this way. > > What you can do here is to put whatever something in a macro before you > call \start

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
\xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \startsection[title={\xmlatt{#1}{id}}, beforesection={\doif{\xmlatt{#1}{id}}{\selectedtopic} {conditional}}] \xmlflush{#1} \doif

<    1   2   3   4   5   6   7   >