Re: localization of numbering of figures and tables

Giovanni Piredda <[email protected]> Mon, 16 Mar 2026 20:27:29 +0000
Newsgroups gmane.editors.texmacs.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------0vMiRH8NzonfSE2Q2bfeLqY0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit


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
--------------0vMiRH8NzonfSE2Q2bfeLqY0
Content-Type: multipart/related;
 boundary="------------QyNuuhDJLas45k1htMJz4JHU"

--------------QyNuuhDJLas45k1htMJz4JHU
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 3/16/26 20:48, Zoltán Kovács wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACQaL-LWHZULkwCiCydCgES-y=88AXAhA9R5+2EkChy9rHq3xg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Giovanni, many thanks for your offered help!
        <div><br>
        </div>
        <div>This is what I have after I insert a "big figure" float
          (when the document language is set to Hungarian):</div>
        <div><br>
        </div>
        <div><img src="cid:[email protected]"
            alt="image.png" width="472" height="56" class=""></div>
        <div>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).<br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Hi Zoltán,</p>
    <p>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
      <a class="moz-txt-link-freetext" href="https://texmacs.github.io/notes/docs/macro-editor.html">https://texmacs.github.io/notes/docs/macro-editor.html</a>; the
      beginning of the post might be enough.</p>
    <p>Here is a proposal, which gets you 1 ábra., with the full stop
      after ábra</p>
    <p>&lt;assign|big-figure|&lt;\macro|body|caption&gt;<br>
       
      &lt;surround|&lt;compound|next-figure&gt;||&lt;render-big-figure|figure|<br>
        &lt;compound|the-figure&gt;
ábra|&lt;arg|body&gt;|&lt;surround|&lt;set-binding|&lt;compound|the-figure&gt;&gt;||&lt;arg|caption&gt;&gt;&gt;&gt;<br>
      &lt;/macro&gt;&gt;</p>
    <p>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 &lt;compound|the-figure&gt;, but I
      leave this to you.</p>
    <p>Hopefully that's what you are looking for.</p>
    Giovanni
  </body>
</html>
--------------QyNuuhDJLas45k1htMJz4JHU
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Id: <[email protected]>
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAA34AAABqCAYAAADjhoMEAAAACXBIWXMAABYlAAAWJQFJUiTw
AAAHr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THfffXe+/PLLvPzyyzM9CgBMOe/xA2BC
Go1GXn311Xz22We5+OKL89tvv+X555/Pww8//I9rd+/enZ07d6atrS2dnZ1Zu3ZtkuTbb7/N
O++8k99//z21Wi2LFy/OwMBAVq1alVqt1nrd1157LXv37s2xY8dy/vnn54YbbshZZ501pfsF
gLnIHT8AJmRgYCCXX355Ojo6Wsc4X3rppTQajTHXvf7663nzzTdTq9VyxRVX5M4770x3d3cO
HTqUBQsW5KuvvsojjzyS7du357777svw8HC6u7vzwQcfJEl6enpy0003ZcOGDdmyZUv279+f
5cuX54033pjyPQPAXCP8AJiQZ555JrfcckuS5NZbb02SHDx4MG+99daY61auXJnHHnssF110
UarVanp7ezM0NJRNmzblggsuSE9PT5L/huWOHTuyfv36rF27NitWrEiSdHR0pKOjI2eccUbO
PvvsPPjgg6nX63nggQemcLcAMDcJPwDGbd++fTl06FAuueSSjIyMZPny5bnsssuSJH19fWOu
Pf3004973NnZmSTp7+9Ps9lsvRewq6srixYtyrXXXpsPP/wwy5YtS5Js2bIlP/30U3799de8
/fbbrQ+P//nnnydziwBQBOEHwLj19fWl0Wikq6ur9fXLL78kST799NPs37////5Z8+fPT5Ic
PXo0R48ebT2/dOnSUa/ftm1bOjo6cscdd6TRaOSqq65Kkn88YgoA/0b+uQsA41Kv1zM4OJjv
vvsuixYtaj3faDRy7rnn5uDBg+nr68vTTz896vq//vrruMcHDhxIklx44YU59dRTW8+3tf39
T9UXX3yRjRs3ZvXq1fn4449TqVQyMjIyGdv6m8OHD+ehhx5KrVZrxSUAzDXu+AEwLi+88EJq
tdpx0ZckCxYsyMaNG5MkO3bsSL1eH3X9N998k8OHD7cev/jii5k/f34effTRf3ztH3/8MUly
zjnntI6EfvLJJ2lvb8+ff/6ZY8eOjWtPo3nqqafyxBNPtPYEAHOR8APgpOzcuTOdnZ259957
MzAwkKuvvvq4769fvz79/f055ZRTMjIykq6urlx33XWt71cqlaxYsSLbt29PT09PNm3alO7u
7uzbty8fffRR1q1bl8HBwdx888057bTTMjQ0lGq1miNHjhz3GnfddVd2796ddevW5fbbb8+u
Xbuybdu2LFy4MMuWLcsPP/ww5j4GBwdTrVZzzTXXpL29PfPmzcuaNWtSrVbz+eeft6678sor
s2TJklx//fWT9BsEgOlXaTabzZNelOSkFwHAKJrNZhqNRhYuXDiutfV6Pe3t7aMeCQWA6TLb
G0n4AQAATNBsbyRHPQEAAAon/AAAAAon/AAAAAon/AAAAAon/AAAAAon/AAAAAon/AAAAAo3
7k+7rUzmFAAAAEyZcYXfbP5gQgAAAI7nqCcAAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDh
hB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDh
hB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDh/gM+BLSBxetSDgAAAABJRU5ErkJggg==

--------------QyNuuhDJLas45k1htMJz4JHU--

--------------0vMiRH8NzonfSE2Q2bfeLqY0--