ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* chapter setup / table of contents
@ 2008-04-14 20:06 Henning Hraban Ramm
  2008-04-14 20:26 ` luigi scarso
  2008-04-15  8:03 ` Wolfgang Schuster
  0 siblings, 2 replies; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-14 20:06 UTC (permalink / raw)
  To: ConTeXt ML

Ahoi!

In a volume of proceedings, each chapter has an author and title and  
sometimes a subtitle.
The ToC entry should look like:

Author: Title \hfill Page
(no indents!)

At the moment I've this setup:

---

\def\Titel#1#2#3{% author, title, subtitle
	\page%
	{\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
	\switchtobodyfont[12pt]\noindent #1%
	\chapter{\noindent #2}%
	{\ss\bf #3}%
	\blank[2*big]}%
}

\setuphead[chapter][page=no, number=no, align= 
{flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},  
after={\blank}]

\definecombinedlist[toc][chapter][level=chapter, placehead=no,  
criterium=all, alternative=b, offset=none]
\setupcombinedlist  [toc] [partnumber=no]

---

Please don't cry, I know it's ugly... ;-)

What it does is close, but nood good enough.

- Is there a way to use the normal chapter (or any head) mechanism  
with such "feathered" titles?
- How do I get my special ToC?


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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  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-15  8:03 ` Wolfgang Schuster
  1 sibling, 1 reply; 21+ messages in thread
From: luigi scarso @ 2008-04-14 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> Ahoi!
>
>  In a volume of proceedings, each chapter has an author and title and
>  sometimes a subtitle.
>  The ToC entry should look like:
>
>  Author: Title \hfill Page
>  (no indents!)
>
>  At the moment I've this setup:
>
>  ---
>
>  \def\Titel#1#2#3{% author, title, subtitle
>         \page%
>         {\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
>         \switchtobodyfont[12pt]\noindent #1%
>         \chapter{\noindent #2}%
>         {\ss\bf #3}%
>         \blank[2*big]}%
>  }
>
>  \setuphead[chapter][page=no, number=no, align=
>  {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},
>  after={\blank}]
>
>  \definecombinedlist[toc][chapter][level=chapter, placehead=no,
>  criterium=all, alternative=b, offset=none]
>  \setupcombinedlist  [toc] [partnumber=no]
>
>  ---
>
>  Please don't cry, I know it's ugly... ;-)
>
>  What it does is close, but nood good enough.
>
>  - Is there a way to use the normal chapter (or any head) mechanism
>  with such "feathered" titles?
>  - How do I get my special ToC?

I've seen in core-lst
% \setuplist
%   [section]
%   [alternative=MyListItem,
%    after=\blank,
%    before=\blank]
%
% \definelistplacement[MyListItem][none]#1#2#3%
%   {(#1) (#2) (#3)}

Maybe this can help you ?


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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] 21+ messages in thread

* Re: chapter setup / table of contents
  2008-04-14 20:26 ` luigi scarso
@ 2008-04-14 20:58   ` Henning Hraban Ramm
  2008-04-14 21:11     ` luigi scarso
  0 siblings, 1 reply; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-14 20:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2008-04-14 um 22:26 schrieb luigi scarso:
>>
>> I've seen in core-lst
> % \setuplist
> %   [section]
> %   [alternative=MyListItem,
> %    after=\blank,
> %    before=\blank]
> %
> % \definelistplacement[MyListItem][none]#1#2#3%
> %   {(#1) (#2) (#3)}
>
> Maybe this can help you ?

I guess not - these 3 parameters are AFAIK part no., title and page  
no., and it's called "automatically" for the ToC entry, so I don't  
know how I could replace #2 with "<author>: #2"

i.e. "alternative" in \setuplist is only for defining a different  
format for the ToC line, not for changing the *content* of it.

Probably I must utilize that, too, but it doesn't solve my problem on  
its own.


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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  2008-04-14 20:58   ` Henning Hraban Ramm
@ 2008-04-14 21:11     ` luigi scarso
  0 siblings, 0 replies; 21+ messages in thread
From: luigi scarso @ 2008-04-14 21:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

a bit of lua code ?

\startluacode
     MyStuff = {}
     SecCount = 0
     SecIndexCount = 0
\stopluacode

\definelistplacement[MyListItem][none]#1#2#3{%
\ctxlua{SecIndexCount = SecIndexCount +1}
%% Do something with
%%\ctxlua{tex.sprint(MyStuff[SecIndexCount])}
%%
}

\setuplist[section][alternative=MyListItem,
]

\def\SectionHeadCommand#1#2{%
\ctxlua{SecCount = SecCount +1}
%% Here set MyStuff
%% \ctxlua{MyStuff[SecCount] = "...."}%
%%
}
\setuphead[section][command={\SectionHeadCommand}]


