Re: [NTG-context] Typing efficiency

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

Re: [NTG-context] Typing efficiency

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

Re: [NTG-context] Typing efficiency

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

[NTG-context] Typing efficiency

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

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

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

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

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

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

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

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

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

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

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

[NTG-context] TOC chapter and section numbering

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

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

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

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

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

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

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

[NTG-context] About the numbering of theorems

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

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

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

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

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

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

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

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

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

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

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

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

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

[NTG-context] no reference output for \namedstructurevariable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[NTG-context] About the table of contents

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

[NTG-context] Translation of ConTeXt interface

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

Re: [NTG-context] spacing before items

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

Re: [NTG-context] spacing before items

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

Re: [NTG-context] spacing before items

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

Re: [NTG-context] spacing before items

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

Re: [NTG-context] spacing before items

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

[NTG-context] spacing before items

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

Re: [NTG-context] using modeset

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

[NTG-context] using modeset

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

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

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

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

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

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

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

[NTG-context] Minimal code for exporting custom tags

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

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

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

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

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

[NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \startsection[title={\xmlatt{#1}{id}}, beforesection={\doif{\xmlatt{#1}{id}}{\selectedtopic} {conditional}}] \xmlflush{#1} \doif{\xmlatt{#1}{id}}{\selectedtopic}{conditional} \stopsection

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
}] \startsection[title={Préambule}] \startsubsection[title={À qui s'adresse ce cours ?}] Ce {\em cours} de philosophie s'adresse d'abord aux élèves de classe de terminale des Lycées, motivés par le massif intimidant d'interrogations et de réflexions que la tradition européenne désigne par {\em

Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster
=\endash~, %    midsentence=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands?  I'm sure

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands? I'm sure a number of you look

[NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
r={\column}, ] \setuphead[subsubsection][ after={\blank[small]}, ] \starttext \startsection[title={Section Title}] \startsubsection[title={Subtitle}] \dorecurse{2}{\input knuth} \dorecurse{2}{% \startsubsubsection[title={Subsubtitle}] \dorecurse{1}{\input ward} \dorecurse{2}{\input lorem}

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
]},before={\blank[big]},sectionstopper=.] \setuphead[subsection][sectionsegments=subsection] \setuphead[subsubsection][sectionsegments=subsubsection,sectionstopper=] \setuphead[subsubsubsection][sectionsegments=subsubsubsection] \starttext \startchapter[title={Chapter}] \startsection[title={Section

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-03 Thread Hans Hagen
tuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection] \setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection] \def\startA{\startchapter} \def\stopA{\stopchapter} \def\startI{\startsection} \def\stopI{\stopsection} \def\startS{\startsu

[NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-02 Thread Daniel Haid
on] \setuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection] \setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection] \def\startA{\startchapter} \def\stopA{\stopchapter} \def\startI{\startsection} \def\stopI{\stopsection} \def\startS{\startsubsection}

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Rik Kabel
]   \startsection[title={Beta}]  \input sapolsky \stopsection   \startsection[title={Alpha}] \input sapolsky \stopsection  \stopchapter  \startchapter[title=bar]   \placelist[section][criterium=local,order=title]   \startsection[title={Alpha}] \input sapolsky

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Hans Hagen
     \placelist[section][criterium=local,order=title]      \startsection[title={Beta}]  \input sapolsky \stopsection      \startsection[title={Alpha}] \input sapolsky \stopsection      \startsection[title={Gamma}] \input sapolsky \stopsection \stopchapter \stoptext

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread jdh
r=no] > > \starttext > > \startchapter[title=foo] > > \placelist[section][criterium=local,order=title] > > \startsection[title={Beta}] \input sapolsky \stopsection > \startsection[title={Alpha}] \input sapolsky \stopsection > \startsecti

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Kerry Sainsbury
section > > headings. > > Here's my attempt that does not work. > here's one that does ... > > \setuphead[section][number=no] > > \starttext > > \startchapter[title=foo] > > \placelist[section][criterium=local,order=title] > > \startsection[title={

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Hans Hagen
... \setuphead[section][number=no] \starttext \startchapter[title=foo] \placelist[section][criterium=local,order=title] \startsection[title={Beta}] \input sapolsky \stopsection \startsection[title={Alpha}] \input sapolsky \stopsection \startsection[title={Gamma}] \input sapolsky

[NTG-context] How to sort list of sections?

2019-11-06 Thread Kerry Sainsbury
expect): \placelist[section] \blank placelistofsorts (doesn't render anything. My guess was wrong) \placelistofsorts[wahs] Sections start here: \startsection[title={Beta}] Hello \startsection[title={Alpha}] World \stoptext Thank you for your time. I really appreciate it. Kerry

Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
ddsym[t][t][unit={\sunit{second}}, description={Time}, group={latin}] } % Print the List of Symbols with \placelistofsymbols \def\placelistofsymbols{\loadsymbols\ctxlua{userdata.placelistofsymbols()}} \starttext \startfrontmatter \startsubject[title=Content] \placecontent \stopsubject \starts

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title

[NTG-context] Using \currentreferencenumber triggers “has a hidden number” in log file

2019-07-18 Thread Marco Patzer
\currentreferencenumber\emptyreference {Foo}{Bar}}%% } \setuphead [section] [number=no] \starttext \startsection [title=Foo, reference=sec:foo] \samplefile{knuth} \stopsection \foo[sec:foo] \stoptext Then check the log file for “has a hidden number”. 1) How to not trigger the log

