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.

Ok, I am very new to LaTeX. I am using a default template. I have been trying to figure out how to change the font sizes and other formatting. Reading forums convinced me to try titlesec. All titlesec formatting is added to the template (which I don't really understand). The section headings will change size - but not the title. It stays at 12pt. And why is it in all caps? I think it has something to do with amsart, but I could really use some help. My setup looks like this:

\documentclass[12pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. 
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{titlesec}

\newcommand*{\justifyheading}{\raggedright}
\titleformat {\title}
  {\normalfont \HUGE \bfseries \justifyheading}{\thesection}{1em}{}
\titleformat {\section}
  {\normalfont \large \bfseries \justifyheading}{\thesection}{1em}{}
\titleformat {\subsection}
  {\normalfont \large \bfseries \justifyheading}{\thesubsection}{1em}{}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{Recall Some Preliminaries}
\begin{document}
\maketitle
\section*{Tensor Calculus}
%\subsection{}

whatever

\end{document}  

The section headings will change size - but not the title. It stays at 12pt.

share|improve this question
    
@egreg: any particular reason for not accepting my edit (which was essentially the same as yours)? –  Koji Apr 10 '12 at 9:11
    
@Koji I didn't reject any edit. –  egreg Apr 10 '12 at 9:15
    
Notice that \HUGE does not exist, the largest font command is \Huge. –  tohecz Apr 10 '12 at 9:15
    
@egreg: my bad, then. Probably nearly simultaneous or something. –  Koji Apr 10 '12 at 9:16
    
Since you're trying to get the article shape, use \documentclass{article}. –  egreg Apr 10 '12 at 10:37
add comment

1 Answer 1

up vote 1 down vote accepted

\title cannot be modified using titlesec package. I think that easiest solution is to make title by yourself, using the center environment:

\documentclass[12pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. 
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{titlesec}

\newcommand*{\justifyheading}{\raggedright}
\titleformat {\section}
  {\normalfont \large \bfseries \justifyheading}{\thesection}{1em}{}
\titleformat {\subsection}
  {\normalfont \large \bfseries \justifyheading}{\thesubsection}{1em}{}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{Recall Some Preliminaries}
\begin{document}

\vspace*{3ex minus 1ex}
\begin{center}
\Large\bfseries\MakeUppercase{\shorttitle}
\end{center}
\vskip 5ex minus 1ex

\section*{Tensor Calculus}
%\subsection{}

whatever

\end{document} 
share|improve this answer
    
Ah-ha! Ok that did it. Thankyou very much. I will use this. –  Lex Apr 10 '12 at 11:50
    
@Lex In that case, you might consider accepting the answer using the tick mark at the top-left of the answer ;) –  tohecz Apr 11 '12 at 7:15
    
Ah ok, thanks - I will remember to do that from here on. –  Lex Apr 11 '12 at 10:51
add 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.