mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Numbering of enumeration lists and numbering of references to labels


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Numbering of enumeration lists and numbering of references to labels
  • Date: Tue, 26 Mar 2019 03:26:46 +0100

I know one way of getting what you want for the second question, but it is not completely automatic.

You can define and load the following macro:


<assign|eqref|<macro|lab|Equation <reference|<arg|lab>>>>

(and similar ones for theorems, propositions and so on)

and use it in place of the \reference macro. The advantange of using \eqref with respect to typing everytime "Equation \reference" is that it will ensure consistent formatting.

I suspect there is a way to write a macro to automatically recognize the type of reference and format it according to type, like the cleveref package for LaTeX, but - at least for now - it is too complicated for me to figure it out.


Giovanni




Am 25.03.2019 um 19:49 schrieb Marc Mertens:
Hello,
I have two questions concerning TexMacs. The first is about the
numbering of enumeration list, when I insert a enumeration it always
start at 1, a, i etc. Is it possible to specify the start numbering at
a different number.
The second is of the numbering of references. When you insert a
label for a theorem, proposition etc or a displayed formula and
reference to it the references used the same x.y format for both. So
sometimes you have to confusion that for example a reference displays
the same number (for example 10.14) but in one case it refers to a
theorem and in the other case it references to a displayed formula. You
can not seen the difference. Is it somehow possible to display for the
reference to display 'eq 10.14' if it refers to a displayed formula and
'theorem 10.14' if it refers to a theorem (and likewise for lemmas,
propositions ...).
I searched in the manual but could not found a way to do this
two things.

Thanks in advance for a possible answer and also for a excellent math
editor.


Marc Mertens




Archive powered by MHonArc 2.6.19.

Top of page