[NTG-context] Re: Bug between \definealternativestyle and makeup?
Ouch, thanks for opening my eyes! Le 27/08/23 à 21:42, Mikael Sundqvist a écrit : Remove the period: \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}] \definemakeup [title] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext /Mikael On Sun, Aug 27, 2023 at 9:32 PM Alex Leray wrote: Hi, I found that using \definealternativestyle in conjunction with Makeup insert a page before my Makeup page. Any idea? Thanks * * * \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}]. %%% BUG!!! \definemakeup [title] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Bug between \definealternativestyle and makeup?
Hi, I found that using \definealternativestyle in conjunction with Makeup insert a page before my Makeup page. Any idea? Thanks * * * \definecharacterkerning [mykerning] [factor=0.15] \definealternativestyle[mystyle][{\setcharacterkerning[mykerning]}]. %%% BUG!!! \definemakeup [title] [doublesided=empty, pagestate=start] \starttext \starttitlemakeup Title \stoptitlemakeup \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: breakpoints in verbatim text
Hi, I think I need to use verbatim because I'm typesetting source code and I need it to be as verbatim as possible. For the moment, I'm manually inserting zero-width spaces... seems to do the trick, although it's becoming unreadable :P Thanks, Alex Le 17/08/23 à 17:22, Wolfgang Schuster a écrit : Alex Leray schrieb am 17.08.2023 um 14:41: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Do you need the verbatim environment or is the lines-environment sufficient. \setuppapersize[A7] \setbreakpoints[compound] \starttext \startlines[style=mono] 1. Thisisthetruth:waste-not-want-not 2. Thisisthetruth:waste/not/want/not 3. Thisisthetruth:waste+not+want+not 4. Thisisthetruth:waste(not(want(not)) 5. Thisisthetruth(waste)not)want)not \stoplines \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: breakpoints in verbatim text
Thanks, Unfortunatly, it doesn't work (no difference in output with or without the `setups` parameter) I'm not up-to-date, Should I update? Here is my version. mtx-context | current version: 2023.03.10 12:15 Many thanks Le 17/08/23 à 16:32, Hans Hagen a écrit : On 8/17/2023 2:41 PM, Alex Leray wrote: Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? For now do this: \appendtoks \usesetupsparameter\typingparameter \to \everyinitializeverbatim and then \startsetups typing:mine \setbreakpoints[compound] \stopsetups with \starttyping[lines=yes,setups=typing:mine] I need Wolfgang to check it for possible interferences. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] breakpoints in verbatim text
Hi, I'd like to break lines in verbatim on certain characters like "/". I can do it for normal texte, but not inside typing environment. Is there a way to achieve this? Below is my test code. Thanks, Alex * * * \setuppapersize[A7] \setbreakpoints[compound] \starttext 1. This is the truth: waste-not-want-not \par 2. This is the truth: waste/not/want/not \par 3. This is the truth: waste+not+want+not \par 4. This is the truth: waste(not(want(not)) \par 5. This is the truth: ((waste)not)want)not \starttyping[lines=yes] 1. Thisisthetruth:waste-not-want-not \par 2. Thisisthetruth:waste/not/want/not \par 3. Thisisthetruth:waste+not+want+not \par 4. Thisisthetruth:waste(not(want(not)) \par 5. Thisisthetruth:((waste)not)want)not \stoptyping \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Vebatim text: Preserve empty lines
Hello, is there a way to preserve empty lines in typing env? By default it is removing them. Thanks * * * \definetyping[custom] \setuptyping[custom][ space=normal, lines=yes, tab=4, ] \starttext \startcustom Foo Bar Baz \stopcustom \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Typing with text wrapping
Hi all, I'm having another issue with my project. I'm trying to typeset fragments of HTML, including tabs and (repeating) spaces. I'd like to have my snippet with some words in bold. So I used `typing` together with the `escape` option. But now, I'd like my snippets to wrap when the lines are too long. The snippets can un over several pages so that recipe[^1] doesn't work for me. [^1]: https://www.contextgarden.net/Verbatim_with_line_breaks> Is there a way to do that? Here is my code: ``` \definepapersize[page][width=105mm,height=148.5mm] \setuppapersize[page, portrait][page, portrait] \definehead[poem][section] \setuphead[poem][] \definetyping[CUSTOM] \setuptyping[CUSTOM][escape={[[,]]}] \starttext \showgrid \startpoem[title={My title}][] \startCUSTOM[] \stopCUSTOM \stoppoem \stoptext ``` Thanks! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Using
Thanks Hans! Le 4/08/23 à 23:21, Hans Hagen a écrit : On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem \stoptext ``` I get the following traceback: ``` tex error > tex error on line 6 in file /home/ali/work/being_human/test.tex: ! Undefined control sequence \strc_sectioning_initialize_increment ->\edef \currentheadincrement verbatim is tricky because it changes the catcodes here is a trick: \definehead [poem] [section] \setuphead [poem] [after=\startlines\tt, % after the head is placed aftersection=\stoplines] % when we end this section \startpoem[title={Glijden}] Lorem ipsum dolor sit amet consectetur. Lorem ipsum dolor sit amet consectetur. \stoppoem it is not pretty coding but it seems to work ok Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Using
Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem \stoptext ``` I get the following traceback: ``` tex error > tex error on line 6 in file /home/ali/work/being_human/test.tex: ! Undefined control sequence \strc_sectioning_initialize_increment ->\edef \currentheadincrement {\headparameter \c!incrementnumber }\ifcsname \??headincrement \currentheadincrement \endcsname \lastnamedcs \else \settrue \c_strc_sectioning_increment \settrue \c_strc_sectionin... \strc_sectioning_handle ... \currentheadsection }\strc_sectioning_initialize_autolevel \strc_sectioning_initialize_increment \strc_sectioning_initialize_placement \strc_sectioning_initialize_number \the \everybeforesectionheadhandle \let \getheadn... \strc_sectioning_start_named_section ...parameter \c!beforesection \the \everybeforehead \strc_sectioning_handle {#1}{#2}{#3} \headparameter \c!insidesection l.6 \startpoem[title={Glijden}][] 1 \definehead[poem][section] 2 \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] 3 4 \starttext 5 6 >> \startpoem[title={Glijden}][] 7 Lorem ipsum dolor sit amet consectetur. 8 \stoppoem 9 10 \stoptext 11 mtx-context | fatal error: return code: 256 ``` Any idea? thanks a lot! Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] structureuservariable as list
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}, translators={foo,bar,baz} ] {\em authors} \\ \commalistsentence[\structureuservariable{authors}][{ \crlf },{ \crlf }] {\em translators} \\ \processcommacommand[\structureuservariable{translators}]\dosomethingtwo \doloopoverlist {\structureuservariable{translators}} { (#1) \\ } \stopchapter \stoptext %%% Le 25/02/23 à 11:08, Hans Hagen via ntg-context a écrit : 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') % done \stopchapter Search the wiki. Look for "Comma Separated Lists." There is a variant with an author list as an example. You may need additional brace levels around the list entries. I'm not sure this is on the wiki ... \starttext \startchapter[title={Foo Bar}][authors={Alice, Bob},AUTHORS={Bob,Alice}] \doloopovermatch {[^, ]+} {\structureuservariable{authors}} { (#1)\crlf } \doloopovermatch {[^,]+} {\structureuservariable{authors}} { (#1)\crlf } \doloopovermatch {[^,]+} {\structureuservariable{AUTHORS}} { (#1)\crlf } \doloopovermatch {[^,]+} {\structureuservariable{AUTHORS}} { \doloopovermatch {.} {#1} { (##1) } \crlf } \stopchapter but feel free to add it. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] structureuservariable as list
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 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Indenting next multi paragraph description
Actually it works if I comment out "\setupindenting" (or with a manual `\indentation`). But then, no indentation on the rest of the document :( Le 23/02/23 à 22:27, Alex Leray via ntg-context a écrit : \setupindenting[yes, 3em, next] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Indenting next multi paragraph description
Hi, I'd like to indent next paragraphs in multi paragraph descriptions. For some reason, I can't figure out why this isn't working. Any idea? Here is my code: ### \setupwhitespace[none] \setupindenting[yes, 3em, next] \definedescription[question][ before={\vskip-\parskip}, after={\vskip-\parskip}, width=3em, hang=3, ] \definedescription[answer][ before={\vskip-\parskip}, after={\vskip-\parskip}, width=3em, hang=3, indenting={yes, 3em, next}, % Does nothing indentnext=yes, % Does nothing too ] \starttext \startcolumns[n=2] \startquestion{(T.C.)} \input ward \stopquestion \startanswer{(N.M.)} \input ward \input ward \stopanswer \stopcolumns \stoptext ### Thanks! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Chapter cover page
Hi Bruce, and thanks for your answer. In the end, I think a combination of `insidesection` and `placehead` does what I want: ### \setuphead[interview][ placehead=hidden, insidesection={\setup{interview:cover}}, ] ### I'll test it harder in the coming days! Alex Le 23/02/23 à 14: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 \layoutcolumnwidth is coming from so I just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD \bTD \structureuservariable{bio} \eTD \eTR \bTR \bTD[nc=2] #1 #2 \eTD \eTR \eTABLE } \definehead[interview][chapter] \setuphead[interview][ page=right, command=\MyChapter, % insidesection={\page}, style={\tfa}, ] \starttext \startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext On 23 Feb 2023, at 10:21, Alex Leray via ntg-context wrote: 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 the interviewee name and bio. All in a "fancy" layout. I'm having issue putting it all together. The command parameter allow me to override the content of the title but has some drawbacks (it seems to be stuck in horizontal mode for instance). I'm open to any solution but would find it nice to keep the \startstopinterview structure. Here is my code at the moment: %%% \define[2]\MyChapter{ \starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|] \NC \structureuservariable{author} \NC \structureuservariable{bio} \NR \stoptabulate } \definehead[interview][chapter] \setuphead[interview][ page=right, command=\MyChapter, % insidesection={\page}, style={\tfa}, ] \starttext \startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext %%% Many thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Chapter cover page
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 the interviewee name and bio. All in a "fancy" layout. I'm having issue putting it all together. The command parameter allow me to override the content of the title but has some drawbacks (it seems to be stuck in horizontal mode for instance). I'm open to any solution but would find it nice to keep the \startstopinterview structure. Here is my code at the moment: %%% \define[2]\MyChapter{ \starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|] \NC \structureuservariable{author} \NC \structureuservariable{bio} \NR \stoptabulate } \definehead[interview][chapter] \setuphead[interview][ page=right, command=\MyChapter, % insidesection={\page}, style={\tfa}, ] \starttext \startinterview[title={My Interview}][ author={Jane Doe}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext %%% Many thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Section numbering starting from zero, not one
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\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \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 add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Section numbering starting from zero, not one
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \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 add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Chapter number and titles in separate lines with grid layout
I somehow found a way. It doesn't work on my minimal example but it does in my real doc. I tested a lot of thing but I think it was thanks to the offset=none parameters For the record: ### \define[2]\MySection{ \framed[ location=top, strut=no, offset=none, frame=none, width=broad, height=fit, align=middle]{#1.\\#2}} \setuphead[section][ conversion=Romannumerals, style={\bf\kerncharacters[0.075]\WORDS}, align=middle, command=\MySection, ] ### Thanks! Le 15/02/23 à 19:11, Rik Kabel via ntg-context a écrit : On 2023-02-15 08:44, Alex Leray via ntg-context wrote: \showframe \showlayout \showgrid \setuplayout[ grid=yes, ] \define[2]\MySection{\framed[ location=keep, frame=on, width=broad, % height=22pt, align=middle ]{{#1.\\#2}}} \setuphead[section][ strut=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é à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Chapter number and titles in separate lines with grid layout
Hello again, I'm having another issue: I'd like Chapter/Section number and titles in separate lines but with grid alignement. I followed that advice: https://wiki.contextgarden.net/Titles#Chapter_number_and_titles_in_separate_lines I'm having an issue though: I can't get rid of the space 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, align=middle ]{{#1.\\#2}}} \setuphead[section][ strut=no, conversion=Romannumerals, style={\bf\WORDS}, align=middle, command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext ### ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Makeup and page numbering increment
Thanks a lot Wolfgang, that's perfect! I added an example in the wiki: https://wiki.contextgarden.net/Command/setupmakeup Have a good day, Alex Le 15/02/23 à 12:03, Wolfgang Schuster via ntg-context a écrit : Alex Leray via ntg-context <mailto:ntg-context@ntg.nl>> schrieb am Mi., 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, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Makeup and page numbering increment
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 Alex Leray via ntg-context wrote: Dear Context users, I'm new to this mailing-list. I've decided to use Context for two separate publications. My previous experience with Context was almost 10 years ago and it seems like the resources on Context have greatly expanded. So thank you all! There is a little thing that I can't figure out though... In one of my document I have makeup pages. But inserting them result in wrong page numbering of subsequent pages. It appears that makeups do not increment page numbers. Is this a feature? How could re-establish the right page number for the rest of the document? Thank you in advance, Alex Can you show a small example of this behavior? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Makeup and page numbering increment
Dear Context users, I'm new to this mailing-list. I've decided to use Context for two separate publications. My previous experience with Context was almost 10 years ago and it seems like the resources on Context have greatly expanded. So thank you all! There is a little thing that I can't figure out though... In one of my document I have makeup pages. But inserting them result in wrong page numbering of subsequent pages. It appears that makeups do not increment page numbers. Is this a feature? How could re-establish the right page number for the rest of the document? Thank you in advance, Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___