Re: [NTG-context] Table of contents not appearing.

2023-04-20 Thread Hans Hagen via ntg-context
On 4/20/2023 6:59 PM, Fabrice Couvreur via ntg-context wrote: Hi, I don't see why the table of contents does not appear. On the other hand, the 12 chapters are present. \startproduct[terminale-manual] \startfrontmatter \starttitle[title=Table des matières] \placelist

[NTG-context] Table of contents not appearing.

2023-04-20 Thread Fabrice Couvreur via ntg-context
] [SansBold*default sa 2.2] \setuphead [title] [style=ChapterTextStyle, align=flushright] \setuplist [chapter] [style=bold, alternative=b, width=1em] \setuplist [section] [margin=1em, width=1.75em

Re: [NTG-context] Non-standard font alternatives

2023-04-19 Thread Pawel Urbanski via ntg-context
[roboto] \setuphead[chapter] [style={\switchtobodyfont[roboto,20pt]\ss}] \starttext      \startchapter[title=Whatever is the best title]          \input tufte      \stopchapter \startchapter[title={Just a second title}] Some random text. \stopchapter \stoptext \definefontfeature[robotofeatures

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author

Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.

2023-04-18 Thread Hans Hagen via ntg-context
] [ebgaramond] [default] \stoptypescript \setupbodyfont[robocop] \setuphead[chapter][style=\ssbfd] \starttext \startchapter[title=Whatever] \input tufte \stopchapter \page \usemodule[fonts-variable] \showfontvariations[font=file:robotoflex.ttf] \stoptext

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
-pod.nl - meta-imp-kaktovik.pdf Description: Adobe PDF document %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author

Re: [NTG-context] Module authors: please update your metadata

2023-04-14 Thread Rik Kabel via ntg-context
-mathsets t-rst t-ruby t-simplefonts t-simpleslides t-tikz t-title t-transliterator t-typearea t-typescripts t-vim t-visualcounter Some of these are probably outdated, I didn’t check. If you know something is obsolete, please let us know or remove it yourself, if you still know your account data

[NTG-context] Module authors: please update your metadata

2023-04-14 Thread Henning Hraban Ramm via ntg-context
-handlecsv (newer than in dl) t-layout t-letter t-lettrine t-lilypond (not in dl, obsolete) t-mathsets t-rst t-ruby t-simplefonts t-simpleslides t-tikz t-title t-transliterator t-typearea t-typescripts t-vim t-visualcounter Some of these are probably outdated, I didn’t check. If you know something

[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files

2023-04-10 Thread Garulfo via ntg-context
4cm]}, ] \setuphead [chapter] [ style=\bfc, textcolor=Couleur2, numbercolor=CouleurContraste2, sectionsegments=1:2, page=yes, align=flushleft, ] \setuphead [title] [ ] \setuphead [section] [ style=\bfb, textcolor=Couleur3, numbercolor=CouleurContraste3,

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
] \setuplayout [width=12cm, rightmargin=60mm] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5em, title=yes, titleleft=, titleright=, titlestyle=normal, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Alan Braslau via ntg-context
= > > We added the tex of the pdf below > > == extract from roadmap == > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n]

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Willi Egger via ntg-context
is still experimental and can have issues that we're looking at but hard > to nail down (huge complex cross-referencing documents). More about that > later. > > == > > We added the tex of the pdf below > > == extract from roadmap

[NTG-context] update / punctuation / math

2023-04-01 Thread Hans Hagen via ntg-context
dmap == \usemodule[article-basic,abbreviations-logos] \setupbodyfont[concrete] \starttext \startsubject[title=Math in \CONTEXT\ roadmap] \startitemize[n] \startitem After playing with math support for more than a year, we have come to the conclusion that it is time to move on. We have alr

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-31 Thread Willi Egger via ntg-context
the chapter >> number only. >> >> How to get the numbering right? >> >> Kind regards >> Willi >> >> The following example shows what happens: >> >> \useMPlibrary[dum] >> >> \definefloat[Afigure][Afigures][figures] >> \def

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Alan Braslau via ntg-context
> [placehead=yes, >page=yes] > > \setuphead > [chapter] > [page=no] > > \starttext > > \starttitle[title=List of figures] > \startsubject[title=Figures (predefined figureenvironment)] > \placelistoffigures > \stopsubject > > \startsub

[NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Willi Egger via ntg-context
=yes] \setuphead [chapter] [page=no] \starttext \starttitle[title=List of figures] \startsubject[title=Figures (predefined figureenvironment)] \placelistoffigures \stopsubject \startsubject[title=Figures A] \placelistofAfigures \stopsubject \startsubject

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
gt;> On 26 Mar 2023, at 12:51, Henning Hraban Ramm via ntg-context >>> wrote: >>> >>> Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context: >>>> Good evening! >>>> I have a setup in which I need to send info to the TOC: >>>> C

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Hans Hagen via ntg-context
, at 12:51, Henning Hraban Ramm via ntg-context wrote: Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context: Good evening! I have a setup in which I need to send info to the TOC: Consider the following example: \starttext \starttitle[title=Contents] \placelist[chapter][criterium=all

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-26 Thread Willi Egger via ntg-context
wrote: > > Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context: >> Good evening! >> I have a setup in which I need to send info to the TOC: >> Consider the following example: >> \starttext >> \starttitle[title=Contents] >> \placelist[chapter][cri

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-26 Thread Henning Hraban Ramm via ntg-context
Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context: Good evening! I have a setup in which I need to send info to the TOC: Consider the following example: \starttext \starttitle[title=Contents] \placelist[chapter][criterium=all] \stoptitle \startchapter[title=Mychapter] \input

[NTG-context] How to prefix the list of figures with part number?

2023-03-25 Thread Willi Egger via ntg-context
Willi \setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? \setuphead[part][placehead=yes] \starttext \startpart[title=part one] \starttitle[title=Contents] \placelist[part,chapter][criterium=all] \startsubject[title=Figures] \placelistoffigures[criterium=all

[NTG-context] \writetolist not writing the number to the TOC

2023-03-25 Thread Willi Egger via ntg-context
Good evening! I have a setup in which I need to send info to the TOC: Consider the following example: \starttext \starttitle[title=Contents] \placelist[chapter][criterium=all] \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC

Re: [NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Willi Egger via ntg-context
gt; \setupcaption[table][location=right,orientation=90] >> \startplacetable >> [location=middle, >> reference=tab:papierformaten, >> title={Standaardformaten}] >> \rotate[rotation=90]{\externalfigure[Table1][type=buffer]} >> \stopplacetable

Re: [NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Henning Hraban Ramm via ntg-context
and place it on the right side? My attempt: \setupcaption[table][location=right,orientation=90] \startplacetable [location=middle, reference=tab:papierformaten, title={Standaardformaten}] \rotate[rotation=90]{\externalfigure[Table1][type=buffer

[NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Willi Egger via ntg-context
Description: Adobe PDF document \setupcaption[table][location=right,orientation=90] \startplacetable [location=middle, reference=tab:papierformaten, title={Standaardformaten}] \rotate[rotation=90]{\externalfigure[Table1][type=buffer]} \stopplacetable Thank you

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
Le Système international d'unités > > Maybe the french title is one of the reasons for the USA not picking up on > these units? (So let me threaten once again to kick the "in" unit out of > context.) > >> I believe that this point is essential,…. Alan and I will come

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 7:14 PM, Alan Braslau via ntg-context wrote: On Tue, 14 Mar 2023 12:03:23 -0600 Gavin wrote: I’d really like one of the acceptable forms to be the form prescribed by Le Système international d'unités Maybe the french title is one of the reasons for the USA not picking up

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test] \startfloatcombination[nx=1, ny=2] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startfloatcombination[nx=2, ny=1] \startplacesubfigure

[NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-07 Thread Gerion Entrup via ntg-context
://tex.stackexchange.com/a/502903): \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test

Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
atex. Is this supposed to work? > > > > Here is an MWE: > > ``` > > \definedescription[desc][headstyle=bold] > > > > \starttext > > Foo > > > > \desc{Some title} Some text > > \startitemize > > \item Some item > &

Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Aditya Mahajan via ntg-context
d] > > \starttext > Foo > > \desc{Some title} Some text > \startitemize > \item Some item > \stopitemize > > \stoptext Use \startdesc ... \stopdesc \definedescription[desc][headstyle=bold] \starttext Foo \startdesc[title={Some title}] Some

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
nd=color, > > width=0.95\textwidth, > > backgroundcolor=gbackground] > > > > However, there does not seem a possibility to define a title and it > > seems to not work on multiple pages. > > > > Is there a mix

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
offset=5pt, background=color, width=0.95\textwidth, backgroundcolor=gbackground] However, there does not seem a possibility to define a title and it seems to not work on multiple pages. Is there a mix of an enumeration and framedtex

[NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Gerion Entrup via ntg-context
ound=color, width=0.95\textwidth, backgroundcolor=gbackground] However, there does not seem a possibility to define a title and it seems to not work on multiple pages. Is there a mix of an enumeration and framedtext that can produce something like in the attached picture? Be

[NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
Hi, I'm trying to use a description environment in conjunction with an itemize with the latest luametatex. Is this supposed to work? Here is an MWE: ``` \definedescription[desc][headstyle=bold] \starttext Foo \desc{Some title} Some text \startitemize \item Some item

Re: [NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
To explain more simply, I've put \pagereference[sample] somewhere in a document. Intead of just printing the page number that appeared with \at{page}[sample], I'd like to print the section or subsection title of where that appeared. --Joel On Saturday, March 4, 2023 at 09:18:19 AM MST

[NTG-context] How to print the section number of a reference in ConTeXt?

2023-03-04 Thread Joel via ntg-context
I've set a \pagereference in a chapter, and want to print its chapter title and page number, ex. "You can find more information in "Fish" on p. 1" (where "Fish" is the title of the chapter or section). I've tried looking all through the wiki, thinking this was a ba

Re: [NTG-context] Float control

2023-03-02 Thread Denis Maier via ntg-context
t; The keys location=left and location=right will also generate a page break if > the figure does not fit. > > In the end, one needs to tweak a document in final form especially if it > contains many figures, unfortunately. This is done by moving the > \startfigure...\stopfigure. Here, the

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups \startxmlsetups xml:table-wrap \startpostponingnotes \xmlflush{#1} \stoppostponingnotes \stopxmlsetups

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups

Re: [NTG-context] Float control

2023-03-01 Thread Alan Braslau via ntg-context
In the end, one needs to tweak a document in final form especially if it contains many figures, unfortunately. This is done by moving the \startfigure...\stopfigure. Here, the use of buffers: Paragraph text ... (see \in{figure}[myfigure]). \startbuffer[myfigure] \startfigure[reference=myfigure,

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
ndicator=no] % > \define[1]\learnedis{% >     \txt{} \getvalue{#1} >     \learnedshort{#1} >     \learnedlong{#1} > } > \define[1]\learned{% >     \learnedshort{#1} >     \learnedlong{\getvalue{#1}} > } > > \starttext > > \learnedis{blah blah} > >

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
}} > } > > \starttext > > \learnedis{blah blah} > > \input knuth > > \learnedis{some more} > > >     \startchapter[title=Standards] >         \placelearnedshort >     \stopchapter >      > \stoptext > > > My question is, can I have refe

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Alex Leray via ntg-context
Dear both, thanks for your answers. `doloopovermatch` didn't work for me but this below is achieving what I wanted. Have a good day, Alex %%% \def\dosomething#1{(#1)} \def\dosomethingtwo#1{* #1\crlf} \starttext \startchapter[title={Foo Bar}][ authors={Alice,Bob,Charline

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Hans Hagen via ntg-context
On 2/24/2023 11:37 PM, Rik Kabel via ntg-context wrote: Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
{% >     \learnedshort{#1} >     \learnedlong{\getvalue{#1}} > } > > \starttext > > \learnedis{blah blah} > > \input knuth > > \learnedis{some more} > > >     \startchapter[title=Standards] >         \placelearnedshort >     \stopchapter

Re: [NTG-context] structureuservariable as list

2023-02-24 Thread Rik Kabel via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Search the wiki. Look for "

[NTG-context] structureuservariable as list

2023-02-24 Thread Alex Leray via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Thanks

[NTG-context] How to add data from another PDF in index?

2023-02-23 Thread Joel via ntg-context
\learnedis{blah blah} \input knuth \learnedis{some more}     \startchapter[title=Standards]         \placelearnedshort     \stopchapter      \stoptext My question is, can I have references to the Workbook page numbers in the textbook? And visa-versa? For instance, the Textbook index currently

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
:24, Bruce Horrocks via ntg-context a écrit : Hi Alex, I couldn't get it to work with \tabulate so I switched to TABLE instead. The workaround for the horizontal mode problem is to put the chapter title into row two of the table. Hopefully this works with your actual text. Also I'm not sure where

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
Hi Alex, I couldn't get it to work with \tabulate so I switched to TABLE instead. The workaround for the horizontal mode problem is to put the chapter title into row two of the table. Hopefully this works with your actual text. Also I'm not sure where \layoutcolumnwidth is coming from so I

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
Hello, I'm trying to figure out how to design a chapter page for a custom head section with uservariables defined. I'd like to have the chapter page start on a right page. I'd like this page to feature the title of the chapter (here: an interview) along with some other info like

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
] \starttext \startsection[title={Section zero}]foo\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise you can often find hints in the test suite (many small files) Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section zero}]foo

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
\setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you, Alex ___ If your question is of interest to others as well, please

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
=no,     conversion=Romannumerals,     style={\bf\WORDS},     align=middle,     command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext Have you tried it with \framedtext in the place of \framed ? -- Alexandre Leray +32 487 947 030 Avez-vous pensé à

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
=no,     conversion=Romannumerals,     style={\bf\WORDS},     align=middle,     command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext Have you tried it with \framedtext in the place of \framed ? -- Rik

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
=no,     conversion=Romannumerals,     style={\bf\WORDS},     align=middle,     command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext Have you tried it with \framedtext in the place of \framed ? -- Rik

[NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
above the (framed) title and align the section number with the first line (it's on the second line) Any idea? Many thanks. ### \showframe \showlayout \showgrid \setuplayout[ grid=yes, ] \define[2]\MySection{\framed[ location=keep, frame=on, width=broad, % height=22pt

Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context
, 15. Feb. 2023, 11:59: Hi Mikael, here it is: %%% \definemakeup [title] [doublesided=empty] Add pagestate=start to the settings. Wolfgang ___ If your question is of interest to others as well, p

Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Wolfgang Schuster via ntg-context
Alex Leray via ntg-context schrieb am Mi., 15. Feb. 2023, 11:59: > Hi Mikael, > > here it is: > > %%% > \definemakeup [title] [doublesided=empty] > Add pagestate=start to the settings. Wolfgang ___

Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context
Hi Mikael, here it is: %%% \definemakeup [title] [doublesided=empty] \starttext \input knuth \starttitlemakeup Title \stoptitlemakeup \input knuth \stoptext %%% thanks Le 15/02/23 à 11:43, Mikael Sundqvist via ntg-context a écrit : Hi, and welcome back! On Wed, Feb 15, 2023 at 11:42 AM

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
오후 9:05, Jeong Dal via ntg-context 작성: > > Dear all, > > I copied the code of defining chapter command from metafun-000.tex, and run > it. > But the result is different from that in MetaFun Manual. > There is a big spaces between the number and the title which yields the

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
Dear all, I copied the code of defining chapter command from metafun-000.tex, and run it. But the result is different from that in MetaFun Manual. There is a big spaces between the number and the title which yields the number cannot be seen. I commented out several lines which seems

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

2023-01-30 Thread jbf via ntg-context
Indeed, that works. Thank you. Julian On 30/1/23 20:14, Hans Hagen via ntg-context wrote: 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

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] How to create multi-line headers and footers?

2023-01-29 Thread Henning Hraban Ramm via ntg-context
Am 29.01.23 um 18:14 schrieb Joel via ntg-context: I am creating a template for a 1-page newsletter. At the top of every page is a huge title, below which is a block with a brief introduction to the newsletter. The body is just 200-300 words each issue--I edit it such that all of the content

[NTG-context] How to create multi-line headers and footers?

2023-01-29 Thread Joel via ntg-context
I am creating a template for a 1-page newsletter. At the top of every page is a huge title, below which is a block with a brief introduction to the newsletter. The body is just 200-300 words each issue--I edit it such that all of the content fits on just one-side, one page. Finally

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
Hi Pablo, > \showframe > \setupinteraction[state=start] > \starttext > \startbuffer[abc] > def foo(x): > if x == 0: > bar() > else: > baz(x) > foo(x - 1) > \stopbuffer > \comment[location=leftmargin, > space=yes, > buffer=abc, > title={P

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
g your point with the following sample: \showframe \setupinteraction[state=start] \starttext \startbuffer[abc] def foo(x): if x == 0: bar() else: baz(x) foo(x - 1) \stopbuffer \comment[location=leftmargin, space=yes, buffer=abc, title={Python code}] {}\ty

[NTG-context] Why won't custom indexes work when the value comes from \getvalue?

2023-01-21 Thread Joel via ntg-context
} \starttext % \setcoreidea{this works} \input knuth \input knuth \input knuth \input knuth \setcoreidea{\getvalue{secret1}}         \startchapter[title=Core Ideas]             \placecoreidea         \stopchapter \stoptext

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
f[#f+1] = reference end end if #e > 0 then lpdf.addtonames("EmbeddedFiles",pdfreference(pdfflushobject(pdfdictionary{ Names = e }))) end if #f > 0 then -- PDF/A-2|3: all associated files must ha

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
collect all file description references else -- messy spec ... when annot not in named else twice in menu list acrobat f[#f+1] = reference end end if #e > 0 then lpdf.addtonames("Em

Re: [NTG-context] numbering questions

2023-01-01 Thread Henning Hraban Ramm via ntg-context
[reverse-section]    [section,chapter] [] \defineprefixset [reverse-subsection] [subsection,section,chapter] [] \setuphead   [section]   [sectionset=reverse-section] \setuphead   [subsection]   [sectionset=reverse-subsection] \starttext \startchapter [title={A}] \startsection [title={B

Re: [NTG-context] numbering questions

2023-01-01 Thread Wolfgang Schuster via ntg-context
]   [sectionset=reverse-subsection] \starttext \startchapter [title={A}] \startsection [title={B}] \startsubsection [title={C}] \stopsubsection \startsubsection [title={D}] \stopsubsection \startsubsection [title={E}] \stopsubsection \stopsection \startsection [title={F}] \startsubsection [title={G

Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
New Month. > > \dorecurse{5}{ > \startDay > Another day. > > \stopDay > } > > \stopMonth > }} > > \starttext > > \startYear[ownnumber=2023,title=This] > A new year begins. > > \Dummycontent > > \stopYear > > \star

[NTG-context] numbering questions

2022-12-31 Thread Henning Hraban Ramm via ntg-context
} \stopMonth }} \starttext \startYear[ownnumber=2023,title=This] A new year begins. \Dummycontent \stopYear \startYear Next year. \Dummycontent \stopYear \stoptext - Hraban ___ If your question is of interest

Re: [NTG-context] upload

2022-12-21 Thread Pablo Rodriguez via ntg-context
tle @ level 2 : 0.0 -> \xmlflush {main::35} pages > flushing realpage 7, userpage 7, subpage 7 pages > flushing realpage 8, userpage 8, subpage 8 structures > end of sectionblock 'whatcomesfirst' structures > begin of sectionblock 'whatcomesfirst' s

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

2022-12-20 Thread Rik Kabel via ntg-context
and footers. I tried: \chapter[title={A sample title}][custom_random={custom_value}] \setupheadertexts[{Prefix: \structureuservariable{custom_random}}] ... \stopchapter I tried this code when trying to figure out the mechanism. The prefix string in placed in the header, but hte custom value

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

2022-12-20 Thread Henning Hraban Ramm via ntg-context
and footers. I tried: \chapter[title={A sample title}][custom_random={custom_value}] \setupheadertexts[{Prefix: \structureuservariable{custom_random}}] ... \stopchapter I tried this code when trying to figure out the mechanism. The prefix string in placed in the header, but hte custom value

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

2022-12-20 Thread Pawel Urbanski via ntg-context
Hi, Let me clarify my question more... I need to attach some value to a chapter in that key. That custom prefix + the value in the key is ment to be in the header or a footer as a matter of fact. The case can apply to both headers and footers. I tried: \chapter[title={A sample title

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

2022-12-20 Thread Henning Hraban Ramm via ntg-context
the custom field was not expanded. It was correctly inserted in a regular paragraph. For example: \startchapter [title={A sample title}][custom_something={random_value}] ... \stopchapter How can I put the value of: custom_something in the header with some prefix? \define[2]\MyChapter{No.#1

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

2022-12-20 Thread Pawel Urbanski via ntg-context
in a regular paragraph. For example: \startchapter [title={A sample title}][custom_something={random_value}] ... \stopchapter How can I put the value of: custom_something in the header with some prefix? All the best and thanks, Pawel

[NTG-context] Project structure with nested subfolders and shared environments.

2022-12-15 Thread Pawel Urbanski via ntg-context
* \startchapter[title={ Nested }] \input tufte \stopchapter \stopcomponent \stopproduct Unfortunately the default font is applied and EB Garamond is not picked up from the environment. The question is: ** How can I use such a structure to share styles and layouts kept i the 'Metadata' folder and use

[NTG-context] Achieving different \cite styles

2022-12-08 Thread Jethro Djan via ntg-context
= {Who, Nobody and What, Everyone}, journal = {Good Journal}, title = {The Art of Being}, year= {2017}, } \stopbuffer \definebtxdataset[ref] \usebtxdataset[ref][ref.buffer] \setupbtx[ dataset=ref, ] \definebtxrendering [ref] [apa] [ dataset=ref, ] \usebtxdefinitions[apa

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Joel via ntg-context
rom a PDF: > > \externalfigure[filename.pdf][page=5] > > I am making a teacher's guide for a workbook (workbook.pdf). I need to > be able to display on the page all pages of a particular section. > > The teacher's guide uses the same section titles as the workbook, e.g.:

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
guide uses the same section titles as the workbook, e.g.: 17-A: Title 17-B: Title In other words, there is 1:1 pairing of section titles in the teacher's guide and the workbook. Is there any way to tell ConTeXt to display all of the pages for a particular section? \externalfigure[filename.pdf

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Henning Hraban Ramm via ntg-context
guide uses the same section titles as the workbook, e.g.: 17-A: Title 17-B: Title In other words, there is 1:1 pairing of section titles in the teacher's guide and the workbook. Is there any way to tell ConTeXt to display all of the pages for a particular section? \externalfigure[filename.pdf

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Denis Maier via ntg-context
of a particular section. The teacher's guide uses the same section titles as the workbook, e.g.: 17-A: Title 17-B: Title In other words, there is 1:1 pairing of section titles in the teacher's guide and the workbook. Is there any way to tell ConTeXt to display all of the pages for a particular section

[NTG-context] How to display the pages of a particular section in another PDF?

2022-12-04 Thread Joel via ntg-context
.: 17-A: Title 17-B: Title In other words, there is 1:1 pairing of section titles in the teacher's guide and the workbook. Is there any way to tell ConTeXt to display all of the pages for a particular section? \externalfigure[filename.pdf][section=17A] --Joel

Re: [NTG-context] filling buffers in cld documents

2022-11-27 Thread Hans Hagen via ntg-context
xlua {userdata.Critere ("structure","NoteStructure",2)} \stopxcell   \stopxrow    \stopxtable    \stopbuffer    \stopenvironment * The main file is divided in subjects, each one of them being the feedback to one pupil. In a MWE fashion    \useenv

[NTG-context] filling buffers in cld documents

2022-11-27 Thread damien thiriet via ntg-context
,2)} \stopxcell \stopxrow \stopxtable \stopbuffer \stopenvironment * The main file is divided in subjects, each one of them being the feedback to one pupil. In a MWE fashion \useenvironment [env_corrige] \starttext \startsubject[title={Astérix}] \startluacode El

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Hans Hagen via ntg-context
and playing with Massi's reply; will probably be back with more questions :-) Anyway: If you've filtered something out like this local tree = xml.filter (t, "../chapter[@title='mytitle'") always keep in mind that some expressions return a list of matches, that can be looped ove

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
questions :-) Anyway: If you've filtered something out like this local tree = xml.filter (t, "../chapter[@title='mytitle'") you can then apply a command to it lxml.command(lxml.id(tree), ".", "xml:chapter:command") and have to define the command as \star

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
__ > \environment[template.mkiv] \definemargindata[marginfigure][inright] \useMPlibrary[dum] \setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes] \setvariables [headertext] [title={Interrogation écrite}, number={3}, day={8}, month={11}, year={2022}

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,    background

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
,    after=\blank,   background=] \setupfloats   [freeregion=no] \definedescription   [Definition]   [alternative=top,   text={Definition: }, title=yes,     before=\startOliver, after=\stopOliver, inbetween={\blank[medium]}] \startbuffer[sampletext

[NTG-context] ToC filler dots not aligned

2022-10-14 Thread Schister, Roman via ntg-context
. Here’s a working example of my code: \setupcombinedlist[content][alternative=c] \starttext \completecontent \chapter[title={First chapter}] \chapter[title={Second, longer chapter}] \chapter[title={Third chapter}] \stoptext Any help is greatly appreciated. Thanks and best wishes, Roman

Re: [NTG-context] issues with current latest

2022-10-14 Thread Alain Delmotte via ntg-context
Hi! Le 14/10/2022 à 16:24, Pablo Rodriguez via ntg-context a écrit : Dear list, I have the following sample: \setuppapersize[A7] \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \startsection[title

<    1   2   3   4   5   6   7   8   9   10   >