初始“单引号”是向后的 - csquotes

初始“单引号”是向后的 - csquotes

我应该使用字体规格csquotes 中的单引号 在此处输入图片描述? 我最初的单引号方向错误,LaTeX 认为它是一个撇号。

MWE:文件名:mwe-singlequotes.tex

\documentclass[a4paper,hebrew,british,12pt]{report}
\usepackage{geometry,polyglossia,fontspec,csquotes,setspace}
\geometry{vscale=.85} %default is .7, bottom margin too big
\MakeOuterQuote{"}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont{Times New Roman}[Script=Hebrew]
\usepackage[notes,backend=biber,bookpages=false,doi=false,isbn=false,labeldate]{biblatex-chicago}
%makes block quotes single spaced
\newenvironment*{singlespcquote}
{\begin{spacing}{1}\quote}
{\endquote\end{spacing}}
\SetBlockEnvironment{singlespcquote}
\SetBlockThreshold{0}
\begin{document}
\section*{Initial 'single quote' is backwards}
\doublespace
I am having trouble with, "single quotes, said the 'latex user' to his     'friend.'"  
The first one is back wards.  \texthebrew{".הראשון הוא חזרה מחלקות"}  Oh no, I just discovered that Hebrew quotes are wrong.  Let me try this "\texthebrew{הוא}"  Ok, that's a 'stopgap'

\blockquote{I reached a point towards the end on the old heart where I had trouble getting out of a chair. All I wanted to do was get out of bed in the morning and walk to my office and sit back down in the chair. Now I throw 50 pound bags of horse feed in the back of my pickup truck and I don't even think about it. I'm back doing those things.}

Well I don't know when to use blockquote vs. displayquote.  Please don't try to fix my backward initial single quote by putting me on babel/pdflatex instead of polyglossia/xelatex.  I think I'm on csquotes insteads of quotes or quoting for a reason, but I don't know it any more.  This document compiles with \$latexmk -xelatex -f mwe-singlequotes.tex
\end{document}

答案1

当开始单引号部分时使用“倒置”应该有效:

`文本'

梅威瑟:

\documentclass[a4paper,hebrew,british,12pt]{report}
\usepackage{geometry,polyglossia,fontspec,csquotes,setspace}
\geometry{vscale=.85} %default is .7, bottom margin too big
\MakeOuterQuote{"}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont{Times New Roman}[Script=Hebrew]
\usepackage[notes,backend=biber,bookpages=false,doi=false,isbn=false,labeldate]{biblatex-chicago}
%makes block quotes single spaced
\newenvironment*{singlespcquote}
{\begin{spacing}{1}\quote}
{\endquote\end{spacing}}
\SetBlockEnvironment{singlespcquote}
\SetBlockThreshold{0}
\begin{document}
\section*{Initial `single quote' is backwards}
\doublespace
I am having trouble with, "single quotes, said the `latex user' to his     `friend.'"  
The first one is back wards.  \texthebrew{".הראשון הוא חזרה מחלקות"}  Oh no, I just discovered that Hebrew quotes are wrong.  Let me try this "\texthebrew{הוא}"  Ok, that's a `stopgap'

\blockquote{I reached a point towards the end on the old heart where I had trouble getting out of a chair. All I wanted to do was get out of bed in the morning and walk to my office and sit back down in the chair. Now I throw 50 pound bags of horse feed in the back of my pickup truck and I don't even think about it. I'm back doing those things.}

Well I don't know when to use blockquote vs. displayquote.  Please don't try to fix my backward initial single quote by putting me on babel/pdflatex instead of polyglossia/xelatex.  I think I'm on csquotes insteads of quotes or quoting for a reason, but I don't know it any more.  This document compiles with \$latexmk -xelatex -f mwe-singlequotes.tex
\end{document}

答案2

由于\MakeOuterQuote声明,外引号可以正常工作。您可以对内引号进行类似的声明,但不能使用'ascsquotes保护它(您会遇到撇号问题)。“accent aigu”可以工作,但我更喜欢使用 csquotes 命令

\documentclass[a4paper,12pt]{report}
\usepackage{polyglossia,fontspec}
\usepackage{csquotes}
\MakeOuterQuote{"}
\MakeInnerQuote{´}
\setmainlanguage[variant=british]{english}
\begin{document}
I am having trouble with "single quotes, said the ´latex user´ to his friend"

I am having trouble with \enquote{single quotes, said the \enquote{latex user} to his friend}
\end{document}

在此处输入图片描述

使用 Romain 建议的反引号也会给出正确的引号,但不会使用 csquotes 功能,也不会在您更改语言时进行调整。

相关内容