Yanrui Li wrote:
2009/12/31 Tad Ashlock <[email protected] <mailto:[email protected]>>The attached sample doesn't meet the original poster's criteria. It produces headings like "1.1 alpha" and "1.1.1 a" instead of the requested "1 alpha" and "1.1 a". Is there any way of achieving this? (Under "Part 1", of course. That's the trick.) Hi Tad,The attached sample works ok for me. Can you give me your result which the sample prodeces?-- Best regards, Li Yanrui
They are attached as "test.tex" (the test input), "test.pdf" and "test.log". Notice how the chapter numbers are "x.y" (where 'x' = 'Part #') instead of just "y" as originally requested. I point this out because I've tried to get ConTeXt to do structure numbering like this in the past and have had to postpone it due to lack of time.
Thanks, Tad
\starttext
\placelist[part,chapter,section,subsection][criterium=all]
\part{first}
\chapter{alpha}
\section{a}
\section{b}
\subsection{x}
\subsection{y}
\chapter{beta}
\part{second}
\chapter{gamma}
\section{a}
\section{b}
\subsection{x}
\subsection{y}
\chapter{delta}
\stoptext
(c:/pub/projects/psicc2/book/test.tex
ConTeXt ver: 2009.12.30 20:27 MKIV fmt: 2009.12.30 int: english/english
system : cont-new loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system : cont-fil loaded
(C:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system : cont-sys.rme loaded
(C:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(C:/context/tex/texmf-context/tex/context/base/type-lua.tex)
(C:/context/tex/texmf-context/tex/context/base/type-tmf.tex
(C:/context/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(C:/context/tex/texmf-context/tex/context/base/type-siz.tex
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv))
(C:/context/tex/texmf-context/tex/context/base/type-otf.tex
(C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system : test.top loaded
%
% begin of optionfile
%
% % runtime options files (command line driven)
% \unprotect
% % special commands, mostly for the ctx development team
% % feedback and basic job control
% % handy for special styles
% \startluacode
% document = document or { }
% document.arguments={
% ["autopdf"]=true,
% }
% document.files={
% "c:/pub/projects/psicc2/book/test.tex",
% }
% \stopluacode
% % process info
% \setupsystem[inputfile=c:/pub/projects/psicc2/book/test.tex]
% \setupsystem[\c!n=2,\c!m=3]
% % modes
% % options (not that important)
% \startsetups *runtime:options
% \setupoutput[pdftex]
% \stopsetups
% % styles and modules
% \startsetups *runtime:modules
% \stopsetups
% % done
% \protect \endinput
%
% end of optionfile
%
(test.top)
fonts : preloading latin modern fonts
bodyfont : 12pt rm is loaded
language : language en is active
systems : begin file c:/pub/projects/psicc2/book/test.tex at line 1
fonts : resetting map file list
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts : using map file: original-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts : using map file: original-ams-base
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts : using map file: original-ams-euler
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts : using map file: original-public-lm
{C:/context/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts : using map file: lm-math
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts : using map file: lm-rm
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
!pages : flushing realpage 1, userpage 1, subpage 1
structure : part @ level 1 : 1 -> first
!pages : flushing realpage 2, userpage 2
structure : chapter @ level 2 : 1.1 -> alpha
structure : section @ level 3 : 1.1.1 -> a
structure : section @ level 3 : 1.1.2 -> b
structure : subsection @ level 4 : 1.1.2.1 -> x
structure : subsection @ level 4 : 1.1.2.2 -> y
!pages : flushing realpage 3, userpage 3
structure : chapter @ level 2 : 1.2 -> beta
!pages : flushing realpage 4, userpage 4
structure : part @ level 1 : 2 -> second
!pages : flushing realpage 5, userpage 5
structure : chapter @ level 2 : 2.1 -> gamma
structure : section @ level 3 : 2.1.1 -> a
structure : section @ level 3 : 2.1.2 -> b
structure : subsection @ level 4 : 2.1.2.1 -> x
structure : subsection @ level 4 : 2.1.2.2 -> y
!pages : flushing realpage 6, userpage 6
structure : chapter @ level 2 : 2.2 -> delta
!pages : flushing realpage 7, userpage 7
systems : end file c:/pub/projects/psicc2/book/test.tex at line 21
system : cont-err loaded
(C:/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )<C:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats : used config path -
C:/context/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path - C:/context/tex/texmf-cache
mkiv lua stats : input load time - 0.016 seconds
mkiv lua stats : stored bytecode data - 197 modules, 48 tables, 245 chunks
mkiv lua stats : node list callback tasks - 4 unique tasks, 3 created, 193
calls
mkiv lua stats : cleaned up reserved nodes - 25 nodes, 9 lists of 1408
mkiv lua stats : node memory usage - 20 glue_spec
mkiv lua stats : used backend - pdf (backend for directly
generating pdf output)
mkiv lua stats : loaded patterns - en:us:pat:exc:2
mkiv lua stats : startup time - 0.422 seconds (including runtime
option file processing)
mkiv lua stats : callbacks - direct: 1458, indirect: 3678,
total: 5136
mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath
calls, 0 cached calls
mkiv lua stats : result saved in file - test.pdf
mkiv lua stats : loaded fonts - 32 files: lmmono12-regular.otf
lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf
lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf
lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf
lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm
msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm
rm-lmr9.tfm
mkiv lua stats : fonts load time - 0.281 seconds
mkiv lua stats : luatex banner - this is luatex, version
beta-0.50.0-2009122521
mkiv lua stats : control sequences - 29719 of 165536
mkiv lua stats : current memory usage - 33 MB (ctx: 34 MB)
mkiv lua stats : runtime - 0.984 seconds, 6 processed pages,
7 shipped pages, 7.114 pages/second
test.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
