![如何正确排版一组非封闭式引文](https://linux22.com/image/445400/%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E6%8E%92%E7%89%88%E4%B8%80%E7%BB%84%E9%9D%9E%E5%B0%81%E9%97%AD%E5%BC%8F%E5%BC%95%E6%96%87.png)
我想正确排版(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}