When I use slides, I prefer adding thin spaces about my parentheses, I would like to define a 1 or 2 character openparen and closeparen command that does this; Ideally, the actual spaces used would be parameters with defaults.
Hello @JSarnoff ,
Keeping things simple, I would try something like:
#show "(" : [(#sym.space.nobreak.narrow]
#show ")" : [#sym.space.nobreak.narrow)]
(test)
Simple and effective.
Edit: You can always redefine the show
rule to use another symbol, or revert to default usage.
If you really want functions, with configurable symbol, you could use:
#let o-p(space: sym.space.nobreak.narrow, paren: "(") = [#paren#space]
#let c-p(space: sym.space.nobreak.narrow, paren: ")") = [#space#paren]
#o-p()test#c-p()
But in that case, it would probably be easier to use the show
rules with a limited scope as needed.
1 Like
Thank you for the help.