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 20:48:22 +0100

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).

I guess the algorithm that concatenates figure-text and the actual counter and puts the result in figure-name is somewhere in environment/env-*.ts, but I wasn't able to find out where exactly.

Thanks for your help in advance!

Best, Zoltan

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

Maybe I can help but I did not understand some details of what you want.

You would like to change "Ábra 1.2", that appears in the figure caption, into "1.2. ábra"? If so, what is the role played by the <figure-name> macro? The caption uses the <figure-text> macro.

Can you please clarify?

Giovanni

On 3/16/26 10:45, Zoltán Kovács wrote:
Hi,
I am completely lost in trying to localize the following in TeXmacs:

<figure-name> gives the bold output of the figure name like "Figure 1.2", in my language (Hungarian) "Ábra 1.2".

But I would like to redefine the order of the numbering and the Hungarian word to see it like "1.2. ábra". I already know that such changes can be done in a customized version of my-tmbook.ts in my local TeXmacs folder in styles/book/, and it should be done in general for all floats, including tables.

For section, subsection and subsubsection titles I managed to do that by redefining chapter-numbered-title and appendix-numbered-title. In my language, unfortunately, the order of these parts of the titles are reversed. The same problem occurs in the Basque language as well, and to my knowledge, otherwise never.

Thanks for any hints in advance.

Best, Zoltan

--

Dr. Zoltán Kovács, MSc

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



--

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