ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: Suppressing printing of chapter head.
Date: Thu, 15 Feb 2007 12:48:35 +0100	[thread overview]
Message-ID: <20070215124835.e211ed2e.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <200702141048.AA2875064636@wexfordpress.com>

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

  reply	other threads:[~2007-02-15 11:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 18:48 JOHN CULLETON
2007-02-15 11:48 ` Wolfgang Schuster [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-15 14:20 JOHN CULLETON
2007-02-14 13:21 John R. Culleton
2007-02-14 15:19 ` Wolfgang Schuster
2007-02-14 15:49 ` Aditya Mahajan

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=20070215124835.e211ed2e.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).