* Label to delete in the table of contents
@ 2020-08-23 14:02 Fabrice Couvreur
2020-08-24 13:12 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2020-08-23 14:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]
Hello,
For the title of the chapters I use the following command.
\unexpanded\def\HeadTitle#1#2%
{\framed
[frame=off,
width=fit,
align=flushleft]
{\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}}
\blank#1\blank#2}
When I compile my project, I have the label "Chapitre" above the word
"Sommaire" in the table of contents : how to delete it ?
Thanks for your help
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 1784 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Label to delete in the table of contents
2020-08-23 14:02 Label to delete in the table of contents Fabrice Couvreur
@ 2020-08-24 13:12 ` Wolfgang Schuster
2020-08-24 13:32 ` Fabrice Couvreur
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2020-08-24 13:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 771 bytes --]
Fabrice Couvreur schrieb am 23.08.2020 um 16:02:
> Hello,
> For the title of the chapters I use the following command.
>
> \unexpanded\def\HeadTitle#1#2%
> {\framed
> [frame=off,
> width=fit,
> align=flushleft]
> {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}}
> \blank#1\blank#2}
>
> When I compile my project, I have the label "Chapitre" above the word
> "Sommaire" in the table of contents : how to delete it ?
1. Don't apply the command to \title
\setuphead[title][command=]
2. Make the command local to bodypart of your document, this works only
when you use section blocks (e.g. \startbodymatter)
\startsectionblockenvironment[bodypart]
\setuphead[chapter][command=\HeadTitle]
\stopsectionblockenvironment
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2377 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Label to delete in the table of contents
2020-08-24 13:12 ` Wolfgang Schuster
@ 2020-08-24 13:32 ` Fabrice Couvreur
2020-08-24 13:41 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2020-08-24 13:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 1613 bytes --]
Hi Wolfgang,
Thank you for your reply. Probably my fault but now I get the number 0 on
the word "Summary".
Fabrice
[image: contents.png]
Le lun. 24 août 2020 à 15:12, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> a écrit :
> Fabrice Couvreur schrieb am 23.08.2020 um 16:02:
>
> Hello,
> For the title of the chapters I use the following command.
>
> \unexpanded\def\HeadTitle#1#2%
> {\framed
> [frame=off,
> width=fit,
> align=flushleft]
> {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}}
> \blank#1\blank#2}
>
> When I compile my project, I have the label "Chapitre" above the word
> "Sommaire" in the table of contents : how to delete it ?
>
>
> 1. Don't apply the command to \title
>
> \setuphead[title][command=]
>
>
> 2. Make the command local to bodypart of your document, this works only
> when you use section blocks (e.g. \startbodymatter)
>
> \startsectionblockenvironment[bodypart]
> \setuphead[chapter][command=\HeadTitle]
> \stopsectionblockenvironment
>
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.1.2: Type: text/html, Size: 3612 bytes --]
[-- Attachment #1.2: contents.png --]
[-- Type: image/png, Size: 4362 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Label to delete in the table of contents
2020-08-24 13:32 ` Fabrice Couvreur
@ 2020-08-24 13:41 ` Wolfgang Schuster
2020-08-24 13:47 ` Fabrice Couvreur
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2020-08-24 13:41 UTC (permalink / raw)
To: NTG-Context ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 260 bytes --]
Fabrice Couvreur schrieb am 24.08.2020 um 15:32:
> Hi Wolfgang,
> Thank you for your reply. Probably my fault but now I get the number 0
> on the word "Summary".
> Fabrice
> contents.png
\setuphead
[title]
[command=,
numbercommand=]
Wolfgang
[-- Attachment #1.2.1: Type: text/html, Size: 1024 bytes --]
[-- Attachment #1.2.2: image.png --]
[-- Type: image/png, Size: 4259 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Label to delete in the table of contents
2020-08-24 13:41 ` Wolfgang Schuster
@ 2020-08-24 13:47 ` Fabrice Couvreur
0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2020-08-24 13:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 942 bytes --]
Thanks !!
Le lun. 24 août 2020 à 15:41, Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> a écrit :
> Fabrice Couvreur schrieb am 24.08.2020 um 15:32:
>
> Hi Wolfgang,
> Thank you for your reply. Probably my fault but now I get the number 0 on
> the word "Summary".
> Fabrice
> [image: contents.png]
>
>
> \setuphead
> [title]
> [command=,
> numbercommand=]
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.1.2: Type: text/html, Size: 2198 bytes --]
[-- Attachment #1.2: image.png --]
[-- Type: image/png, Size: 4259 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-24 13:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-23 14:02 Label to delete in the table of contents Fabrice Couvreur
2020-08-24 13:12 ` Wolfgang Schuster
2020-08-24 13:32 ` Fabrice Couvreur
2020-08-24 13:41 ` Wolfgang Schuster
2020-08-24 13:47 ` Fabrice Couvreur
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).