Skip to Content.
Sympa Menu

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

Subject: mailing-list for TeXmacs Users

List archive

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


Chronological Thread 
  • From: Alvaro Tejero Cantero <address@hidden>
  • To: Massimiliano Gubinelli <address@hidden>
  • Cc: Frank <address@hidden>, 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 13:22:54 +0200

Alternatively, the (a) GitHub wiki may have the upside of allowing to link to known issues, particular lines of code, etc.

https://github.com/texmacs/texmacs/wiki

Álvaro.


On Mon, 4 May 2020 at 12:58, Massimiliano Gubinelli <address@hidden> wrote:
We could satrt by using the forum, by having a specific category (like "recipes") and put there these small ideas.

m



> On 4. May 2020, at 12:54, Frank <address@hidden> wrote:
>
> Hi, all.
>
> Inspired by this, I wonder whether we have plans to maintain a wiki on the official site of TeXmacs including more practical examples to complement the reference manual (even programmers don't consult frequently the reference manuals of programming languages).
>
> Best wishes,
>
> Frank
>
> On 04/05/2020, Massimiliano Gubinelli wrote:
>> 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, <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.
>
> --
> Best wishes!
> Yours,
>




Archive powered by MHonArc 2.6.19.

Top of Page