Skip to Content.
Sympa Menu

texmacs-users - change header

Subject: mailing-list for TeXmacs Users

List archive

change header


Chronological Thread 
  • From: vicent <address@hidden>
  • To: address@hidden
  • Subject: change header
  • Date: Sun, 11 Jan 2004 14:09:26 +0100

hi!

i'm writing a document with article style and i would like to have a
header like that

title author page number

some time ago david wrote this:

<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>

and it worked ok! but i haven't used texmacs for a long time and now
it don't works... maybe cause newer versions, what can i do?
thanks! :)
--
===========================
Vicent Perez Chapi
debian gnu/linux user
msn:address@hidden
jabber:address@hidden
www.elwater.net
===========================



  • change header, vicent, 01/11/2004

Archive powered by MHonArc 2.6.19.

Top of Page