Hello, I am using the synonym mechanizm to design a glossary for my pupils. I am stuck with this: how can I insert a whitespace inside a synonym definition? What I achieved yet is: \definesynonyms [vocabulaire] [vocabulaire] [\LaDef] \starttext \vocabulaire{Unionpersonnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain} \Unionpersonnelle\ \placelistofvocabulaire \stoptext I would like to typeset Union personnelle, without inserting a UTF-8 non breakable space. I tried {{Union personnelle}}, but don't know how may I escape the space in the macro. The answer may lay in lowlevel-macro, but I couldn't find it. Happy new year everyone! Damien Thiriet
On 31 Dec 2024, at 17:18, Damien Thiriet via ntg-context
wrote: Hello,
I am using the synonym mechanizm to design a glossary for my pupils. I am stuck with this: how can I insert a whitespace inside a synonym definition?
What I achieved yet is:
\definesynonyms [vocabulaire] [vocabulaire] [\LaDef] \starttext
\vocabulaire{Unionpersonnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain}
\Unionpersonnelle\ \placelistofvocabulaire
\stoptext
I would like to typeset Union personnelle, without inserting a UTF-8 non breakable space. I tried {{Union personnelle}}, but don't know how may I escape the space in the macro. The answer may lay in lowlevel-macro, but I couldn't find it.
Not sure this helps you much but there is: \definesynonyms [vocabulaire] [vocabulaire] [\LaDef] \starttext \vocabulaire[UP]{Union personnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain} \UP\ \placelistofvocabulaire \stoptext — Bruce Horrocks Hampshire, UK
Hi Bruce, This is exactly what I was looking for! Moreover I received your answer exactly when I was planning to spend some time on a workaround in Lua, so you might have saved me some headaches… Thanks! Damien
Not sure this helps you much but there is:
\definesynonyms [vocabulaire] [vocabulaire] [\LaDef] \starttext \vocabulaire[UP]{Union personnelle}{Deux États sont en union personnelle lorsqu’ils ont le même souverain}
\UP\ \placelistofvocabulaire
\stoptext
— Bruce Horrocks Hampshire, UK
participants (2)
-
Bruce Horrocks
-
damien@thiriet.web4me.fr