我想正确排版(csquotes
如果可能的话,使用)以下代码生成的非封闭的红色引号:
\documentclass{book}
\usepackage{csquotes}
\usepackage{xcolor}
\begin{document}
\parskip 10pt
\Large
\thispagestyle{empty}
\textbf{\color{red}{`` \hskip -3pt ` \hskip -3pt ``My friend,'' he asked, ``how may I properly typeset (i.e., without the negative hskips) the two sets of quotations in red?''}}
\vskip 5pt
\textbf{\color{red}{`` \hskip -3pt ` \hskip -3pt ``This is the second of the two sets.''}}
\vskip 5pt
\textbf{\enquote{\enquote{This nested and closed set of quotations is however, properly typeset, I think.}}}
\end{document}
我无法正确排版红色的引号,因为csquotes
它们没有闭合——所以我用一些\hskip
s 强制排版,以便给出我希望输出的样子。我相信最后一组引号(黑色)排版正确。
如果有人能向我展示如何正确排版红色引文而不费力,我将不胜感激。
答案1
更新添加一些内部空间。
定义新的样式,例如
%% *********************************************** added
%% Some horizontal spacing
\newcommand{\innerspace}{\hskip0.3em} % set inner spaces in em units
\DeclareQuoteStyle[noclosed]{dblquote}
{{\textquotedblleft\innerspace\textquoteleft\innerspace}} %opening outer mark
{} %closing outer mark
[0.05em]
{\textquotedblleft} %opening inner mark
{\textquotedblright} %closing inner mark
%% ***********************************************
使用命令\innerspace
设置引号之间的内部间距:\hskip<len>
。(使用em
单位!)
% !TeX TS-program = pdflatex
\documentclass{book}
\usepackage{csquotes}
\usepackage{xcolor}
\usepackage[T1]{fontenc} % only if using pdflatex
%% *********************************************** added
%% Some horizontal spacing
\newcommand{\innerspace}{\hskip0.3em} % set inner spaces in em units
\DeclareQuoteStyle[noclosed]{dblquote}
{{\textquotedblleft\innerspace\textquoteleft\innerspace}} %opening outer mark
{} %closing outer mark
[0.05em]
{\textquotedblleft} %opening inner mark
{\textquotedblright} %closing inner mark
%% ***********************************************
\begin{document}
\parskip 10pt
\Large
\thispagestyle{empty}
\textbf{\enquote{\enquote{This nested and closed set of quotations is however, properly typeset, I think.}}}
{{`` \hskip -3pt ` \hskip -3pt ``My friend,'' he asked, ``how may I properly typeset (i.e., without the negative hskips) the two sets of quotations in red?''}}
\vskip 5pt
{{`` \hskip -3pt ` \hskip -3pt ``This is the second of the two sets.''}}
{\bfseries\large With the new quote style}
\setquotestyle[noclosed]{dblquote} % use the new style <<<<
\enquote{%
\enquote{My friend,} he asked, \enquote{how may I properly typeset (i.e., without the negative hskips) the two sets of quotations in red?}
}
\enquote{%
\enquote{This is the second of the two sets.}
}
\end{document}