Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am currently using mathpazo for the font for my thesis. I want to use smallcaps for my section headings (as you can see in the MWE I have set \allsectionsfont to \scshape. The problem is that I have some botanical names in some headings that need to be italicised. These include the Tolypothrix and Calothrix in the MWE below. Does anyone have a working solution?

\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}
share|improve this question
    
I've edited your code sample. The backticks are for inline code snippets, for code blocks each line has to start with four spaces (which don't have to be added manually, luckily: You can just select the block and press the {} button in the editor). –  Jake Mar 29 '12 at 15:17
7  
The slantsc package you have loaded redefines itshape and scshape so that you can declare both together to get slanted small caps but it relies in a font of that shape being available (and declared to latex) I get LaTeX Font Warning: Some font shapes were not available, defaults substituted. –  David Carlisle Mar 29 '12 at 15:31

2 Answers 2

up vote 7 down vote accepted

Since, as David says, there is no small caps slanted or italic font, I'd use the "poor person's small caps" solution: uppercase letters in smaller fonts. In the example below I used relsize to get matching sizes; probably some fine tuning would make the match better:

\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}

enter image description here

share|improve this answer
    
Thanks @Boris, by changing the \textlarger[2] to \textlarger[1.75] the match is perfect. –  Will Mar 29 '12 at 17:03

The OP's question is about italic small caps in sectioning headings, which by default are bold. Boris' answer -- although the faked letters are somewhat too light compared to the surrounding text -- satisfies the OP's requirement. Should one need italic small caps in the (non-bold) running text, one can improve Boris' solution by not only switching to the italic capitals of a smaller font, but also switching to bold.

\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}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.