Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19:
If I do something like:
\startbuffer[version]20230529a\stopbuffer
Version: \getbuffer[version]-en
I get whitespace between the content of the buffer and “-en”
What is the proper LMTX way to do this?
You need the \inlinebuffer command
\starttext
\startbuffer[version]
20230529a
\stopbuffer
Version: \inlinebuffer[version]-en
\stoptext
but buffers aren't the right tool to store strings like version information.
One alternative solution is to set the string with the \setupdocument
command.
\setupdocument
[version=20230529a]
\starttext
Version: \documentvariable{version}-en
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________