* Problem interacting \definehead and \placecontent
@ 2010-11-17 11:18 Lukas Prochazka
2010-11-17 13:17 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Lukas Prochazka @ 2010-11-17 11:18 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
Hello,
I need to duplicate the \subsection command. The code is:
---
\definehead[SSEC][subsection]
\setuphead
[SSEC]
[after={ --- }]
\starttext
\placecontent
\hairline
\section{A}
aaa
\SSEC{B}
bbb
\subsection{C}
ccc
\stoptext
---
It's OK that use of \subsection and/or \SSEC command increases the subsection counter (i.e. I get 1.1 and 1.2).
But there is a problem - the "1.1 B" item doesn't appear in the TOC. Why? And how to get it in there?
Thank you in advance.
Best regards,
Lukas
[-- Attachment #2: t-Head.mkiv --]
[-- Type: application/octet-stream, Size: 782 bytes --]
\definehead[SSEC][subsection]
\setuphead
[SSEC]
[after={ --- }]
\starttext
\placecontent
\hairline
\section{A}
aaa
\SSEC{B}
bbb
\subsection{C}
ccc
\stoptext
Hello,
I need to duplicate the \subsection command. The code is:
---
\definehead[SSEC][subsection]
\setuphead
[SSEC]
[after={ --- }]
\starttext
\placecontent
\hairline
\section{A}
aaa
\SSEC{B}
bbb
\subsection{C}
ccc
\stoptext
---
It's OK that use of \subsection and/or \SSEC command increases the subsection counter (i.e. I get 1.1 and 1.2).
But there is a problem - the "1.1 B" item doesn't appear in the TOC. Why? And how to get it in there?
Thank you in advance.
Best regards,
Lukas
[-- Attachment #3: t-Head.pdf --]
[-- Type: application/pdf, Size: 5696 bytes --]
[-- Attachment #4: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-17 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-17 11:18 Problem interacting \definehead and \placecontent Lukas Prochazka
2010-11-17 13:17 ` Wolfgang Schuster
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).