Skip to content

Added support for textcquotes in LaTeX Reader #3683

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WUUUGI
Copy link

@WUUUGI WUUUGI commented May 18, 2017

Textcqoutes (from the csqoutes package) allows any arbitrary piece of text to be enclosed in quotation marks, additionaly the cite argument specifies the citation.

\textcquote[prenote][postnote]{key}[punct]{text}tpunct

\textcquote[See][P. 10]{harry:philosophersstone}{You're a wizard, Harry.}

Output:

"You're a wizard, Harry." [See @harry:philosophersstone P. 10]

@mb21 mb21 changed the title Added support for textcquotes in LaTeX. Added support for textcquotes in LaTeX Reader May 20, 2017
@jgm
Copy link
Owner

jgm commented May 23, 2017

While we're at it, can we support plain \textquotes?
Also, I think that the punctuation incorporating feature of \textcquotes must be enabled by an option when the package is loaded. Perhaps we should check for this option? After all, many locales don't incorporate punctuation.

c <- citation "autocite" NormalCitation False
skipopts
text <- enquote
return . mconcat $ [text, "\160", c]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a nonbreaking space?

@jgm
Copy link
Owner

jgm commented May 23, 2017

Note also that punctuation incorporation is usually desirable only for footnote citation styles. Even in American style, we don't usually incorporate punctuation for parenthetical citations. It looks like csquotes has some sophisticated support for this -- I just skimmed the relevant sections.

Anyway, I think we should either leave this out of pandoc or support it fully.

There's also a question about why double quotes should be used; some locales will want single quotes for outer punctuation, and no doubt this is selectable too with an option on the csquotes package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants