I want to be able to use small caps for chapter headings. According to Using \textsc{} within \section{} CM default font does not support small caps so I need to use:
\usepackage[T1]{fontenc}
in the preamble.
However, this changes font for whole document. I do have quite complex set up and global setting causes few issues so I would like to get same effect as by using \usepackage[T1]{fontenc} in preamble (that is - to be able to use small caps for chapter headings), but only for chapter headings that defined created by using following macro:
\def \centeredchapter#1{
\chapter*{\centering{\LARGE \textsc{#1}}}
\addcontentsline{toc}{chapter}{#1}
}
Is it possible?
\chapter*{\centering{\LARGE\fontencoding{T1}\textsc{#1}}}– David Carlisle Mar 03 '14 at 11:41\fontencoding{T1}locally, but imho you should better solve your global problems with T1 encoding. T1 is a much better encoding than the default OT1 – Ulrike Fischer Mar 03 '14 at 11:42\fontencoding{T1}in macro as suggested by David and Ulrike works in my case. Just for clarity - is\fontencoding{T1}a Tex or LaTeX native command? I thought it isfontencpackage command but it works without loading that package. – Rafal Mar 03 '14 at 11:54