Re: [NTG-context] Suppressing printing of chapter head.

2007-02-15 Thread Wolfgang Schuster
On Wed, 14 Feb 2007 10:48:44 -0800
JOHN CULLETON [EMAIL PROTECTED] 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
\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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Suppressing printing of chapter head.

2007-02-15 Thread JOHN CULLETON
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Suppressing printing of chapter head.

2007-02-14 Thread John R. Culleton
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

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


Re: [NTG-context] Suppressing printing of chapter head.

2007-02-14 Thread Aditya Mahajan
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Suppressing printing of chapter head.

2007-02-14 Thread JOHN CULLETON
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context