ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: ConTeXt ML <ntg-context@ntg.nl>
Subject: Re: who eats my spaces (was: chapter setup / table of contents)
Date: Sun, 27 Apr 2008 23:45:13 +0200	[thread overview]
Message-ID: <FFF4CC16-85E1-41D4-8D69-D40150AEFF12@fiee.net> (raw)
In-Reply-To: <01C12D32-1DBE-4596-87DD-C59919B96FC3@fiee.net>

Coming back to my old thread.

Here's my latest chapter setup:

--- >8 ---

\unprotect

\resetvalue{\??sw\v!chapter}

\startsetups chapter:list

\def\\{{\ \nomarking{\nolist\crlf}}}


   \doiftextelse{\sectionworldparameter\c!author}
     {\expanded{\writetolist[\v!chapter]
       {\sectionworldparameter\c!author:\space
        \sectionworldparameter\c!text}{}}}
     {\expanded{\writetolist[\v!chapter]
       {\sectionworldparameter\c!text}{}}}

   \def\ChapterAuthor{%
   	\doiftextelse%
   	{\sectionworldparameter\c!author}%
   	{\rm\tf\sectionworldparameter\c!author\crlf\vskip0.2em}
   	{}%
   }
   \def\ChapterTitle{{\ss\bfb\sectionworldparameter\c!text}}
   \def\ChapterSubTitle{%
   	\doiftextelse%
   	{\sectionworldparameter\c!subtitle}%
   	{\crlf\vskip0.3em\ss\bf\sectionworldparameter\c!subtitle}%
   	{}%
   }

\stopsetups

\setupsectionworld
   [chapter]
   [setups={chapter:list},
    author=]

\def\ChapterCommand#1#2%
   {\vbox{\ChapterAuthor\ChapterTitle\ChapterSubTitle}}

\let\ChapterAuthor\relax
\let\ChapterTitle\relax
\let\ChapterSubTitle\relax

\protect

\setupmarking[chapter][limittext={}]	

\def\nocr{{\ \nomarking{\nolist\crlf}}}

\starttext
\startsectionworld[chapter][author=B. Rüssel, title=Consequences of  
the Brussels Declaration\\for German cultural politics]
\input tufte
\stopsectionworld
\stoptext
--- 8< ---

My problem is now, that in titles the space after a dot and after \\  
(or \nocr) gets eaten, the above example becomes in ToC:

B.Rüssel: Consequences of the Brussels Declarationfor German cultural  
politics

What's wrong? (Two different problems, I guess.)

(I use XeTeX with latest ConTeXt)

For I must send my book to the printer, I fixed it with inserting "\  
". But I'd appreciate a real solution.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2008-04-27 21:45 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 20:06 chapter setup / table of contents Henning Hraban Ramm
2008-04-14 20:26 ` luigi scarso
2008-04-14 20:58   ` Henning Hraban Ramm
2008-04-14 21:11     ` luigi scarso
2008-04-15  8:03 ` Wolfgang Schuster
2008-04-15 22:07   ` Henning Hraban Ramm
2008-04-15 22:32     ` Henning Hraban Ramm
2008-04-16  6:31       ` Wolfgang Schuster
2008-04-16  7:19         ` Henning Hraban Ramm
     [not found]           ` <01C12D32-1DBE-4596-87DD-C59919B96FC3@fiee.net>
2008-04-27 21:45             ` Henning Hraban Ramm [this message]
2008-04-28  8:51               ` who eats my spaces Taco Hoekwater
2008-04-28  9:45                 ` Wolfgang Schuster
2008-04-28 19:36                   ` Henning Hraban Ramm
2008-04-29  7:05                     ` Wolfgang Schuster
2008-04-30 12:12                       ` Henning Hraban Ramm
2008-04-30 12:54                         ` Wolfgang Schuster
2008-04-30 14:44                           ` Henning Hraban Ramm
2008-04-30 14:49                             ` Wolfgang Schuster
2008-09-25 11:22               ` who eats my spaces (was: chapter setup / table of contents) Wolfgang Schuster
2008-04-28 20:21           ` chapter setup / table of contents Henning Hraban Ramm
2008-04-16  6:27     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FFF4CC16-85E1-41D4-8D69-D40150AEFF12@fiee.net \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).