如何将 \scshape 中的个别单词斜体化

如何将 \scshape 中的个别单词斜体化

我目前mathpazo在论文中使用字体。我想使用小写字母作为章节标题(正如您在我设置为\allsectionsfont的MWE 中看到\scshape的那样)。问题是我在一些标题中有一些植物名称需要斜体。这些包括下面 MWE 中的 Tolypothrix 和 Calothrix。有人有可行的解决方案吗?

\documentclass[12pt,a4paper,openleft,draft]{report}
\usepackage[lmargin=4.0cm, rmargin=2.5cm,tmargin=3cm,bmargin=2.5cm]{geometry}
\usepackage{mathpazo}    
\usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,singlelinecheck=false]{caption}
\usepackage{sectsty}
\usepackage{setspace}
\usepackage[english]{babel}
\usepackage{slantsc}


\allsectionsfont{\scshape}
\doublespacing
\begin{document}

\subsection{Differing results from phylogenetic analyses have significant consequences for the placement of Tolypothrix and Calothrix in the Nostocales}



\end{document}

答案1

因为正如 David 所说,没有小写倾斜或斜体字体,所以我会使用“穷人的小写”解决方案:小字体的大写字母。在下面的例子中,我使用了缩放以获得匹配的尺寸;可能进行一些微调会使匹配效果更好:

\documentclass[12pt,a4paper,openleft]{report}
\usepackage[lmargin=4.0cm, rmargin=2.5cm,tmargin=3cm,bmargin=2.5cm]{geometry}
\usepackage{mathpazo}    
\usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,singlelinecheck=false]{caption}
\usepackage{sectsty}
\usepackage{setspace}
\usepackage[english]{babel}
%\usepackage{slantsc}
\usepackage{relsize}

\allsectionsfont{\scshape}
\doublespacing
\begin{document}
\thispagestyle{empty}
\subsection{Differing results from phylogenetic analyses have
  significant consequences for the placement of
  \textit{\smaller[1.5]\textlarger[2]{T}OLYPOTHRIX} and
  \textit{\smaller[1.5]\textlarger[2]{C}ALOTHRIX} in the Nostocales}



\end{document}

在此处输入图片描述

答案2

OP 的问题是关于斜体小写字母在章节标题中,默认情况下为粗体。Boris 的回答——尽管与周围文本相比,伪造的字母有点太浅——满足了 OP 的要求。如果需要斜体小写字母在(非粗体)连续文本中,我们不仅可以通过切换到较小字体的斜体大写字母来改进 Boris 的解决方案,还可以通过切换到粗体。

\documentclass{article}

\usepackage[osf]{mathpazo}

\usepackage{relsize}

\newcommand*{\textfakeitsc}[1]{\textit{\textbf{\MakeUppercase{\smaller[2]#1}}}}

\begin{document}

\Large

Some text \textsc{in small caps \textfakeitsc{and faked italic ones}}.

\end{document}

在此处输入图片描述

相关内容