>  I guess not - these 3 parameters are AFAIK part no., title and page
>  no., and it's called "automatically" for the ToC entry, so I don't
>  know how I could replace #2 with "<author>: #2"
>
>  i.e. "alternative" in \setuplist is only for defining a different
>  format for the ToC line, not for changing the *content* of it.
>
>  Probably I must utilize that, too, but it doesn't solve my problem on
>  its own.
>
>
>
>
>  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
>  ___________________________________________________________________________________
>



-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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] 21+ messages in thread

* Re: chapter setup / table of contents
  2008-04-14 20:06 chapter setup / table of contents Henning Hraban Ramm
  2008-04-14 20:26 ` luigi scarso
@ 2008-04-15  8:03 ` Wolfgang Schuster
  2008-04-15 22:07   ` Henning Hraban Ramm
  1 sibling, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-15  8:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 10:06 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> Ahoi!
>
> In a volume of proceedings, each chapter has an author and title and
> sometimes a subtitle.
> The ToC entry should look like:
>
> Author: Title \hfill Page
> (no indents!)
>
> At the moment I've this setup:
>
> ---
>
> \def\Titel#1#2#3{% author, title, subtitle
>        \page%
>        {\writebetweenlist[chapter]{\placeongrid{\noindent #1:}}
>        \switchtobodyfont[12pt]\noindent #1%
>        \chapter{\noindent #2}%
>        {\ss\bf #3}%
>        \blank[2*big]}%
> }
>
> \setuphead[chapter][page=no, number=no, align=
> {flushleft,nothyphenated,verytolerant}, style={\ss\bfa}, before={},
> after={\blank}]
>
> \definecombinedlist[toc][chapter][level=chapter, placehead=no,
> criterium=all, alternative=b, offset=none]
> \setupcombinedlist  [toc] [partnumber=no]
>
> ---
>
> Please don't cry, I know it's ugly... ;-)
>
> What it does is close, but nood good enough.
>
> - Is there a way to use the normal chapter (or any head) mechanism
> with such "feathered" titles?
> - How do I get my special ToC?

Try this.

\unprotect

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

\startsetups chapter:list

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

  \def\ChapterSubTitle{\sectionworldparameter\c!subtitle}

\stopsetups

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

\def\ChapterCommand#1#2%
  {\vbox{#2\crlf\ChapterSubTitle}}

\let\ChapterSubTitle\relax

\protect

\setuphead
  [chapter]
  [incrementnumber=no,
   command=\ChapterCommand]

\starttext
\completecontent
\startsectionworld[chapter][author=Hans,text=Chapter One,subtitle=The Beginning]
\startsectionworld[chapter][author=Tom,text=Chapter Two,subtitle=The End]
\stopsectionworld
\stopsectionworld
\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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  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:27     ` Wolfgang Schuster
  0 siblings, 2 replies; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-15 22:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2008-04-15 um 10:03 schrieb Wolfgang Schuster:
