[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Wolfgang Schuster
hange the font for each element disable the default settings with \setuphead[style=] and use \startfont (or \definedfont) to apply a different style for the number, title etc. begin example \defineframed [ChapterFrame] [width=\textwidth, align=flushright, offset=0pt, rulethic

[NTG-context] Re: missing space with French quotation

2024-05-30 Thread Wolfgang Schuster
you can see in the following example \mainlanguage change the float label and the quotation marks but \language changes only the quotation marks and uses the label of the main language. begin example \starttext \startplacefigure[title=\quotation{English quotes}] \midaligned{\blackrule[width

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
\definehead [MyChapter] [chapter] \setuphead [MyChapter] [ style={...}, % heading style after={\setup{PlaceSubTitleAndIntro}}, ] \starttext \startMyChapter[title={Foo}] [ subtitle={Bar}, intro={Some explanation}, ] The text of the chapter \stopMyChapter \

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ead [chapter] [style=\tf] > > \setuphead [chapter] [style=\bf] So this sentence of the wiki [1] is wrong (documentation of the command argument)?: > Command to use for typesetting the title; overrules all other styling. First > argument is the number, second the title text. If I see

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
máš -- On Thu, May 30, 2024 at 02:15:01PM +, Gerion Entrup wrote: > Hi, > > I'm trying to adapt the format of chapters in my document and have a few > questions regarding setuphead. > My aim is to have the chapter (title) on a separate page with an additional > i

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
document and have a few > questions regarding setuphead. > My aim is to have the chapter (title) on a separate page with an additional > intro in different text sizes for title, subtitle and the intro. > I chose to use the "command=" argument in setuphead for that. > Howe

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
Hi, I'm trying to adapt the format of chapters in my document and have a few questions regarding setuphead. My aim is to have the chapter (title) on a separate page with an additional intro in different text sizes for title, subtitle and the intro. I chose to use the "command=&qu

[NTG-context] Re: how to prevent item appearing in List of Figures

2024-05-30 Thread Rik Kabel
gt;  location={middle,high,low}, >  reference=fig:logo, >  title=] > {\externalfigure[FCLogo][width=0.045\textwidth]} > \stopplacefigure > > These are not part of the text and I don’t want them to appear in the list. > > The caption for the logo doesn’t appear in

[NTG-context] Re: how to prevent item appearing in List of Figures

2024-05-30 Thread Henning Hraban Ramm
, title=] {\externalfigure[FCLogo][width=0.045\textwidth]} \stopplacefigure These are not part of the text and I don’t want them to appear in the list. If you don’t need them in the list and also no caption, I wouldn’t use floats (\placefigure) at all, but just plain \externalfigure. Hraban

[NTG-context] Re: how to prevent item appearing in List of Figures

2024-05-30 Thread Tomáš Hála
ome of which are logos (for the publisher and two > granting bodies) that I have placed with: > >\setupcaptions[number=no] > \starttplacefigure[ > location={middle,high,low}, > reference=fig:logo, > title=] > {\externalfigure[FCLogo][width=0.045\textwidth]} > \s

[NTG-context] Re: BibTeX choking on comments in database

2024-05-29 Thread Kip Warner
\def\bibinsertbiburl#1#2#3% {\bibdoifelse{\@@pb@biburl} {#1\expanded{\bibgotoURL{\@@pb@title}{\@@pb@biburl}}#2}{#3}} \protect % Book reference layout... \setuppublicationlayout[book]{% \insertauthors{}{. }{\insertthekey{}{. }{}}% \ins

[NTG-context] how to prevent item appearing in List of Figures

2024-05-29 Thread Charles Doherty via ntg-context
ed with: \setupcaptions[number=no] \starttplacefigure[ location={middle,high,low}, reference=fig:logo, title=] {\externalfigure[FCLogo][width=0.045\textwidth]} \stopplacefigure These are not part of the text and I don’t want them to appear in the list. The caption for the logo doesn’t appear

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66> > > (...tail calls...) > can you test with the attached ... (remake the format) >

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
trc-lev.lua:75: attempt > > to index a nil value (field '?') > > stack traceback: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: > > in function > <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:6

[NTG-context] Re: BibTeX choking on comments in database

2024-05-28 Thread Aditya Mahajan
ot warning about text outside of an entry that > should be treated as a comment? Hard to say without looking at the bib file, but % is not a comment character in bibtex. So, if your file starts with % @article{key, % title = {...}, % } you will get an error from the bib parser. If you want to c

[NTG-context] Re: page number

2024-05-26 Thread Wolfgang Schuster
Charles Doherty via ntg-context schrieb am 26.05.2024 um 11:27: Dear Wolfgang, I have a book in preparation with running heads. Pagenumber marking |marking Pagenumber The chapter title page has empty headings. The publisher would like the page number centered on the Chapter

[NTG-context] Re: page number

2024-05-26 Thread Mikael Sundqvist
Hi Charles, On Sun, May 26, 2024 at 11:39 AM Charles Doherty via ntg-context wrote: > > Dear Wolfgang, > > I have a book in preparation with running heads. > > > Pagenumber marking |marking Pagenumber > > The chapter title page has empty headings. >

[NTG-context] page number

2024-05-26 Thread Charles Doherty via ntg-context
Dear Wolfgang, I have a book in preparation with running heads. Pagenumber marking |marking Pagenumber The chapter title page has empty headings. The publisher would like the page number centered on the Chapter title page. I manage to put it there but I don’t want it to run on

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 24.05.2024 um 14:05: Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescrip

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Jean-Pierre Delange
et a écrit : Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \

[NTG-context] How to Define a New Language

2024-05-24 Thread ai2472206007
Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \unpr

[NTG-context] Re: build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread Hans Hagen via ntg-context
uot;)) ; fill SavedShape withcolor red; setbounds currentpicture to OverlayBox; \stopuseMPgraphic \showframe \defineoverlay[myoverlay][\useMPgraphic{shape:2}] \setupbackgrounds[text][text][background=myoverlay] \startsection[title={test}] \startshapedparagraph[mp=shape:1]% \setupalign[veryt

[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
npath] % <=== WITHOUT \startsubsection #2 %\startsubsection[title={Title for section #1}] \MySubSectionCommand{1}{Title for section #1} \input knuth \endgraf \input ward %\stopsubsection \stopshapetext \setlayer [testA] [hoffset={\the\dimexpr\backspace\relax}, voffset={\the\dimexpr\

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Pablo Rodriguez via ntg-context
ection] [command=\firstHeadings, indentnext=no] \starttext \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \stoptext BTW, you inadvertely introduce the space here: \define[2]\firstHeadings{% \dontleav

[NTG-context] Re: Why is only the first frame protruding into the margin?

2024-05-17 Thread Wolfgang Schuster
style={\switchtobodyfont[miCorm]}, textstyle={\switchtobodyfont[20.7pt]}, command=\firstHeadings, indentnext=no] \startsection[title=Aspectos generales] Esta guía contiene toda la documentación necesaria para administrar la prueba unificada de certificación que ha diseñado la comisi

