ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Line break in header
Date: Tue, 27 Nov 2012 10:49:04 +0100	[thread overview]
Message-ID: <D1C33795-4E01-4D52-B9FD-76E3614FCBA5@gmail.com> (raw)
In-Reply-To: <CAG5iGsD5A_aRPEi9Y3UXUhsoKJe=wsMpW4hSG2aTqwrgApk=gw@mail.gmail.com>


Am 27.11.2012 um 10:36 schrieb luigi scarso <luigi.scarso@gmail.com>:

> On Tue, Nov 27, 2012 at 10:24 AM, Wolfgang Schuster
> <wolfgang.schuster@gmail.com> wrote:
>> 
>> Am 27.11.2012 um 10:11 schrieb luigi scarso <luigi.scarso@gmail.com>:
>> 
>>> On Tue, Nov 27, 2012 at 10:04 AM, "H. Özoguz" <h.oezoguz@mmnetz.de> wrote:
>>>> \setupheadertexts
>>>> 
>>>> [] [{\getmarking[section]}]
>>>> 
>>>> [][]
>>>> 
>>>> 
>>>> \starttext
>>>> 
>>>> \section{This is a very long section title, and so, clearly, it does not fit
>>>> in one line, definitely not, absolutely no change. Without line break not
>>>> possible.}
>>>> 
>>>> \stoptext
>>> 
>>> Hm, I dont' understand clearly what you want (the title is ok for me), […]
>> 
>> The headertext isn’t broken into lines.
> ah now I see -- the headertext .
> 
> Hm, you can try a temp. patch
> 
> \showframe
> \setupheadertexts[][\vbox{\hsize=0.45\textwidth\getmarking[section]}][][]

Or use a customized frame:

\defineframed[headerframed][frame=off,width=.45\textwidth,align=normal,offset=0pt,location=bottom]

\setupheadertexts
  [][\headerframed{\getmarking[section]}]
  [][]

> There is a macro to make a shortert title, but
> a shorter text with the “marking” key from \startsection
> is better, of course

No need for a macro, it’s available as a option for \setupheader.

\setupheader[width=6cm]

\setupheadertexts
  [][section]
  [][]

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-11-27  9:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27  9:04 "H. Özoguz"
2012-11-27  9:11 ` luigi scarso
2012-11-27  9:24   ` Wolfgang Schuster
2012-11-27  9:36     ` luigi scarso
2012-11-27  9:49       ` Wolfgang Schuster [this message]
     [not found] <mailman.403.1354009009.2161.ntg-context@ntg.nl>
2012-11-27  9:56 ` "H. Özoguz"

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=D1C33795-4E01-4D52-B9FD-76E3614FCBA5@gmail.com \
    --to=wolfgang.schuster@gmail.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).