Skip to Content.
Sympa Menu

texmacs-users - Re: change header text

Subject: mailing-list for TeXmacs Users

List archive

Re: change header text


Chronological Thread 
  • From: address@hidden
  • To: address@hidden
  • Subject: Re: change header text
  • Date: Sun, 19 Jan 2003 17:19:39 +0100

On Fri, Jan 17, 2003 at 06:22:04PM +0100, vicent wrote:
> this is just what i would like to change, i want to change the 'Section
> N' and 'section title text' in header.
> i don't understand how can i use odd-page-text and even-page-text
> function
> maybe too difficult for me?

Probably... Redefining the headers and footers is not really easy
right now.


> i would like to have a header like this
>
> title author number
>
> in all pages, cause pages will be printed only in one side

You can use the attached package. Note that it proposes two header
stylen using different alignement techniques (yeah! I found a use for
'superpose'). You can change the header style by editing the
assignement to the 'page header' variable.

--
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>
  Utility macros for use with superpose.

  <assign|paragraph table|<macro|x|<tformat|<twith|table
  width|1par>|<cwith|1|-1|1|-1|cell lsep|0>|<cwith|1|-1|1|-1|cell
  rsep|0>|<cwith|1|-1|1|-1|cell bsep|0>|<cwith|1|-1|1|-1|cell
  tsep|0>|<arg|x>>>>

  <assign|paragraph right|<macro|x|<expand|paragraph
  table|<tformat|<cwith|1|-1|1|-1|cell halign|r>|<table|<row|<cell|<arg|x>>>>>>>>

  <assign|paragraph center|<macro|x|<expand|paragraph
  table|<tformat|<cwith|1|-1|1|-1|cell halign|c>|<table|<row|<cell|<arg|x>>>>>>>>

  \;

  Put the title and author text in variables for use by headers.

  <assign|the title|>

  <assign|header-title|<func|title|<assign|the title|<value|title>>>>

  <assign|the author|>

  <assign|header-author|<func|author|<assign|the author|<value|author>>>>

  \;

  Header with naive alignement (may look better in some cases)

  <assign|page header 1|<quote|<with|font size|0.84|<format|no first
  indentation><with|font shape|small-caps|<quote|<value|the
  title>><htab|5mm><quote|<value|the author>>><htab|5mm><quote|<apply|thepage>>>>>

  Header with forced alignment (so centered is really centered)

  <assign|page header 2|<quote|<with|font size|0.84|<format|no first
  indentation><superpose|<with|font shape|small-caps|<quote|<value|the
  title>>>|<with|font shape|small-caps|<expand|paragraph
  center|<quote|<value|the author>>>>|<expand|paragraph
  right|<quote|<apply|thepage>>>>>>>

  The kind of header we actually want to use

  <assign|page header|<quote|<value|page header 2>>>

  \;

  Set the global header variables

  <assign|odd page header|<value|page header>>

  <assign|even page header|<value|page header>>

  Disable redefinition of the header and footer by sections

  <assign|odd-page-text|<func|s|>>

  <assign|even-page-text|<func|s|>>
</body>

<\initial>
  <\collection>
    <associate|preamble|true>
    <associate|paragraph width|150mm>
    <associate|odd page margin|30mm>
    <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|language|english>
  </collection>
</initial>



Archive powered by MHonArc 2.6.19.

Top of Page