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.

Is there a way to cancel the loading of this line, in classicthesis, after classicthesis? To have all the fonts in CM like default?

\PassOptionsToPackage{osf,sc}{mathpazo}
\RequirePackage{mathpazo}
\linespread{1.05}

I have tried this way:

\usepackage{lmodern}
\usepackage{hfoldsty}% I also would the oldstyle numbers that in standard CM there aren't
\linespread{1}

but for example \mathbb and ! still remain in palatino...

Update:

\renewcommand\graffito@setup{%
   \itshape\footnotesize%   \slshape --> \itshape
   \parindent=0pt \lineskip=0pt \lineskiplimit=0pt %
   \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%
   \doublehyphendemerits=100000%
   \finalhyphendemerits=\doublehyphendemerits}
share|improve this question
2  
Try (before loading classicthesis, and maybe before loading your document class) \RequirePackage{scrlfile}\PreventPackageFromLoading{mathpazo}. See tex.stackexchange.com/questions/76297/… –  lockstep Oct 13 '12 at 11:21
    
classicthesis is quite rigid: take or leave. Trying to customize it is a lost battle. –  egreg Oct 13 '12 at 12:35
    
hfoldsty and lmodern are contradictory to each other. –  egreg Oct 13 '12 at 14:17
add comment

1 Answer

up vote 5 down vote accepted
\documentclass{scrbook}

\usepackage{scrlfile}
\PreventPackageFromLoading{mathpazo}
\usepackage[pdfspacing,eulerchapternumbers]{classicthesis}

% Latin Modern with oldstyle digits    
\usepackage[% 
  rm={oldstyle,proportional},% 
  sf={oldstyle,proportional},% 
  tt={oldstyle=false,proportional=false,monowidth}% 
]{cfr-lm} 

% \mathbb
\usepackage{amssymb}

\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\def\myaddress{http://it.wikipedia.org/wiki/Pagina_principale}
%\chapter[test]{\href{\noexpand\myaddress}{\spacedallcaps{test}}}
\chapter[test]{\href{\noexpand\myaddress}{test}}

This is a test for the font used. Here is $\mathbb{Z}$ and here
are the digits 1234567890 in text mode and in math mode $1234567890$.

\sffamily

Here are the digits 1234567890 in text mode (sans serif)

\ttfamily

Here are the digits 1234567890 in text mode (typewriter)

\end{document}

enter image description here

Here's the list of used fonts from the log file

</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/euler/eurb10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/lm/lmcsc10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/lm/lmr10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/lm/lmss10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/lm/lmtt10.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/symbols/msbm10.pfb>

and from pdffonts

name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
KNQMFR+LMRoman10-Regular             Type 1            yes yes no      14  0
GNBFRC+LMRomanCaps10-Regular         Type 1            yes yes no      15  0
GNBFRC+LMRomanCaps10-Regular         Type 1            yes yes no      16  0
KNQMFR+LMRoman10-Regular             Type 1            yes yes no      17  0
PWNBSJ+EURB10                        Type 1            yes yes no      28  0
AICAWW+MSBM10                        Type 1            yes yes no      29  0
KNQMFR+LMRoman10-Regular             Type 1            yes yes no      30  0
CTWEBZ+LMSans10-Regular              Type 1            yes yes no      31  0
CTWEBZ+LMSans10-Regular              Type 1            yes yes no      32  0
AUGYQG+LMMono10-Regular              Type 1            yes yes no      33  0

If you don't want chapter numbers in the Euler font, remove the eulerchapternumbers option and issue

\renewcommand{\chapterNumber}{\normalfont\fontsize{70}{70}\selectfont}

after loading classicthesis; this will use Latin Modern also for the chapter numbers (modify to suit).

share|improve this answer
    
I have also added the code in my updated question to have the compatibility also for the notes in cm. Is it a good idea? –  FormlessCloud Oct 13 '12 at 19:17
    
@FormlessCloud What does this have to do with the question? –  egreg Oct 13 '12 at 19:21
    
the real meaning of this question is to provide all the codes that allow the full compatibility of the CM with classicthesis. So also this little update have to do with the meaning of the question, also if the title (you are right) seem to indicate a different question. –  FormlessCloud Oct 13 '12 at 19:35
    
@FormlessCloud graffito does use Latin Modern fonts with my code, but of course with slanted shape. In other words, this has nothing to do with the question. –  egreg Oct 13 '12 at 19:40
    
@FormlessCloud A simple way to change the font to italic is to say, in your document preamble: \usepackage{etoolbox}\makeatletter\patchcmd{\graffito@setup}{\slshape}{\itshape‌​{}{}\makeatother –  egreg Oct 13 '12 at 19:47
show 1 more comment

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.