ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Problem with \definehead
Date: Thu, 23 Jun 2011 15:07:34 +0200	[thread overview]
Message-ID: <op.vxi5ewlcwshuv7@lpr> (raw)
In-Reply-To: <2DBC0BA9-95EB-4540-844D-8221D3DD73CD@googlemail.com>

> Don’t misuse headings for your titlepage. As a titlepage is something special
> you can use \midaligned, \definedfont etc. to format it, e.g.

Thanks for the answer, but -

- to describe better my situation:

I'm not creating a typical book, but a special kind of report, with many code generated by Lua, many \typefiles and many included PDFs.

And here, there are heads being used as:

- "normal" heads (left-aligned; appended by normal text) and
- "title-like" heads (mid-aligned) which should stand alone on a page (e.g. being appended by other pdf documents on the next page).

Both kinds of heads should be numbered and should be involved to TOC; so in this point of view, they have the same status.

So e.g.:

--- (page) ---
Chapter 1      <- Normally left-aligned
Section 1.1    <- Normally left-aligned

Some text
some text
some text
some text

--- (page) ---

   Chapter 2    <- Mid-aligned
  Section 2.1   <- Mid-aligned



--- (page) ---

+------------+
| Another    |
| pdf        |
+------------+



--- (page) ---


So "Chapter 1" and "Section 1.1" are "normal" heads, probably typeset by \chapter and \section.

As my primary intention was not to "force" normal heads to be aligned otherwise, I derived new head styles \chapterMiddle and \sectionMiddle, which are used to generate "Chapter 2" and "Section 2.1".

But the problem is that TOC becomes visually "crashed" once \sectionMiddle has been defined.

So how to solve it?

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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:[~2011-06-23 13:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-23  9:03 Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-23 10:27 ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-23 12:17 ` Wolfgang Schuster
2011-06-23 13:07   ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]

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=op.vxi5ewlcwshuv7@lpr \
    --to=lpr@pontex.cz \
    --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).