我有一个非常固执的教授,要求使用斜体引号。
所以我有一个充满引文的文档,标有\enquote{}
。我怎样才能轻松地将它们全部更改为斜体 ?
我在文档或其他任何地方都找不到任何东西......
\documentclass[12pt, a4paper, oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[autostyle]{csquotes}
\usepackage{fancyhdr}
\usepackage{times}
\usepackage{hyperref}
\usepackage[singletitle=true, isbn=false, backend=biber, bibencoding=utf8, style=verbose-trad2, citestyle=verbose-trad2]{biblatex}
\usepackage{tocloft}
\usepackage[xindy]{imakeidx}
\usepackage[toc, acronym, xindy]{glossaries}
\usepackage{setspace}
\begin{document}
I like trains, so does my mom. She said : \enquote{I like trains !}
\end{document}
我可以直接添加\textit
里面的内容\enquote
(我想),但我有数百条引言......
答案1
您可以更改法语风格。但请注意,\enquote 可以用于参考书目。
\documentclass[12pt, a4paper, oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[autostyle]{csquotes}
\DeclareQuoteStyle[quotes]{french}
{\itshape\mkfrenchopenquote{\guillemotleft}}
{\mkfrenchclosequote{\guillemotright}}
{\itshape\textquotedblleft}
{\textquotedblright}
\begin{document}
I like trains, so does my mom. She said : \enquote{I like trains !} clclc
\end{document}
答案2
这适合你吗?
\documentclass[12pt, a4paper, oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[autostyle]{csquotes}
% erased not relevant packages
\newcommand*{\myenquote}[1]{\enquote{{\itshape#1}}}
\begin{document}
I like trains, so does my mom. She said: \myenquote{I like trains !}
\end{document}
然后将文档中的所有enquote
出现替换为myenquote
(注意不要更改序言中的第一个!)。
答案3
尝试这个:
\documentclass[12pt, a4paper, oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[french]{babel}
\usepackage[autostyle]{csquotes}
% erased not relevant packages
\let\oldenquote\enquote
\renewcommand{\enquote}[1]{{\itshape\oldenquote{#1}}}
\begin{document}
I like trains, so does my mom. She said: \enquote{I like trains !}
\end{document}
答案4
可能有点迟了,但是
\usepackage[autostyle]{csquotes}
\let\itenquote\enquote
\renewcommand*{\enquote}[1]{\itenquote{{\itshape#1}}}
对我来说很有效