Text FormattingCapital letter

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Capital letter

Post by rayman »

Hello everyone. I am using a ready master thesis template that I think looks nice in general, however I have a one problem that drives me crazy. Every time when I start a new section, it never begins with a capital letter. Something like this:

Code: Select all

\documentclass[11pt,a5paperfootinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}                
\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage[bitstream-charter]{mathdesign}
\usepackage[osf]{libertine}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{anysize}
\marginsize{0.1\paperwidth}{0.1\paperheight}{2cm}{2cm}
\newcommand{\bigslant}[2]{{\raisebox{.2em}{$#1$}\left/\raisebox{-.2em}{$#2$}\right.}}
\begin{document}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers
\newtheorem{exmp}[thm]{Example}
\theoremstyle{corollary}
\newtheorem{cor}[thm]{Corollary}
\theoremstyle{lemma}
\newtheorem{lem}[thm]{Lemma}
\theoremstyle{proposition}
\newtheorem{prop}[thm]{Proposition}
\newcommand{\ndiv}{\hspace{-4pt}\not|\hspace{2pt}}
%	\pagestyle{scrheadings}
%	\manualmark
%	\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
		\tableofcontents 
	%\automark[section]{chapter}
%	\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
%	\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
    % use \cleardoublepage here to avoid problems with pdfbookmark
%    \cleardoublepage\part{Test Part}
    	\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
		{}%
		\chapter{\textbf{Cubic rings and cubic integral binary forms.}}
    \section{\textbf{Cubic rings}}
		\begin{defn}
		\textit{A cubic $\mathbb{Z}$-ring $\Lambda$ is a commutative ring with a unity without zero divisors, whose additive group $G$ is a free $\mathbb{Z}$-module of rank $3$.}
	\end{defn}
\end{document}
would give me something like this (please see the attachment)
test.jpg
test.jpg (11.82 KiB) Viewed 10213 times
I would like to be able to get a capital letter in the name of the section: i.e 1.1 Cubic rings.
Thanks for any help
Last edited by cgnieder on Fri Mar 14, 2014 10:37 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Capital letter

Post by Stefan Kottwitz »

That's caused by the classicthesis style. In classicthesis.sty you can find:

Code: Select all

% ********************************************************************
% layout of the chapter-, section-, subsection-, subsubsection-,
% paragraph and description-headings
% ********************************************************************             
\RequirePackage{titlesec}
		% parts
		\ifthenelse{\boolean{@parts}}%
		{%
%		\newcommand{\ctparttext}{\relax}
		\newcommand{\ct@parttext}{\relax} % Thanks to Ivo
		\newcommand{\ctparttext}[1]{\renewcommand{\ct@parttext}{#1 \relax}} 
    \titleformat{\part}[display]
        {\normalfont\centering\large}%
        {\thispagestyle{empty}\partname~\MakeTextUppercase{\thepart}}{1em}%
        {\color{Maroon}\spacedallcaps}[\bigskip\normalfont\normalsize\color{Black}\begin{quote}\ct@parttext\end{quote}]
    }{\relax}
    % chapters
    \ifthenelse{\boolean{@linedheaders}}%
    {% lines above and below, number right
    \titleformat{\chapter}[display]%             
        {\relax}{\raggedleft{\color{halfgray}\chapterNumber\thechapter} \\ }{0pt}%
        {\titlerule\vspace*{.9\baselineskip}\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
    }{% something like Bringhurst  
    \titleformat{\chapter}[display]%
        {\relax}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{halfgray}\chapterNumber\thechapter}}{0pt}%
        {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 
    }
    % sections \FloatBarrier
    \titleformat{\section}
        {\relax}{\textsc{\MakeTextLowercase{\thesection}}}{1em}{\spacedlowsmallcaps}
    % subsections
    \titleformat{\subsection}
        {\relax}{\textsc{\MakeTextLowercase{\thesubsection}}}{1em}{\normalsize\itshape}
    % subsubsections
    \titleformat{\subsubsection}
        {\relax}{\textsc{\MakeTextLowercase{\thesubsubsection}}}{1em}{\normalsize\itshape}        
    % paragraphs
    \titleformat{\paragraph}[runin]
        {\normalfont\normalsize}{\theparagraph}{0pt}{\spacedlowsmallcaps}    
    % descriptionlabels
        \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}\spacedlowsmallcaps{#1}}   % spacedlowsmallcaps textit textsc                  
    % spacing
    \ifthenelse{\boolean{@nochapters}}%
        {\relax}%
        {\titlespacing*{\chapter}{0pt}{1\baselineskip}{1.2\baselineskip}}
    \titlespacing*{\section}{0pt}{1.25\baselineskip}{1\baselineskip} 
    \titlespacing*{\subsection}{0pt}{1.25\baselineskip}{1\baselineskip}
    \titlespacing*{\paragraph}{0pt}{1\baselineskip}{1\baselineskip}
Redefine as you like, such as removing \spacedlowsmallcaps and \textsc, where you don't desire it. Use \bfseries there instead, so you don't need \textbf in the text later.

Code: Select all

\titleformat{\section}
  {\normalfont\bfseries}{\thesection}{1em}{}
You can read more about those settings in the titlesec manual.

Stefan
LaTeX.org admin
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Capital letter

Post by rayman »

Thank you Stefan, it helped. I just have 2 more issues. I would really appreciate if you could give me some hints on that.
1) In contents, sections begin with capital letter but chapters don't. I tried to fix it the same way as you did but it did not seem to work anymore and chapter appear bold which I don't want in the contents table. It looks like that:


2) I have noticed that some headers appear bold as well and never start with capital letters, others don't appear bold, don't begin with a capital letter

Is there any way to fix it?
Many thanks
Namnloest.jpg
Namnloest.jpg (5.36 KiB) Viewed 10213 times
header.jpg
header.jpg (4.41 KiB) Viewed 10280 times
content.jpg
content.jpg (21.41 KiB) Viewed 10213 times
Last edited by cgnieder on Fri Mar 14, 2014 10:39 am, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Capital letter

Post by Stefan Kottwitz »

Actually it's an issue with combining small caps style and bold face. Not many fonts provide this combination. Here, \textbf overrides \testsc.

You could see the original classicthesis style, if you would remove \usepackage[osf]{libertine} or just comment it out.

Seems like a decision to either use classicthesis or Libertine, or to fix and change all those classicthesis caps settings.

Stefan
LaTeX.org admin
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Capital letter

Post by rayman »

Thank you Stefan. After I have removed \usepackage[osf]{libertine} everything looks as I wanted it to look like:)
Last edited by cgnieder on Fri Mar 14, 2014 10:40 am, edited 1 time in total.
Post Reply