ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hidden section - weird counting?
@ 2015-07-09 16:20 Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; only message in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2015-07-09 16:20 UTC (permalink / raw)
  To: ConTeXt

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

Hello,

let's have the following example with hidden section:

----
\definehead[HidSec][section]
\setuphead[HidSec][placehead=hidden]

\starttext
   \placecontent
   \hairline
   \HidSec{A}
     \subsection{B}
     \subsection{C}
\stoptext
----

It gives:

"
1.1 B 1
-------
1.2 B
1.2 C
"

Whilst I'd expect:

"
1.1 B 1
1.2 C 1
-------
1.1 B
1.2 C
"

Is my idea wrong, i.e. is "hidden" attribute for \setuphead intended differently or ... ?

(Compiled with today's beta.)

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

[-- Attachment #2: HidSec.log --]
[-- Type: application/octet-stream, Size: 5835 bytes --]

system          > callbacks > not registering frozen 'find_format_file'

open source     > 1 > 1 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.07 21:43 MKIV beta  fmt: 2015.7.9  int: english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv

system          > jobfiles > using path: C:\\Lukas\\ConTeXt\\Styles
system          > files > jobname 'HidSec', input 'D:\\Lukas\\ConTeXt\\Test\\HidSec.mkiv', result 'HidSec'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > D://Lukas/ConTeXt/Test/HidSec.mkiv
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > HidSec @ level 3 : 0.0.1 -> A
structure       > sectioning > subsection @ level 4 : 0.0.1.1 -> B
structure       > sectioning > subsection @ level 4 : 0.0.1.2 -> C
backend         > xmp > using file 'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 3 > D://Lukas/ConTeXt/Test/HidSec.mkiv
close source    > 1 > 3 > c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

system          > structure > start used structure

used structure  > text: HidSec

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file       >    2: filename=publ-imp-default.lua filetype=scripts foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-imp-default.lua usedmethod=database
used file       >    3: filename=cont-new.mkiv filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file       >    4: filename=lang-us.lua filetype=scripts foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file       >    5: filename=D://Lukas/ConTeXt/Test/HidSec.mkiv foundname=D://Lukas/ConTeXt/Test/HidSec.mkiv usedmethod=direct
used file       >    6: filename=lm.lfg filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file       >    7: filename=lmroman12-regular filetype=otf format=otf foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file       >    8: filename=latinmodern-math.otf filetype=opentypefonts foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >    9: filename=lmroman10-regular filetype=otf format=otf foundname=c:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
used file       >   10: filename=lpdf-pdx.xml filetype=tex foundname=c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="1"
used option     > fulljobname="D:\\Lukas\\ConTeXt\\Test\\HidSec.mkiv"
used option     > halt-on-error="true"
used option     > input="D:\\Lukas\\ConTeXt\\Test\\HidSec.mkiv"
used option     > kindofrun="1"
used option     > maxnofruns="9"
used option     > no-parse-first-line="true"
used option     > nonstopmode="true"
used option     > path="C:\\Lukas\\ConTeXt\\Styles"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: D:\\Lukas\\ConTeXt\\Test\\HidSec.mkiv

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.109 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 10 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 380 modules (0.453 sec), 78 tables (0.016 sec), 458 chunks (0.469 sec)
mkiv lua stats  > traced context: maxstack: 1135, freed: 0, unreachable: 1135
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 3 penalty, 12 attribute, 35 glue_spec, 3 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 76 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.016 seconds loading
mkiv lua stats  > callbacks: 225 direct, 248 indirect, 473 total
mkiv lua stats  > randomizer: resumed with value 0.58668782616657
mkiv lua stats  > result saved in file: HidSec.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.359 seconds 
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: texmf-mswin
mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.1 (tex live 2015/w32tex) (rev 5274)
mkiv lua stats  > control sequences: 43177 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 45 MB (ctx: 44 MB), hash type: lua, hash chars: min(32,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.047 seconds, 1 processed pages, 1 shipped pages, 0.955 pages/second


[-- Attachment #3: HidSec.mkiv --]
[-- Type: application/octet-stream, Size: 177 bytes --]

\definehead[HidSec][section]
\setuphead[HidSec][placehead=hidden]

\starttext
  \placecontent
  \hairline
  \HidSec{A}
    \subsection{B}
    \subsection{C}
\stoptext

[-- Attachment #4: HidSec.pdf --]
[-- Type: application/pdf, Size: 6381 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-09 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 16:20 Hidden section - weird counting? Procházka Lukáš Ing. - Pontex s. r. o.

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).