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?
Gerben Wierda (LinkedIn https://www.linkedin.com/in/gerbenwierda) R&A Enterprise Architecture https://ea.rna.nl/ (main site) Book: Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Book: Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/
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