调整部分中的文本大小

调整部分中的文本大小

我正在尝试开发一些讲义。 我的代码如下:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}   
\usepackage{titling}
\newcommand{\subtitle}[1]{%
  \posttitle{%
    \par\end{center}
    \begin{center}\Large#1\end{center}
   }%
}



\newcommand{\subsubtitle}[1]{%
  \preauthor{%
    \begin{center}
    \large #1 \vskip0.5em
    \begin{tabular}[t]{c}
    }%
}


\title{Symplectic Geometry in Classical Mechanics }
\subtitle{Lecture 1}
\subsubtitle{Basics of Manifolds}
\author{}
\date{\vspace{-2.0cm}}

\begin{document}

\maketitle
\section{Why Symplectic Geometry?}

It is a mathematical formalism underlying
\begin{itemize}
\item Geometrical Optics  
\item Classical Mechanics
\item General Relativity
\item Quantum Mechanics
\end{itemize}

Such a unifying formalism help us to solve problems in one area of physics
by using ideas from another areas.
It doesn't work for systems with loss, friction or noise.

\end{document}

在此处输入图片描述

“为什么是辛几何?”文本的大小太大了?我可以减小它的大小吗?此外,页面边框和两侧文本起点之间的空白太多。有没有办法增加每行的宽度。

答案1

对于第一个问题,您可以使用titlesec其简化\titleformat* 命令。

至于边距,您可以使用 package 选择其值geometry。这是一种可能性,可以根据您的需要进行调整。我冒昧地简化了命令的代码\subtitle

\documentclass[12pt, a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[hmargin =2.5cm, showframe]{geometry}
\usepackage{titling}
\newcommand{\subtitle}[1]{%
  \posttitle{%
    \par\vskip\topsep
    \Large#1\end{center}
   }%
}



\newcommand{\subsubtitle}[1]{%
  \preauthor{%
    \begin{center}
    \large #1 \vskip0.5em
    \begin{tabular}[t]{c}
    }%
}


\title{Symplectic Geometry in Classical Mechanics }
\subtitle{Lecture 1}
\subsubtitle{Basics of Manifolds}
\author{}
\date{\vspace{-2.0cm}}

\usepackage{titlesec}
\titleformat*{\section}{\large\bfseries}

\begin{document}

\maketitle

\section{Why Symplectic Geometry?}

It is a mathematical formalism underlying
\begin{itemize}
\item Geometrical Optics
\item Classical Mechanics
\item General Relativity
\item Quantum Mechanics
\end{itemize}

Such a unifying formalism help us to solve problems in one area of physics
by using ideas from another areas.
It doesn't work for systems with loss, friction or noise.

\end{document}

在此处输入图片描述

相关内容