]
\starttext
\startchapter[title={Start/Stop sectioning}]
\startsection[title={Okay with text first}]
Text here
\starttabulate
\FL \NC Knuth \NC \input{knuth} \NC\NR
\stoptabulate
\stopsection
\startsection[title={Okay
%setupwhitespace [fix]% okay
%% With non-zero interparagraph whitespace, the heading separates
%% from the text
\setupwhitespace [line]%bad
\starttext
\startchapter[title={Weisman}]
\input weisman\par
\input weisman
\startsection[title={Thuan
\StopSteps % -- Hack
\startsection[title=My frontmatter section] % -- Title displayed
(the hack is not needed for this first section block, but I also use it
here for symmetry with the next section blocks)
\StartSteps
\startitemize
\item my item\FlushStep
]
\starttext
\startfrontmatter
\startsection[title=My frontmatter section] % -- Title displayed:
fine.
\StartSteps
\startitemize
\item my item\FlushStep
\item my item\FlushStep
\item my item\FlushStep
\stopitemize
,
distance=0pt,
insidesection={\blank[overlay]}]
\define[2]\SectionCommand
{\inmargin{#1 – #2}}
\setuplayout[backspace=4cm]
\starttext
\startsection[title={First}]
\input ward
\stopsection
\startsection[title={Second}]
\startitemize
\item One
\item Two
\stopitemize
\stopsection
On 2014-04-19 04:55, Wolfgang Schuster wrote:
\setuphead
[section]
[alternative=text,
command=\SectionCommand,
distance=0pt,
insidesection={\blank[overlay]}]
\define[2]\SectionCommand
{\inmargin{#1 -- #2}}
\setuplayout[backspace=4cm]
\starttext
\startsection[title={First
Following up on a related whitespace problem with descriptions and
tables following in-margin headings --
I notice that \startsection behaves differently from \section when it
comes to following whitespace for in-margin headings. This example
demonstrates this:
\setuplayout [backspace
and copyright notice goes here.
\setupcombinedlist[content][list={chapter,section,subsection}]
\completecontent
\page[empty]
\setuppagenumbering[state=start,alternative=doublesided,location=footer]
\startsection[title={Knuth}]
\input knuth\par
\stopsection
\page
\startsection[title={Zapf
Hi,
The second page of the following document has overlapping text in the
second column (this has been as minimal as I can get):
\setuphead[section][before={\testcolumn[4]},]
\starttext
\startmixedcolumns[align=right, balance=yes, grid=strut,]
\dorecurse{5}{
\startsection
\startitemize
}]
\startsection[title={Section One}]
\input tufte
\stopsection
\startsection[title={Section Two}]
\input knuth
\stopsection
\stopchapter
\stoptext
———
gives
———
?xml version='1.0' encoding='UTF-8' standalone='yes' ?
!-- input filename : solo --
!-- processing date : Wed Mar 12 10:10:20
},
before={\blank}, after={},
interlinespace=12pt
]
% dummy section with long, red title
\def\Section{
\startsection[title={\definecolor[fakerulecolor][red]\fakewords{5}{20}\definecolor[fakerulecolor][black]}]
\fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par
\stopsection
,nothyphenated},
tolerance=verytolerant,
grid=line
]
\definefont[SectionFont][Sans at 11pt] % fits within grid
\setuphead[section][
page=no, style={\SectionFont},
before={\blank\testpage[3]}, after={},
interlinespace=12pt
]
% dummy section with long, red title
\def\Section{
\startsection
,
pagecommand=\PageCommand,
distance=\zeropoint,
before={\startitemize[packed,nowhite]},
]
\setuphead[section][aftersection=\page,]
\starttext
\startsection[title={Maguro}]
Text
\PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Maguro}
\stopsection
\startsection
Hi again,
I got a few different problems related to my section headers.
I use \startsection[title={Something}] … \stopsection, but not \startparagraph,
in case that matters. (Latest MkIV beta on OSX.)
I need grid typesetting and use the same line spacing for body text and section
headers
={\testcolumn[3]},]
\defineitemgroup[Instructions][inbetween={\blank[.25em]},]
\starttext
\startmixedcolumns[
align=right,
balance=yes,
grid=strut,
]
\dorecurse{5}{
\startsection[title={Section},]
\startInstructions
\item{Preheat the oven to 400°F}\item{Put a few cups of salt in a
gratin
[TOC]
[renderingsetup=list:TOC]
% Format the ToC style.
\setupcombinedlist[content][
alternative=TOC,
]
\starttext
\completecontent
\startchapter [title=alpha] \stopchapter
\startsection[title=alphasec] \stopsection
\startchapter
.
\setupcombinedlist[content][
alternative=TOC,
]
\starttext
\completecontent
\startchapter [title=alpha] \stopchapter
\startsection[title=alphasec] \stopsection
\startchapter [title=beta] \stopchapter
\startsection[title=alphasec] \stopsection
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
\startsubsection
---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
that sorted out, I can try applying the lessons
learned to my own documents.
ConTeXt provides two types of exports. The first is an XML export.
Consider a sample file:
~~~ {test.tex}
\setupbackend[export=yes]
\starttext
\startsection[title={This is a test}]
\startparagraph
Some random text
... It works perfectly, thanks!
Lukas
On Tue, 05 Nov 2013 23:31:25 +0100, Wolfgang Schuster
wolfgang.schus...@gmail.com wrote:
Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz:
Hello,
I noticed now that:
\starttext
\startsection[ownnumber=0
Hello,
I noticed now that:
\starttext
\startsection[ownnumber=0,title=A]
bla
\stopsection
\startsection[title=B]
bla
\stopsection
\stoptext
gives:
0 A
bla
2 B - 1 should be here instead of 2; automatically
bla
instead of:
0 A
bla
1 B
bla
So my
Am 05.11.2013 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz:
Hello,
I noticed now that:
\starttext
\startsection[ownnumber=0,title=A]
bla
\stopsection
\startsection[title=B]
bla
\stopsection
\stoptext
gives:
0 A
bla
2
of references
\starttext
\startsection [title=Test 1, reference=ref 1] \stopsection
\startsection [title=Test 2, reference={ref 2}]\stopsection
\startsection [title=Test 3, reference= {ref 3}] \stopsection
\startsection [title=Test 4, reference={ref 4
http://www.ntg.nl/pipermail/ntg-context/2013/072485.html
Wolfgang
Thanks Wolfgang, so I guess the key I was looking for is list. But see
what happens here:
\starttext
\completecontent
\startsection[
title={Eine sehr, sehr lange Überschrift, die auf jeden Fall
irgendeine Art von Formatierung
On Fri, 04 Oct 2013 16:53:58 +0200, Mari Voipio mari.voi...@iki.fi wrote:
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote:
\startsection[ownnumber=123, title=A]
bla
\stopsubsection
?
That was a typo, I guess; it should have been:
\startsubsection[ownnumber=123,title
On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
\subsection[ownnumber=0]{C}
Maybe \start/stop-subsection would be better for this case... But how?
Did you try this:
\starttext
\startsection[ownnumber=123, title=A]
bla
\stopsubsection
\stoptext
? ;)
--
Peter
On Fri, 04 Oct 2013 16:11:10 +0200, Peter Münster pmli...@free.fr wrote:
On Fri, Oct 04 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
\subsection[ownnumber=0]{C}
Maybe \start/stop-subsection would be better for this case... But how?
Did you try this:
\starttext
\startsection
On Fri, Oct 4, 2013 at 5:11 PM, Peter Münster pmli...@free.fr wrote:
\startsection[ownnumber=123, title=A]
bla
\stopsubsection
?
(They should be a pair, shouldn't they? Just in case somebody tries to
cut-and-paste the code...)
Mari
On Fri, Oct 04 2013, Mari Voipio wrote:
\startsection[ownnumber=123, title=A]
bla
\stopsubsection
(They should be a pair, shouldn't they?
Why should we bother? It just works... ;-))
--
Peter
Hi,
After using ownnumber=N, how can I continue incrementing the
sectionnumbers with (N + 1) please?
Example:
--8---cut here---start-8---
\starttext
\startsection[title=number 1] bla \stopsection
\startsection[title=number 5, ownnumber=5
Hi there,
two questions about formatting the TOC or the titles in the TOC:
1. How to formate the titles different in the text and in the TOC
respectively? I only mean line breaks.
E.g., see this minexample:
\starttext
\completecontent
\startsection[
title={Eine sehr, sehr lange
},
aftersection={\stopStyleColumns},]
\def\StylePageNumber#1{%
{\inframed[
frame=off,
background=color,
backgroundcolor=red,
width=2em,
height=2em,
]{#1}}}
\setuppagenumbering[location=inright,command=\StylePageNumber,]
\starttext\startchapter[title=Chapter]
\startsection[title
,low,high}]
\setupcaption[edgefigure][number=no]
\useexternalfigure[cow][./cow.pdf]
\starttext
\startsection[title={insight},reference=insight]
\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming
,none,low,high}]
\setupcaption[edgefigure][number=no]
\useexternalfigure[cow][./cow.pdf]
\starttext
\startsection[title={insight},reference=insight]
\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer Programming
a lot going on with section heading so having a copy of the same
is non trivial as one should decide what gets copied (think of all kind
of references).
Here's a cheat:
\starttext
\placelist[chapter][criterium=all]
\startchapter[ownnumber=1,title=chap 1] \startsection[title=sec
1]\input
if there is
a way to convert the \section command of the article files into
\subsection in the book.
Minimal not working (but supposed to explain my problem) example:
%%% article.tex
\startsection[title=A first point]
... \stopsection
\startsection[title=A second point]
... \stopsection
%%% book.tex
]
\definefloat[edgefigure][figure]
\setupfloat
[edgefigure]
[leftmargindistance=-\outercombitotal,
rightmargindistance=-\outercombitotal,
default={outer,none,low,high}]
\setupcaption[edgefigure][number=no]
\useexternalfigure[cow][./cow.pdf]
\starttext
\startsection[title={insight
},
location=global,
%wfactor=fit,]
\setuphead[section][
after={\startStyleColumns},
aftersection={\stopStyleColumns},]
\starttext
\startbodymatter
\setuppagenumbering[conversion=numbers]
\setcounter[userpage][1]
\startchapter[
title={Chapter},
reference=sec:chapter,
]
\startsection
in the book.
Minimal not working (but supposed to explain my problem) example:
%%% article.tex
\startsection[title=A first point]
... \stopsection
\startsection[title=A second point]
... \stopsection
%%% book.tex
% command to make the \section of the input articles become \subsection
% commands
of the article files into \subsection in the book.
Minimal not working (but supposed to explain my problem) example:
%%% article.tex
\startsection[title=A first point]
\stopsection
\startsection[title=A second point]
\stopsection
%%% book.tex
% command to make the \section of the input
={outer,none,low,high}]
\setupcaption[edgefigure][number=no]
\useexternalfigure[cow][./cow.pdf]
\starttext
\startsection[title={insight},reference=insight]
\placeedgefigure[][]{}{\framed[frame=off]{\externalfigure[cow][scale=150]}}
When the first volume of Donald Knuth's The Art of Computer
]
\starttext
\dorecurse{4}
{\startsection[title={Section #1}]
\dorecurse{3}{\input knuth \par}
\stopsection
\page}
\placeoverviewpage
\stoptext
___
If your question is of interest to others as well, please
=yes,alternative=c]
\startchapter[title={Introduction}]
\input knuth
\startsection[title={This is a section}]
\input ward
\stopsection
\startplacefigure[location=here,reference=,title={A1},group=,groupsuffix=.a]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure
Some text.
\startplacefigure
Hi all,
I just converted my thesis from the old \chapter format to the new
\startchapter … commands, to be more flexible when defining the titles for toc
etc. If you're just giving a title, e.g.
\startsection[
title={my fancy section}
]
bla
\stopsection
then the title is correctly
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
On Tue, Jul 16, 2013 at 10:10 AM, Steffen Kram s...@kram.io wrote:
Hi all,
I just converted my thesis from the old \chapter format to the new
\startchapter … commands, to be more flexible when defining the titles for
toc etc. If you're just giving a title, e.g.
\startsection[
title={my
Have you tried formatting it this way:
\startsection
[title={my fancy section}]
bla
\stopsection
Breaking before closing or after opening the square braces has always
given trouble to me.
Andrés Conrado Montoya
El Andi
andresconr...@gmail.com
http://chiquitico.org
is a modified version of the older code which uses the new MkIV
mechanism to create customized head layouts which gobbles also
the space for \startsection.
\defineheadalternative
[head:inleftmargin]
[alternative=horizontal,
renderingsetup=head:inleftmargin]
\startsetups[head:inleftmargin
Hi,
I have several questions concerning mixed columns. Here at first a
minimal example:
--8---cut here---start-8---
\useURL[test][http://www.site.com/very/long/long/long/long/long/long/long/long/url]
\def\Section#1{%
\startsection[title=Title]
\dorecurse
Hi,
IMO, ConTeXt should start a new column *before* the section title,
not *after* it:
--8---cut here---start-8---
\def\Section#1{%
\startsection[title=Title]
\dorecurse{#1}{\dorecurse{12}{bla }}
\stopsection}
\starttext
\startcolumns[n=2]
\Section{15
Am 21.06.2013 um 15:34 schrieb Peter Münster pmli...@free.fr:
Hi,
IMO, ConTeXt should start a new column *before* the section title,
not *after* it:
--8---cut here---start-8---
\def\Section#1{%
\startsection[title=Title]
\dorecurse{#1
the Wiki. My first real contribution is the page about the new
MkIV sectioning commands
(http://wiki.contextgarden.net/Command/startsection and
http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning).
Since I’m new to this and Wiki-editing, I’d appreciate it if someone
more knowledgeable could
learning, I’m going to make an effort to
update the Wiki. My first real contribution is the page about the new
MkIV sectioning commands
(http://wiki.contextgarden.net/Command/startsection and
http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning).
Since I’m new to this and Wiki-editing, I’d
]
\starttext
\setupbar[overstrike][**foregroundcolor=cyan,color=**blue]
\startsection[title={{\green green} foo {\green green}}]
foo \startbar[overstrike]bar\**stopbar
test \Delete{test} test \Keep{test} test \Whatever{test} test
\color[red]{test \Delete
]
\starttext
\startchapter[title=Test]
From ConTeXt Reference Manual 18 october 2012 page 210\crlf
\externalfigure[headers.jpg][width=0.8\textwidth]
\startsection[title=enclosing section]
\setupheads[alternative=normal]
\subsection{Title alternative equals normal}
\setupheads[alternative=inmargin
[headers.jpg][width=0.8\textwidth]
\startsection[title=enclosing section]
\setupheads[alternative=normal]
\subsection{Title alternative equals normal}
\setupheads[alternative=inmargin]
\subsection{Title alternative equals inmargin}
\setupheads[alternative=middle]
\subsubject{Title alternative equals
On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
[…]
\defineenumeration[test]
\setupenumeration[test][way=bysection]
^
This should rather be
\setupenumerations[test][way=bysection]
Best regards: OK
\starttext
\startsection[title=one
]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\stoptext
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta \stoptest
\stopsection
\startsection
On 4/4/2013 10:45 PM, Matthias Weber wrote:
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one
On 4/4/2013 10:45 PM, Matthias Weber wrote:
This might not be the best way to do it, but when I need it, I use
\resetnumber[problem]
for my
\startproblem
\stopproblem
enumeration.
\defineenumeration[test]
\setupenumeration[test][way=bysection]
\starttext
\startsection[title=one
]
\setuphead [sectionconversionset=myset]
\setuphead
[subsection]
[sectionsegments=subsection]
\starttext
\startsection [title=Foo]
\startsubsection [title=Bar, reference=bar]
\stopsubsection
\in{subsection}[bar]
\stopsection
\stoptext
]
\setuphead [sectionconversionset=myset]
\setuphead
[subsection]
[sectionsegments=subsection]
\setupreferencestructureprefix[default][prefixsegments=1:*]
\startsection [title=Foo]
\startsubsection [title=Bar, reference=bar]
\stopsubsection
\in{subsection}[bar]
\stopsection
[][\headerframed{\getmarking[section]}]
[][]
A better solution is to provide a shorter text with the “marking” key from
\startsection.
Wolfgang
___
If your question is of interest to others as well, please add
line break not possible.}
\dorecurse{100}{\input knuth }
\stoptext
There is a macro to make a shortert title, but
a shorter text with the “marking” key from \startsection
is better, of course
___
If your question
][frame=off,width=.45\textwidth,align=normal,offset=0pt,location=bottom]
\setupheadertexts
[][\headerframed{\getmarking[section]}]
[][]
There is a macro to make a shortert title, but
a shorter text with the “marking” key from \startsection
is better, of course
No need for a macro, it’s available
Am 27.11.2012 10:36, schrieb ntg-context-requ...@ntg.nl:
A better solution is to provide a shorter text with the ?marking? key from
\startsection.
Thanks Wolfgang and Luigi, I did not know that, that is of course the
easiest and best solution
but nothing surprises me as these
fonts have a history of instability.)
(Copied from an upcoming font manual:)
\startsection[title=Unicoding]
Nowadays we will mostly use fonts that ship with a \UNICODE\ aware
encoding. And
in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE
font manual:)
\startsection[title=Unicoding]
Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding.
And
in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE.
However, there are some exceptions, for instance the Zapf Dingbats in
\TYPEONE\
format
{Section 1}
\input ward
\startsection[title={Section 1 again},resetnumber=yes] % Here I want again the
number 1
\input ward
\stopsection
\setuphead[section][number=yes]
\section{Section 3}
\input ward
\startsection[title={Section with no number},number=no] % Here I don't want
numbers
\input ward
a look at the following example and give a hint?
\starttext
\section{Section 1}
\input ward
\startsection[title={Section 1 again},resetnumber=yes] % Here I want again
the number 1
\input ward
\stopsection
\setuphead[section][number=yes]
\section{Section 3}
\input ward
\startsection
On 13 nov. 2012, at 11:48, luigi scarso luigi.sca...@gmail.com wrote:
Hm ,
is it save to mix \section and \startsection ..\stopsection ?
--
luigi
Hi Luigi,
Thanks for your attention, but the fact that \section and \start-\stop-section
is used is of no importance regarding the way I
On Tue, Nov 13, 2012 at 1:12 PM, Otared Kavian ota...@gmail.com wrote:
On 13 nov. 2012, at 11:48, luigi scarso luigi.sca...@gmail.com wrote:
Hm ,
is it save to mix \section and \startsection ..\stopsection ?
--
luigi
Hi Luigi,
Thanks for your attention, but the fact
Thanks Luigi! Grazie mille… That's exactly what I was seeking!
Best regards: OK
On 13 nov. 2012, at 13:54, luigi scarso luigi.sca...@gmail.com wrote:
[…]
Some help at
http://wiki.contextgarden.net/Titles
\starttext
\startsection[title={Section 1 }]
\input ward
\stopsection
to using one method or
the other?
\startsection.. \stopsection: tagged pdf.
See
http://wiki.contextgarden.net/Epub
Also
\startchapter[title=mytitle1]
...
\stopchapter
Foo
\startchapter[title=mytitle2]
...
\stopchapter
From a structural point of view, Foo is outside the chapters
\chapter
/definelistalternative. I have
taken the lazy liberty of redirecting
Command/currentlistentrylocation
Command/structureheadlocation
Command/currentlistentrynumber
etc to that page for the now, so that they at least appear in the list
of commands.
--Sietse
\starttext
\startsection [title=alpha
=mytitle, ownnumber=N ..]
blah
\stopchapter
Is there any difference or advantage/disadvatage to using one
method or the other?
\startsection.. \stopsection: tagged pdf.
See
http://wiki.contextgarden.net/Epub
I don't quite understand the difference between tagged pdf and what
you get
there are two different ways of handling a chapter:
The traditional \chapter{mytitle}
\startchapter[title=mytitle, ownnumber=N ..]
blah
\stopchapter
Is there any difference or advantage/disadvatage to using one
method or the other?
\startsection.. \stopsection: tagged pdf
]
\headsetupspacing
\startframedtext [offset=none, frame=off]
\headnumbercontent\\
\headtextcontent
\stopframedtext
\stopsetups
\setuphead
[section]
[alternative=mine]
\starttext
\startsection [title=FooBar]
\stopsection
\stoptext
Marco
]
[renderingsetup=mine]
\startsetups [mine]
\headsetupspacing
\startframedtext [offset=none, frame=off]
\headnumbercontent\\
\headtextcontent
\stopframedtext
\stopsetups
\setuphead
[section]
[alternative=mine]
\starttext
\startsection [title=FooBar]
\stopsection
\stoptext
Marco
but they are helpful when you want endnotes end the end of each chapter
etc.
When you have a simple structure in your document you can use \startsectionlevel
instead of \startchapter, \startsection etc. for your headings because the
command
switches always to the next heading (chapter - section - subsection
. Can you tell me if the below is correct?
New feature 1: previously we could only do
\startplacefigure[reference=fig:mill, title={A Mill}]
or
\startsection[reference=sec:sheep, title={The Sheep}]
but now we can do
\startplacefigure[reference=fig:mill, title={A Mill}][resource=mill]
or
\startsection
do
\startplacefigure[reference=fig:mill, title={A Mill}]
or
\startsection[reference=sec:sheep, title={The Sheep}]
but now we can do
\startplacefigure[reference=fig:mill, title={A Mill}][resource=mill]
or
\startsection[reference=sec:sheep, title={The Sheep}][mykey=myvalue]
Nothing is done
with, for
instance (See discussion on page xx)?
Hi Robert,
\starttext
See \in{section}[sec:foo] on \at{page}[sec:foo]
or the text on \at{page}[ref:a].
\page
\startsection [title=Foo, reference=sec:foo]
\stopsection
\page
Some text\reference[ref:a]
\stoptext
Thank you Marco. Another
Hi Robert,
\starttext
See \in{section}[sec:foo] on \at{page}[sec:foo]
or the text on \at{page}[ref:a].
\page
\startsection [title=Foo, reference=sec:foo]
\stopsection
\page
Some text\reference[ref:a]
\stoptext
Marco
”, TOC is not centred, etc.
I want a local TOC after each chapter title.
How about this:
\setuphead
[chapter]
[after=\placecontent]
\starttext
\startchapter [title=Foo]
\startsection [title=First A]
\input knuth
\stopsection
\startsection [title=First B]
\input knuth
[sectionnumber]} -- \userpagenumber]
\setuphead [section] [page=yes]
\setupinteraction [state=start]
\placebookmarks [section] [all]
\starttext
\startsection [title=First Section]
\dorecurse{10}{\input knuth \par}
\stopsection
\startsection [title=Second Section]
\dorecurse{10}{\input knuth \par
:
···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]
\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
···
But I
example:
···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]
\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
'if not
first section then /sectionsection else section' and add if
in_a_section then /section' when \stoptext is reached.
Hm, consider this
\section{One} \input knuth
Text
\section{Two} \input knuth
and
\startsection{One} \input knuth
\stopsection
Text
\startsection{Two} \input knuth
\startsection the recommended method for the future and
needed for XML output?
XML documents should form a tree, so a structure like
\startA % A
\startB % B
\stopA % /A
\stopB % /B
won't translate to XML.
Grouping in TeX follows the same restrictions, and \start... and \stop...
behave
On 4-7-2012 00:51, Peter Münster wrote:
Hi,
Say I want Tufte in 2 columns and Knuth in 1 column:
--8---cut here---start-8---
\starttext
\startcolumns[n=2]
\startsection[title=Tufte]
\input tufte
\stopsection
\startsection[title=Tufte and Knuth
On Wed, Jul 04 2012, Hans Hagen wrote:
no, mixing this way is asking for troubles, if not now, than maybe in the
future
just use \section
Yes, but isn't \startsection the recommended method for the future and
needed for XML output?
--
Peter
On 4-7-2012 22:29, Peter Münster wrote:
On Wed, Jul 04 2012, Hans Hagen wrote:
no, mixing this way is asking for troubles, if not now, than maybe in the
future
just use \section
Yes, but isn't \startsection the recommended method for the future and
needed for XML output?
Indeed
On Jul 4, 2012, at 1:29 PM, Peter Münster wrote:
On Wed, Jul 04 2012, Hans Hagen wrote:
no, mixing this way is asking for troubles, if not now, than maybe in the
future
just use \section
Yes, but isn't \startsection the recommended method for the future and
needed for XML output?
XML
if in_a_section then /section' when \stoptext is reached.
Hm, consider this
\section{One} \input knuth
Text
\section{Two} \input knuth
and
\startsection{One} \input knuth
\stopsection
Text
\startsection{Two} \input knuth
\stopsection
In the last one it's clear that Text is not in the section One
Hi,
Say I want Tufte in 2 columns and Knuth in 1 column:
--8---cut here---start-8---
\starttext
\startcolumns[n=2]
\startsection[title=Tufte]
\input tufte
\stopsection
\startsection[title=Tufte and Knuth]
\input tufte
\stopcolumns
\input
={}]
\startitem
\math{10}
\stopitem
\startitem
\math{77}
\stopitem
\stopitemize
\stopitem
\stopexercises
\stopchapter
\startchapter[title={Kombinatoryczne gry symetryczne}]
\stopchapter
\startchapter[title={PrzykÅadowe gry}]
\startsection[title={ZakreÅl do piÄ
{%
\dosingleempty\dowordcount}
\def\dowordcount[#1]{%
\ctxlua{userdata.wordcount(#1)}}
\starttext
% Set up the word count
\ctxlua{languages.words.threshold=2}
\setupspellchecking [state=start, method=2]
\setupspellchecking [list=foo]
\startsection [title=Foo]
Foo Bar
\stopsection
501 - 600 of 686 matches
Mail list logo