* [NTG-context] \getbuffer without extra whitespace?
@ 2023-05-29 14:19 Gerben Wierda via ntg-context
2023-05-29 14:25 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda via ntg-context @ 2023-05-29 14:19 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Gerben Wierda
[-- Attachment #1.1: Type: text/plain, Size: 499 bytes --]
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/>
[-- Attachment #1.2: Type: text/html, Size: 1232 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [NTG-context] \getbuffer without extra whitespace?
2023-05-29 14:19 [NTG-context] \getbuffer without extra whitespace? Gerben Wierda via ntg-context
@ 2023-05-29 14:25 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-05-29 14:25 UTC (permalink / raw)
To: Gerben Wierda via ntg-context; +Cc: Wolfgang Schuster
[-- Attachment #1.1: Type: text/plain, Size: 695 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1545 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-29 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-29 14:19 [NTG-context] \getbuffer without extra whitespace? Gerben Wierda via ntg-context
2023-05-29 14:25 ` Wolfgang Schuster via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).