ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tad Ashlock <taashlo@cyberdude.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: The problem with structure of heads in MkIV
Date: Thu, 31 Dec 2009 04:47:54 -0700	[thread overview]
Message-ID: <4B3C8F6A.1060209@cyberdude.com> (raw)
In-Reply-To: <c3f901470912301624u41763c73t7fb136473d40d46f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

Yanrui Li wrote:
>
> 2009/12/31 Tad Ashlock <taashlo@cyberdude.com 
> <mailto:taashlo@cyberdude.com>>
>
>
>     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

[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 282 bytes --]

\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

[-- Attachment #3: test.log --]
[-- Type: text/plain, Size: 6084 bytes --]

(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


[-- Attachment #4: test.pdf --]
[-- Type: application/pdf, Size: 9584 bytes --]

[-- Attachment #5: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-12-31 11:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-30  2:18 Yanrui Li
2009-12-30  2:32 ` Joshua Lee
2009-12-30  3:16   ` Yanrui Li
2009-12-30 19:30   ` Tad Ashlock
2009-12-31  0:24     ` Yanrui Li
2009-12-31 11:47       ` Tad Ashlock [this message]
2009-12-31 12:56         ` Wolfgang Schuster
2009-12-31 19:58           ` Tad Ashlock
2010-01-01  0:59             ` Yanrui Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B3C8F6A.1060209@cyberdude.com \
    --to=taashlo@cyberdude.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).