* linebreak NOT in section title BUT in content
@ 2007-10-30 16:51 Steffen Wolfrum
2007-10-30 19:43 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2007-10-30 16:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
\chapter{First line\\second line}
gives a linebreak in the chapter's title but not in the corresponding
toc entry.
I need it the other way round: a line break at a specific point of
the toc entry *and not* in the chapters title.
Is this possible?
Steffen
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 16:51 linebreak NOT in section title BUT in content Steffen Wolfrum
@ 2007-10-30 19:43 ` Hans Hagen
2007-10-30 20:08 ` Steffen Wolfrum
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2007-10-30 19:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Steffen Wolfrum wrote:
> Hi,
>
> \chapter{First line\\second line}
>
> gives a linebreak in the chapter's title but not in the corresponding
> toc entry.
>
>
> I need it the other way round: a line break at a specific point of
> the toc entry *and not* in the chapters title.
>
> Is this possible?
\crlf if i remember right
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 19:43 ` Hans Hagen
@ 2007-10-30 20:08 ` Steffen Wolfrum
2007-10-30 20:19 ` Idris Samawi Hamid
0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2007-10-30 20:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 30.10.2007 um 20:43 schrieb Hans Hagen:
> Steffen Wolfrum wrote:
>> Hi,
>>
>> \chapter{First line\\second line}
>>
>> gives a linebreak in the chapter's title but not in the corresponding
>> toc entry.
>>
>>
>> I need it the other way round: a line break at a specific point of
>> the toc entry *and not* in the chapters title.
>>
>> Is this possible?
>
> \crlf if i remember right
No, unfortunately not: it also breaks the line in the section's
title ...
Steffen
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 20:08 ` Steffen Wolfrum
@ 2007-10-30 20:19 ` Idris Samawi Hamid
2007-10-30 20:44 ` Steffen Wolfrum
0 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid @ 2007-10-30 20:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 30 Oct 2007 14:08:54 -0600, Steffen Wolfrum
<context@st.estfiles.de> wrote:
>
> Am 30.10.2007 um 20:43 schrieb Hans Hagen:
>
>> Steffen Wolfrum wrote:
>>> Hi,
>>>
>>> \chapter{First line\\second line}
>>>
>>> gives a linebreak in the chapter's title but not in the corresponding
>>> toc entry.
>>>
>>>
>>> I need it the other way round: a line break at a specific point of
>>> the toc entry *and not* in the chapters title.
>>>
>>> Is this possible?
>>
>> \crlf if i remember right
>
>
> No, unfortunately not: it also breaks the line in the section's
> title ...
There is a workaround; play with
\writebetweenlist [subsubsection] {\blank[small]}
\writetolist[subsubsection]{}{#1}
etc. So you can define a <section> that appears in the text and another
that appears in the TOC.
I always use this for tight toc spots.
Best
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 20:19 ` Idris Samawi Hamid
@ 2007-10-30 20:44 ` Steffen Wolfrum
2007-10-30 21:47 ` Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2007-10-30 20:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 30.10.2007 um 21:19 schrieb Idris Samawi Hamid:
> On Tue, 30 Oct 2007 14:08:54 -0600, Steffen Wolfrum
> <context@st.estfiles.de> wrote:
>
>>
>> Am 30.10.2007 um 20:43 schrieb Hans Hagen:
>>
>>> Steffen Wolfrum wrote:
>>>> Hi,
>>>>
>>>> \chapter{First line\\second line}
>>>>
>>>> gives a linebreak in the chapter's title but not in the
>>>> corresponding
>>>> toc entry.
>>>>
>>>>
>>>> I need it the other way round: a line break at a specific point of
>>>> the toc entry *and not* in the chapters title.
>>>>
>>>> Is this possible?
>>>
>>> \crlf if i remember right
>>
>>
>> No, unfortunately not: it also breaks the line in the section's
>> title ...
>
> There is a workaround; play with
>
> \writebetweenlist [subsubsection] {\blank[small]}
> \writetolist[subsubsection]{}{#1}
>
> etc. So you can define a <section> that appears in the text and
> another
> that appears in the TOC.
>
> I always use this for tight toc spots.
Thank you Idris. Yes, this way I know.
But I was sure there was also a fast, direct way.
Well, obviously there isn't (anymore?) ...
Steffen
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 20:44 ` Steffen Wolfrum
@ 2007-10-30 21:47 ` Taco Hoekwater
2007-10-30 22:12 ` Idris Samawi Hamid
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Taco Hoekwater @ 2007-10-30 21:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Steffen Wolfrum wrote:
>
> But I was sure there was also a fast, direct way.
> Well, obviously there isn't (anymore?) ...
Here's a trick. It is ugly, but works reasonably well.
\starttext
\def\CR{\crlf}
\completecontent
\def\CR{ }
\chapter{First line\CR second line}
\stoptext
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 21:47 ` Taco Hoekwater
@ 2007-10-30 22:12 ` Idris Samawi Hamid
2007-10-30 22:54 ` Steffen Wolfrum
2007-10-31 11:50 ` Wolfgang Schuster
2 siblings, 0 replies; 10+ messages in thread
From: Idris Samawi Hamid @ 2007-10-30 22:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 30 Oct 2007 15:47:53 -0600, Taco Hoekwater <taco@elvenkind.com>
wrote:
> Steffen Wolfrum wrote:
>>
>> But I was sure there was also a fast, direct way.
>> Well, obviously there isn't (anymore?) ...
>
> Here's a trick. It is ugly, but works reasonably well.
>
> \starttext
> \def\CR{\crlf}
> \completecontent
> \def\CR{ }
>
> \chapter{First line\CR second line}
>
> \stoptext
A good one for the wiki, I run into this problem myself sometimes...
Best
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 21:47 ` Taco Hoekwater
2007-10-30 22:12 ` Idris Samawi Hamid
@ 2007-10-30 22:54 ` Steffen Wolfrum
2007-10-31 11:50 ` Wolfgang Schuster
2 siblings, 0 replies; 10+ messages in thread
From: Steffen Wolfrum @ 2007-10-30 22:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 30.10.2007 um 22:47 schrieb Taco Hoekwater:
> Steffen Wolfrum wrote:
>>
>> But I was sure there was also a fast, direct way.
>> Well, obviously there isn't (anymore?) ...
>
> Here's a trick. It is ugly, but works reasonably well.
>
> \starttext
> \def\CR{\crlf}
> \completecontent
> \def\CR{ }
>
> \chapter{First line\CR second line}
>
> \stoptext
Unbelievable!
What a dirty mind must this be breeding out tricks like this ... and
works like a charm.
Thank you Taco!!
Steffen
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-30 21:47 ` Taco Hoekwater
2007-10-30 22:12 ` Idris Samawi Hamid
2007-10-30 22:54 ` Steffen Wolfrum
@ 2007-10-31 11:50 ` Wolfgang Schuster
2007-10-31 16:40 ` Steffen Wolfrum
2 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2007-10-31 11:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]
2007/10/30, Taco Hoekwater <taco@elvenkind.com>:
>
> Steffen Wolfrum wrote:
> >
> > But I was sure there was also a fast, direct way.
> > Well, obviously there isn't (anymore?) ...
>
> Here's a trick. It is ugly, but works reasonably well.
>
> \starttext
> \def\CR{\crlf}
> \completecontent
> \def\CR{ }
>
> \chapter{First line\CR second line}
>
> \stoptext
Nice solution but Hans wrote a mechanism to to make two different
titles for the text and the table of contents or whatever else you want.
\defineselector[title][max=2,n=2]
\starttext
\start
\setupselector[title][n=1]
\completecontent
\stop
\chapter{\select{title}{First line\crlf second line}{First line second
line}}
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1184 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: linebreak NOT in section title BUT in content
2007-10-31 11:50 ` Wolfgang Schuster
@ 2007-10-31 16:40 ` Steffen Wolfrum
0 siblings, 0 replies; 10+ messages in thread
From: Steffen Wolfrum @ 2007-10-31 16:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
Phhh! Hot stuff Wolfgang.
This one should definitely go into the wiki (maybe plus a little
documentation?)
Very convenient option, amazing what goodies ConTeXt provides – thank
you very, very much Hans!
And thank you Wolfgang for remembering this ... even the master
himself forgot it ;o)
Steffen
Am 31.10.2007 um 12:50 schrieb Wolfgang Schuster:
>
>
> 2007/10/30, Taco Hoekwater <taco@elvenkind.com>: Steffen Wolfrum
> wrote:
> >
> > But I was sure there was also a fast, direct way.
> > Well, obviously there isn't (anymore?) ...
>
> Here's a trick. It is ugly, but works reasonably well.
>
> \starttext
> \def\CR{\crlf}
> \completecontent
> \def\CR{ }
>
> \chapter{First line\CR second line}
>
> \stoptext
>
> Nice solution but Hans wrote a mechanism to to make two different
> titles for the text and the table of contents or whatever else you
> want.
>
> \defineselector[title][max=2,n=2]
> \starttext
>
> \start
> \setupselector[title][n=1]
> \completecontent
> \stop
>
> \chapter{\select{title}{First line\crlf second line}{First line
> second line}}
>
> \stoptext
>
> 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://tex.aanhet.net
> archive : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ______________________________________________________________________
> _____________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-10-31 16:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30 16:51 linebreak NOT in section title BUT in content Steffen Wolfrum
2007-10-30 19:43 ` Hans Hagen
2007-10-30 20:08 ` Steffen Wolfrum
2007-10-30 20:19 ` Idris Samawi Hamid
2007-10-30 20:44 ` Steffen Wolfrum
2007-10-30 21:47 ` Taco Hoekwater
2007-10-30 22:12 ` Idris Samawi Hamid
2007-10-30 22:54 ` Steffen Wolfrum
2007-10-31 11:50 ` Wolfgang Schuster
2007-10-31 16:40 ` Steffen Wolfrum
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).