I'd like to enclose some content in quotation marks in math mode. The content is text, so I put it as a parameter to \text
from amsmath.
S = \text{“some text”}
But the quotation marks aren't part of the content of S, so I'd like to not include them in the \text
tag. Ideally, the quotation marks would function as delimiters like brackets, so it would be this:
S = \left“ \text{some text} \right”
That would allow also parity checks, using them with things other than text, and maybe automatic sizing and positioning.
How can I do something like that? I mean defining custom bracket-like delimiters or an other tool for setting text strings in math mode.
\text{“some text”}
looks like the expected markup to me.\left\right
looks wrong, you could use\mathopen
\mathclose` like non-stretchy () but text seems more natural. You can only use\left
with characters that are set up in the font as variable sized, and that won't be the case with delimiters.{...}''
. I’m not quite sure what to do about the opening marks. Maybe rotating\prime
and doing\vphantom{...}^{\rotatedprime\rotatedprime}{...}''
?{...}''
in math will make a double superscript prime not a close quote, they don't really look that similar.:-)