[NTG-context] Section numbering does not work

2024-02-12 Thread Oliver Marugg
/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.01.24 22:39 -- Stripped down MWE: \setuppapersize[A4] [A4] \starttext \completecontent[criterium=all] % ToC \page \chapter{CHAP 1} TEXT \startbackmatter \startchapter[title=Literature

[NTG-context] Re: How to print the book title and section title where \reference is located?

2024-02-09 Thread Bruce Horrocks
t; Taking you literally in that you want a *file* listing the occurences and not a typeset page listing the occurrences then you could try using the following in your document at the places where you currently put \requirementA etc: \writestatus{RequirementMet}{Requirement A is met in sectio

[NTG-context] How to print the book title and section title where \reference is located?

2024-02-06 Thread Joel via ntg-context
I have an extensive multi-book project. Each book has a nickname, like TB for "Textbook", "WB 1" for the "Workbook, Vol. 1": TB -- 01_textbook.texWB 1 -- 03_workbook.texWB 2 -- 04_workbook.texWB 3 -- 05_workbook.tex WB 4 -- 06_workbook.tex TG -- 08_teachersguide.tex I have to prove to a

[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
{67533,  author={De Doncker, R.W.A.A. and Divan, D.M. and Kheraluwala, M.H.},  journal={IEEE Transactions on Industry Applications},  title={A three-phase soft-switched high-power-density DC/DC converter for high-power applications},  year={1991},  volume={27},  number={1},  pages={63-73},  keywords={DC

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton} \stoptext Using the register mechanism as you suggest

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
a way), but for >> special needs I’m (ab)using indexes: >> just add something like \index[2017-04-29]{Speech, Panama City} to your >> chapter command and setup the index at will. > > Lists have a sort option but this is no use here because you can't use the > title

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
-04-29]{Speech, Panama City} to your chapter command and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
context(text) end end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \defineenumeration[enu][text=Enu,title=yes] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargumen

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
t line there is no problem > \setupinteraction[state=start] > > \defineenumeration[enu][text=Enu] > > \unprotect > \def\mc{\dosingleempty\do_my_command} > \def\do_my_command[#1]#2{% > \iffirstargument{% > \ctxlua{userdata.my_command('#1', [==[#2]==])}% > }\else {%

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-28 Thread Wolfgang Schuster
|<>| ##. SECTION TITLE paragraph ... . |<-->| margin ``` I wanted paragraph to begin on the same line the section title lies. \define[1]\SectionNumberCommand   {\margindata[inmargin]

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:40, Ali Ali wrote: > Thanks, those seems close to what I wanted but not exactly. > > The ASCII graphic (better in typewriter font) may explain what I desired, > ``` > text width > |<>| > > ##.

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Ali Ali
Thanks, those seems close to what I wanted but not exactly. The ASCII graphic (better in typewriter font) may explain what I desired, ``` text width |<>| ##. SECTION TITLE par

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Wolfgang Schuster
Ali Ali schrieb am 27.01.2024 um 06:03: I've able to achieve the results I wanted by trial/e using the code shown below. """ \def\subsecnumwrapper#1{\llap{#1\hskip8pt}} \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt] """ I just wanted to know if there

[NTG-context] Section number in the margin and the section title followed by paragraph!

2024-01-26 Thread Ali Ali
I've able to achieve the results I wanted by trial/e using the code shown below. """ \def\subsecnumwrapper#1{\llap{#1\hskip8pt}} \setuphead[subsection][alternative=text,numbercommand=\subsecnumwrapper,distance=0pt] """ I just wanted to know if there already an option defined to achieve the

[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-25 Thread Gerion Entrup
se {% \ctxlua{userdata.my_command('', [==[#2]==])}% }\fi } \protect \starttext % all the following works \mc{foo} \mc[bold]{foo} \mc[emph]{foo} \startenu[title=Some] \stopenu % this breaks \startenu[title=Some \mc{foo}] \stopenu \stoptext ``` The compilation fails with: `

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
switchtobodyfont [cambria]\math{F_j = \int\nolimits _a^b}} {Cambria} 371 {\switchtobodyfont[lucidaot]\math{F_j = \int\nolimits _a^b}} {Lucida OT} 372 {\switchtobodyfont [xits]\math{F_j = \int\nolimits _a^b}} {Xits} 373 \stopcombination

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
rph-chk.lua:97> ...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1680: in function <...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1665> (...tail calls...) 506 \startsubsection[title=Schriftwahl] … 513 514 \startplacefigure[title={Beispi

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Henning Hraban Ramm
Am 11.01.24 um 22:04 schrieb Bruce Horrocks: 1. "ConTeXt" should be the biggest word - or as an obvious title for the poster, away from the actual drawing. This will be only a part of the poster. I imagine a 3x3 grid with a title above and some information (website etc.) bel

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Bruce Horrocks
e.g. what is the distinction between the 'source' (lua tex) and the > 'resources' (fonts icc lib) and the 'frontend' (tex xml png ...mp) > (no lua?) Agreed. In no particular order: 1. "ConTeXt" should be the biggest word - or as an obvious title for the poster, away from the

[NTG-context] Width of captions and notes in outer margin not correct on even pages

2024-01-09 Thread Milan cel Mare via ntg-context
ts} \input knuth Some more stuff\inouter{Some multi-line text to be placed in the outer margin to check whether it is positioned correctly.} to read\inouter{Another multi-line text to be placed in the outer margin to check whether it is positioned correctly.}. \startplacefigure[title={A lengthy caption

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
bleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par > (Beutelspacher [\hyphenatedurl {10},S.54]). > > \stoptext \hyphenatedurl only changes the hyphenation of its content, it doesn’t create a link. In your example it makes no sense. Generally, you need an anchor (link target) t

[NTG-context] Re: Why the way key-value argument is called affected the document's output?

2024-01-08 Thread Hans Hagen
ble to "yes". %% Type 2. %\setuplayout[ %grid=yes %] Here you set the grid variable to "yes " so a trailing space. \setuphead[section][grid=low] %% needed to observe the output difference \starttext \title{Alpha} \subsection{Beta} \input{knuth} \stoptext So this is ok: \setupfoo

[NTG-context] Why the way key-value argument is called affected the document's output?

2024-01-08 Thread 111414w
rve the output difference \starttext \title{Alpha} \subsection{Beta} \input{knuth} \stoptext """ Best regards, Ali ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
need an anchor (link target) to link to, e.g. \startchapter[title={My chapter},reference=chap:first] or \chapter[chap:first]{My chapter} This works the same for other structure levels. I’m not sure about bibliography, but I think you must use the bib entry code. You can also set anchors

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
    -outname \externalfilteroutputfile},     output=\externalfilterbasefile.pdf,     cache=yes,     readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext    Testing if we can include an asymptote image    \startplacefigure[location={here}, title={An Asymptote figure}] \startASY

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, %this is the default closesymbol={\mathematics{\square}}, style=normal] But the closessymbol does not work. I will create a minimum working example and post

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);} } But I do not know how to make it work in ConTeXt as I am not very familiar with ConTeXt. If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title

[NTG-context] Re: error: Control sequence expected instead of undefined

2023-12-25 Thread Willi Egger
* > \starttext > \in{figure}[fig:kruskal1] is my point. > > \startplacefigure[location=,reference=fig:kruskal1,title={}] > \externalfigure[cow][width=.5\makeupwidth] > \stopplacefigure > \stoptext > % > __

[NTG-context] error: Control sequence expected instead of undefined

2023-12-25 Thread Jeong Dal via ntg-context
%%%* \starttext \in{figure}[fig:kruskal1] is my point. \startplacefigure[location=,reference=fig:kruskal1,title={}] \externalfigure[cow][width=.5\makeupwidth] \stopplacefigure \stoptext %___ If your

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
w Roman, 12.2pt] \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, alternative=serried, ] \definetextbackground

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
\setupbodyfont[Times New Roman, 12.2pt] \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, alte

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem]   [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried,   ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
=, after=, text=Info, title=no, width=fit, distance=0.5em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=5cm] \startInfo \input{ward} \stopInfo \stopFramedText \stoptext

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
\setupbodyfont[Times New Roman, 12.2pt] \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, alternative=serried

[NTG-context] Re: Problem with \startlinenumbering left and right arguments

2023-12-09 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 07.12.2023 um 19:21: Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth

[NTG-context] Problem with \startlinenumbering left and right arguments

2023-12-07 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth} \stopchapter } \stoplinenumbering \stoptext Kind regards

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
Dear List, i have this example: \setupbodyfont[modern,10pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
txmlsetups xml:table \blank \doifelsetext{\CaptionText}{% \startplacetable[ title={\ignorespaces\CaptionText{}\removeunwantedspaces.}, reference={\AnchorXref} ] \define\CaptionText{} \define\AnchorXref{} }{ \startplacetable } \startembeddedxtable \start

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
Dear List, After once more a little changes this is the example I wanted, and it is perfekt: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
, > distance=0.5em, > headstyle=bold, > titlestyle=normal, > way=bytext, > conversion=numbers] > \defineenumeration > [theorem] > [text=Theorem, > title=yes, > style=italic, > list=all, > listtext={Theorem }] > \starttext > \margintext{

[NTG-context] Re: unwanted blank page

2023-11-20 Thread Pablo Rodriguez via ntg-context
On 11/19/23 23:34, madiazm.eo...@gmail.com wrote: > sorry if i dont get your problem right understood, but i'm completely > new to context. Hi Miguel, I’m afraid it isn’t entirely clear whether you intend to ask something or not. > I use a hack not to get the number not printed in

[NTG-context] Re: It works after a few changes but ..

2023-11-20 Thread Ursula Hermann
25ex, width=7cm] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic,

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
sorry if i dont get your problem right understood, but i'm completely new to context. I use a hack not to get the number not printed in the title page (though I define sectionblocks for keeping different numbering systems for the table of contents and the document) I use \setuppagenumbering

[NTG-context] Re: It works after a few changes but ..

2023-11-18 Thread Bruce Horrocks
\}\blackrule[color=black, height=0.25ex, width=7cm] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theor

[NTG-context] Problem with textstyle

2023-11-17 Thread Rik Kabel
, ] \starttext \startchapter    [title={Oops!}] \input knuth-gpt \par \stopchapter \stoptext Replacing the textstyle /cap/ by any of /bold/, /slanted/, /smallcaps/, and /italic/ results in a clean compilation but the indicated style is not applied. Using a style

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
eration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em, alternative=serried, ] \starttext \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist \stoptheorem

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Aditya Mahajan
for something like this? \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em, alternative=serried, ] \starttext \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schö

[NTG-context] It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
[ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic, list=all

[NTG-context] Re: how can I do this in CLD

2023-11-08 Thread Henning Hraban Ramm
Am 08.11.23 um 18:44 schrieb Henning Hraban Ramm: Hi, I’m generating some code in a loop and would like to use formatting like \quotation or \emph in a caption: context.startplacefigure({title = "Style " .. context.quotation(style)}) That doesn’t work. I guess context.quotation i

[NTG-context] how can I do this in CLD

2023-11-08 Thread Henning Hraban Ramm
Hi, I’m generating some code in a loop and would like to use formatting like \quotation or \emph in a caption: context.startplacefigure({title = "Style " .. context.quotation(style)}) That doesn’t work. I guess context.quotation is executed immediately and doesn’t return anything?

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-03 Thread Hans Hagen
talk about design sizes but, instead of thinking in absolute sizes, we would want to think in sizes relative to the font setup. indeed, and even more abstract: running text vs headings vs title pages That is, instead of saying ‘Caption shall be used for sizes 6.5pt and below, SmText for 9.5pt

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-02 Thread Vincent Hennebert
on scale (e.g. using display for 20 pt in a 15 pt setup versus using scaled regular for 20pt and then display 20pt for e.g. a title page or 50pt on posters). I think I see your point. I think we can still talk about design sizes but, instead of thinking in absolute sizes, we would want to think

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
of design sizes here. It's more about 'usage' because a display vs subhead vs ... variant is not about mixing depending on scale (e.g. using display for 20 pt in a 15 pt setup versus using scaled regular for 20pt and then display 20pt for e.g. a title page or 50pt on posters). (I have Questions

[NTG-context] Testing whether an XML attribute exists

2023-10-17 Thread Michael Guravage
ichael Guravage \startxmlsetups xml:list:base \xmlsetsetup{#1}{addressBook|family|address|members|member}{xml:list:*} \stopxmlsetups \xmlregisterdocumentsetup{list}{xml:list:base} \startxmlsetups xml:list:addressBook \title{Address List} \xmlflush{#1} \stopxmlsetups \startxmlsetups

[NTG-context] Re: bibliography questions

2023-10-05 Thread Rik Kabel
author = "Bettina von Arnim and Gisela von Arnim", >> title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns", >> … >> } >> >> The authors are usually given as “Bettina and Gisela von Arnim” >> (mother and daughter; similar “Ja

[NTG-context] Re: bibliography questions

2023-10-05 Thread Rik Kabel
On Oct 3, 2023 16:32, Henning Hraban Ramm wrote:Am 03.10.23 um 02:02 schrieb Alan Braslau: > On Mon, 2 Oct 2023 13:13:52 +0200 > Henning Hraban Ramm wrote: > >> Consider: >> @Book {rattenhka, >> author = "Bettina von Arnim and Gisela von Arnim",

[NTG-context] Re: Attempting to Generate PDF/A in LMTX

2023-10-04 Thread Henning Hraban Ramm
v2 300% (ECI)' Here is a MWE that generates these errors: setupinteraction   [title=TITLE,    subtitle=SUBTITLE,    author=AUTHOR,    keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] %% For PDF/A \setupbackend[ format={pdf/a-1b:2005}, % or pdf/a-1a:2005 profile={default_cmyk.icc,default_rgb.icc,de

[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'ISOcoated_v2_300_eci.icc' backend > profiles > invalid output intent 'ISO Coated v2 300% (ECI)' Here is a MWE that generates these errors: setupinteraction [title=TITLE,

[NTG-context] Re: bibliography questions

2023-10-03 Thread Henning Hraban Ramm
Am 03.10.23 um 02:02 schrieb Alan Braslau: On Mon, 2 Oct 2023 13:13:52 +0200 Henning Hraban Ramm wrote: Consider: @Book {rattenhka, author = "Bettina von Arnim and Gisela von Arnim", title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns", … } The autho

[NTG-context] Re: bibliography questions

2023-10-02 Thread Alan Braslau via ntg-context
On Mon, 2 Oct 2023 13:13:52 +0200 Henning Hraban Ramm wrote: > Consider: > @Book {rattenhka, > author = "Bettina von Arnim and Gisela von Arnim", > title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns", > … > } > > The authors are us

[NTG-context] Frontpage and Titlepage

2023-10-02 Thread Jeroen
] \definealternativestyle [authorstyle] [\rm\tfb] [] \definealternativestyle [titlestyle] [\rm\bfd] [] \starttext \startmakeup [frontpage] \authorstyle {The Author} \blank \titlestyle {This is the Title} \stopmakeup \startmakeup [titlepage] \titlestyle {This is the Title} \stopmakeup

[NTG-context] bibliography questions

2023-10-02 Thread Henning Hraban Ramm
for btx:beispiel, btx:apa defined too (best check it) """ Are these messages wrong? And why do they come from "system" and not from "publications"? My minimal example works anyway, still investigating why it doesn’t in my book. Another question: Consider: @Book

[NTG-context] Re: \underbar in head

2023-09-21 Thread jbf
So clearly I would need to upgrade my version. It does not work with what I have at the moment. Thank you. Julian On 22/9/23 02:04, Wolfgang Schuster wrote: I get a line below the chapter title with LMTX and LuaTeX with the current ConTeXt version

[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
,title={my caption}]% \externalfigure[dummy][width=2\textwidth,height=.95\textheight]% \stopplacefigure \dorecurse{5}{2\recurselevel\samplefile{lorem}\par} \stopcolumnset \stoptext ___ If your question is of interest

[NTG-context] problems with comments

2023-09-21 Thread Henning Hraban Ramm
t; doesn’t help. The "author" setting is shown, but as soon as I click on the comment, it changes to my user name. (Might depend on the viewer, but I get the same behavior from Adobe and Apple.) "title" and "subtitle" settings are handled differently by viewers, t

[NTG-context] Re: \underbar in head

2023-09-21 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 07:01: However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything

[NTG-context] Re: \underbar in head

2023-09-20 Thread jbf
However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'. Could

[NTG-context] Re: \underbar in head

2023-09-20 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 05:03: Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar

[NTG-context] \underbar in head

2023-09-20 Thread jbf
Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
yfont=11pt, style={\tt}] \defineenumeration [Code] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}.}] \starttext \startchapter [title=first] \startCode [title={The First Title}, refer

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and th

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] rotation weirdness

2023-09-16 Thread Hans van der Meer via ntg-context
I encountered something weird, that I cannot explain. It could be an error, but I was not able to pinpoint this.It seems as if the \rotate macro plays havoc with the macro definitions used to set the color of the frame and an outside title.Placing the outside title before the rotate proves

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
er, Denis Christian (UB) <mailto:denis.ma...@unibe.ch> Betreff: Re: [NTG-context] Using structureuservariables before the heading denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um 17:47: Hi, is it possible to access a structureuservariable before the

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
e before the heading’s title ? Using the «before» key does not seem to work. There are ways but not in a general way because you try to access the values before they are known to ConTeXt. To provide a proper solution you have to tell what you're trying to

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
ables before the heading denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um 17:47: Hi, is it possible to access a structureuservariable before the heading's title ? Using the key does not seem to work. There are ways but not in a general way because you t

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
<mailto:denis.ma...@unibe.ch> schrieb am 12.09.2023 um 17:47: Hi, is it possible to access a structureuservariable before the heading’s title ? Using the «before» key does not seem to work. There are ways but not in a general way because you try to access the values

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
17:47: Hi, is it possible to access a structureuservariable before the heading's title ? Using the key does not seem to work. There are ways but not in a general way because you try to access the values before they are known to ConTeXt. To provide a proper solution you have to tell what you're

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 12.09.2023 um 17:47: Hi, is it possible to access a structureuservariable before the heading’s title ? Using the «before» key does not seem to work. There are ways but not in a general way because you try to access the values before they are known

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
} \startchapter[title=First][author=First Author] \input knuth \stopchapter \startchapter[title=Second][author=Second Author] \input knuth \stopchapter \setuphead[chapter] [ before=,after=,beforesection=,insidesection=, command=\myChapterCommand, ] \startchapter[title=Third][author={Third

[NTG-context] Using structureuservariables before the heading

2023-09-12 Thread denis.maier
Hi, is it possible to access a structureuservariable before the heading's title ? Using the key does not seem to work. As an aside, I've tried to use the < command > key to provide my own command, but while \define works here (but ignores \blank), \def gives me an error. Why is that? How

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
Hi, xml.text(t) is safer than directly accessing t.dt[1]. Note: you may need to strip some XML tags from that content. If the element is not straight-up data but has nested elements, then this will return the full xml representation instead: A short title=> ‘A short ti

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread denis.maier
Ok, I've found a way, see below. But maybe someone has some nice lua (or other) tricks to share... (I'm not sure accessing t.dt[1] is particularly safe when operating on nested structures.) Best, Denis \startbuffer[test] A short title asdf asdf asdf jklö jklö jklö A longer

[NTG-context] Bug(?) in https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages

2023-09-11 Thread Jim
Hi, In https://wiki.contextgarden.net/Tabulate#Spanning_Multiple_Pages the wiki has "internal error: convert failed". Removing \color[red] from \setuptabulate in that example gives a working example (at least in a separate file on my machine). I tried changing the title spe

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-10 Thread Jim
er two} > \input ward > \stoptext > > Greetings Lutz > Am 9. September 2023 20:11:55 MESZ schrieb Jim : >>Hi, >>I am creating a document which is divided with the unnumbered levels >>(\title, \subject, ...). >>I would like a table of contents sho

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Jim
culpa. My mail program did not show me that your first answer had non-breakable spaces after '[title]' and '[subject]' (but not after '[subsubject]'). And I quickly copied and pasted those into a file without checking the character set. Replacing those with ASCII spaces makes everything work

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Jim
: > Jim schrieb am 09.09.2023 um 20:11: >> Hi, >> I am creating a document which is divided with the unnumbered levels >> (\title, \subject, ...). >> I would like a table of contents showing the names and page numbers, >> something like >> Bla

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Lutz Haseloff
Jim : >Hi, > >I am creating a document which is divided with the unnumbered levels >(\title, \subject, ...). > >I would like a table of contents showing the names and page numbers, >something like > >Blah blah blah2 >Blah blah 4 >... > >Howeve

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Wolfgang Schuster
Jim schrieb am 09.09.2023 um 20:11: Hi, I am creating a document which is divided with the unnumbered levels (\title, \subject, ...). I would like a table of contents showing the names and page numbers, something like Blah blah blah2 Blah blah 4 ... However, notwithstanding what

[NTG-context] Table of contents of unnumbered titles

2023-09-09 Thread Jim
Hi, I am creating a document which is divided with the unnumbered levels (\title, \subject, ...). I would like a table of contents showing the names and page numbers, something like Blah blah blah2 Blah blah 4 ... However, notwithstanding what I see in https

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

2023-09-08 Thread Henning Hraban Ramm
=right, style=\ChapterFont, beforesection={\pageinjection[chapter:start]}, command=\ChapterStart, before={\startcolumnset[Spalten]}, after={\vskip-\lineheight}, % fix column start inbetween=, aftersection={\stopcolumnset}, ] \startchapter[title={Prolog 2: Reiseführer}][ motto={(quotation

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

2023-09-08 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 08.09.2023 um 12:22: Hi, for an involved image placement (full page image starting each chapter, several stacked elements), I’d like an environment that accepts key-value arguments, like \startMyFigure[page=left,title={My caption}] \externalfigure[dummy

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

2023-09-08 Thread Henning Hraban Ramm
Hi, for an involved image placement (full page image starting each chapter, several stacked elements), I’d like an environment that accepts key-value arguments, like \startMyFigure[page=left,title={My caption}] \externalfigure[dummy]… \stopMyFigure I don’t think that a real float makes sense

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
[\xmlfilter{#1}{./url('xlink:href')}] \stopxmlsetups \startxmlsetups xml:link https://uv-v4.netlify.app/\#?manifest=\xmlfilter{#1}{./url('xlink:href')} \stopxmlsetups \startxmlsetups xml:fig \startplacefigure[title=Test] \startalignment[center

[NTG-context] Re: out of order sectionsblocks

2023-09-05 Thread Hans Hagen via ntg-context
ndnote] [location=none]    \starttext      \startbodymatter       \startchapter[title={Body}]        \startparagraph         \input knuthmath         \startendnote         \input knuth-gpt         \stopendnote        \stopparagraph       \stopchapter      \stopbodymatter      \startback

[NTG-context] out of order sectionsblocks

2023-09-04 Thread Rik Kabel
rttext  \startbodymatter   \startchapter[title={Body}]    \startparagraph     \input knuthmath     \startendnote     \input knuth-gpt     \stopendnote    \stopparagraph   \stopchapter  \stopbodymatter  \startbackmatter   \startchapter[title={Notes}]    \plac

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:09 PM, Jeroen wrote: The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setcounter [userpage] [0

[NTG-context] Different Layout for First Page

2023-09-04 Thread Jeroen
] \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages] \setupfooter[state=stop] \startfrontmatter \input{frontpage.tex} \stopfrontmatter \setupfooter[state=start] \startbodymatter \input{introduction.tex} \stopbodymatter What would be the easiest way to change the layout only

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