[NTG-context] Why is only the first frame protruding into the margin?

2024-05-16 Thread madiazm . eoicc
{% \dontleavehmode \switchtobodyfont[miCorm] \FrameTitle#1% \dontleavehmode \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText } \setuphead [section] [color=blue, command=\firstHeadings, indentnext=no] \starttext \noindentation \dontleavehmode \startsection[title=Aspectos generales

[NTG-context] Re: compatibility between \startshapetext and \startsection ?

2024-05-15 Thread Garulfo
Thanks you Wolfgang. If it's not possible to use \blank, it appears that using for example \strut\par\strut\par is OK (but \par\par is not, ) \dorecurse{5}{ \strut\par\strut\par \leftaligned{Title for section{\recurselevel}} \strut\par\strut\par \darkred\input knuth \par \darkblue\input

[NTG-context] what am I missing in the typescript?

2024-05-15 Thread madiazm . eoicc
\stoptypescript \starttypescript[miCorm] \definetypeface [miCorm] [rm] [serif] [cormorant] [default] \stoptypescript \setupbodyfont[miFuente, 12pt] \starttext \startsection[title=Aspectos generales] Esta guía contiene toda la documentación necesaria para administrar la {\it prueba unificada d

[NTG-context] Re: compatibility between \startshapetext and \startsection ?

2024-05-15 Thread Wolfgang Schuster
seems also to break the shaping) Example : 2 pages without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. [...] \dorecurse{5}{ \startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward \stopsection } The

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
,stretch,normal]% \setupindenting[yes,small]% \strut% \reference[myref1]{MyRef1}Here is the first reference.\par See reference \in[myref2] on \at{page}[myref2]\par % \dorecurse{5}{ %\startsection[title={Title for section{\recurselevel}}] \darkred\input knuth \par \darkblue\input ward %\stopsection

[NTG-context] Errors with 2024-05-11 LMTX

2024-05-12 Thread Rik Kabel
I have come across an error that halts processing with the latest release. The following demonstrates this: \setuppagenumbering [location=] \starttext  \dorecurse{36}{\dorecurse{19}{abc }}  \startplacetable[location=split,title={Table}]     \starttabulate[|p|p|]     \HL

[NTG-context] Is there a way to consolidate index reference numbers by book?

2024-05-10 Thread Joel via ntg-context
\useregister[workbookA][03_workbook][learnedlong][WB~1:~] \useregister[workbookB][04_workbook][learnedlong][WB~2:~] \useregister[workbookC][05_workbook][learnedlong][WB~3:~] \useregister[workbookD][06_workbook][learnedlong][WB~4:~]    \startchapter[title=Standards

[NTG-context] wiki Command/MPdrawingdonetrue => NO COMMAND FOUND

2024-05-08 Thread garulfo
Is there something to do to make the wiki aware of the existence of \MPdrawingdonetrue ? https://wiki.contextgarden.net/index.php?title=Command/MPdrawingdonetrue&action=edit&redlink=1 ___ If your questi

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Wolfgang Schuster
gap before the next text. I am using this to display a simple timeline. Though the formatting looks perfect, very strangely when I compile it, it changes all of the dates to say "1540" (or whatever date was used first). Why is it showing the wrong title on the desc environment? --Joe

[NTG-context] Re: Why is this description environment not showing the correct title?

2024-05-05 Thread Mikael Sundqvist
d be bold, then there is a gap before the next text. > > I am using this to display a simple timeline. > > Though the formatting looks perfect, very strangely when I compile it, it > changes all of the dates to say "1540" (or whatever date was used first). > > Why is it

[NTG-context] Why is this description environment not showing the correct title?

2024-05-05 Thread Joel via ntg-context
strangely when I compile it, it changes all of the dates to say "1540" (or whatever date was used first). Why is it showing the wrong title on the desc environment? --Joel ___ If your question is of interest to

[NTG-context] Re: Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 30.04.2024 um 14:22: Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I’ve

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
distance=.1in, height=middle, footerdistance=0pt, footer=\lineheight, bottomspace=.3in] \definelayout[1][first] \definelayout[2][rest] \setupmarginblock [location=left, width=\leftmarginwidth, align=flushright] \usecolors[svg] \definehead[contacts][title] \setuphead [

[NTG-context] Font switching for titles and subtitle not working as expected ?

2024-04-30 Thread denis.maier
Hi, I just jumbled upon this question on tex stackexchange : https://tex.stackexchange.com/questions/715799/context-switching-font-for-both-title-and-subject#715804 Using the style key as suggested in the accepted answer works, but I've had a look in to this, and I don't understa

[NTG-context] Re: ConteXt commands in an rtl environment

2024-04-29 Thread Wolfgang Schuster
RTL support and all of them show the text in the same way as TeXShop. Support for RTL in Visual Studio Code seems to be limited because the editor doesn't use the Unicode Bidi Algorithm [1]. [1] https://wiki.archlinux.org/title/Bidirectional_text#Editors Wol

[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
start] \startbuffer[testdata] @Book{knuth1, author = {Donald E. Knuth}, title = {TEX and METAFONT. New directions in typesetting}, year = {1979}, publisher = {Addison-Wesley}, } @Article{someother, author = {Some Person and Some Otherperson}, ti

[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
[state=start] \startbuffer[testdata] @Book{knuth1, author = {Donald E. Knuth}, title = {TEX and METAFONT. New directions in typesetting}, year = {1979}, publisher = {Addison-Wesley}, } @Article{someother, author = {Some Person and Some Otherperson}, title

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
odule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark19

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Jean-Pierre Delange
he bibliography part doesn’t work for me at all. > > But notes may be placed as their location is text (and you add a real > footnote). > > This works fine: > > \setupnote[footnote][location=text] > > \starttext > \input knuth > \footnote{Footn

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Henning Hraban Ramm
Am 22.04.24 um 18:30 schrieb Duncan Hothersall: Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like

[NTG-context] Re: documentation: parameters of \setuplist

2024-04-22 Thread Duncan Hothersall
Hi Hraban, I can help with one - aligntitle means an unnumbered section will align in the table of contents under the number rather than the title. So for example if you have a TOC combining \section and \subject entries, they would look like this: 1 ... A section A subject rather than 1 ... A

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Pablo Rodriguez via ntg-context
\input knuth \footnote{Footnote} \cite[clark1989] \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext I never used a bibliography in ConTeXt, so that part is left to y

[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
here a fix? Here is a minimum working example: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Joel via ntg-context
s to take the notes into account when determining a page break - it does so by the insert mechanism - when floats can't be placed they also become inserts (top and bottom) - when there are inserts in inserts th eproblem becomes more complex (so notes inside floats) - in traditional tex deeply b

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Hans Hagen via ntg-context
oblem becomes more complex (so notes inside floats) - in traditional tex deeply burried inserts disappearm less so in lmtx There are things that are hard to get right. This works: \startpostponing \startplacefigure[location=here,title={test \footnote{oeps 1}}] \blackrule[width=1tw]

[NTG-context] Re: preventing column break after section title

2024-04-18 Thread Peter Münster
On Thu, Apr 18 2024, Peter Münster wrote: > How could I prevent a column break after the second section title please? Ok, found it: \setupitemize[each][autointro] -- Peter ___ If your question is

[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
e exactly the short form). It is more less also > > described here [1]. > > - Highlight publications of a certain author with an extra char (e.g. > > '>') > > > > Here is a minimal example (lets assume, every occurrence of Knuth > > should be highlighte

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
t; should be highlighted): ``` > \setupinteraction[state=start] > > \startbuffer[testdata] > @Book{knuth1, > author = {Donald E. Knuth}, > title = {TEX and METAFONT. New directions in typesetting}, > year = {1979}, > publisher = {Addison-Wesley}, > }

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
[testdata] @Book{knuth1, author = {Donald E. Knuth}, title = {TEX and METAFONT. New directions in typesetting}, year = {1979}, publisher = {Addison-Wesley}, } @Article{someother, author = {Some Person and Some Otherperson}, title = {Another title

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

2024-04-15 Thread Biblio--- via ntg-context
text]   [\setups{Test}][]   [\setups{Test}][] \setuppagenumbering[location=footer] \starttext \startDatum[title={secA}]%   \dorecurse{50}{aaa }   \pagebreak     \dorecurse{50}{aaa } \stopDatum \startDatum[title={secB}]%   \dorecurse{630}{bbb } \stopDatum \startDatum[title={secC}]%   \dorecurse{

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
for i within tt : pathpart i && endfor cycle withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode } \definehead[Myhead][section] \setuphead[Myhead][ style=\Mystyle, ] \startMyhead[title=sample] a sample text

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
withshademethod "linear" withshadedirection up withshadecolors (red, blue) ; \stopMPcode } \definehead[Myhead][section] \setuphead[Myhead][ style=\Mystyle, ] \startMyhead[title=sample] a sample text \stopMyhead \stoptext and the code below works but does not colo

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

2024-04-03 Thread Wolfgang Schuster
] \definecounter [alanindex] \setuphead [chapter] [insidesection={\setpagestate[alanpage]}, aftersection={\setpagestate[alanpage]}] \setuphead [title] [insidesection=, aftersection=] \define[1]\ChapterListPage {\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter

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

2024-04-03 Thread Alan Bowen
it helps: I currently have \startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName, itemTitle=ShortTitle,...] \setuplist[FMTitle][state=start, alternative=startendfmpages, criterium=all,] (\Reference is defined at the in the preamble to input of the file/component

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

2024-04-03 Thread Bruce Horrocks
mmand? \definelist[LastPages][criterium=all] \starttext \completecontent \page \completelist[LastPages] \page \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \writetolist[LastPages]{3.}{\namedstructurevariable{ch

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Keith McKay
the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Well, I found one, but it‘s not free: https://commercialtype.com/catalog/guardian_sans Hraban

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Henning Hraban Ramm
Am 01.04.24 um 16:34 schrieb Hans Hagen via ntg-context: On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth and the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Well, I found one, but it‘s not

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Hans Hagen via ntg-context
On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth and the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Hans

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
indfile(filename) or "" local blob = found ~= "" and io.loaddata(found) or "" if blob == "" then report("category: %s, filename: %s, not found",category,filename)

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]–% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
r sample makes no use of it. Sorry, but I don’t get it. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] > \definetextbackground[GrayBackground][ > locatio

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section}] This

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
ing: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my cha

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
As I understand, Thomas needs a layout in which the header shows something like 1. Chapter title -- 1.1. Section title (including the numbers! *This is the important bit!*) There are a couple things about this: 1. In a section (part, chapter, section, etc.) you can introduce three versions of

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the header on the right. How can I automate this with marking? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Than

[NTG-context] Re: Use of marking

2024-03-20 Thread Thomas Meyer
g? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Thanks for your help Thomas Hi Thomas, do you know how to use \setupheadertexts? https://wiki.contextgarden.net/Command/setupheadertexts I guess you're using the section level for "Aufgabe&qu

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
e" in the header on the right. How can I automate this with marking? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Thanks for your help Thomas Hi Thomas, do you know how to use \setupheadertexts? https://wiki.contextgarden.net/Command/setuph

[NTG-context] Use of marking

2024-03-20 Thread Thomas Meyer
automate this with marking? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Thanks for your help Thomas ___ If your question is of interest to others as well, please add a

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 12:59: I have some style adjustments for the chapters. The chapter "numbers" need to be Boek I, Boek II, etc. A vertical separator was introduced with an inframe. The chapter title at the right side does not vertically align properly with the chapter

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
{\framed[width=130mm,align=right,leftframe=on, rulethickness=0.8pt]{#2}}% \egroup} \setuplabeltext[chapter=Boek~] \setuphead[chapter][style={\bfc}, command=\HeadTitle, textstyle=bold] ... \startchapter [title={Algemene Beginselen}, ownnumber={I}] Op di 19 mrt 2024 om 15:49 schreef Hraban Ramm

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Hraban Ramm
Hi Jeroen, it might make sense to use \setuphead[chapter][ conversion=R, ] \setuplabeltext[nl][chapter={Boek }] instead of ownnumber. I would use one command for number and title and put both in the same kind of frame. Probably you should use a \strut in the text or \inframed[strut=yes

[NTG-context] Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have some style adjustments for the chapters. The chapter "numbers" need to be Boek I, Boek II, etc. A vertical separator was introduced with an inframe. The chapter title at the right side does not vertically align properly with the chapter number in the frame (inside the frame is

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
Hans’ manuals are also often "in progress". A visible TODO marker might help – I’m using the following in my book to keep track of incomplete sections: \defineregister[todos] \define[1]\TODO{\inouter{\tt\color[red]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[re

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
ames to include summaries. In any case, the MWE below correctly displays the "smile" images (in *.pdf format) and incorrectly displays the smile.svg image). On the other hand, the \startMPpage script given by Hans only produces a white square. The *.log is attached. The MWE : \start

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
y, but I don’t get it. > \defineenumeration >   [theorem] >   [ >     text=Theorem, >     title=yes, >     width=fit, >     distance=0.2em, >     alternative=serried, >   ] > \definetextbackground[GrayBackground][ >   location=paragraph, >   background=color, >

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
[MyInMargin][inleft] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[GrayBackground][ location

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
ructuretitle}}     \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[title=Standards]   \placeregister[learnedlong]     \stopchapter \stoptext ___

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
    \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[title=Standards]   \placeregister[learnedlong]     \stopchapter \stoptext ___ If your questi

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
ine[1]\learnedis{%     \txt{} \getvalue{#1}     \learnedshort{#1}     \learnedlong{#1} } \define[1]\learned{%     \textreference[textref#1]{\expanded{\currentstructuretitle}}     \reference[ref#1]{}% %     \learnedshort{#1}     \learnedlong{\getvalue{#1}} } \starttext \learned{W3}     \startchapter[

[NTG-context] Document metadata after context --extra=select script

2024-03-10 Thread Michael Guravage
Greetings, I set a document's title with the following code: \expanded {\setupmetadata [title={Document Title}]} I then create a derivative document with a selection of pages using ConTeXt's select script. context --extra=select [options] list-of-files The metadata tit

[NTG-context] Re: How to set section title based on section content?

2024-03-09 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 09.03.2024 um 16:01: How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth

[NTG-context] How to set section title based on section content?

2024-03-09 Thread Joel via ntg-context
How to set section title based on section content? I have a document that has some structures like this: \starttext \startsection[title={Animals}] \event{\input knuth } \stopsection \startsection[title={Books}] \event{\input knuth } \stopsection \stoptext The event macro runs a bunch of

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
apersize[MyBook][A4] %Would print MyBook-size pages on A4 paper > \setupbodyfont[Times New Roman,12.55pt] > \definemargindata [MyInMargin][inright] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] > \defineenumeration > [theorem] > [

[NTG-context] Re: Log entries about confusing level change

2024-03-08 Thread Hans Hagen
level change at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
7;back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [title=front1]

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

2024-03-07 Thread Damien Thiriet via ntg-context
\blank[line] \enforced\let\\\endgraf \setups[tugboat:abstract:setup] \startAbstracts[title={Abstract}] \stopAbstracts } \stopStreszczenia \stopDane} \stopplacefigure

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 16:52: On 3/6/24 15:54, Hans Hagen wrote: [...] \setupmetadata [title=FooBar] that's for those who go global Many thanks for the new command, Hans. I‘m afraid this new command breaks my compilation. The error message isn’t

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
On 3/6/24 15:54, Hans Hagen wrote: > [...] >> \setupmetadata >>[title=FooBar] > > that's for those who go global Many thanks for the new command, Hans. I‘m afraid this new command breaks my compilation. The error message isn’t very helpful for me (see below). I wo

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Hans Hagen
On 3/6/2024 11:18 AM, Marco Patzer wrote: On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups So now we have

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
pages on A4 paper \setupbodyfont[Times New Roman,12.55pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Henning Hraban Ramm
Am 06.03.24 um 11:18 schrieb Marco Patzer: On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups So now we have

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Marco Patzer
On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: > Here is the official solution: > > \startxmlsetups xml:meta >\setupmetadata > [author={\xmltext{#1}{/author}}, > title={\xmltext{#1}{/title}}] > \stopxmlsetups So now we have: \setupintera

[NTG-context] Re: missing metadata in LMTX

2024-03-05 Thread Wolfgang Schuster
the is very elegant and I hope Hans can help with a clean solution. The first one avoids the issue until Hans provides a final fix. Here is the official solution: \startxmlsetups xml:meta \setupmetadata [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Wolfgang Schuster
}}, title={\xmltext{#1}{/title}}]} \stopxmlsetups The second solution makes the assignment to the \setupinteraction command global to ensure they are kept even the environment ends, int old MkII days ConTeXt provided a \startglobal environment to do this but now I have rely on the primitives

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