On 08/26/2011 12:20 PM, Willi Egger wrote:
Hi all,
I have a quite simple document and would like to get a table of contents.
However I can not manage to get this done. - This sounds quite stupid but...
Do you want either:
\setuplist
[section]
[prefix=no,
sectionnumber
ended up using hacks like numbercomman=\dummy, and
defining \def\dummy#1{}, but I'm trying to find if there is a cleaner
solution.
Regards,
Khaled
--
Khaled Hosny
Egyptian
Arab
\setuphead[chapter][sectionnumber=yes]
\setuphead[section,subsection][sectionnumber=no]
\setuplist[content][chapter
}]\strut #3 \eTD
\eTR
\eTABLE}
\setuplist[chapter][alternative=command,command=\ChapterList]
\placelist[chapter][criterium=text]
\stoptext
If I got your right, this should work.
Thanks Andreas, this one looks very good! Hans had sent me a more
complex patch which may go into the core
Hi all,
for an edited volume, entries in the TOC have two lines, title, then
author. Is is possible to have the page number aligned to the title,
i.e. the first of these lines?
Example:
\setuphead[chapter]
[number=no]
\setuplist[chapter]
[width=0cm]
\starttext
=no]
\setuplist[chapter]
[width=0cm]
\starttext
\startchapter[title=One,list={A Title \crlf An Author}]
\input knuth
\stopchapter
\page
\placelist[chapter][criterium=text]
\define[3]\ChapterList%
{\bTABLE[offset=none,rulethickness=0pt,width=broad]
\bTR
% \bTD
Dne 23.6.2011 21:49, Jaroslav Hajtmar napsal(a):
Hello ConTeXist,
As is known, the layout of a list (of content) is determined by the
values of alternative, margin, width
and distance. Required values can be changed via commands \setuplist
or \setupcombinedlist.
Can somehow influence
][alternative=c]
\setuplist
[chapter,chapterMiddle]
[alternative=b,before=\blank,after=\blank,style=bold]
% Commands
\def\startTitlePage{
\bgroup
\let\chapter=\chapterMiddle
}
\def\stopTitlePage{%
\egroup
\page
}
%%%
\starttext
\placecontent % = TOC
\page
\chapter{Cha1
Hi,
say, I want to design the TOC. Now I would write:
\setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...]
\setuplist[LevelFive] [margin=1.70cm,width=0.5cm,]
But is there some clever command that makes a calculation like this:
\setuplist[LevelFour] [margin=1.20cm,width=0.5cm
Am 23.06.2011 um 16:49 schrieb Steffen Wolfrum:
Hi,
say, I want to design the TOC. Now I would write:
\setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...]
\setuplist[LevelFive] [margin=1.70cm,width=0.5cm,]
But is there some clever command that makes a calculation like
On 23-6-2011 6:08, Wolfgang Schuster wrote:
Variant 1:
Variant 2:
Nice examples for the wiki!
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The
Am 23.06.2011 um 19:49 schrieb Jaroslav Hajtmar:
Hello Wolfgang.
I know that my question is a little off this topic, but:
Is there any possibility change due this method affect appearance list typed
using \placecontent (the gap between list items, alignment, etc.)?
If I knew how to do it,
would write:
\setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...]
\setuplist[LevelFive] [margin=1.70cm,width=0.5cm,]
But is there some clever command that makes a calculation like this:
\setuplist[LevelFour] [margin=1.20cm,width=0.5cm,...]
\setuplist[LevelFive]
[margin={\the\dimexpr
Hello ConTeXist,
As is known, the layout of a list (of content) is determined by the
values of alternative, margin, width
and distance. Required values can be changed via commands \setuplist or
\setupcombinedlist.
Can somehow influence the horizontal arrangement of items in lists typed
=\v!slanted]
\setuplist
[\v!section]
[\c!width=3em]
\defineregister
[texmacro]
[texmacros]
\setupregister
[texmacro]
[\c!indicator=\v!off,
\c!distance=1em minus .25em]
\setupfootnotes
[\c!rule=\v!on]
\setuphead
[\v!chapter]
[\c!header=\v!empty]
\setupitemgroup[\v!itemize
}
randomized .4pt
scaled 6pt
withfillcolor .8\MPcolor{maincolor}
withpen pencircle scaled 1pt ; ) ;
draw r ;
\stopusableMPgraphic
\setuptype
[\c!option=\v!slanted]
\setuptyping
[\c!option=\v!slanted]
\setuplist
[\v!section]
[\c!width=3em]
\defineregister
[texmacro]
[texmacros
lines from the file.tex are:
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startstructureblockenvironment[frontpart]
\setupuserpagenumber[numberconversion
want this?
\setuplist[chapter][after={\placelist[figure]}]
\setuplist[figure][label=figure,width=6em]
\starttext
\completecontent
\chapter{One}
\placefigure{Two}{2}
\section{Three}
\placefigure{Four}{4}
\chapter{Five}
\placefigure{Six}{6}
\section{Seven}
\placefigure{Eight}{8}
\stoptext
Wolfgang
have to adjust many other things and it becomes very messy.
You want this?
\setuplist[chapter][after={\placelist[figure]}]
\setuplist[figure][label=figure,width=6em]
\starttext
\completecontent
\chapter{One}
\placefigure{Two}{2}
\section{Three}
\placefigure{Four}{4}
\chapter{Five
On Thu, May 26, 2011 at 08:16:21PM +0200, Wolfgang Schuster wrote:
Am 26.05.2011 um 18:48 schrieb Alan Braslau:
\setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all]
Almost works. Almost in that all lines get indented by one level,
and then the page
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3 \par
\listparameter\c!after \setuplocalinterlinespace[line=4.2ex] }}\protect
\setuplist[chapter][label=yes, alternative=vertical,
command=\ChapterList, interaction=all
\setuplocalinterlinespace[line=4.2ex]
}}
\protect
\setuplist[chapter][
label=yes,
alternative=vertical,
command=\ChapterList,
interaction=all,
]
\starttext
\startfrontmatter
\placecontent
\stopfrontmatter
\startbodymatter
\chapter{CHAPTER}
\section{SECTION}
\subsection{SUBSECTION
\listparameter\c!after
\setuplocalinterlinespace[line=4.2ex]
}}
\protect
\setuplist[chapter][
label=yes,
alternative=vertical,
command=\ChapterList,
interaction=all,
]
\starttext
\startfrontmatter
\placecontent
\stopfrontmatter
\startbodymatter
\chapter{CHAPTER
1.1Title of section2
(the chapter title underneath its number and left aligned, just like
everything else)
The following code used to do the job with MkII but it doesn't anymore
with
MkIV :
\setuplabeltext[chapter=CHAPTER~]
\setuplist
Am 26.05.2011 um 17:13 schrieb Alan Braslau:
This solution: [alternative=command,command=\ChapterList]
breaks interaction; How can one get [interaction=all] to work?
Something like this:
\setupinteraction[state=start]
\define[3]\ChapterList
{\vbox{#1\crlf#2\hfill#3}}
\setuplist
]
\define[3]\ChapterList
{\vbox{#1\crlf#2\hfill#3}}
\setuplist
[chapter]
[alternative=vertical,
command=\ChapterList,
interaction=all]
\starttext
\completecontent
\chapter{One}
\chapter{Two}
\stoptext
I guess i should take a closer look at “horizontal
Am 26.05.2011 um 18:48 schrieb Alan Braslau:
\define[3]\ChapterList
{\vbox{\par\noindent\currentlistsymbol#1\crlf#2\enspace\listdots\enspace#3}}
Your \par is useless here because we’re in a box.
\setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all
to have the
long titles on multiples lines being only single interline spaced (2.8ex).
Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !
Something like this?
\setuplist[chapter][
label=yes,
alternative=c,style={\switchtobodyfont[10pt
]
\setuplabeltext[chapter=CHAPITRE~]\setupcombinedlist[content][level=3,alternative=c,]\define[3]\ChapterList{
\setuplocalinterlinespace[line=2.8ex] \blank
\par\noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace #3\par
\setuplocalinterlinespace[line=4.2ex] }\setuplist
to have the
long titles on multiples lines being only single interline spaced (2.8ex).
Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !
\setupinterlinespace[line=4.2ex] % 1.5 interline
\setuplabeltext[chapter=CHAPITRE~]
\define[3]\ChapterList
interline spacing than the rest
of the TOC ?My TOC interline spacing is set at 1.5 (4.2ex), but I would like to
have the long titles on multiples lines being only single interline spaced
(2.8ex).Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint
\listdots\enspace #3\par }\setuplist[chapter][ margin=0cm,
% this line doesn't do anything label=yes, alternative=command,
command=\ChapterList,
]\setuplist[section][margin=0cm,width=1.25cm]\setuplist[subsection][margin=1.25cm,width=1.25cm]
\starttext
\completecontent
]\ChapterList{
\blank
\par\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace
#3\par
}
\define[3]\ChapterList
{\par
\listparameter{before}%
\leftskip\listparameter{margin}%
\noindent#2\enspace\listdots\enspace#3\par
\listparameter{after}}
\setuplist
\noindent\currentlistsymbol\crlf
#2\enspace\listdots\enspace #3\par }
\define[3]\ChapterList {\par \listparameter{before}%
\leftskip\listparameter{margin}% \noindent#2\enspace\listdots\enspace#3\par
\listparameter{after}}
\setuplist[chapter][margin=0cm,% this line
aligned, just like
everything else)
The following code used to do the job with MkII but it doesn't anymore with
MkIV :
\setuplabeltext[chapter=CHAPTER~]
\setuplist[chapter][label=yes, style={\blank[0cm]}]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
)
The following code used to do the job with MkII but it doesn't anymore with
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes,
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of
section
If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new
Am 24.05.2011 um 15:33 schrieb Mathieu DUPONT:
If now I add the line :
\setupcombinedlist[content][alternative=c]
it doesn't add the dots to the chapter lines anymore,
and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new
][alternative=c]
it doesn't add the dots to the chapter lines anymore,and I can't add
\setuplist[chapter][alternative=c]
since the alternative parameter is already taken by the new command
Is there a way to add the dots option within my new command, or somewhere
else ?
\define[3]\ChapterList
single interline spaced
(2.8ex).Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !
\setupinterlinespace[line=4.2ex] % 1.5 interline
\setuplabeltext[chapter=CHAPITRE~]\define[3]\ChapterList{
\blank\par\noindent\currentlistsymbol\crlf #2\enspace
Am 23.05.2011 um 04:06 schrieb Mathieu DUPONT:
Hi,
The following code :
\setuplabeltext[chapter=CHAPTER~]
\setuplabeltext[appendix=APPENDIX~]
\setuplist [chapter] [label=yes,style={\blank[0cm]}]
\starttext
\completecontent
\chapter{Title of a chapter}
\startappendices
and subsections (1.1.1 and not I.1.1).
Here is the base code :
\setuplist [chapter] [label=yes,style={\blank[0cm]}]
\setupsection[section-2][conversion=Romannumerals]
\setuplabeltext[chapter=CHAPITRE~]
\starttext
\placecontent
\chapter{Title of chapter}
\section{Title of section
to 0pt.
\definehead[topic][chapter]
\setuphead [topic][number=no]
\setuplist [topic][width=0pt]
\starttext
\startfrontmatter
\title{Contents}
\placelist[part,chapter,topic]
\topic{Preface}
\stopfrontmatter
\startbodymatter
\dorecurse{2}
{\part{Test}
\chapter{Tufte}
\chapter
This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection
Am 23.05.2011 um 20:02 schrieb Mathieu DUPONT:
This code :
\setuplabeltext[chapter=CHAPITRE~]
\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]
\setuphead[chapter][sectionconversionset=mathieu]
\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
but
not in section lines
Am 23.05.2011 um 20:02 schrieb Mathieu DUPONT:This code :
\setuplabeltext[chapter=CHAPITRE~]\definestructureconversionset[mathieu][numbers,Romannumerals][numbers]\setuphead[chapter][sectionconversionset=mathieu]\setuplist[chapter][label=yes,width=7em]
\starttext
\placecontent
to do the job with MkII but it doesn't anymore with
MkIV :
\setuplabeltext[chapter=CHAPTER~]\setuplist[chapter][label=yes,
style={\blank[0cm]}]\starttext
\startfrontmatter\completecontent\stopfrontmatter
\startbodymatter\chapter{Title of chapter}\section{Title of
section}\stopbodymatter
:
\setuplist [chapter]
[label=yes,style={\blank[0cm]}]\setupsection[section-2][conversion=Romannumerals]\setuplabeltext[chapter=CHAPITRE~]
\starttext
\placecontent
\chapter{Title of chapter}\section{Title of section}\subsection{Title of
subsection}
\stoptext
which results in :
CHAPITRE I Title
://www.ntg.nl/pipermail/ntg-context/2011/058614.html
\setuplist[part] [label=part]
\setuplist[chapter][label=chapter]
\setuplist[section][label=section]
and use the \completecontent command without setting for label
because this will otherwise overwrite the settings above.
Wolfgang
Set the labels with the “en” tag:
\setuplabeltext[en] [chapter=Chapter ]
\setuplabeltext[en][appendix=Appendix ]
Excellent, thanks.
My last question about labels:
If I don't use setuplist, then I have labels in the document and no labels in
the toc.
How can I achieve the opposite, means
Am 22.04.2011 um 08:54 schrieb Reviczky, Adam:
My last question about labels:
If I don't use setuplist, then I have labels in the document and no labels in
the toc.
How can I achieve the opposite, means labels in the toc (like: Chapter 1,
Appendix A, ...) but only the numbers
.
You can control the behavior with label key from \setuplist, the valid
arguments are:
- no: use the argument of the starter and stopper keys but don’t print
labels
- EMPTY : a empty argument “label=” results in the same output as “label=no”
- none : don’t print labels and ignore also
=appendix]
\setuplist[chapter,appendix][label=yes,width=6em]
\starttext
\startfrontmatter
\title{Contents}
\placelist[chapter,appendix,section,subsection]
\stopfrontmatter
\startbodymatter
\chapter{Bodypart}
\stopbodymatter
\startappendices
\appendix{Appendix}
\stopappendices
\stoptext
which can be used to see the problem and to test for the
correct result once the thing is resolved.
\setuplabeltext [chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]
\setuplist[chapter][label=yes,width=5em]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
[appendix][appendixlabel=appendix]
\setuplist[chapter,appendix][label=yes,width=6em]
\starttext
\startfrontmatter
\title{Contents}
\placelist[chapter,appendix,section,subsection]
\stopfrontmatter
\startbodymatter
\chapter{Bodypart}
\stopbodymatter
\startappendices
\appendix{Appendix
and to test for the
correct result once the thing is resolved.
\setuplabeltext [chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]
\setuplist[chapter][label=yes,width=5em]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{Bodypart
sectionblock (e.g. “chapter” for the bodypart and “appendix” for the
appendices).
I wrote a minimal which can be used to see the problem and to test for the
correct result once the thing is resolved.
\setuplabeltext [chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]
\setuplist[chapter][label=yes,width
starts like Part 1 Name of first part. How do I get rid of the
Part, so that the corresponding line starts directly with the number of the
part like 1 Name of the first Part?
\setuplist[part][label=no]
Wolfgang
Part?
\setuplist[part][label=no]
Wolfgang
___
If your question is of interest to others as well, please add an entry to
the Wiki!
maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startstructureblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]
\stopstructureblockenvironment
\startstructureblockenvironment[bodypart]
\setuppagenumber[number=1
on 2009. 2. 4, there was a sample written by Wolfgang .
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startstructureblockenvironment[frontpart
?
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
%pagenumbers in TOC not converted if frontmatter
\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\definehead [intro][chapter]
\setuphead [intro][number
][][romannumerals]
%pagenumbers in TOC not converted if frontmatter
\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\setuplist[intro][pageconversionset=pagenumber]
\startstructureblockenvironment[frontmatter]
%whether frontpart
=all] % can be also done with
\setuplist[...][interaction=all]
...
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http
?
\setupinteraction[state=start]
\starttext
\completecontent[interaction=all] % can be also done with
\setuplist[...][interaction=all]
I like just \completecontent better. But thanks anyway.
--
Cecil Westerhof
___
If your
Am 26.02.2011 um 20:46 schrieb Andreas Harder:
Hi all,
please have a look at the following example. The first chapter entry in the
table of contents looks good, but the following entries adopt the margin
setting from \setuplist[section][margin=3em] and I can't get rid of it … Any
hint
Am 27.02.2011 um 11:58 schrieb Wolfgang Schuster:
Am 26.02.2011 um 20:46 schrieb Andreas Harder:
Hi all,
please have a look at the following example. The first chapter entry in the
table of contents looks good, but the following entries adopt the margin
setting from \setuplist
Hi all,
please have a look at the following example. The first chapter entry in the
table of contents looks good, but the following entries adopt the margin
setting from \setuplist[section][margin=3em] and I can't get rid of it … Any
hint?
\definelistplacement[ChapListItem][none]#1#2#3
Hi,
I've noticed two bugs (I think) with stoppers:
1) Stoppers in table of contents
When you set stopper=~ in \setuplist the stopper also appears for
unnumbered heads of the table of contents (chapters, sections etc. that
are in frontmatter and backmatter).
2) Stoppers in head titles
When
umberstyle=\ss\bf,aligntitle=yes]
\setuplist [intro][headnumber=no]
\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input Knuth
\stoptext
Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com
line chapter head and got a solution.\chapter{\tfd Title \\ \tfc subtitle}Then, in the table of contents, it also listed as a big fonts.How to make the contents with a normal fonts?I tried \setuplist[style=normal, textstyle=normal], but no differences.Best regards
Dear all,
The otherday, I asked about three line chapter head and got a solution.
\chapter{\tfd Title \\ \tfc subtitle}
Then, in the table of contents, it also listed as a big fonts.
How to make the contents with a normal fonts?
I tried \setuplist[style=normal, textstyle=normal
Vague – Nouveau Roman 87
3.3 Film und Autobiografie werden Kunst 96
[...]
This is my code so far, which works fine except the consecutive lines:
\setupcombinedlist[content][level=4,alternative=a,distance=1em,
pagecommand={\hskip1em }]
\setuplist[chapter][width=0mm,style=\sc,pagestyle=normal
:
\setupcombinedlist[content][level=4,alternative=a,distance=1em,
pagecommand={\hskip1em }]
\setuplist[chapter][width=0mm,style=\sc,pagestyle=normal]
\setuplist[section][width=0mm,margin=1em]
\setuplist[subsection][width=0mm,margin=2em]
\setuplist[subsubsection][width=0mm,style=slanted
] \setupcolors[state=start]
\setuphead [part][page=right,placehead=yes]
\setuplist [chapter] [alternative=d,before=\blank,after=\blank]
\setuplist [part][before=\blank,after=\blank]
\starttext
\startsetups chapter
\blank \startnarrower[3*middle] \placecontent[criterium=local] \stopnarrower
%\setupinteraction[state=start] \setupcolors[state=start]
\setuphead [part][page=right,placehead=yes]
\setuplist [chapter] [alternative=d,before=\blank,after=\blank]
\setuplist [part][before=\blank,after=\blank]
\starttext
\startsetups chapter
\blank
and the right?
···8
%\setupinteraction[state=start] \setupcolors[state=start]
\setuphead [part][page=right,placehead=yes]
\setuplist [chapter] [alternative=d,before=\blank,after=\blank]
\setuplist [part][before=\blank
=.5em]
% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c]
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm]
\setuplist[section][before
Hi,
please have a look at this minimal example:
Normally you have a bidirectional hyperlink toc-entry - section-head.
But when you uncomment the line with setuplist these hyperlinks are gone!
How does this feature come back?
Best regards,
Steffen
---
\def\AltCom#1#2#3{#1 #2 #3
Am 05.12.2010 um 20:59 schrieb Steffen Wolfrum:
Hi,
please have a look at this minimal example:
Normally you have a bidirectional hyperlink toc-entry - section-head.
But when you uncomment the line with setuplist these hyperlinks are gone!
How does this feature come back?
Only lists
up with a minimal example?
(I have nothing special, other than \setuplist[figure][partnumber=no])
Alan
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
else notice this, or do I have to come up with a minimal example?
(I have nothing special, other than \setuplist[figure][partnumber=no])
i'll check it ... i fixed something for mojca but it looks like it has a
side effect, strange
Hans
Hi list,
I am using the following code with a recent beta (last week):
\setuplist[subsection][numberstopper=, right=), style=\slanted]
and the ')' is not slanted. However, it is the following:
\setuplist[subsection][numberstopper=), style=\slanted]
So, bug or feature?
Also
% [before={\startcomment[FiXme]},
%after=\stopcomment]
\setupinteraction[state=start]
\setuplist[fixme][interaction=all]
\starttext
\fixme{To be done …}
\input knuth
\fixme{To be done …}
\input tufte
\fixme{To be done …}
\page
\placelist[fixme]
\stoptext
Best regards
Andreas
Dear Peter,
I run into some problem with font handling in MKIV so I'm stuck in MKII for
some time.
I've tried the following :
\starttext
\def\ChapterPrefix#1{%
\the\numexpr\number#1/4\relax
}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow
On 3-10-2010 4:16, Pierre-François Bonnefoi wrote:
Dear Peter,
I run into some problem with font handling in MKIV so I'm stuck in MKII for
some time.
I've tried the following :
\starttext
\def\ChapterPrefix#1{%
\the\numexpr\number#1/4\relax
}
\setupcombinedlist[content][level=1]
\setuplist
#1/4\relax
}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
manipulating the number that way is just a lucky guess: pagecommand (and
numbercommand) get some text passes and it might not even
for the handout.
I would like to compute a correct Table of contents according to the handout
: so to divide the current page number by four to get a correct page number
for the handout.
\def\ChapterPrefix#1{\the\numexpr#1/4 \relax}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after
\relax}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
That doesn't work, and I've some difficulties to figure how computation is
performed in e-TeX...
Could you help me to resolve this issue
Hi Hans,
lists ignore the sectionblock for the labeltext
\setuplabeltext[chapter=Chapter~,appendix=Appendix~]
\setuplist[chapter][label=yes,width=2cm]
\setuphead[chapter][bodypartlabel=appendix]
\starttext
\completecontent
\chapter{Foo}
\stoptext
Wolfgang
according to the handout :
so to divide the current page number by four to get a correct page number for
the handout.
\def\ChapterPrefix#1{\the\numexpr#1/4 \relax}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand
would like to compute a correct Table of contents according to the handout :
so to divide the current page number by four to get a correct page number for
the handout.
\def\ChapterPrefix#1{\the\numexpr#1/4 \relax}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor
by four to get a correct page number
for the handout.
\def\ChapterPrefix#1{\the\numexpr#1/4 \relax}
\setupcombinedlist[content][level=1]
\setuplist[chapter][after=,before=,numbercolor=yellow,numbercommand=\underbar,pagecommand=\ChapterPrefix]
That doesn't work, and I've some difficulties
] [unnumberedchapter,chapter,section]
\setuplist [unnumberedchapter] [headnumber=no]
Bof! (pardon my French, as they say in polite circles)
Much easier (or cleaner if you wish), using the structured syntax, is:
\startchapter [number=no,incrementnumber=no,
title={Conclusions}]
\stopchapter
that one (so no \framed in write)
\setuplist
[mychapter]
[alternative=command,
command=\MyChapterList]
with something
\def\ChapterList#1#2#3%
{\framed
[frame=off,
align={right,broad,nothyphenated},
width=0.8\textwidth,
height=2\baselineskip,
offset=none]
{#2}}
your title command
\def\KomplexTitel
wrote:
Do you want to modify the list , right ?
If so, then you should see
http://wiki.contextgarden.net/Reference/en/definecombinedlist
until
http://wiki.contextgarden.net/Reference/en/setuplist
--
luigi
Hi all!
I’m using the structureuservariable to set an author on a per chapter basis.
But I would also like to have them in the table of contents, so I tried the
following:
\setuplist[chapter][alternative=MyListItem]
\definelistplacement[MyListItem][none]#1#2#3%
{#1 #2
,
your question comes just in time, here is a example i planned to send to Harald
only.
\define[3]\ChapterList
{\bTABLE[offset=0pt,strut=yes,frame=off,width=.5\textwidth]
\bTR
\bTD \structurelistuservariable{date} \eTD
\bTD #2 \eTD
\eTR
\eTABLE}
\setuplist
[chapter
\bTD #2 \eTD
\eTR
\eTABLE}
\setuplist
[chapter]
[alternative=command,
command=\ChapterList]
\define[2]\ChapterHead
{\startframedtext[frame=off,width=\textwidth,offset=0pt,align=middle]
\doifsomething{\structureuservariable{date}}{\structureuservariable{date}\blank}
#2
ver: 2010.09.09 23:45 MKIV fmt: 2010.9.12):
Do you want to modify the list , right ?
If so, then you should see
http://wiki.contextgarden.net/Reference/en/definecombinedlist
until
http://wiki.contextgarden.net/Reference/en/setuplist
--
luigi
below.
Thanks Martin
\mainlanguage [de]
\setuppapersize[A5][A5]
\usetypescript[palatino]
\setupbodyfont[pagella,12pt]
\setupinmargin[style=\rmx]
\setupindenting[yes,small]
\indenting[next]
\setupfootnotes [way=section]
\definelist[SideNote]
\setuplist[SideNote][width=2em]
\definelist
501 - 600 of 872 matches
Mail list logo