Re: localization of numbering of figures and tables
Zoltán Kovács <[email protected]> Mon, 16 Mar 2026 20:48:22 +0100
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <CACQaL-LWHZULkwCiCydCgES-y=88AXAhA9R5+2EkChy9rHq3xg@mail.gmail.com> |
--0000000000001e73e6064d298151
Content-Type: multipart/alternative; boundary="0000000000001e73e6064d298150"
--0000000000001e73e6064d298150
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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: image.png]
I would like to redefine "=C3=81bra 1." to "1. =C3=A1bra", yes. But your pr=
oposal
with figure-text would change only "Figure" to "=C3=81bra" (which is alread=
y
working in the localization of TeXmacs, automatically, it's in
english-hungarian.scm, ("figure" "=C3=A1bra"), 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 <[email protected]> ezt =C3=ADrta (id=C5=91pont: 2026. m=
=C3=A1rc. 16.,
H, 14:01):
> Maybe I can help but I did not understand some details of what you want.
>
> You would like to change "=C3=81bra 1.2", that appears in the figure capt=
ion,
> into "1.2. =C3=A1bra"? 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=C3=A1n Kov=C3=A1cs 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) "=C3=81bra 1.2".
>
> But I would like to redefine the order of the numbering and the Hungarian
> word to see it like "1.2. =C3=A1bra". I already know that such changes ca=
n be
> done in a customized version of my-tmbook.ts in my local TeXmacs folder i=
n
> 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=C3=A1n** Kov=C3=A1cs, MSc*
>
>
> *Private P=C3=A4dagogische Hochschule der Di=C3=B6zese Linz https://matek=
.hu/zoltan
> <https://matek.hu/zoltan>*
>
>
--=20
*Dr. Zolt=C3=A1n** Kov=C3=A1cs, MSc*
*Private P=C3=A4dagogische Hochschule der Di=C3=B6zese Linzhttps://matek.hu=
/zoltan
<https://matek.hu/zoltan>*
--0000000000001e73e6064d298150
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"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=3D"cid:ii_mmtl8nor0" alt=3D"image.png" width=3D"472" height=3D"56"=
></div><div>I would like to redefine "=C3=81bra 1." to "1. =
=C3=A1bra", yes. But your proposal with figure-text would change only =
"Figure" to "=C3=81bra" (which is already working in th=
e localization of TeXmacs, automatically, it's in english-hungarian.scm=
, ("figure" "=C3=A1bra"), so that's okay).<br></div=
><div><br></div><div>I guess the algorithm that concatenates figure-text an=
d the actual counter and puts the result in figure-name is somewhere in env=
ironment/env-*.ts, but I wasn't able to find out where exactly.</div><d=
iv><br></div><div>Thanks for=C2=A0your help in=C2=A0advance!</div><div><br>=
</div><div>Best, Zoltan</div></div><br><div class=3D"gmail_quote gmail_quot=
e_container"><div dir=3D"ltr" class=3D"gmail_attr">Giovanni Piredda <<a =
href=3D"mailto:[email protected]">[email protected]</a>> ezt =C3=ADrta=
(id=C5=91pont: 2026. m=C3=A1rc. 16., H, 14:01):<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><u></u>
=20
=20
=20
<div>
<p>Maybe I can help but I did not understand some details of what
you want.</p>
<p>You would like to change=C2=A0"=C3=81bra 1.2", that appear=
s in the figure
caption, into=C2=A0"1.2. =C3=A1bra"? If so, what is the rol=
e played by the=C2=A0<figure-name>
macro? The caption uses the=C2=A0<figure-text> macro.</p>
<p>Can you please clarify?</p>
<p>Giovanni</p>
<div>On 3/16/26 10:45, Zolt=C3=A1n Kov=C3=A1cs wrote:<br>
</div>
<blockquote type=3D"cite">
=20
<div dir=3D"ltr">
<div>Hi,</div>
<div>I am completely lost in trying to localize the following in
TeXmacs:</div>
<div><br>
</div>
<div><figure-name> gives the bold output of the figure
name like "Figure 1.2", in my language (Hungarian) &quo=
t;=C3=81bra 1.2".</div>
<div><br>
</div>
<div>But I would like to redefine the order of the numbering and
the Hungarian word to see it like "1.2. =C3=A1bra". I a=
lready 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.</d=
iv>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks for any hints in advance.</div>
<div><br>
</div>
<div>Best, Zoltan</div>
<div><br>
</div>
<span class=3D"gmail_signature_prefix">-- </span><br>
<div dir=3D"ltr" class=3D"gmail_signature">
<div dir=3D"ltr">
<div dir=3D"ltr">
<p class=3D"MsoNormal"><b><span lang=3D"EN-GB">Dr. Zolt=C3=A1=
n</span></b><b><span lang=3D"EN-GB">=C2=A0Kov=C3=A1cs, MSc</span></b></p>
<p class=3D"MsoNormal"><i><span style=3D"color:rgb(31,56,100)=
">Private
P=C3=A4dagogische Hochschule der Di=C3=B6zese Linz<br>
<a href=3D"https://matek.hu/zoltan" target=3D"_blank">h=
ttps://matek.hu/zoltan</a></span></i></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote></div><div><br clear=3D"all"></div><div><br></div><span class=
=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s=
ignature"><div dir=3D"ltr"><div dir=3D"ltr"><p class=3D"MsoNormal"><b><span=
lang=3D"EN-GB">Dr. Zolt=C3=A1n</span></b><b><span lang=3D"EN-GB">=C2=A0Kov=
=C3=A1cs, MSc</span></b><b><u></u><u></u></b></p><p class=3D"MsoNormal"><i>=
<span style=3D"color:rgb(31,56,100)">Private P=C3=A4dagogische Hochschule d=
er Di=C3=B6zese Linz<br><a href=3D"https://matek.hu/zoltan" target=3D"_blan=
k">https://matek.hu/zoltan</a></span></i></p></div></div></div>
--0000000000001e73e6064d298150--
--0000000000001e73e6064d298151
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_mmtl8nor0>
X-Attachment-Id: ii_mmtl8nor0
iVBORw0KGgoAAAANSUhEUgAAA34AAABqCAYAAADjhoMEAAAACXBIWXMAABYlAAAWJQFJUiTwAAAH
rklEQVR4nO3dW4jUdR/H8c/oalsoXSRGJ1YCS2LtwsFWiM4hXcxeeJXdRCIE1SJUGCUU0XGDqCDa
jkpKRVC7bbQdIewAYSgWQVpBBHunlUI5YczaPBcPDI+0bo973l+vF+zFzP5/O9/f3ixv/r/ZqTSb
zWYAAAAo1ryZHgAAAICpJfwAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAK
J/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wA
AAAKJ/wAAAAKJ/wAAAAKJ/wAAAAKJ/wAAAAK1zaeRZXJngIAAGCOa870AGMYV/gls3tTAAAA02m2
3xxz1BMAAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBw
wg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8A
AKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBw
wg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg8AAKBwwg+A
STM0NJTNmzfnjz/+mOlRAID/UWk2m82TXpTkpBcBUKwDBw7ktttuS39/f5Jkz549qVarMzwVAEyf
2d5I7vgBMGHDw8NZunRpnnzySdEHALNQ20wPAMDct3r16ixevDhbt27NqlWrTnjdnj178sorr+TI
kSO59NJLs2HDhmmcEgD+vdzxA2BSbN68OY8//njef//9E15z5plnpl6vZ+vWrdm1a9c0Tje6ZrOZ
r7/+Ovfcc8+YwQoAc53wA2DChoeH8+677yZJnn322RNed9555+XGG2+crrHG1NvbmzVr1uT+++9P
b29vvv/++5keCQCmjPADYMKee+65rFy5Mkny3nvvZXh4+ITXViqV6RprTHfffXe+/PLLvPzyyzM9
CgBMOe/xA2BCGo1GXn311Xz22We5+OKL89tvv+X555/Pww8//I9rd+/enZ07d6atrS2dnZ1Zu3Zt
kuTbb7/NO++8k99//z21Wi2LFy/OwMBAVq1alVqt1nrd1157LXv37s2xY8dy/vnn54YbbshZZ501
pfsFgLnIHT8AJmRgYCCXX355Ojo6Wsc4X3rppTQajTHXvf7663nzzTdTq9VyxRVX5M4770x3d3cO
HTqUBQsW5KuvvsojjzyS7du357777svw8HC6u7vzwQcfJEl6enpy0003ZcOGDdmyZUv279+f5cuX
54033pjyPQPAXCP8AJiQZ555JrfcckuS5NZbb02SHDx4MG+99daY61auXJnHHnssF110UarVanp7
ezM0NJRNmzblggsuSE9PT5L/huWOHTuyfv36rF27NitWrEiSdHR0pKOjI2eccUbOPvvsPPjgg6nX
63nggQemcLcAMDcJPwDGbd++fTl06FAuueSSjIyMZPny5bnsssuSJH19fWOuPf3004973NnZmSTp
7+9Ps9lsvRewq6srixYtyrXXXpsPP/wwy5YtS5Js2bIlP/30U3799de8/fbbrQ+P//nnnydziwBQ
BOEHwLj19fWl0Wikq6ur9fXLL78kST799NPs37////5Z8+fPT5IcPXo0R48ebT2/dOnSUa/ftm1b
Ojo6cscdd6TRaOSqq65Kkn88YgoA/0b+uQsA41Kv1zM4OJjvvvsuixYtaj3faDRy7rnn5uDBg+nr
68vTTz896vq//vrruMcHDhxIklx44YU59dRTW8+3tf39T9UXX3yRjRs3ZvXq1fn4449TqVQyMjIy
Gdv6m8OHD+ehhx5KrVZrxSUAzDXu+AEwLi+88EJqtdpx0ZckCxYsyMaNG5MkO3bsSL1eH3X9N998
k8OHD7cev/jii5k/f34effTRf3ztH3/8MUlyzjnntI6EfvLJJ2lvb8+ff/6ZY8eOjWtPo3nqqafy
xBNPtPYEAHOR8APgpOzcuTOdnZ259957MzAwkKuvvvq4769fvz79/f055ZRTMjIykq6urlx33XWt
71cqlaxYsSLbt29PT09PNm3alO7u7uzbty8fffRR1q1bl8HBwdx888057bTTMjQ0lGq1miNHjhz3
GnfddVd2796ddevW5fbbb8+uXbuybdu2LFy4MMuWLcsPP/ww5j4GBwdTrVZzzTXXpL29PfPmzcua
NWtSrVbz+eeft6678sors2TJklx//fWT9BsEgOlXaTabzZNelOSkFwHAKJrNZhqNRhYuXDiutfV6
Pe3t7aMeCQWA6TLbG0n4AQAATNBsbyRHPQEAAAon/AAAAAon/AAAAAon/AAAAAon/AAAAAon/AAA
AAon/AAAAAo37k+7rUzmFAAAAEyZcYXfbP5gQgAAAI7nqCcAAEDhhB8AAEDhhB8AAEDhhB8AAEDh
hB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8A
AEDhhB8AAEDhhB8AAEDhhB8AAEDhhB8AAEDh/gM+BLSBxetSDgAAAABJRU5ErkJggg==
--0000000000001e73e6064d298151--