我不想在 \newpage 之后出现任何标识

我不想在 \newpage 之后出现任何标识

我定义了\parindent=0cm新段落后不应有标识。但第一个\chapter和每个\newpage段落都标识了!我不想这样,那么我该如何解决呢?示例:

\documentclass[12pt]{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{geometry}
\usepackage[english]{babel}
\selectlanguage{english}



\parindent=0cm

\geometry{a4paper,left=20mm,right=20mm, top=1cm, bottom=1cm, includeheadfoot}


\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L]{\small{\textbf{Spacecraft Dynamics\\
Problem sheet 1}}}
\fancyhead[R]{\small{2012-09-10}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\setlength{\headheight}{15pt}


\begin{document}

\chapter{\textbf{\begin{large}
Problem P1: Rotations in $\mathbb{R}^2$
\end{large}}}\\
text text text
\newpage
\chapter{\textbf{\begin{large}
Problem P1: Rotations in $\mathbb{R}^2$
\end{large}}}\\
text text text\\
\chapter{\textbf{\begin{large}
Problem P1: Rotations in $\mathbb{R}^2$
\end{large}}}\\
\end{document}

答案1

您正在使用article未定义的\chapter(您的一个包已将其定义为,\relax因此它不执行任何操作,而不是像平常那样生成错误。

如果你使用报告,效果会更好:

  \documentclass[12pt]{report}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{geometry}
\usepackage[english]{babel}
\selectlanguage{english}



\parindent=0cm

\geometry{a4paper,left=20mm,right=20mm, top=1cm, bottom=1cm, includeheadfoot}


\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L]{\small{\textbf{Spacecraft Dynamics\\
Problem sheet 1}}}
\fancyhead[R]{\small{2012-09-10}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\setlength{\headheight}{15pt}


\begin{document}

\chapter{Problem P1: Rotations in $\mathbb{R}^2$}
text text text
\newpage
\chapter{Problem P1: Rotations in $\mathbb{R}^2$}
text text text
\chapter{Problem P1: Rotations in $\mathbb{R}^2$}
\end{document}

答案2

\chapter对 documentclass 毫无意义article

\documentclass[12pt,parskip]{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{geometry}
\usepackage[english]{babel}
\parindent=0cm
\setlength{\headheight}{15pt}
\geometry{a4paper,left=20mm,right=20mm, top=1cm, bottom=1cm, includeheadfoot}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L]{\small\textbf{Spacecraft Dynamics\\Problem sheet 1}}
\fancyhead[R]{\small2012-09-10}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\begin{document}

{\bfseries\large Problem P1: Rotations in $\mathbb{R}^2$}

text text text

\newpage
{\bfseries\large Problem P1: Rotations in $\mathbb{R}^2$}

text text text

{\bfseries\large Problem P1: Rotations in $\mathbb{R}^2$}
\end{document}

相关内容