The code below seems ok in \startsection[title=] but not when I program the
parameter collection with \def\setupparameters{\getparameters[prefix]}
In that case even [title={enclosed value}] crashes with error message: Use of
\doMacro doesn't match its definition.
Obviously I am missing something
@ub.unibe.ch schrieb am 05.06.2021 um 08:16:
>> \startsection[title={A very \\ long title},list={A very long title}]
>
> Be careful with spaces before and after \\. In the table of contents \\ is
> converted to a space and in the worst case you get three spaces instead of
> one.
>
denis.ma...@ub.unibe.ch schrieb am 05.06.2021 um 08:16:
\startsection[title={A very \\ long title},list={A very long title}]
Be careful with spaces before and after \\. In the table of contents \\
is converted to a space and in the worst case you get three spaces
instead of one.
\starttext
Thank you so much! That was awesome!
That was the missing puzzle piece: the book is now perfect!
writes:
> \startsection[title={A very \\ long title},list={A very long title}]
>
> Von: ntg-context im Auftrag von Sandra Snan
>
> Gesen
\startsection[title={A very \\ long title},list={A very long title}]
Von: ntg-context im Auftrag von Sandra Snan
Gesendet: Samstag, 5. Juni 2021 07:59:33
An: ntg-context@ntg.nl
Betreff: [NTG-context] where to break a long header
I had an unsually long
On Thu, 03 Jun 2021 14:17:15 -0600, Wolfgang Schuster
wrote:
\setupnote
[footnote]
[location=none]
That did the trick; many thanks!
==
\setupnote
[footnote]
[location=none]
\starttext
\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
=bychapter]
\starttext
\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopsection
\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\placelist[section][criterium=text]
\blank[3*big]
\placeregister[index][criterium=text]
\page
\startsection[title=Alpha] first \index{first}
\startsection[title=Beta] second \index{second}
\startsection[title=Gamma] third \index{third}
\startsection[title=Delta] fourth \index
gt; \starttext
> > \setupcaption[figure][way=bytext,prefixsegments=1:*]
> > \setupformulas[way=bytext,prefixsegments=1:*]
> > \startsection[title=Section]
> > \startsubsection[title=SubSection]
> > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
>
,prefixsegments=1:*]
\setupformulas[way=bytext,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
,prefixsegments=1:*]
\startsection[title=Section]
\startsubsection[title=SubSection]
\startplacefigure[list=cow] \externalfigure[cow] \stopplacefigure
\startplaceformula[reference=eq1] \startformula c^2 = a^2 + b^2
\stopformula \stopplaceformula
\stopsubsection
\stopsection
\placelistoffigures[criterium=all
]
\startchapter[title={Bryson and Tufte}]
\dorecurse{5}{
\startsection[title={Bryson}] \input{bryson} \stopsection
\startsection[title={Tufte}] \input{tufte} \stopsection}
\stopchapter
\startchapter[title={Zapf and Ward}]
\dorecurse{5}{
\startsection[title={Zapf}] \input{zapf} \stopsection
]
\startchapter[title={Bryson and Tufte}]
\dorecurse{5}{
\startsection[title={Bryson}] \input{bryson} \stopsection
\startsection[title={Tufte}] \input{tufte} \stopsection}
\stopchapter
\startchapter[title={Zapf and Ward}]
\dorecurse{5}{
\startsection[title={Zapf}] \input{zapf} \stopsection
nd doesn’t affect others, but I like to streamline my workflows...
>> (4) subprocess parameters
>>
>> I’d like to forward some parameters from \starttikz to the temp buffer, e.g.
>> \starttikz[name=example][mystyle=thick]
>> (using the same syntax as \startsection
nd the concern. How do you plan to use a `name=value`
option?
> (4) subprocess parameters
>
> I’d like to forward some parameters from \starttikz to the temp buffer, e.g.
> \starttikz[name=example][mystyle=thick]
> (using the same syntax as \startsection with a second pai
TNAME/example_##.tmp".
Is there a configuration hook in the module to change name generation?
(4) subprocess parameters
I’d like to forward some parameters from \starttikz to the temp buffer, e.g.
\starttikz[name=example][mystyle=thick]
(using the same syntax as \startsection with a second pa
On Sun, 17 Jan 2021 at 21:27, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:
> > Do you know how to force expansion of userdata?
>
> You can drop "expansion=yes" when you use
>
> \normalexpanded{\startsection[..,..=..,..][..,..=..,..]}
&
know how to force expansion of userdata?
You can drop "expansion=yes" when you use
\normalexpanded{\startsection[..,..=..,..][..,..=..,..]}
Wolfgang
___
If your question is of interest to others as well, p
:section
\startsection[title=\xmlatt{#1}{title}]
[usertitle=\xmlatt{#1}{title}]
\stopsection
\stopxmlsetups
\starttext
\placelist[section]
\xmlprocessbuffer{xml:name}{doc}{}
\stoptext
xml-one-file-head-toc.tex
Description: Bin
]
\startsection [title=Some Section]
\samplefile{knuth}
\stopsection
\stopchapter
\stoppart
\stoptext
And the string “Section 1 Mypart” shows up there.
Below is exactly what I have in my preamble. Note that I have also
included \setuphead [section] which is the true 'section
head
[chapter]
[sectionsegments=chapter]
\setuphead
[section]
[sectionsegments=chapter:section]
\starttext
\startpart [title=Mypart]
\startchapter [title=Some Chapter]
\startsection [title=Some Section]
\samplefile{knuth}
\stopsection
\stopchapter
\stoppart
\stoptext
ntitled.tex: ! Undefined control sequence
>>>
>>> \pgfplots@environment@polaraxis@ [#1]->\begin
>>> {axis}[#1,data cs=polar,axis
>>> type=polar]
>>> l.18\startpolaraxis[]
>>>
&
{axis}[#1,data cs=polar,axis
> > type=polar]
> > l.18\startpolaraxis[]
> >
> > 16 \startsection[title={Polar Plot}]
> > 17 \starttikzpicture % tikz code
> > 18 >> \st
\startpolaraxis[]
>
> 16 \startsection[title={Polar Plot}]
> 17\starttikzpicture % tikz code
> 18 >> \startpolaraxis[]
> 19
> \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)};
> 20
Hi,
In the annotation module, is it possible to automatically set the value of the
`list` key to be the same as the value of `title` key (as is the case with
\startsection, for example).
Here is a non-working example:
\usemodule[annotation]
\defineannotation[test][alternative=paragraph
>>> Did you enable interactions? \setupinteractions[state=start]
>>>
>>> But when I recently tried to manually set some bookmarks instead of visible
>>> chapter titles, I also didn’t get any; didn’t investigate further yet.
> there are some examples
bookmarks when you use \startsection etc an dalso add
them any place to named lists.
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
ack.
Giulio B.
234 \startsection[title={A more detailed view}]
235
236 As we know, a decent portion of \TEX's attention is focused on
breaking
237 paragraphs into lines and determining the optimal point to split
off the page.
238 Trying to locate the optimal points to break li
this?
\setuphead
[section]
[after=\blackrule] %% works as desired when commenting this one out
\starttext
\startsection [title=Foo]
\samplefile{knuth}
\stopsection
\startsection [title=Bar]
\framed[height=15cm]{}
\samplefile{knuth}
\stopsection
\stoptext
Marco
ector{#1}{#2}}
39 %D \placeregister[index][criterium=text]
40 %D \page
41 %D \startsection[title=Alpha] first \index{first} \stopsection
42 %D \startsection[title=Beta] second \index{second} \stopsection
43 %D \startsection[title=Gamma] third
amepage]\hskip 0pt}]
> > \starttext
> > \showframe
> > \dorecurse{50}{a }
> > \startsection[title=spec]
> > \startxtable
>
>
> What happens when you \hskip is that you switch to horizontal
> mode and the preferred to do this is to use
Sylvain Hubert schrieb am 10.11.2020 um 19:11:
Weirdly enough, "\hskip 0pt" solves the problem.
\setuphead[section][after={\blank[samepage]\hskip 0pt}]
\starttext
\showframe
\dorecurse{50}{a }
\startsection[title=spec]
\startxtable
What happens when
s at the top of the page:
> >
> > \starttext
> > \showframe
> > \dorecurse{50}{a }
> > \startsection[title=spec][before={\blank[preference,big]},
> > after={\blank[samepage,big]}]
>
> Your settings in the second argument of \startsection make no sense
&
Sylvain Hubert schrieb am 10.11.2020 um 18:06:
Thanks for the suggestion, but as illustrated by the second example,
copied here, where the section title is at the top of the page:
\starttext
\showframe
\dorecurse{50}{a }
\startsection[title=spec][before={\blank[preference
testpage[4]\blank[2*big]}]
>
> Wolfgang
>
Hi Wolfgang,
Thanks for the suggestion, but as illustrated by the second example, copied
here, where the section title is at the top of the page:
\starttext
\showframe
\dorecurse{50}{a }
\startsection[title=spec][before={\blank[preferenc
On Tue, 10 Nov 2020 at 17:37, Pablo Rodriguez wrote:
> On 11/10/20 5:23 PM, Sylvain Hubert wrote:
> > My mistake, but the problem survives the fix:
> >
> > \setuphead[section][after={\blank[samepage,big]}]
> > \starttext
> > \showframe
> > \
On 11/10/20 5:23 PM, Sylvain Hubert wrote:
> My mistake, but the problem survives the fix:
>
> \setuphead[section][after={\blank[samepage,big]}]
> \starttext
> \showframe
> \dorecurse{50}{a }
> \startsection[title=spec]
> \startxtable
Hi Sylvain,
My mistake, but the problem survives the fix:
\setuphead[section][after={\blank[samepage,big]}]
\starttext
\showframe
\dorecurse{50}{a }
\startsection[title=spec]
\startxtable
\startxrow
\startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell
\stopxrow
eed brings the
solution closer and it does format the previous example correctly.
However, when I went back to the original document, neither
[before={\blank[preference, big]}] nor [after={\blank[samepage, big]}] nor
both worked. I trimmed it into the following example which behaves the same:
b c}
> >
> > The naive way doesn't work because it makes all the spaces collapse:
> >
> > \define[1]\same{#1}
>
>
> \definetype [typeTEX] [option=tex]
>
> \starttext
>
> \type{
:
\define[1]\same{#1}
\definetype [typeTEX] [option=tex]
\starttext
\type{\startsection[title=\tex{type}]}
\typeTEX{\startsection[title=\tex{typeTEX}]}
\stoptext
Wolfgang
___
If your question is of interest to others
Sylvain Hubert schrieb am 07.11.2020 um 22:42:
The motivation of using \section was to avoid \stopsection, but I just
found out that \stopsection is not really necessary.
Now I would like to ask whether there is any difference between
\section{Title} and \startsection[title=Title].
You get
The motivation of using \section was to avoid \stopsection, but I just
found out that \stopsection is not really necessary.
Now I would like to ask whether there is any difference between
\section{Title} and \startsection[title=Title].
Thanks.
On Sat, 7 Nov 2020 at 22:33, Sylvain Hubert wrote
Dear List,
it is known that we can supply additional userdata like authors to
\startsection:
\startsection[title=Title][author=Someone]
so that the author can be included in the table of contents using
\structurelistuservariable{author}.
Now I would like to do the same with \section
Sylvain Hubert schrieb am 07.11.2020 um 20:32:
Dear List,
I have sections tagged with authors:
\startsection[title={Title}][author={Author}] ... \stopsection
The authors were to be included in the table of contents using
\structurelistuservariable{author}. Now I would also like
Dear List,
I have sections tagged with authors:
\startsection[title={Title}][author={Author}] ... \stopsection
The authors were to be included in the table of contents using
\structurelistuservariable{author}. Now I would also like to mention the
authors inside the sections
}{%
\startchapter[title={\recurselevel}]
\dorecurse{5}{%
\startsection[title={\fakewords{3}{5}}]
\startcolor[white] a \stopcolor
\index{Something}\index{A\recurselevel}
}
\stopchapter
}
\completeindex
\stoptext
Best regards: OK
> On 31 Oct 2020, at 17:56, Henning Hraban Ramm wrote:
>
>
didn’t help.
The MWE shows that index entries in empty sections are ignored, i.e.
“Something” is supposedly only on p.6:
\usemodule[visual]
\starttext
\dorecurse{5}{%
\startchapter[title={\recurselevel}]
\dorecurse{5}{%
\startsection[title={\fakewords{3}{5}}]
\index{Something}\index
as {\em Dictionnaire des Philosophes Antiques} edited
in 5 volumes under the direction of Richard Goulet
(\cite[alternative=entry][philosophie moderne::goulet1994]).
\stopchapter
% Bibliography
\starttext
\startbackmatter
\startchapter[title={Bibliographie}]
\startsection[title
hanks in advance for any hint.
# >
# >Best wishes,
# >
# >Tomáš
# >
# >MWE (TL2020):
# >\starttext
# >\define\name{aa} \startsection[title=\name,list=\name] \stopsection
# >\define\name{bb} \startsection[title=\name,list=\name] \stopsection
# >\completecontent
# >
placelist[section] % this doesn’t work
\def\name{aa}
\placelist[section]
\startsection[title=\name, list=\expanded\name] \stopsection
\def\name{bb}
\startsection[title=\name, list=\expanded\name] \stopsection
\completecontent
\stoptext
discussed by I am not able to find any solution how to send the text
"aa" to the content in this case.
Thanks in advance for any hint.
Best wishes,
Tomáš
MWE (TL2020):
\starttext
\define\name{aa} \startsection[title=\name,list=\name] \stopsection
\define\name{bb} \startsection[title=\name,
how to
send the text "aa" to the content in this case.
Thanks in advance for any hint.
Best wishes,
Tomáš
MWE (TL2020):
\starttext
\define\name{aa} \startsection[title=\name,list=\name] \stopsection
\define\name{bb} \startsection[title=\name,list=\name] \stopsection
\completecontent
plus][h=606ABD]
>
> \definecolor[A4plus][h=FFC700]
>
> \definecolor[A5plus][h=D0202B]
>
> \definecolor[A6plus][h=EF8600]
>
> \definecolor[A7plus][h=0082AA]
>
>
> \setupcolors[textcolor=A1plus]
>
>
> \usemodule[tikz]
>
>
>
> \starttext
>
=FFC700]
\definecolor[A5plus][h=D0202B]
\definecolor[A6plus][h=EF8600]
\definecolor[A7plus][h=0082AA]
\setupcolors[textcolor=A1plus]
\usemodule[tikz]
\starttext
\startchapter[title={Colour test}, ref=colourtest]
\startsection[title={Section}]
\starttikzpicture
\draw[text=A6plus] (0,0
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
\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
]
\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
===\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
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
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
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
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
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
=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
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
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
[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
,
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
t;
> \startsetups [section:end]
> \ifodd\namedheadnumber{section}
> \directsetup{section:odd}
> \else
> \directsetup{section:even}
> \fi
> \stopsetups
>
> \setuphead
> [section]
> [aftersection=\directsetup{section:end}]
>
> \starttext
&g
[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
}
\stopsection%
}
\stopsetups
\starttext
\startsection[title=Ward]
\setuppagenumbering[conversion=romannumerals]
\input ward
\stopmysection
\startsection[title=Knuth
ments=subsection,conversion=n]
> > \starttext
> > \startchapter[title=Dummy chapter]
> > \startsection[title=Dummy section]
> > \startsubsection[title=Dummy subsection]
> > \input knuth
> > \stopsubsection
> > \stopsection
> > \stopchapter
> >
[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
,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
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
> 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
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
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
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
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
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
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
[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
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
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=
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
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
]
#
# \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=),
#stopper=]
#
#
#
#
#
#\starttext
#
#
#
#\startsection{First Section}
#
#
#
#\startmdshw
#
# \item Choose the correct answer.
#
# \startmdshw
#
# \item This one
]
\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
]
\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
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
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
]
\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
\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
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
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
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
\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
101 - 200 of 686 matches
Mail list logo