ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Suppressing printing of chapter head.
@ 2007-02-14 13:21 John R. Culleton
  2007-02-14 15:19 ` Wolfgang Schuster
  2007-02-14 15:49 ` Aditya Mahajan
  0 siblings, 2 replies; 6+ messages in thread
From: John R. Culleton @ 2007-02-14 13:21 UTC (permalink / raw)
  To: ntg-context

I have a specification for a chapter head that is so complex I have little 
hope of modifying the Context head within any reasonable time frame. But I 
still prefer to use the Context chapter head for TOC, numbering of figures 
and the like. So I decided to hand code the head but still use \chapter  for 
these other purposes.  Here is my current workaround:
------------------------------------------------------------------
\setuphead[chapter][command=\white,header=nomarking]
------------------------------------------------------------------------
I still have to use \noheaderandfooterlines as well for some reason. 
Just FYI. 

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

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

* Re: Suppressing printing of chapter head.
  2007-02-14 13:21 Suppressing printing of chapter head John R. Culleton
@ 2007-02-14 15:19 ` Wolfgang Schuster
  2007-02-14 15:49 ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2007-02-14 15:19 UTC (permalink / raw)
  To: ntg-context

On Wed, 14 Feb 2007 08:21:18 -0500
"John R. Culleton" <john@wexfordpress.com> wrote:

> I have a specification for a chapter head that is so complex I have little 
> hope of modifying the Context head within any reasonable time frame. But I 
> still prefer to use the Context chapter head for TOC, numbering of figures 
> and the like. So I decided to hand code the head but still use \chapter  for 
> these other purposes.  Here is my current workaround:
> ------------------------------------------------------------------
> \setuphead[chapter][command=\white,header=nomarking]
> ------------------------------------------------------------------------
> I still have to use \noheaderandfooterlines as well for some reason. 
> Just FYI. 

Hi John,

can you make a image how your head should look.

To avoid headers and footer on chapter pages or to create special ones
for these pages you can use (taken from page-txt).

\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter]

Wolfgang

> 
> -- 
> John Culleton
> Able Indexing and Typesetting
> Precision typesetting (tm) at reasonable cost.
> Satisfaction guaranteed. 
> http://wexfordpress.com
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Suppressing printing of chapter head.
  2007-02-14 13:21 Suppressing printing of chapter head John R. Culleton
  2007-02-14 15:19 ` Wolfgang Schuster