> Try this.
>
> \unprotect
>
> \resetvalue{\??sw\v!chapter}
>
> \startsetups chapter:list
>
>   \doifsomething{\sectionworldparameter\c!author}
>     {\expanded{\writetolist[\v!chapter]
>       {\sectionworldparameter\c!author:\space
>        \sectionworldparameter\c!text}{}}}
>
>   \def\ChapterSubTitle{\sectionworldparameter\c!subtitle}
>
> \stopsetups
>
> \setupsectionworld
>   [chapter]
>   [setups={chapter:list},
>    author=]
>
> \def\ChapterCommand#1#2%
>   {\vbox{#2\crlf\ChapterSubTitle}}
>
> \let\ChapterSubTitle\relax
>
> \protect
>
> \setuphead
>   [chapter]
>   [incrementnumber=no,
>    command=\ChapterCommand]
>
> \starttext
> \completecontent
> \startsectionworld[chapter][author=Hans,text=Chapter  
> One,subtitle=The Beginning]
> \startsectionworld[chapter][author=Tom,text=Chapter  
> Two,subtitle=The End]
> \stopsectionworld
> \stopsectionworld
> \stoptext

Interesting idea, thank you very much!

Never heard about sectionworld before - ConTeXt's sources still  
aren't my usual bedtime reading.

I just managed to add outputting the author (not only in the ToC)...

Could you please show me how to set also the header to "Author: Title"?


BTW: Just added rsyncing luaTeX binaries to my daily update script,  
format generation went through, will try more tomorrow...
(Thanks Mojca, Wolfgang, Hans, Taco, Luigi etc. so far!)

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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  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  6:27     ` Wolfgang Schuster
  1 sibling, 1 reply; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-15 22:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have now:

\unprotect

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

\startsetups chapter:list

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

   \def\ChapterAuthor{{\rm\tf\sectionworldparameter\c!author}}
   \def\ChapterTitle{{\ss\bfa\sectionworldparameter\c!text}}
   \def\ChapterSubTitle{{\ss\bf\sectionworldparameter\c!subtitle}}

\stopsetups

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

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

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

\protect

\setuphead  [chapter]
[incrementnumber=no,
    command=\ChapterCommand,
     page=yes,    number=no,
     align={flushleft,nothyphenated,verytolerant}
]


The result is about:

\rm\tfa Author
\ss\bf Title
\ss\bfa Subtitle

instead of (like I defined):

\rm\tf Author
\ss\bfa Title
\ss\bf SubTitle

Why?


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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  2008-04-15 22:07   ` Henning Hraban Ramm
  2008-04-15 22:32     ` Henning Hraban Ramm
@ 2008-04-16  6:27     ` Wolfgang Schuster
  1 sibling, 0 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-16  6:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hraban,

> Never heard about sectionworld before - ConTeXt's sources still
> aren't my usual bedtime reading.

It was only mentioned in one of the release notes.

> I just managed to add outputting the author (not only in the ToC)...
>
> Could you please show me how to set also the header to "Author: Title"?
>
> BTW: Just added rsyncing luaTeX binaries to my daily update script,
> format generation went through, will try more tomorrow...
> (Thanks Mojca, Wolfgang, Hans, Taco, Luigi etc. so far!)

No problem.

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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  2008-04-15 22:32     ` Henning Hraban Ramm
@ 2008-04-16  6:31       ` Wolfgang Schuster
  2008-04-16  7:19         ` Henning Hraban Ramm
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-16  6:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Apr 16, 2008 at 12:32 AM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> I have now:
>
> \unprotect
>
> \resetvalue{\??sw\v!chapter}
>
> \startsetups chapter:list
>
>   \doifsomething{\sectionworldparameter\c!author}
>     {\expanded{\writetolist[\v!chapter]
>       {\sectionworldparameter\c!author:\space
>        \sectionworldparameter\c!text}{}}}
>
>   \def\ChapterAuthor{{\rm\tf\sectionworldparameter\c!author}}
>   \def\ChapterTitle{{\ss\bfa\sectionworldparameter\c!text}}
>   \def\ChapterSubTitle{{\ss\bf\sectionworldparameter\c!subtitle}}
>
> \stopsetups
>
> \setupsectionworld  [chapter]
>   [setups={chapter:list},
>    author=]
>
> \def\ChapterCommand#1#2%
>   {\vbox{\ChapterAuthor\crlf\ChapterTitle\crlf\ChapterSubTitle}}
>
> \let\ChapterAuthor\relax
> \let\ChapterTitle\relax
> \let\ChapterSubTitle\relax
>
> \protect
>
> \setuphead  [chapter]
> [incrementnumber=no,
>    command=\ChapterCommand,
>     page=yes,    number=no,
>     align={flushleft,nothyphenated,verytolerant}
> ]
>
>
> The result is about:
>
> \rm\tfa Author
> \ss\bf Title
> \ss\bfa Subtitle
>
> instead of (like I defined):
>
> \rm\tf Author
> \ss\bfa Title
> \ss\bf SubTitle

Add "style=," to \setuphead[chapter] because the default value
influence your own settings.

You should also define a new header for the ToC because it use
\title by default and this is also changed with \setuphead[chapter].

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
___________________________________________________________________________________


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

* Re: chapter setup / table of contents
  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-28 20:21           ` chapter setup / table of contents Henning Hraban Ramm
  0 siblings, 2 replies; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-16  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/4/16, Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
> Add "style=," to \setuphead[chapter] because the default value
>  influence your own settings.

I tried that before but the results were not satisfying (it was
unclear to me, where it did apply and where not) - I need a different
style for the three lines anyway.

>  You should also define a new header for the ToC because it use
>  \title by default and this is also changed with \setuphead[chapter].

ok, will try tonight.

Greetlings, Hraban
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces (was: chapter setup / table of contents)
       [not found]           ` <01C12D32-1DBE-4596-87DD-C59919B96FC3@fiee.net>
@ 2008-04-27 21:45             ` Henning Hraban Ramm
  2008-04-28  8:51               ` who eats my spaces Taco Hoekwater
  2008-09-25 11:22               ` who eats my spaces (was: chapter setup / table of contents) Wolfgang Schuster
  0 siblings, 2 replies; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-27 21:45 UTC (permalink / raw)
  To: ConTeXt ML

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
___________________________________________________________________________________


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

* Re: who eats my spaces
  2008-04-27 21:45             ` who eats my spaces (was: chapter setup / table of contents) Henning Hraban Ramm
@ 2008-04-28  8:51               ` Taco Hoekwater
  2008-04-28  9:45                 ` Wolfgang Schuster
  2008-09-25 11:22               ` who eats my spaces (was: chapter setup / table of contents) Wolfgang Schuster
  1 sibling, 1 reply; 21+ messages in thread
From: Taco Hoekwater @ 2008-04-28  8:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users



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
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  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
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-28  9:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 28, 2008 at 10:51 AM, Taco Hoekwater <taco@elvenkind.com> wrote:
>
>
> 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
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  2008-04-28  9:45                 ` Wolfgang Schuster
@ 2008-04-28 19:36                   ` Henning Hraban Ramm
  2008-04-29  7:05                     ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-28 19:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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] 21+ messages in thread

* Re: chapter setup / table of contents
  2008-04-16  7:19         ` Henning Hraban Ramm
       [not found]           ` <01C12D32-1DBE-4596-87DD-C59919B96FC3@fiee.net>
@ 2008-04-28 20:21           ` Henning Hraban Ramm
  1 sibling, 0 replies; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-28 20:21 UTC (permalink / raw)
  To: ConTeXt ML

I just documented my whole setup at:
http://wiki.contextgarden.net/Proceedings_style

Hope it helps someone with something similar.


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
___________________________________________________________________________________


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

* Re: who eats my spaces
  2008-04-28 19:36                   ` Henning Hraban Ramm
@ 2008-04-29  7:05                     ` Wolfgang Schuster
  2008-04-30 12:12                       ` Henning Hraban Ramm
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-29  7:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 28, 2008 at 9:36 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> 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
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  2008-04-29  7:05                     ` Wolfgang Schuster
@ 2008-04-30 12:12                       ` Henning Hraban Ramm
  2008-04-30 12:54                         ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-30 12:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  2008-04-30 12:12                       ` Henning Hraban Ramm
@ 2008-04-30 12:54                         ` Wolfgang Schuster
  2008-04-30 14:44                           ` Henning Hraban Ramm
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-30 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Apr 30, 2008 at 2:12 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> 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
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  2008-04-30 12:54                         ` Wolfgang Schuster
@ 2008-04-30 14:44                           ` Henning Hraban Ramm
  2008-04-30 14:49                             ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Henning Hraban Ramm @ 2008-04-30 14:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces
  2008-04-30 14:44                           ` Henning Hraban Ramm
@ 2008-04-30 14:49                             ` Wolfgang Schuster
  0 siblings, 0 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-04-30 14:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Apr 30, 2008 at 4:44 PM, Henning Hraban Ramm <hraban@fiee.net> wrote:
> 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
___________________________________________________________________________________
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] 21+ messages in thread

* Re: who eats my spaces (was: chapter setup / table of contents)
  2008-04-27 21:45             ` who eats my spaces (was: chapter setup / table of contents) Henning Hraban Ramm
  2008-04-28  8:51               ` who eats my spaces Taco Hoekwater
@ 2008-09-25 11:22               ` Wolfgang Schuster
  1 sibling, 0 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-09-25 11:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm


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


___________________________________________________________________________________
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] 21+ messages in thread

end of thread, other threads:[~2008-09-25 11:22 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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             ` who eats my spaces (was: chapter setup / table of contents) Henning Hraban Ramm
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

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).