amsart 和 titlesec - 标题字体不会改变

amsart 和 titlesec - 标题字体不会改变

好的,我对 LaTeX 还很陌生。我使用的是默认模板。我一直在想办法改变字体大小和其他格式。阅读论坛说服我尝试titlesec。所有titlesec格式都添加到模板中(我不太明白)。部分标题将改变大小 - 但标题不会。它保持在 12pt。为什么全部大写?我认为这与有关amsart,但我真的需要一些帮助。我的设置如下所示:

\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}  

章节标题将改变大小 - 但标题不会改变。标题大小仍为 12pt。

答案1

\title无法使用包进行修改titlesec。我认为最简单的解决方案是自己制作标题,使用环境center

\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} 

相关内容