@ 2007-02-14 15:49 ` Aditya Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2007-02-14 15:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 14 Feb 2007, John R. Culleton wrote:

> I have a specification for a chapter head that is so complex I have little
> hope of modifying the Context head within any reasonable time frame. But I
> still prefer to use the Context chapter head for TOC, numbering of figures
> and the like. So I decided to hand code the head but still use \chapter  for
> these other purposes.  Here is my current workaround:
> ------------------------------------------------------------------
> \setuphead[chapter][command=\white,header=nomarking]

Maybe command=\gobbleoneargument instead of white. With \white, the 
head will still occupy space.

> ------------------------------------------------------------------------
> I still have to use \noheaderandfooterlines as well for some reason.
> Just FYI.

Aditya

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

* Re: Suppressing printing of chapter head.
@ 2007-02-15 14:20 JOHN CULLETON
  0 siblings, 0 replies; 6+ messages in thread
From: JOHN CULLETON @ 2007-02-15 14:20 UTC (permalink / raw)
  To: ntg-context; +Cc: Schuster <schuster.wolfgang, Wolfgang

I am having difficulty sending email to the list. The correct file name is
http://wexfordpress.com/tex/headtest.pdf

Sorry about that.

John C.


_________________________________________________________________
Need personalized email and website? Look no further. It's easy
with Doteasy $0 Web Hosting! Learn more at www.doteasy.com

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

* Re: Suppressing printing of chapter head.
  2007-02-14 18:48 JOHN CULLETON
@ 2007-02-15 11:48 ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2007-02-15 11:48 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 2779 bytes --]

On Wed, 14 Feb 2007 10:48:44 -0800
"JOHN CULLETON" <john@wexfordpress.com> wrote:

Hi John,

> On Wednesday 14 February 2007 10:14, Wolfgang Schuster wrote:
> > [location=top,
> >    spaceinbetween=0pt, % <-- your friend
> >    style=bold,
> >    width=max]
> 
> That works as far as the bolding is concerned. Many thanks. But the 
> "Figure 2-1"
> and the 
> "Comparison of Corporate and Government
> Bond Portfolios"
> are still in run-in style like this:
> 
> Figure 2.1 Comparison of Corporate and Government
> Bond Portfolios
> 
> I can maybe talk the customer out of that detail but if I can do it it would 
> be nice. 

don't what the problem is in your document, it worked in my small test
file. The problem is there is no option to allow linebreaks between the
floatnumber and the the floatcaption. A simple way is to write \crlf in
front of every caption text or to make a copy of the macro for your
document and put this in the core macro.

> 
> Another solution to bolding was proposed by Mojca but I decided to go with 
> yours. Thanks to both. 
> 
> For those who were curious about the complexity of the heading I will post a pdf to 
> http://wexfordpress.com/tex/headertest.pdf

Did not work. I tried to write something frome your example bellow but
I don't how the result should look in the end. Please take a look in my
attached file and try to make something with this.

Wolfgang

> ..and a source file fragment here:
> -----------------------------------
> \noheaderandfooterlines
> \tf
> \chapter{Investing for Income}
> \noheaderandfooterlines 
> \null\vskip -1in 
> \noindent {\baselineskip
> 15bp \nimbul\kern -3pt {\zb{``It's a funny thing about life; if
> you refuse to accept anything but the best, you very often get
> it.''}}{\nimbus ~~---\kern 5bp \zb{Somerset Maugham}}
> 
> \centerline{\vrule height .25bp width 4.25in} \vskip 3.050in
> \switchtobodyfont[MySabon,12bp] 
> \rm 
> {\it Chapter 2} \vskip .4in
> \baselineskip 30bp 
> \leftline{\nimbux{\zc{Investing for Income,}}}
> \leftline{\nimbux{\zc{Safely and Effectively}}} \parindent
> .3125in \baselineskip 15bp \indenting[next] 
> \vskip 15pt 
> \rm 
> ----------------------------
> This is quite ugly but it works. \nimbux etc. are fonts and \zc etc. are
> macros using soul.sty.
> 
> -- 
> John Culleton
> Able Indexing and Typesetting
> Precision typesetting (tm) at reasonable cost.
> Satisfaction guaranteed. 
> http://wexfordpress.com
> 
> 
> _________________________________________________________________
> Need personalized email and website? Look no further. It's easy
> with Doteasy $0 Web Hosting! Learn more at www.doteasy.com
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

[-- Attachment #2: john.tex --]
[-- Type: text/x-tex, Size: 1649 bytes --]

\setuphead
  [chapter]
  [header=empty,
   footer=empty,
   command=\johnchapter,
   numberstyle=\it]

\def\johnchapter#1#2%
  {\vbox
   \bgroup
   \vbox
   \bgroup
   \baselineskip=\getvariable{johnchapter}{baselineskipone}
   \bgroup
     \getvariable{johnchapter}{fontone}%
     \getvariable{johnchapter}{text}
   \egroup
   \bgroup
     \getvariable{johnchapter}{fonttwo}%
     \getvariable{johnchapter}{between}%
     \getvariable{johnchapter}{author}
   \egroup
   \endgraf
   \egroup
   \centerline{\vrule height .25bp width 4.25in}
   \expanded{\blank[\getvariable{johnchapter}{before}]}
   \hbox{\it#1}
   \expanded{\blank[\getvariable{johnchapter}{after}]}
   \bgroup
   \getvariable{johnchapter}{fontthree}
   \baselineskip=\getvariable{johnchapter}{baselineskiptwo}
   \leftline{\getvariable{johnchapter}{title}\getvariable{johnchapter}{stopper}}
   \leftline{\getvariable{johnchapter}{subtitle}}
   \endgraf
   \egroup
   \egroup}

\setvariables
  [johnchapter]
  [baselineskipone=15bp,
   baselineskiptwo=30bp,
   fontone=,
   fonttwo=,
   fontthree=,
   text=,
   author=,
   between={~~---\kern5bp},
   before=3.050in,
   after=.4in,
   stopper={,},
   title=,
   subtitle=]

\setuplabeltext[chapter=Chapter~]

\def\MyChapter#1#2#3#4%
  {\setvariables
     [johnchapter]
     [title={#1},
      subtitle={#2},
      text={#3},
      author={#4}]
   \chapter{#1}}

\starttext

\chapter{Investing for Income}

\input knuth

\page

\MyChapter
  {Investing for Income}
  {Safely and Effectively}
  {``It's a funny thing about life; if you refuse to accept anything but the best, you very often get it.''}
  {Somerset Maugham}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Suppressing printing of chapter head.
@ 2007-02-14 18:48 JOHN CULLETON
  2007-02-15 11:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: JOHN CULLETON @ 2007-02-14 18:48 UTC (permalink / raw)
  To: ntg-context

On Wednesday 14 February 2007 10:14, Wolfgang Schuster wrote:
> [location=top,
>    spaceinbetween=0pt, % <-- your friend
>    style=bold,
>    width=max]

That works as far as the bolding is concerned. Many thanks. But the 
"Figure 2-1"
and the 
"Comparison of Corporate and Government
Bond Portfolios"
are still in run-in style like this:

Figure 2.1 Comparison of Corporate and Government
Bond Portfolios

I can maybe talk the customer out of that detail but if I can do it it would 
be nice. 

Another solution to bolding was proposed by Mojca but I decided to go with 
yours. Thanks to both. 

For those who were curious about the complexity of the heading I will post a pdf to 
http://wexfordpress.com/tex/headertest.pdf
..and a source file fragment here:
-----------------------------------
\noheaderandfooterlines
\tf
\chapter{Investing for Income}
\noheaderandfooterlines 
\null\vskip -1in 
\noindent {\baselineskip
15bp \nimbul\kern -3pt {\zb{``It's a funny thing about life; if
you refuse to accept anything but the best, you very often get
it.''}}{\nimbus ~~---\kern 5bp \zb{Somerset Maugham}}

\centerline{\vrule height .25bp width 4.25in} \vskip 3.050in
\switchtobodyfont[MySabon,12bp] 
\rm 
{\it Chapter 2} \vskip .4in
\baselineskip 30bp 
\leftline{\nimbux{\zc{Investing for Income,}}}
\leftline{\nimbux{\zc{Safely and Effectively}}} \parindent
.3125in \baselineskip 15bp \indenting[next] 
\vskip 15pt 
\rm 
----------------------------
This is quite ugly but it works. \nimbux etc. are fonts and \zc etc. are
macros using soul.sty.

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com


_________________________________________________________________
Need personalized email and website? Look no further. It's easy
with Doteasy $0 Web Hosting! Learn more at www.doteasy.com

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

end of thread, other threads:[~2007-02-15 14:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14 13:21 Suppressing printing of chapter head John R. Culleton
2007-02-14 15:19 ` Wolfgang Schuster
2007-02-14 15:49 ` Aditya Mahajan
2007-02-14 18:48 JOHN CULLETON
2007-02-15 11:48 ` Wolfgang Schuster
2007-02-15 14:20 JOHN CULLETON

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