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 using the classicthesis package and would like to add custom Theorems and Proof styles. I am also using the amsthm package. Page 10 & 11 of the manual for classicthesis show a sample code in which the header font can be set to \spacedlowsmallcaps.

% book example for classicthesis.sty
\documentclass[11pt,a5paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage{amsthm}
\begin{document}

\chapter{Some Math Testing}
\newtheoremstyle{note}% hnamei
{3pt}% hSpace abovei
{3pt}% hSpace belowi note
{}% hBody fonti
{}% hIndent amounti1
%{\itshape}% hTheorem head fonti
{\spacedlowsmallcaps}%
{:}% hPunctuation after theorem headi
{.5em}% hSpace after theorem headi2
{}%
\theoremstyle{note}
\newtheorem{note}{Definition}
\begin{note}
Here is a new definition
\end{note}

However the header in the output appears to be in a regular font. If I use the \spacedlowsmallcaps command outside any environment it is working fine.

Does anyone have a suggestion where the problem could be? I am using pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011), and it does not give me any error during compilation.

share|improve this question
    
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. A complete minimal working example (MWE) would be very helpful ... –  Kurt Dec 16 '12 at 4:05

1 Answer 1

up vote 6 down vote accepted

Since \spacedlowsmallcaps takes a mandatory argument, you can use the last argument for \newtheoremstyle and do the following:

\spacedlowsmallcaps{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}

A complete example:

\documentclass{scrbook}
\usepackage{classicthesis}
\usepackage{amsthm}

\newtheoremstyle{note}% hnamei
{3pt}% hSpace abovei
{3pt}% hSpace belowi note
{}% hBody fonti
{}% hIndent amounti1
%{\itshape}% hTheorem head fonti
{}%
{:}% hPunctuation after theorem headi
{.5em}% hSpace after theorem headi2
{\spacedlowsmallcaps{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}}}%
\theoremstyle{note}
\newtheorem{note}{Definition}

\begin{document}

\chapter{Some Math Testing}
\begin{note}
Here is a new definition
\end{note}
\begin{note}[A test definition]
Here is another definition
\end{note}

\end{document}

enter image description here

share|improve this answer
    
Thanks a lot - this works! –  Stephan Dec 16 '12 at 4:21
    
@Stephan You're welcome! Also, welcome to TeX.SX! –  Gonzalo Medina Dec 16 '12 at 4:21

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.