Re: [NTG-context] Tagged blocks

2019-06-19 Thread Wolfgang Schuster
can't exclude tagged blocks but it's possible to extend the mechanism an apply a default tag to each block which will allow selective output. \startsection[title=Questions] \useblocks[question][criterium=chapter] \stopsection \startsection[title=Answers] \useblocks[answer][criterium=chapter

[NTG-context] Tagged blocks

2019-06-18 Thread Jan Willem Flamma
\beginanswer \startanswer Normal answer \stopanswer \endanswer \beginquestion[exam] \startquestion Exam question \stopquestion \endquestion \beginanswer[exam] \startanswer Exam answer \stopanswer \endanswer \startsection[title=Questions] \useblocks[question][criterium=chapter] \stopsection

Re: [NTG-context] bookmark expansion again

2019-05-27 Thread Wolfgang Schuster
] \starttext \section{\MyContent} \startsection[title=\MyContent, bookmark=\MyContent] \stopsection \stoptext I see that now PDF contents are prerolled by default (which I think it is a great idea [I hope it isn’t a bug]). But bookmarks alone (when aren’t prerolled. From strc

[NTG-context] bookmark expansion again

2019-05-27 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \def\eap{expansion} \def\MyContent{Expanded \eap} %~ \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection

[NTG-context] no bookmark prerollling in bookmark option

2019-05-23 Thread Pablo Rodriguez
Dear list, I have the following sample: \def\MyContent{This is expanded content} \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection[title=\MyContent

Re: [NTG-context] XML export: basic questions

2019-05-22 Thread Hans Hagen
On 5/22/2019 10:30 PM, Procházka Lukáš Ing. wrote: Hello, suppose having "Main.mkiv": \setupbackend[export=yes] \starttext   \startsection[title={Sec},MyPar=MyVal]     \input knuth   \stopsection \stoptext Some questions concerning XML export: 1. Normally, with \se

[NTG-context] XML export: basic questions

2019-05-22 Thread Procházka Lukáš Ing .
Hello, suppose having "Main.mkiv": \setupbackend[export=yes] \starttext \startsection[title={Sec},MyPar=MyVal] \input knuth \stopsection \stoptext Some questions concerning XML export: 1. Normally, with \setupbackend[export=yes], Ctx creates "Main-exp

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 8:45 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 16.05.2019 um 18:43: >> [...] >> After checking i-context, the options for the second pair of brackets are: >> >>KEY = VALUE >> >> Well, I think this is the standard case. Aren’t values inherited from >> \setuphead? What

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.05.2019 um 18:43: Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt]

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 6:43 PM, Pablo Rodriguez wrote: > [...] > What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and > contains(@class,'hidden')]}" in beforesection? > > I realize that "\definehead[specialchapter][chapter]" would be a > workaround, but I would like to find a more proper

[NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt] This is my chapter. \stopchapter \stoptext

[NTG-context] Split up PDF a certain

2019-05-15 Thread Denis Maier
Hi, is there a way to split up a PDF a certain points, e.g. at every \startsection? (I am thinking of a way to produce both one PDF for a complete journal issue and for each individual articles. Or should I better use an external tool to post-process the resulting PDF?) Best, Denis

