Re: [NTG-context] who eats my spaces (was: chapter setup / table of contents)
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)
Henning Hraban Ramm wrote:
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}}}
I don't know who eats you spaces, but I assume you could do \def\\{\nomarking{\unskip\nolist\crlf}} together with \startsectionworld[chapter][author=B. Rüssel, title=Consequences of the Brussels Declaration \\for German cultural politics] or some variation thereof? Best wishes, Taco
On Mon, Apr 28, 2008 at 10:51 AM, Taco Hoekwater
Henning Hraban Ramm wrote:
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}}}
I don't know who eats you spaces, but I assume you could do
The period after "B" in the author filed eats the space, I tried the example with "B Rüssel" and the space is in the output.
\def\\{\nomarking{\unskip\nolist\crlf}}
together with
\startsectionworld[chapter][author=B. Rüssel, title=Consequences of the Brussels Declaration \\for German cultural politics]
or some variation thereof?
\setuphead[chapter][incrementnumber=no] This did work for the title, the \\ is converted to a space if the above line is in the source. Wolfgang
Am 2008-04-28 um 11:45 schrieb Wolfgang Schuster:
I don't know who eats you spaces, but I assume you could do The period after "B" in the author filed eats the space, I tried the example with "B Rüssel" and the space is in the output.
Of course, every normal inter-word space is kept; that's why I wrote "that in titles the space after a dot ... gets eaten". (Ok, it's a full stop, maybe not a dot?) I consider this a very strange bug, can't avoid punctuation in titles.
\def\\{\nomarking{\unskip\nolist\crlf}}
together with
\startsectionworld[chapter][author=B. Rüssel, title=Consequences of the Brussels Declaration \\for German cultural politics]
Thank you, Taco! \unskip really seems to be what I was looking for. \nocr was a meaningless duplication of \\, and I should have thought of a space before that.
\setuphead[chapter][incrementnumber=no]
I had that already. And I don't see how that would influence typesetting of punctuation or spaces? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Mon, Apr 28, 2008 at 9:36 PM, Henning Hraban Ramm
Am 2008-04-28 um 11:45 schrieb Wolfgang Schuster:
I don't know who eats you spaces, but I assume you could do The period after "B" in the author filed eats the space, I tried the example with "B Rüssel" and the space is in the output.
Of course, every normal inter-word space is kept; that's why I wrote "that in titles the space after a dot ... gets eaten". (Ok, it's a full stop, maybe not a dot?)
Seems I forgot what you wrote after I tested your example.
I consider this a very strange bug, can't avoid punctuation in titles.
Enclosing the period in braces {.} did work and is a temprorary solution but the problem need to be solved.
\def\\{\nomarking{\unskip\nolist\crlf}}
together with
\startsectionworld[chapter][author=B. Rüssel, title=Consequences of the Brussels Declaration \\for German cultural politics]
Thank you, Taco! \unskip really seems to be what I was looking for.
\nocr was a meaningless duplication of \\, and I should have thought of a space before that.
\setuphead[chapter][incrementnumber=no]
I had that already. And I don't see how that would influence typesetting of punctuation or spaces?
I inserted it to get a space for \\ in the table of content, I wasn't related to the space after punctuation but to the header content. Just related to the minimum example. Wolfgang
Am 2008-04-29 um 09:05 schrieb Wolfgang Schuster:
"that in titles the space after a dot ... gets eaten". (Ok, it's a full stop, maybe not a dot?) I consider this a very strange bug, can't avoid punctuation in titles. Enclosing the period in braces {.} did work and is a temprorary solution but the problem need to be solved.
Another temporary solution (that I used) was "\ " or "\," after each dot.
\setuphead[chapter][incrementnumber=no] I had that already. And I don't see how that would influence typesetting of punctuation or spaces? I inserted it to get a space for \\ in the table of content, I wasn't related to the space after punctuation but to the header content. Just related to the minimum example.
Ah, ok, sorry. I didn't really test my minimal. Even if the book is at the printshop now, I'd like to solve the problem for the next time - I need that "author/title/subtitle" and "author in ToC" stuff all the time. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Wed, Apr 30, 2008 at 2:12 PM, Henning Hraban Ramm
Am 2008-04-29 um 09:05 schrieb Wolfgang Schuster:
"that in titles the space after a dot ... gets eaten". (Ok, it's a full stop, maybe not a dot?) I consider this a very strange bug, can't avoid punctuation in titles. Enclosing the period in braces {.} did work and is a temprorary solution but the problem need to be solved.
Another temporary solution (that I used) was "\ " or "\," after each dot.
\setuphead[chapter][incrementnumber=no] I had that already. And I don't see how that would influence typesetting of punctuation or spaces? I inserted it to get a space for \\ in the table of content, I wasn't related to the space after punctuation but to the header content. Just related to the minimum example.
Ah, ok, sorry. I didn't really test my minimal.
Even if the book is at the printshop now, I'd like to solve the problem for the next time - I need that "author/title/subtitle" and "author in ToC" stuff all the time.
Hi Hraban, can you send me a example with the setups, I will try to find a solution in the next days. Wolfgang
Am 2008-04-30 um 14:54 schrieb Wolfgang Schuster:
can you send me a example with the setups, I will try to find a solution in the next days.
The setups are here: http://wiki.contextgarden.net/Proceedings_style I can send you the whole project off-list if you like. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Wed, Apr 30, 2008 at 4:44 PM, Henning Hraban Ramm
Am 2008-04-30 um 14:54 schrieb Wolfgang Schuster:
can you send me a example with the setups, I will try to find a solution in the next days.
The setups are here: http://wiki.contextgarden.net/Proceedings_style
I can send you the whole project off-list if you like.
I will try it with your example from the wiki for the moment. Wolfgang
Am 27.04.2008 um 23:45 schrieb Henning Hraban Ramm:
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}{}}}
\doiftextelse{\sectionworldparameter\c!author} {\expanded{\writetolist[\v!chapter] {}{\sectionworldparameter\c!author:\space \sectionworldparameter\c!title}}} {\expanded{\writetolist[\v!chapter] {}{\sectionworldparameter\c!title}}}
\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}}}
\def\newlineinlist{\crlf}
\starttext \startsectionworld[chapter][author=B. Rüssel, title=Consequences of the Brussels Declaration\\for German cultural politics] \input tufte \stopsectionworld \stoptext --- 8< ---
Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Taco Hoekwater
-
Wolfgang Schuster