Hi
Den ons 13 aug. 2025 20:13Matthias Weber skrev:
> Follow-up: The 66 complaints come from \startsection .. \stopsection pairs
> (and \startsubsection .. \stopsubsection).
> Adding just one of them increases the number of complaints by two.
>
> Instead of your
>
> \se
025, at 2:03 PM, Matthias Weber wrote:
>
> Follow-up: The 66 complaints come from \startsection .. \stopsection pairs
> (and \startsubsection .. \stopsubsection).
> Adding just one of them increases the number of complaints by two.
>
> Instead of your
>
> \setuph
Follow-up: The 66 complaints come from \startsection .. \stopsection pairs (and
\startsubsection .. \stopsubsection).
Adding just one of them increases the number of complaints by two.
Instead of your
\setupheads
[section,subsection]
[color=darkred]
\setuphead
[section]
[style=\bfb
[section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection]
[numberconversionset=mysectionnumbersforlist]
\starttext
\placecontent
\startsection [title={Section}]
\startsubsection [title={SubSection}]
\startsubsubsection [title={SubSubSection}]
\startsubsub
\define[9]\event{% \staged{#9}
\startsubsection[title={\recurselevel.\getvalue{activitynumber}~~~#9},
reference={activity_\activitynumber_\recurselevel}]% \activitytype{#9}%
#2% \doifsomething{#4}{%\FrameTitle{\strut \bf Suggested
Materials
> style=\tfx,
> > ]
> > \setuplist[subsection][
> > aligntitle=yes,
> > style=\tfxx,
> > after={\blank[none]},
> > before={\blank[none]},
> > ]
> >
> > \starttext
> >
> > \placecontent
> >
rline
\startchapter[title=foo]
\startsection[title=foo]
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\stopsection
\startsection[title=foo]
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubse
t; ]
> \setuplist[subsection][
> aligntitle=yes,
> style=\tfxx,
> after={\blank[none]},
> before={\blank[none]},
> ]
>
> \starttext
>
> \placecontent
>
> \hairline
>
> \startchapter[title=foo]
> \startsection[title=foo]
> \s
,
style=\tfxx,
after={\blank[none]},
before={\blank[none]},
]
\starttext
\placecontent
\hairline
\startchapter[title=foo]
\startsection[title=foo]
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
\startsubsection[title=foo]
\stopsubsection
npath] % <=== WITHOUT \startsubsection
#2
%\startsubsection[title={Title for section #1}]
\MySubSectionCommand{1}{Title for section #1}
\input knuth \endgraf \input ward
%\stopsubsection
\stopshapetext
\setlayer
[testA]
[hoffset={\the\dimexpr\backspace\relax},
voffset={\the\dimexpr\
ctoria
posible.
%%% trying to get cormorant working...
\startsubsection[title=Organización de carpetas]
{\switchtobodyfont[miCorm] {\tfc la fuente Cormorant no funciona}}
\stopsubsection
Las carpetas aparecen nombradas {\ss por idioma}, nivel y set de pruebas, no
apareciendo ninguna referencia a c
e/mkiv/grph-chk.lua:112: in
function <...-10/tex/texmf-context/tex/context/base/mkiv/grph-chk.lua:97>
...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1680: in
function <...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1665>
(...tail calls...)
\startsection[title={Palabras clave}] #2 \stopsection
\start
\language[en]
\startsection[title={Abstract}] #3 \stopsection
\startsection[title={Keywords}] #4 \stopsection
\stop
\startsection[title={¿Cómo citar este capítulo? / How to cite this book?}]
\startsubsection[title={Apa}] #5
\language[en]
\startsection[title={Abstract}] #3 \stopsection
\startsection[title={Keywords}] #4 \stopsection
\stop
\startsection[title={¿Cómo citar este capítulo? / How to cite this book?}]
\startsubsection[title={Apa}] #5 \stopsubsection
\startsubsection[title={Chicago}] #6
ad [section]
[color=darkred,style=\tfc,inbetween={\mono{\CheckC}}]
\setuphead [subsection] [inbetween=]
\starttext
\startsection[title=Section A]
Text of section A.
\startsubsection[title=SubSection A.A]
Text of subsection A.A
\stopsubsection
\stopsection
}]
\startsubsection [title={C}] \stopsubsection
\startsubsection [title={D}] \stopsubsection
\startsubsection [title={E}] \stopsubsection
\stopsection
\startsection [title={F}]
\startsubsection [title={G}] \stopsubsection
\startsubsection [title={H}] \stopsubsection
\startsubsection [title={I
]
[sectionset=reverse-subsection]
\starttext
\startchapter [title={A}]
\startsection [title={B}]
\startsubsection [title={C}] \stopsubsection
\startsubsection [title={D}] \stopsubsection
\startsubsection [title={E}] \stopsubsection
\stopsection
\startsection [title={F}]
\startsubsection [title={G
s=section:subsection, stopper={.}]
>
> % found in https://wiki.contextgarden.net/Titles
>
> > \starttext
> >
> > \startsection[title=New section]
> > \input knuth
> > \startsubsection[title=New subsection]
> > \input ward
> > \stopsubsection
>
][sectionsegments=section:subsection, stopper={.}]
% found in https://wiki.contextgarden.net/Titles
\starttext
\startsection[title=New section]
\input knuth
\startsubsection[title=New subsection]
\input ward
\stopsubsection
\stopsection
\stoptext
Hraban
[subsection][conversion=n,
sectionsegements=section:subsection, stopper={.}]
\starttext
\startsection[title=New section]
\input knuth
\startsubsection[title=New subsection]
\input ward
\stopsubsection
\stopsection
\stoptext
that \leavevmode?
\startsubsection[title=TEST]
\hbox{abc} def\crlf
ghi jkl xyz
\stopsubsection
first of all, context never uses (and used) \leavevmode and that is for
a good reason
anyway, adding any mode change command automatically will somehow
interfere,
\starttext
\def\MyTitle#1{\blank{
implicite switch
to horizontal mode.
I can imagine that this behaviour could be confusing for users not well versed
in the different behaviour of the horizontal and vertical modes.
Therefore my question: Wouldn't it be wise to implement that \leavevmode?
\startsubsection[title=TEST]
\hbox{abc
gt; > \starttext
> > \setupcaption[figure][way=bytext,prefixsegments=1:*]
> > \setupformulas[way=bytext,prefixsegments=1:*]
> > \startsection[title=Section]
> > \startsubsection[title=SubSection]
> > \startplacefigure[list=cow] \externalfigure[cow] \stopplacefigur
,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
,
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
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
section]
\startsubsection[title=Dummy subsection]
\input knuth
\stopsubsection
\stopsection
\stopchapter
\stoptext
The log says:
\endgroup
\22>:157>:middle ...headshownumber \strut \headnumbercontent \par \else
\fakeheadnumbercontent \fi \begstrut \headtextcontent
\en
[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
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
ction}]
\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 eu
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}
}]
\startsubsection[title={Subsection}]
\startsubsubsection[title={First Subsubsection}]
\startsubsubsubsection[title={Foo}, reference=foo]
\stopsubsubsubsection
\startsubsubsection[title={Second subsubsection}]
\startsubsubsubsection[title={Bar}, reference
ction]
\setuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection]
\setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection]
\def\startA{\startchapter}
\def\stopA{\stopchapter}
\def\startI{\startsection}
\def\stopI{\stopsection}
\def\start
on]
\setuphead[subsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsection]
\setuphead[subsubsubsubsubsubsubsection][sectionsegments=subsubsubsubsubsubsubsection]
\def\startA{\startchapter}
\def\stopA{\stopchapter}
\def\startI{\startsection}
\def\stopI{\stopsection}
\def\startS{\startsubsection}
ection[title=List of Tables]
\placelistoftables
\stopsection
\startsection[title=List of Symbols]
\placelistofsymbols
\stopsection
\stopfrontmatter
\startbodymatter
\startsection[title=Symbols]
\startsubsection[title=Using the Symbols]
\placeformula
\startsubformulas
\startformula
\startalign
\NC \frac{d
rking[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]
\startsubse
[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
.}
\startsubsection[title={Endnoten}]
\placenotes[endnote]
\placenotes[commentnote]
\stopsubsection
\stopsection
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki
}]
\startsection[title={Un premier chapitre}]
voilà
\stopsection
\startsubsection[title={Un deuxième}]
tak jest.
\stopsubsection
\stoptitle
\stoptext
Thanks,
Damien Thiriet
___
If your question is of
[structure]
> [n, R, n, n, n]
>
> \definestructureconversionset
> [digits]
> [n, n, n, n, n]
>
> \setupheads[sectionconversionset=structure]
>
> \setuplist[chapter][style=bold,width=5mm]
>
> \starttext
>
> \starttitle[title={\bf So
\stoptitle
\startchapter[title=First chapter]
\startsection[title=Fist section]
\startsubsection[title=First subsection]
\dorecurse{10}{\fakewords{120}{120}\par}
\stopsubsection
\stopsection
\stopchapter
\startchapter[title=Second chapter]
\startsection[title=Second section]
\startsubsection[ti
\starttitle[title={Sommaire}]
\start
\placelist
[chapter,section,subsection]
[criterium=all,
alternative=c]
\stop
\stoptitle
\startchapter[title=Espaces probabilisés]
\startsubsection[title=Expérience aléato
t=OLIE]
% \setupreferencestructureprefix [chapter] [default]
% [prefixstopper=\zerowidthspace,
% numberconversionset=OLIE]
\setupwhitespace[big]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
S
rttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}
See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopc
hspace,
% numberconversionset=OLIE]
\setupwhitespace[big]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={refe
{First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}
See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter
\startchapter[title={
] [default]
[prefixstopper=\zerowidthspace]
\setupwhitespace[big]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}
See \in{Footnote}[footnote2
]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}
See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter
={}]
\startsubsection[title={},reference={reference1}]
\input ward
See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter
\startchapter[title={Second}]
\startsubsection[title={},reference={reference3
t},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter
\startchapter[title={Second}]
\startsubsection[title={},reference
ctionstopper=.,
criterium=local]
\setupwhitespace[big]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
=text]
\setuphead[subsection][distance=0em,
textdistance=0.7em,
sectionstopper=.,
criterium=local]
\setupwhitespace[big]
\starttext
\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input
ni 2018 um 04:45
Dear gang,
Here's an interesting one, attached and below:
===
\setuphead[chapter] [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]
\starttext
\startchapter[title={First},reference
\starttext
\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsubsection
\stopchapter
\startchapter[title={Second},reference={}]
\startsubsection%[title={}]
\input ward
\stopsubsection
\startsubsec
ve=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]
\starttext
\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\stopsu
tive=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]
\starttext
\startchapter[title={First},reference={}]
\startsubsection%[title={First}]
\input ward
\stopsubsection
\startsubsection%[title={Second}]
\input ward
\sto
Dear gang,
Here's an interesting one, attached and below:
===
\setuphead[chapter] [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][criterium=local,distance=0em,sectionstopper=.]
\starttext
\startchapter[title={First},reference={}]
\startsubse
econtent[criterium=all]
\stopfrontmatter
\startbodymatter
\startchapter[title={The First Numerals Chapter}]
\startsection[title={The First Caps-Romannumerals Section}]
\input knuth
\startsubsection[title={The First characters Subsection}]
\input knuth
\stopsubsection
\stopsectio
=text,
criterium=all,
number=no,
textcommand=\subsubParagraphNumber,
insidesection=\hskip-0.49em] % adjust space after title
\setupwhitespace[line]
\starttext
\startsection[title={Text.}]
\input ward
\startsubsection
\input ward
\startsubsubsection[title={Text.}]
\input ward
}{%
\startsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph
\startsubsubsection{}
\startpar\input ward\stoppar
\stopsubsubsection
\dorecurse{2}{%
\startsubsection
\startpar\input ward\stoppar
\startparagraph\input ward\stopparagraph
\dorecurse
\stopsection
\startsection
\PARHEAD{Paragraph 2.} \input ward
\startparagraph
\input ward
\stopparagraph
\startsubsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsubsection
\stopsection
\startsection
\input ward
\startsubsubsection
\input ward
\stopsubsubsection
\stopsection
medium]},color=walayahred,alternative=text,distance=0.28em]
\starttext
\startsection[title=Section 1]
\startsubsection
\input ward
\stopsubsection
\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection
\startsubsection
\startparagraph
\input ward
\stopparagraph
\stopsubsection
\stops
][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em]
\starttext
\startsection[title=Section 1]
\startsubsection
\input ward
\stopsubsection
\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection
\startsubsection
\startparagraph
,alternative=text,distance=0.28em]
\starttext
\startsection[title=Section 1]
\startsubsection
\input ward
\stopsubsection
\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection
\startsubsection
\startparagraph
\input ward
\stopparagraph
\stopsubsection
\stopsection
\stoptext
==
See
]
\startsubsection
\input ward
\stopsubsection
\startsubsection[title=Paragraph 2]
\input ward
\stopsubsection
\startsubsection
\startparagraph
\input ward
\stopparagraph
\stopsubsection
\stopsection
\stoptext
==
See attached output.
In paragraphs 1 and 2, there is too much distance between
\dorecurse{5}{\placefigure{Eine andere Kuh}
> {\externalfigure[cow.pdf]}}
> \dorecurse{5}{\chapter{Kapitel}
> \placefigure{Noch eine andere Kuh}{\externalfigure[cow.pdf]}}
> \stoptext
>
> In general, please provide minimal samples of code that show your problem.
Was no
74, students with disabilities are participating in
higher education in increasing numbers (Madaus, 2011). Students
with psychiatric, learning, and cognitive impairment who once
considered college out of reach are taking the plunge. …
\stopparagraph
\startsubsection[titl
Have you tried:
On Sat, 1 Apr 2017 20:20:02 +0200
Pablo Rodriguez wrote:
> Tagging PDFs the way you seem to be trying might be impossible. Here
> is my sample:
>
> \setuppapersize[letter]
> \setuptagging[state=start]
> \starttext
> \startsubsection[t
rt]
\setuphead[subsection][style=\bf, number=no, commandafter={.~},
textdistance=0cm, alternative=text]
\starttext
\startsubsection[title=First Subsection]
\input knuth
\stopsubsection
\stoptext
>>> alternative=text is working, but \startparagraph is s
:deep, title=Deep Thoughts
\startparagraph
Oh Hum, its too windy to play out side, so perhaps I'll write a while...
\startsubsection[reference=first, title=First Subsection]
\startparagraph
\input knuth
\stopparagraph
\stopsubsection
\stopsection
\stoptext
First, add a cl
h Hum, its too windy to play out side, so perhaps I'll write a while...
\startsubsection[reference=first, title=First Subsection]
\startparagraph
\input knuth
\stopparagraph
\stopsubsection
\stopsection
the
whole first
page. Is it possible?
>However, you have to keep \setnostrut and \setstrut around the figure because
>the
>before and after keys for captions are not (yet) implemented.
It's fine, not a problem.
I guess I can use simply \subsection command instead of \st
\stoptexdefinition
\setupcaptions
[
width=fit,
align=last,
headstyle={\ss\bfx},
style={\ss\tfx},
before={\setnostrut},
textcommand=\getvalue{caption:text},
]
\starttext
\startsubsection[title={Subsection title}]
\input dawkins
\input dawkins
\setnostrut
;
> \starttext
>
> \setuphead
> [subsection]
> [
> sectionsegments=subsection:subsection,
> color=darkred,
> ]
>
> \startsubsection[title={Recherche d'une fonction sous contraintes}]
> \stopsubsection
>
> \stoptext
>
> On 07/27/2016 11:2
Hi Fabrice,
use \setuphead (see below).
Cheers, Henri
---
\starttext
\setuphead
[subsection]
[
sectionsegments=subsection:subsection,
color=darkred,
]
\startsubsection[title={Recherche d'une fonction sous contraintes}]
\stopsubsection
\stoptext
On 07/27/2016 11:24 AM, Fa
Hello,
With this
\startsubsection
[title={\darkred Recherche d'une fonction sous contraintes},
sectionsegments=subsection:subsection,
numbercommand={\darkred}]
it does not work.
Thanks
Fabrice
___
If
\startsection[title=First section]
\startsubsection[title=First subsection]
Lorem ipsum \dots
\stopsubsection
\startsubsection[title=second subsection]
Lorem ipsum \dots
\stopsubsection
\stopsection
\startsection[title=Second section]
\startsubsection[title=First
\startsection[
reference=sec:Two,
title={Section Two},
]
[a_variable={some value}]
a_variable=\quote{\structureuservariable{a_variable}}.
\startsubsection[
reference=sec:Two:Sec,
title={Here’s a subsection},
]
In this subsection there’s some text\ldots
\stopsubsection
\stopsection
\stoptext
but r
_variable={some value}]
a_variable=\quote{\structureuservariable{a_variable}}.
\startsubsection[
reference=sec:Two:Sec,
title={Here’s a subsection},
]
In this subsection there’s some text\ldots
\stopsubsection
\stopsection
\stoptext
but running it under Debian (Sid) gives:
[gour@atmar
topTEXpage
\setcounter[userpage][\pagenumber+1]
\startTEXpage
\startsubsection[title={My First Subsection}]
Contents
\stopsubsection
\stopTEXpage
\setcounter[userpage][\pagenumber+1]
\startTEXpage
\startsubsection[title={My Second Subsection}]
Contents
\stopsubsection
\stopTEXpage
\setcounte
artTEXpage
\startsection[title={My Section}]
\placecontent
\stopTEXpage
\setcounter[userpage][\pagenumber+1]
\startTEXpage
\startsubsection[title={My First Subsection}]
Contents
\stopsubsection
\stopTEXpage
\setcounter[userpage][\pagenumber+1]
\startTEXpage
\startsubsection[title={My Second Subsection}
This works only because ConTeXt has some sanity checks, so a new
\startsubsection will implicitly stop an un-stopped subsection. But
it is bad practice to count on this, for I am sure that there are some
situations where something might fail.
The \startXXX ... \stopXXX syntax is generally better
Thanks a lot, very concise. I was wondering if the \stopchapter (or more
generally \stop) were needed ? In my document I write in some instances:
\startsubsection
Bla bla
\startsubsection
etc ….
and it seems to work fine (but perhaps pure luck or is the \startsubsection
implictly
startsection,
\startsubsection, etc., control
the formatting of sections, subsections, etc.)
Now, as you see. these commands are user-defined commands with key-value
options. My
goal is to define the way they do the formatting with Lua. But I do not
know how to do. I
know a bit about programming, so lea
l the Bibles are divided into books, and each book into
chapters, and
each chapter into verses. The purpose of \startbiblebook,
\startbiblechapter, and \startbibleverse
is to control the formatting thereof respectively (as \startsection,
\startsubsection, etc., control
the formatting of sections,
and finds itself out (by the nesting of the command)
> if its behave
> as \startpart or \startchapter or \startsection or \startsubsection or
> \startsubsubsection …
You’re looking for the \startsectionlevel command.
%\definesectionlevels[default][part,chapter,section,subsection]
\starttext
\stopSameCommand
\stopSameCommand
\stoptext
___
The \startSameCommand finds itself out (by the nesting of the command)
if its behave
as \startpart or \startchapter or \startsection or \startsubsection or
\startsubsubsection ...
Harry
Am 28.05.2015 um 12:47 schrieb
Hi,
\setuphead[subsection][after={\blank[small]},]
\starttext
\startcolumns
\startmixedcolumns[balance=yes,]
\startsubsection[title=title,]
\startitemgroup[][packed][before=\empty]
\dorecurse{10}{\startitem item \#\recurselevel{}.\stopitem}
\stopitemgroup
,
]
\setupstartstop[RecipeInstructionGroup][
before={\startmixedcolumns[grid=strut,]},
]
\setupstartstop[RecipeIngredientGroup,RecipeInstructionGroup,][
after={\stopmixedcolumns},
]
\starttext
\startRecipeIngredientGroup
\startsubsection[title={Title},]
\startRecipeIngredients
\dorecurs
<---cut here---start->8---
\starttext
\startsection[title=sec][foo=bar]
% \edef\myFoo{\structureuservariable{foo}} % workaround
\startsubsection[title=sub 1]
sub 1
\stopsubsection
\startsubsection[title=sub 2]
sub 2
\stopsubsection
\par
foo is \structureuservariable{foo}.
Hi,
How can I read a structureuservariable at the end of the section, when
there are subsections? Example:
--8<---cut here---start->8---
\starttext
\startsection[title=sec][foo=bar]
% \edef\myFoo{\structureuservariable{foo}} % workaround
\startsubs
On Fri, 04 Oct 2013 16:53:58 +0200, Mari Voipio wrote:
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster wrote:
\startsection[ownnumber=123, title=A]
bla
\stopsubsection
?
That was a typo, I guess; it should have been:
\startsubsection[ownnumber=123,title=A]
bla
\stopsubsection
Lukas
[
title={Section},
reference=sec:chapter,
]
\placefigure[]{}{%
\externalfigure[sheep.jpg][
width=\textwidth,
]
}
\startsubsection[
title={Equipment},
reference=sec:equipment,]
\input knuth
\stopsubsection
\stopsection
\stopchapter\stopbodymatter
4
> Date: Tue, 16 Jul 2013 10:10:29 +0200
> From: Steffen Kram
> To: mailing list for ConTeXt users
> Subject: [NTG-context] PDF-Toc text is wrong for new \start? commands
> Message-ID: <6b6f3970-3477-4021-9312-b9408c70f...@kram.io>
> Content-Type: text/plain; charset=wind
A similar problem occurs, when using references:
\startsection[
title={my fancy section},
]
\startsubsection[title={first subsection}]
\in{see}[secsub]
\stopsubsection
\startsubsection[
title={second subsection},
reference=secsub
]
foo
\stopsubsection
\stopsection
the \in
]
\setuphead [sectionconversionset=myset]
\setuphead
[subsection]
[sectionsegments=subsection]
\starttext
\startsection [title=Foo]
\startsubsection [title=Bar, reference=bar]
\stopsubsection
\in{subsection}[bar]
\stopsection
\stoptext
1 - 100 of 114 matches
Mail list logo