[NTG-context] Expanding text across two table cells

2019-04-08 Thread Todd DeVries
\project prj_cases \startsection[title=Counseling Progress Note, reference=DATE_clientcode] \placetable{Meeting Info} {\bTABLE \bTR \bTD \ptitle{Client Name}:~John Smith \eTD \bTD \ptitle{Billing code}:~90834 \eTD \eTR \bTR \bTD \ptitle{Date}:~April 8, 2019 \eTD \bTD \ptitle{Start \& stop time

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
poffset=10pt, > leftoffset=10pt, > location=paragraph, > frame=on] > > \startsetups [xml:setups:start] > \starttextbackground [SetupsParameter] > \stopsetups > > \startsetups [xml:setups:stop] > \stoptextbackground > \stopsetups > > \starttext > > \start

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
=paragraph, frame=on] \startsetups [xml:setups:start] \starttextbackground [SetupsParameter] \stopsetups \startsetups [xml:setups:stop] \stoptextbackground \stopsetups \starttext \startsection[title={Short Version of the Command}] \cmdshortsetup [setupframed] \cmdshortsetup

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
, that the framed pieces break over the page. \usemodule[x][set-11] \loadsetups[i-context] \setuppapersize[A6][A6] \setupbodyfont[pagella,rm,10pt] \starttext \startsection[title=hSort Version of the Command] \shortsetup{setupframed} \shortsetup{setupinteraction} \stopsection

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Saša Janiška
On Fri, 15 Feb 2019 13:59:46 +0100 Wolfgang Schuster wrote: > You need (note the “start”) > > \startsection[title={...}] > > when you use \stopsection. Ahh, I managed to try just those combination which do not work...feeling really embarrassed. :-( Thank you for being ki

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Gour
On Fri, 15 Feb 2019 13:59:20 +0100 Henning Hraban Ramm wrote: > You mixed up the syntax, > it’s either \section{Testing} or \startsection[title=Testing] Ahh, what a shame. :-( Sincerely, Gour -- For him who has conquered the mind, the mind is the best of friends; but for one who has

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Wolfgang Schuster
_syst_helpers_push_macro \endcsname \global \advance \lastname... l.4 \stopsection 1 \starttext 2 \section[title={Testing ConTeXt}] You need (note the “start”) \startsection[title={...}] when you use \stopsection. Wolf

Re: [NTG-context] Missing number, treated as zero

2019-02-15 Thread Henning Hraban Ramm
t’s either \section{Testing} or \startsection[title=Testing] Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ If your question is of

[NTG-context] Documentation of change / Evolving documents

2019-01-19 Thread Axel Kielhorn
}{Allerletzter Fehler beseitigt.} Ende \startsection[title={History}] \placechange \stopsection \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] indented headings possible?

2018-12-13 Thread Wolfgang Schuster
with \dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par but that is horrible code. Is there any way to get the correct effect using \setuphead ? \setuphead [section] [aligntitle=yes] \showframe [text] [text] \starttext \startnarrower[left] \startsection[title

[NTG-context] Footnotes and endnotes

2018-11-17 Thread Axel Kielhorn
={(},right={)}] % How to style the footnotemark in the text? \setupnotation[endnote] [left={(},right={)}] \startsection[ reference=fußnoten, title={Fußnoten} ] \index{Fußnoten} \input ward\footnote{Eine normale Fußnote. Mit etwas Text, damit die Seite voll wird. \input ward} \input

Re: [NTG-context] German introduction to context

2018-11-06 Thread Jan U. Hasecke
Hi Axel, thanks a lot for this introduction. Am 02.11.18 um 10:07 schrieb Axel Kielhorn: > Hello! > > As promised I’ve uploaded my ConTeXt introduction to github. > You can find it at > https://github.com/AKielhorn/Context-Intro > > I used MkIV syntax for \startsection

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn
> Am 02.11.2018 um 12:28 schrieb Hans Hagen : > > On 11/2/2018 10:07 AM, Axel Kielhorn wrote: >> Hello! >> As promised I’ve uploaded my ConTeXt introduction to github. >> You can find it at >> https://github.com/AKielhorn/Context-Intro >> I used MkI

Re: [NTG-context] German introduction to context

