mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Page numbers


Chronological Thread 
  • From: Kai Sattler <address@hidden>
  • To: Todd Wilson <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] Page numbers
  • Date: Tue, 17 Apr 2007 10:54:14 +0200

Hi Todd,

2007-04-01 12:02:27 -0400, Todd Wilson <address@hidden>:
> 2. Selecting Insert -> Page numbering -> Page number text from the
> menu, which inserts a <set-page-number-macro|> into the document, about
> which I couldn't find any documentation, so I didn't know what to
> provide as an argument.

I think you can specify any literal text, but use of the page-nr
environment variable is not possible in this macro, as far as I know.

>
> So, what do I need to do to get page numbers,

It looks like page numbers are not shown in the article style by default.
If you add the package header-generic, then page numbers will appear:

Document -> Add package -> Header -> header-generic

and, of course, switch visibility of header and footer on:

Document -> View -> Page Layout -> Show header and footer


> as well as to customize
> how they appear (header-right, footer-centered, roman/arabic, etc.)?
>

One can get an idea of how to do customization when looking into
header-seminar.ts for example, which comes with TeXmacs. There
the assignment

<assign|page-odd-footer|<style-with|src-compact|none|<htab|5mm><with|magnification|1|<quote|<page-the-page>>><htab|5mm>>>

defines the appearance of the footer on all odd-numbered pages
for example.


For my own purposes, I currently use something like the following
assignment in an own .ts file under ~/.TeXmacs/packages.

<assign|footer-pagenr-right|<macro|left|centre|<style-with|src-compact|none|<assign|page-odd-footer|<with|font-size|0.75|<style-with|src-compact|none|<no-indent><arg|left><htab|5mm><arg|centre><htab|5mm><quote|<page-the-page>>>>><assign|page-even-footer|<with|font-size|0.75|<style-with|src-compact|none|<no-indent><arg|left><htab|5mm><arg|centre><htab|5mm><quote|<page-the-page>>>>>>>>

It defines free text to the left and to the centre of the footer,
and the page number is placed to the right, both on odd and on even
pages. In addition, a reduction of font size is included, too.

It's certainly not the most elegant way to do it, but maybe it can
serve as a starting point for your own customization.

--
Kai Sattler


  • Page numbers, Todd Wilson, 04/01/2007
    • Re: [TeXmacs] Page numbers, Kai Sattler, 04/17/2007

Archive powered by MHonArc 2.6.19.

Top of page