In LaTeX text, I sometimes need 'unpaired' parenthesis - (
without )
or vice versa; however, in such a case, delimiter check macro reports error. I found a simple solution: \symbol{40}
and \symbol{41}
, which aren't recognized as delimiters. The same works for brackets [
and ]
(decimal codes are 91 and 93 respectively), but doesn't work for braces {
and }
. Their codes are 123 and 125 respectively, but \symbol{123}
and \symbol{125}
produce something like dash and quote. I use fontenc LCY, trying both text and math modes.
I've found solution:\textbraceleft
and \textbraceright
, but why \symbol
doesn't work in such a case?
\left
and\right
is to use.
as the empty delimiter. Is this what you're trying to do?\symbol{123}
doesn't work'?\symbol
with a number, even when it works. the idea of encoding-specific commands such as\{
or\textbraceleft
are that latex knows the encoding currently in use and uses the correct number. If you use a fixed number but the encoding for whatever reason changes then you will get the wrong character with no warning.\symbol{123}
works but it does not mean make any particular character it means "print whatever character happens to be in position 123 of the current font" So it works as designed but is not often what you want to do.