You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "samp" text role is output by the LaTeX backend, there are two problems. First, the portions of the sample to be italicized are discarded from the latex source output. (They could be included as \textit{...} within the \samp{...}, or another macro that uses \textit.) Second, the \samp macro itself not only outputs the content in \code, it also wraps it in single quotes (\newcommand{\samp}[1]{`\code{#1}'})
The resulting output is not awful, but it is significantly different from the output in HTML (without needing to be), and it loses the semantic information about "place-holders" that is the entire reason the role exists in the first place.
When the "samp" text role is output by the LaTeX backend, there are two problems. First, the portions of the sample to be italicized are discarded from the latex source output. (They could be included as \textit{...} within the \samp{...}, or another macro that uses \textit.) Second, the \samp macro itself not only outputs the content in \code, it also wraps it in single quotes (\newcommand{\samp}[1]{`\code{#1}'})
The resulting output is not awful, but it is significantly different from the output in HTML (without needing to be), and it loses the semantic information about "place-holders" that is the entire reason the role exists in the first place.
The text was updated successfully, but these errors were encountered: