samp text role not handled properly in LaTeX output

Katherine Prevost avatarKatherine 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 (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.