Issue #722 resolved

samp text role not handled properly in LaTeX output

Katherine Prevost
created an issue

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.

Comments (4)

  1. Log in to comment