2018-11-02 Thread Hans Hagen
On 11/2/2018 10:07 AM, Axel Kielhorn wrote: Hello! As promised I’ve uploaded my ConTeXt introduction to github. You can find it at https://github.com/AKielhorn/Context-Intro I used MkIV syntax for \startsection \stopsection but gave up on \startparagraph \stoparagraph. Is there a way to auto

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn
Hello! As promised I’ve uploaded my ConTeXt introduction to github. You can find it at https://github.com/AKielhorn/Context-Intro I used MkIV syntax for \startsection \stopsection but gave up on \startparagraph \stoparagraph. Is there a way to auto convert that or do I have to add

[NTG-context] Reset bibliography numbering

2018-10-24 Thread Martin Hasoň
][bib.buffer] \starttext \startsection[title=Section 1] \cite[a] \placelistofpublications \stopsection \startsection[title=Section 2] \cite[b] \cite[a] \cite[c] \placelistofpublications \stopsection \stoptext Actual output: Section 1 [1] 1 bib a Section 2 [2] [1] [3] 2 bib b 1 bib

[NTG-context] tagged elements in tables (TABLE, tabulate, xtable)

2018-09-29 Thread Rik Kabel
dolor sit amet, \ldots} \startbuffer[Demo] \startelement[Block] \startelement[Text] \DummyText \DummyText \DummyText \DummyText \stopelement \stopelement \stopbuffer \starttext \startchapter[title={One}] \startsection[title={OneDotOne}] \bTABLE

[NTG-context] prevent page break when using blocks

2018-09-27 Thread Jan Willem Flamma
Answer 3 \item Answer 4 \item Answer 5 \stopitemize \stopquestion \endquestion \beginanswer \startanswer B \stopanswer \endanswer \stopbuffer \dorecurse{30}{\getbuffer[question]} \startsection[title=Questions] \useblocks[question][criterium=chapter] \page \startsubsubsection[title=Answers

[NTG-context] Why do I have to enclose \rawcounter in braces in this MWE ?

2018-09-25 Thread Damien Thiriet
}] \startsection[title={Un premier chapitre}] voilà \stopsection \startsubsection[title={Un deuxième}] tak jest. \stopsubsection \stoptitle \stoptext Thanks, Damien Thiriet ___ If your question

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread mf
tags that should be > > processed, > > so just stripping it clean will not do. > > > > (this is not about \section as such, I just needed an example. > > \startsection > > would be more modern, but it would not help fix the issue ) > > it actually depends on

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread Hans Hagen
e The subtree in ’t’ could have embedded xml tags that should be processed, so just stripping it clean will not do. (this is not about \section as such, I just needed an example. \startsection would be more modern, but it would not help fix the issue ) it actually depends on what you do ... anyway

[NTG-context] xml in lua advice ?

2018-09-19 Thread Taco Hoekwater
xml tags that should be processed, so just stripping it clean will not do. (this is not about \section as such, I just needed an example. \startsection would be more modern, but it would not help fix the issue ) Thanks

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
xsegments=chapter, >> prefix=yes] >>\beginquestion >> \startquestion >> Calculate the hydrostatic pressure of the following fluid. >> \starttabulate[|lw(6cm)|lw(3cm)|\doifmode{BL}{p|}] >> \NC Well depth \NC 10100 ft

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
10100 ft\doifmode{BL}{\NC 3100 m} \NC \NR \NC Fluid density\NC 9.0 ppg \doifmode{BL}{\NC 1.08 kg/l} \NC \NR \stoptabulate \stopquestion \endquestion \beginanswer \startanswer 4726 psi\doifmode{BL}{ / 328 bar} \stopanswer \endanswer \startsection[title

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
}{\NC 1.08 kg/l} \NC \NR \stoptabulate \stopquestion \endquestion \beginanswer \startanswer 4726 psi\doifmode{BL}{ / 328 bar} \stopanswer \endanswer \startsection[title=Questions] \useblocks[question] \startsubsubsection[title=Answers] \useblocks[answer

Re: [NTG-context] How to cite online websites (reloaded)

2018-09-03 Thread cryo shock
ps] > > \setupbtxlist[aps][ > > %alternative=, > > width=fit, > > distance=.5em, > > %distance=0pt, > > margin=0em, > > ] > > > > \starttext > > Hallo Welt! \cite[lnkHWelt] > > > > \startappendices > >

  1   2   3   4   5   6   >