- From: Massimiliano Gubinelli <address@hidden>
- To: Frank <address@hidden>
- Cc: address@hidden
- Subject: Re: How to display page numbers out of total pages : "3/5, 4/5 etc..."
- Date: Mon, 4 May 2020 12:58:34 +0200
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, 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.
>
>
--
>
Best wishes!
>
Yours,
>
- How to display page numbers out of total pages : "3/5, 4/5 etc...", Nicolas Chouvalidzé, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Massimiliano Gubinelli, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Massimiliano Gubinelli, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Massimiliano Gubinelli, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Frank, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Massimiliano Gubinelli, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Alvaro Tejero Cantero, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Nicolas Chouvalidzé, 05/04/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Félix Faisant, 05/11/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", TeXmacs, 05/19/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Giovanni Piredda, 05/19/2020
- Re: How to display page numbers out of total pages : "3/5, 4/5 etc...", Giovanni Piredda, 05/23/2020
Archive powered by MHonArc 2.6.19.