csquotes 中的自带引用命令的斜体更正

csquotes 中的自带引用命令的斜体更正

我正在使用 csquotes 包并定义(使用帮助本论坛)增加了三个用于引用古代资料的附加引用命令。

但是,斜体校正似乎缺失了。这三个命令都非常明显\textquoteQ\enquoteQ尤其\blockquoteQ是像来自的右括号这样的大字符\textelp(参见附图中的红色箭头。间距应该更像其他行。)。

我尝试手动包含斜体更正,\/就像\newcommand{\enquoteQ}[1]{{\setquotestyle{ancientquote}\enquote{#1}\/}}它对脚注有效一样,但也会产生效果,例如,与正常\emph命令后的句号相比,句号之间的距离更远。

要恢复斜体修正,还缺少什么?

梅威瑟:

\documentclass [fontsize=10pt,paper=238mm:168mm,pagesize,headsepline,plainheadsepline,headinclude,twoside,open=right,BCOR=5mm,DIV=14,captions=tableheading,toc=listof,toc=bibliography,numbers=noendperiod,listof=numbered,headings=optiontoheadandtoc] {scrbook}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} 
\usepackage{lmodern} 

\usepackage[french,english,ngerman]{babel}

\usepackage{microtype}

\usepackage[backend=biber,style=footnote-dw,xref=true,mincrossrefs=1,edsuper=true,autocite=footnote,ibidtracker=constrict,idemtracker=constrict,ibidpage=true,namefont=smallcaps,citedas=true,annotation=true,idemfont=smallcaps]{biblatex}


\usepackage[autostyle=true, german=quotes, english=british, french=guillemets]{csquotes}

\SetCiteCommand{\autocite}

 \renewcommand{\mkcitation}[1]{\nobreakspace#1} 


 \newenvironment*{smallquote}
   {\quote\small}
   {\endquote}

  \SetBlockEnvironment{smallquote}


\newtoggle{csq@qquote}

\makeatletter
\renewcommand{\mkblockquote}[4]{%
  \leavevmode
  \begingroup
  \iftoggle{csq@qquote}
    {\itshape}
    {\advance\csq@qlevel\@ne
     \llap{\csq@thequote@oopen}}%
  #1%
  \iftoggle{csq@qquote}
    {}
    {\csq@thequote@oclose}%
  \endgroup
  #2#4#3}

\let\csqq@blockquote\blockquote

\renewcommand{\blockquote}{\togglefalse{csq@qquote}\csqq@blockquote}
\newcommand{\blockquoteQ}{\toggletrue{csq@qquote}\csqq@blockquote}
\makeatother


\DeclareQuoteStyle{ancientquote}[\itshape][\itshape]{}{}[0.05em]{}{}
\newcommand{\textquoteQ}[2]{{\setquotestyle{ancientquote}\textquote[#1][]{#2}}}
\newcommand{\enquoteQ}[1]{{\setquotestyle{ancientquote}\enquote{#1}}}


\begin{filecontents*}{MWE.bib}
@Collection{Test,
    editor = {Cornelisse, J. W.},
    title = {Rocket Propulsion and Spaceflight Dynamics},
    year = {1979},
        gender  = {sm},
    publisher = {Pitman},
        url = {https://google.com}
}
\end{filecontents*}


\bibliography{MWE.bib}


\begin{document}

\emph{A normal italic text with a footnote \textelp{}}\footnote{Test}

\emph{A normal italic text with a full stop \textelp{}}.


\enquote{An normal inline quotation with a footnote \textelp{}}\footnote{Test}

\enquote{An normal inline quotation with a full stop \textelp{}}.

\textquote[{\autocite{Test}}]{An normal formal inline quotation with a footnote \textelp{}}


\enquoteQ{An ancient inline quotation with a footnote \textelp{}}\footnote{Test}

\enquoteQ{An ancient inline quotation with a full stop \textelp{}}.

\textquoteQ{{\autocite{Test}}}{An ancient formal inline quotation with a footnote \textelp{}}



\blockquote[{\autocite{Test}}]{A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote \textelp{}}

\blockquoteQ[{\autocite{Test}}]{An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote \textelp{}}

\end{document}

缺少斜体更正

答案1

您可以添加\/作为结束的“引号”:

\documentclass [fontsize=10pt,paper=238mm:168mm,pagesize,headsepline,plainheadsepline,headinclude,twoside,open=right,BCOR=5mm,DIV=14,captions=tableheading,toc=listof,toc=bibliography,numbers=noendperiod,listof=numbered,headings=optiontoheadandtoc] {scrbook}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}

\usepackage[french,english,ngerman]{babel}

\usepackage{microtype}

\usepackage[backend=biber,style=footnote-dw,xref=true,mincrossrefs=1,edsuper=true,autocite=footnote,ibidtracker=constrict,idemtracker=constrict,ibidpage=true,namefont=smallcaps,citedas=true,annotation=true,idemfont=smallcaps]{biblatex}


\usepackage[autostyle=true, german=quotes, english=british, french=guillemets]{csquotes}

\SetCiteCommand{\autocite}

 \renewcommand{\mkcitation}[1]{\nobreakspace#1}


 \newenvironment*{smallquote}
   {\quote\small}
   {\endquote}

  \SetBlockEnvironment{smallquote}


\newtoggle{csq@qquote}

\makeatletter
\renewcommand{\mkblockquote}[4]{%
  \leavevmode
  \begingroup
  \iftoggle{csq@qquote}
    {\itshape}
    {\advance\csq@qlevel\@ne
     \llap{\csq@thequote@oopen}}%
  #1%
  \iftoggle{csq@qquote}
    {\/}
    {\csq@thequote@oclose}%
  \endgroup
  #2#4#3}

\let\csqq@blockquote\blockquote

\renewcommand{\blockquote}{\togglefalse{csq@qquote}\csqq@blockquote}
\newcommand{\blockquoteQ}{\toggletrue{csq@qquote}\csqq@blockquote}
\makeatother


\DeclareQuoteStyle{ancientquote}[\itshape][\itshape]{}{\/}[0.05em]{}{\/}
\newcommand{\textquoteQ}[2]{{\setquotestyle{ancientquote}\textquote[#1][]{#2}}}
\newcommand{\enquoteQ}[1]{{\setquotestyle{ancientquote}\enquote{#1}}}


\addbibresource{biblatex-examples.bib}


\begin{document}

\emph{A normal italic text with a footnote \textelp{}}\footnote{Test}

\emph{A normal italic text with a full stop \textelp{}}.


\enquote{An normal inline quotation with a footnote \textelp{}}\footnote{Test}

\enquote{An normal inline quotation with a full stop \textelp{}}.

\textquote[{\autocite{doody}}]{An normal formal inline quotation with a footnote \textelp{}}


\enquoteQ{An ancient inline quotation with a footnote \textelp{}}\footnote{Test}

\enquoteQ{An ancient inline quotation with a full stop \textelp{}}.

\enquoteQ{An ancient inline quotation with a full stop}.


\textquoteQ{{\autocite{doody}}}{An ancient formal inline quotation with a footnote \textelp{}}



\blockquote[{\autocite{doody}}]{A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote A normal blockquote \textelp{}}

\blockquoteQ[{\autocite{doody}}]{An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote An ancient blockquote \textelp{}}

\end{document}

在此处输入图片描述

相关内容