mailing-list for TeXmacs Users

Text archives Help


Re: How to display page numbers out of total pages : "3/5, 4/5 etc..."


Chronological Thread 
  • From: Massimiliano Gubinelli <address@hidden>
  • To: Nicolas Chouvalidzé <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: How to display page numbers out of total pages : "3/5, 4/5 etc..."
  • Date: Mon, 4 May 2020 10:55:23 +0200

In general you find many useful informations in the reference manual.
I discovered the existence of pageref in the "TeXmacs primitives" section.
HTH,
mg


> On 4. May 2020, at 10:54, Massimiliano Gubinelli <address@hidden> wrote:
>
> Ok, my previous suggestion does not work. However the following works:
>
> Add a label with name "page:last-page" (for example) at the end of your
> document
>
> then in the footers put
>
> <page-number>/<pageref|page:last-page>
>
>
> and update your document. This do the trick. I attach an example document.
>
> Best
> mg
>
>
> <test-pages.tm>
>
>> On 4. May 2020, at 10:40, Massimiliano Gubinelli <address@hidden> wrote:
>>
>> I do not think you have a variable for the total number of pages.
>> If you want to hack it by hand you can just replace that by
>>
>> <page-number>/5
>>
>>
>> otherwise you could try to put there the following:
>> <page-number>/<last-page><assign|temp-last-page|<page-number>>
>>
>>
>> and then in the preamble of the document put
>>
>> <assign|last-page|<temp-last-page>>
>>
>>
>> and hope that variables survive "updating the document". :)
>>
>> Best
>> Max
>>
>>
>>
>>> On 4. May 2020, at 10:29, Nicolas Chouvalidzé <address@hidden> wrote:
>>>
>>> Dear Texmacs users,
>>>
>>> I have to hand out an article for school (prépa), and the teacher
>>> requires us to write page numbers out of the total number of pages.
>>>
>>> My doc style of reference is "tmarticle".
>>> When I click on "edit style", I think the macro responsible for page
>>> numbers is in "Header", <unquote|<page-number>>
>>>
>>> Does someone know how I should modify the macro so that the document
>>> displays "3/5" instead of page 3 for example ?
>>>
>>> Thank you very much for your help,
>>> Nicolas.
>>
>




Archive powered by MHonArc 2.6.19.

Top of page