Skip to Content.
Sympa Menu

texmacs-users - Re: [texmacs-users] localization of numbering of figures and tables

Subject: mailing-list for TeXmacs Users

List archive

Chronological Thread  
  • From: Zoltán Kovács <address@concealed>
  • To: Giovanni Piredda <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [texmacs-users] localization of numbering of figures and tables
  • Date: Mon, 16 Mar 2026 21:38:40 +0100

Wow, thanks a lot, the macro editor is also wonderful --- this is new to me!
Best, Zoltan

Giovanni Piredda <address@concealed> ezt írta (időpont: 2026. márc. 16., H, 21:27):


On 3/16/26 20:48, Zoltán Kovács wrote:
Hi Giovanni, many thanks for your offered help!

This is what I have after I insert a "big figure" float (when the document language is set to Hungarian):

image.png
I would like to redefine "Ábra 1." to "1. ábra", yes. But your proposal with figure-text would change only "Figure" to "Ábra" (which is already working in the localization of TeXmacs, automatically, it's in english-hungarian.scm, ("figure" "ábra"), so that's okay).


Hi Zoltán,

you can get quickly to the macro by using the macro editor which you get to from the "wrench" icon. I wrote about it in https://texmacs.github.io/notes/docs/macro-editor.html; the beginning of the post might be enough.

Here is a proposal, which gets you 1 ábra., with the full stop after ábra

<assign|big-figure|<\macro|body|caption>
  <surround|<compound|next-figure>||<render-big-figure|figure|
  <compound|the-figure> ábra|<arg|body>|<surround|<set-binding|<compound|the-figure>>||<arg|caption>>>>
</macro>>

With the macro editor you can get inside the render-big-figure macro and after one more macro you find a figure-sep macro which controls the separator after ábra. You might eliminate that and add another full stop after <compound|the-figure>, but I leave this to you.

Hopefully that's what you are looking for.

Giovanni


--

Dr. Zoltán Kovács, MSc

Private Pädagogische Hochschule der Diözese Linz
https://matek.hu/zoltan




Archive powered by MHonArc 2.6.24.

Top of Page