Dear coterie, I have defined another section: \definehead [SubNote][subsection] \setuphead [SubNote][style=bold, number=no] Now I want to do a certain operation on the argument of \subnote whenever it appears in the TOC. The argument should appear in the main text as expected: \SubNote{My Note} but it should appear as {\operation My Note} in the TOC. Put another way, I want to change/operate upon the lemma that's passed to the TOC. Is there a way I can wrap all this up in the \setuphead command? If not, what's the workaround? (For the curious: My main text (including headings) is fully accented. I have a command, "\onovocalize" which strips away all the accents. I want all my TOC entries to be\onovocalize'ed without affecting the rest of the text and need to setup my heads to reflect this.) Best wishes Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
On Monday 11 November 2002 16:08, Idris S Hamid wrote:
Dear coterie,
I have defined another section:
\definehead [SubNote][subsection] \setuphead [SubNote][style=bold, number=no]
Now I want to do a certain operation on the argument of \subnote whenever it appears in the TOC. The argument should appear in the main text as expected:
\SubNote{My Note}
but it should appear as
{\operation My Note}
in the TOC.
Put another way, I want to change/operate upon the lemma that's passed to the TOC.
Is there a way I can wrap all this up in the \setuphead command? If not, what's the workaround?
I noticed that the argument of \SubNote does not automatically appear in the TOC. Two questions: 1. How do I turn on the TOC entry for \SubNote{My Note}? 2. The fact that it does not automatically appear in the TOC gives me a workaround to the original problem: \SubNote{My Note:} \writetolist[subsection]{}{\operation My Note"} This brings up a another part of the original problem: How do I get \SubNote to automatically append a `:' at the end of every argument? Thnx again Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
On Monday 11 November 2002 16:08, Idris S Hamid wrote:
Dear coterie,
I have defined another section:
\definehead [SubNote][subsection] \setuphead [SubNote][style=bold, number=no]
Now I want to do a certain operation on the argument of \subnote whenever it appears in the TOC. The argument should appear in the main text as expected:
\SubNote{My Note}
but it should appear as
{\operation My Note}
in the TOC.
I have a (hopefully) simpler need. I just want to put a note somewhwere on the first page of the TOC that says "Click on blue areas to jump to
On Tuesday 12 November 2002 12:21 am, Idris S Hamid wrote: that heading". I tried a footnote but it fell on the second page of the TOC. I tried a line of text just before \completecontent but it appeared on a page by itself, followed by a blank page. I can even live with a sidebar! Any hints, anyone? -- John Culleton Able Indexers and Typesetters Rowse Reviews Culleton Editorial Services http://wexfordpress.com
At 12:48 PM 11/14/2002 +0000, you wrote:
On Monday 11 November 2002 16:08, Idris S Hamid wrote:
Dear coterie,
I have defined another section:
\definehead [SubNote][subsection] \setuphead [SubNote][style=bold, number=no]
Now I want to do a certain operation on the argument of \subnote whenever it appears in the TOC. The argument should appear in the main text as expected:
\SubNote{My Note}
but it should appear as
{\operation My Note}
in the TOC.
I have a (hopefully) simpler need. I just want to put a note somewhwere on the first page of the TOC that says "Click on blue areas to jump to
On Tuesday 12 November 2002 12:21 am, Idris S Hamid wrote: that heading". I tried a footnote but it fell on the second page of the TOC. I tried a line of text just before \completecontent but it appeared on a page by itself, followed by a blank page. I can even live with a sidebar!
\startcomment You may try this \stopcomment Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
At 04:08 PM 11/11/2002 -0800, Idris S Hamid wrote:
(For the curious: My main text (including headings) is fully accented. I have a command, "\onovocalize" which strips away all the accents. I want all my TOC entries to be\onovocalize'ed without affecting the rest of the text and need to setup my heads to reflect this.)
What does onovovalize do? Can you use: \setuplist[chapter][style=\onovocalize] (possible of it's just some setting, not if it's some parsing) an alternative is : \let\HowAboutThis\firstofoneargument \chapter{\HowAboutThis{your text}} \setuplist[chapter][style=\let\HowaboutThis\onovocalize etc Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wednesday 13 November 2002 08:24, Hans Hagen wrote:
At 04:08 PM 11/11/2002 -0800, Idris S Hamid wrote:
(For the curious: My main text (including headings) is fully accented. I have a command, "\onovocalize" which strips away all the accents. I want all my TOC entries to be\onovocalize'ed without affecting the rest of the text and need to setup my heads to reflect this.)
What does onovovalize do? Can you use:
\setuplist[chapter][style=\onovocalize]
(possible of it's just some setting, not if it's some parsing)
\onovocalize calls up a different list of ocp's. The default as I have set things up for my document is \ovocalize. I must keep \onovocalize within a group, of cours.
an alternative is :
\let\HowAboutThis\firstofoneargument
\chapter{\HowAboutThis{your text}}
\setuplist[chapter][style=\let\HowaboutThis\onovocalize
Ok, here's what happens: \let\TOC\firstofoneargument \setuplist [section][style=\let\TOC\onovocalize] Here's my section: \section{\TOC{'a.sAlaTu al-'aysi 'aw 'a.sAlaTu al-.s.sayrUraTi?}} Here's what I get: ---------------------------- ! Missing \endcsname inserted. <to be read again> \let \@@lisectionletter ->\let \TOC \onovocalize \p!doifundefined ...t \expandafter \ifx \csname #1 \endcsname \relax \doifdefinedelse #1->\p!doifundefined {#1} \let \donottest \doprocesstest \@E... \do\dodoconvertfont ...fdefinedelse {\@letter@ #1} {\doifelsenothing {#1}\go... <argument> ...li \v!paragraaf }\c!letter \c!kleur \empty \!!widthb \hsize \s... ... l.6 ...z --------------------------- What am I doing wrong? Or is there a better way? Thnx for the help! Best wishes Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
At 03:59 PM 11/13/2002 -0800, you wrote:
\onovocalize calls up a different list of ocp's. The default as I have set things up for my document is \ovocalize. I must keep \onovocalize within a group, of cours.
\setuplist [section][style=\let\TOC\onovocalize]
in that case, just say style=\onovocalize Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Thursday 14 November 2002 02:27, Hans Hagen wrote:
At 03:59 PM 11/13/2002 -0800, you wrote:
\onovocalize calls up a different list of ocp's. The default as I have set things up for my document is \ovocalize. I must keep \onovocalize within a group, of cours.
\setuplist [section][style=\let\TOC\onovocalize]
in that case, just say style=\onovocalize
I tried that:-) \setuphead[section] [style=bold,style=\onovocalize] results in ------------------------------------------ ! Missing \endcsname inserted. <to be read again> \pushocplist \ArabicGrammarNoVowels ->\pushocplist \ArabicLagallyCTPNoVowels \p!doifundefined ...t \expandafter \ifx \csname #1 \endcsname \relax \doifdefinedelse #1->\p!doifundefined {#1} \let \donottest \doprocesstest \@E... \do\dodoconvertfont ...fdefinedelse {\@letter@ #1} {\doifelsenothing {#1}\go... \do\dosetfontattribute ...name #1#2\endcsname \fi \empty ------------------------------------------- Best wishes Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Hi Idris,
Did you try
\setuphead[section][style={bold,\onovocalize}]
Cheers Willi
----- Original Message -----
From: "Idris S Hamid"
On Thursday 14 November 2002 02:27, Hans Hagen wrote:
At 03:59 PM 11/13/2002 -0800, you wrote:
\onovocalize calls up a different list of ocp's. The default as I have set things up for my document is \ovocalize. I must keep \onovocalize within a group, of cours.
\setuplist [section][style=\let\TOC\onovocalize]
in that case, just say style=\onovocalize
I tried that:-)
\setuphead[section] [style=bold,style=\onovocalize]
results in
------------------------------------------ ! Missing \endcsname inserted. <to be read again> \pushocplist \ArabicGrammarNoVowels ->\pushocplist \ArabicLagallyCTPNoVowels \p!doifundefined ...t \expandafter \ifx \csname #1 \endcsname \relax \doifdefinedelse #1->\p!doifundefined {#1} \let \donottest \doprocesstest \@E...
\do\dodoconvertfont ...fdefinedelse {\@letter@ #1} {\doifelsenothing {#1}\go...
\do\dosetfontattribute ...name #1#2\endcsname \fi \empty -------------------------------------------
Best wishes Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 02:39 PM 11/14/2002 -0800, you wrote:
On Thursday 14 November 2002 13:18, Willi Egger wrote:
Hi Idris,
Did you try
\setuphead[section][style={bold,\onovocalize}]
I tried this to no avail---same error. But Thnx!
\definealternativestyle [whow] [\sl] [\onovocalize\bf] style=whow ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wednesday 13 November 2002 08:24, Hans Hagen wrote:
At 04:08 PM 11/11/2002 -0800, Idris S Hamid wrote:
(For the curious: My main text (including headings) is fully accented. I have a command, "\onovocalize" which strips away all the accents. I want all my TOC entries to be\onovocalize'ed without affecting the rest of the text and need to setup my heads to reflect this.)
What does onovovalize do? Can you use:
\setuplist[chapter][style=\onovocalize]
(possible of it's just some setting, not if it's some parsing)
an alternative is :
\let\HowAboutThis\firstofoneargument
\chapter{\HowAboutThis{your text}}
\setuplist[chapter][style=\let\HowaboutThis\onovocalize
The following trick works for now: {\onovocalize\placecontent} Of course it would be nicer to set this up for each type of list, but it's rare that I would want e.g. chapters globally vocalized and sections globally not vocalized in the TOC. For individual cases I can can always make explicit declarations where needed. Thnx again Idris -- Dr. Idris S Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
participants (4)
-
Hans Hagen
-
Idris S Hamid
-
John Culleton
-
Willi Egger