Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samp text role not handled properly in LaTeX output #722

Closed
shimizukawa opened this issue Jan 2, 2015 · 3 comments
Closed

samp text role not handled properly in LaTeX output #722

shimizukawa opened this issue Jan 2, 2015 · 3 comments

Comments

@shimizukawa
Copy link
Member

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.


@shimizukawa
Copy link
Member Author

From Georg Brandl on 2011-09-21 07:45:59+00:00

Fix #722: remove special styling of :samp: role, and enable placeholder formatting in literal nodes.

→ <<cset 6d6e6ab>>

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2011-09-21 16:40:29+00:00

Issue #721 was marked as a duplicate of this issue.

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2014-10-18 07:32:18+00:00

Removing version: 1.0.7 (automated comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant