ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Long sectiontitle with line-break in index of contents
@ 2012-11-27 11:06 "H. Özoguz"
  2012-11-27 11:11 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: "H. Özoguz" @ 2012-11-27 11:06 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 458 bytes --]

Hi there,

today many questions :)

Look at this:


\starttext

\completecontent

\section[

title={A very long title\par with a formatting in it}

]

\stoptext


I have a case, where I want to have a line-break (\par) in the title in 
the text (to avoid hyphenation) - but not in the index of contents - 
there it should be simply like:



\starttext

\completecontent

\section[

title={A very long title with a formatting in it}

]

\stoptext


Huseyin



[-- Attachment #1.2: Type: text/html, Size: 3101 bytes --]

[-- Attachment #2: 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] 2+ messages in thread

* Re: Long sectiontitle with line-break in index of contents
  2012-11-27 11:06 Long sectiontitle with line-break in index of contents "H. Özoguz"
@ 2012-11-27 11:11 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-11-27 11:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.11.2012 um 12:06 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:

> Hi there,
> 
> today many questions :)
> 
> Look at this:
> 
> \starttext
> \completecontent
> \section[
> title={A very long title\par with a formatting in it}
> ]
> \stoptext
> 
> I have a case, where I want to have a line-break (\par) in the title in the text (to avoid hyphenation) - but not in the index of contents - there it should be simply like:

Use \\ and not \par to break the line in the header because in the TOC it’s handled as a space.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-27 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27 11:06 Long sectiontitle with line-break in index of contents "H. Özoguz"
2012-11-27 11:11 ` 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).