Skip to Content.
Sympa Menu

texmacs-users - Header and footer missing initialization bug.

Subject: mailing-list for TeXmacs Users

List archive

Header and footer missing initialization bug.


Chronological Thread 
  • From: address@hidden
  • To: address@hidden
  • Subject: Header and footer missing initialization bug.
  • Date: Sun, 19 Jan 2003 23:45:59 +0100

On Sun, Jan 19, 2003 at 10:08:02PM +0100, Daniele Pighin wrote:
>
> I've attached the same document as before (slightly modified to take in
> account David's suggestions).
> The problem is that the pages holding the TOC (which I placed before the
> document body) have strange headers: they state that the TOC is in section
> 6,
> which is false as it is in no section (that is, before any section).
> It seems that the header-article package uses data from the last section of
> the document when it has no better option.
> Wouldn't it be better if it fell back to a null value?
> It would be more coherent; as it is now, it is just wrong :)

Actually, that is clearly a bug of the typesetter, as demonstrated by
the attached document (which uses no style).

Pages which do not have a 'this page header/footer' before the first
assignation to 'odd/even page header/footer' use the value of
'odd/even page header/footer'.

The obvious work around is to clear the headers and footers at the
start of the document using

<apply|odd-page-text|><apply|even-page-text|>

You may put this inside the make-title environment just before the
title environment.

Note: your document contains an unwanted and essentially empty
paragraph before the title.

--
David Allouche | GNU TeXmacs -- Writing is a pleasure
Free software engineer | http://www.texmacs.org
http://ddaa.net | http://alqua.com/tmresources
address@hidden | address@hidden
TeXmacs is NOT a LaTeX front-end and is unrelated to emacs.
<TeXmacs|1.0.1>

<\body>
  <format|new page>

  <format|new page>

  <assign|odd page header|Last odd header>

  <assign|even page header|Last even header>

  <assign|odd page footer|Last odd footer>

  <assign|even page footer|Last even header>

  <assign|this page header|This header>

  <assign|this page footer|This footer>
</body>

<\initial>
  <\collection>
    <associate|paragraph width|150mm>
    <associate|odd page margin|30mm>
    <associate|page medium|paper>
    <associate|shrinking factor|7>
    <associate|page right margin|30mm>
    <associate|page top margin|30mm>
    <associate|reduction page right margin|25mm>
    <associate|page type|a4>
    <associate|reduction page bottom margin|15mm>
    <associate|even page margin|30mm>
    <associate|reduction page left margin|25mm>
    <associate|page bottom margin|30mm>
    <associate|reduction page top margin|15mm>
    <associate|show header and footer|true>
    <associate|language|english>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|toc-1|<tuple|<uninit>|?>>
  </collection>
</references>


  • bug??, Daniele Pighin, 01/19/2003
    • Header and footer missing initialization bug., david, 01/19/2003

Archive powered by MHonArc 2.6.19.

Top of Page