Re: localization of numbering of figures and tables
Zoltán Kovács <[email protected]> Mon, 16 Mar 2026 21:38:40 +0100
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <CACQaL-Lk895wHOVQLY-E6rTK8AEEiA=0EEni-Ug5r6rXMJBNvg@mail.gmail.com> |
--000000000000f882f6064d2a3471 Content-Type: multipart/alternative; boundary="000000000000f882f5064d2a3470" --000000000000f882f5064d2a3470 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wow, thanks a lot, the macro editor is also wonderful --- this is new to me= ! Best, Zoltan Giovanni Piredda <[email protected]> ezt =C3=ADrta (id=C5=91pont: 2026. m= =C3=A1rc. 16., H, 21:27): > > On 3/16/26 20:48, Zolt=C3=A1n Kov=C3=A1cs wrote: > > Hi Giovanni, many thanks for your offered help! > > This is what I have after I insert a "big figure" float (when the documen= t > language is set to Hungarian): > > [image: image.png] > 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 alre= ady > working in the localization of TeXmacs, automatically, it's in > english-hungarian.scm, ("figure" "=C3=A1bra"), so that's okay). > > > Hi Zolt=C3=A1n, > > 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 =C3=A1bra., with the full stop after= =C3=A1bra > > <assign|big-figure|<\macro|body|caption> > <surround|<compound|next-figure>||<render-big-figure|figure| > <compound|the-figure> > =C3=A1bra|<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 =C3=A1bra. 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 > --=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>* --000000000000f882f5064d2a3470 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Wow, thanks a lot, the macro editor is also wonderful --- = this is new to=C2=A0me!<div>Best, Zoltan</div></div><br><div class=3D"gmail= _quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Giovann= i Piredda <<a href=3D"mailto:[email protected]">[email protected]</a>&= gt; ezt =C3=ADrta (id=C5=91pont: 2026. m=C3=A1rc. 16., H, 21:27):<br></div>= <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"><u></u> =20 =20 =20 <div> <p><br> </p> <div>On 3/16/26 20:48, Zolt=C3=A1n Kov=C3=A1cs wrote:<br> </div> <blockquote type=3D"cite"> =20 <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" fl= oat (when the document language is set to Hungarian):</div> <div><br> </div> <div><img src=3D"cid:ii_19cf85eec73cb971f161" alt=3D"image.png" wid= th=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&quo= t; to "=C3=81bra" (which is already working in the localizati= on of TeXmacs, automatically, it's in english-hungarian.scm, ("figure" "=C3=A1bra"), so that's okay).<= br> </div> </div> </blockquote> <p><br> </p> <p>Hi=C2=A0Zolt=C3=A1n,</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 href=3D"https://texmacs.github.io/notes/docs/macro-editor.html" ta= rget=3D"_blank">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=C2=A01 =C3=A1bra., with the full = stop after=C2=A0=C3=A1bra</p> <p><assign|big-figure|<\macro|body|caption><br> =C2=A0 <surround|<compound|next-figure>||<render-big-figure|figu= re|<br> =C2=A0 <compound|the-figure> =C3=A1bra|<arg|body>|<surround|<set-binding|<compound|the-fi= gure>>||<arg|caption>>>><br> </macro>></p> <p>With the macro editor you can get inside the=C2=A0render-big-figure macro and after one more macro you find a figure-sep macro which controls the separator after=C2=A0=C3=A1bra. You might eliminate that= and add another full stop after=C2=A0<compound|the-figure>, but I leave this to you.</p> <p>Hopefully that's what you are looking for.</p> Giovanni </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> --000000000000f882f5064d2a3470-- --000000000000f882f6064d2a3471 Content-Type: image/png; name="image.png" Content-Disposition: inline; filename="image.png" Content-Transfer-Encoding: base64 Content-ID: <ii_19cf85eec73cb971f161> X-Attachment-Id: ii_19cf85eec73cb971f161 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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v279+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== --000000000000f882f6064d2a3471--