Page Layoutsubsection dividing

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
teddy0625
Posts: 9
Joined: Sat Mar 28, 2009 10:34 am

subsection dividing

Post by teddy0625 »

Code: Select all

\documentclass[a4paper,12pt,twoside]{book}
\usepackage{amsmath,amssymb,amsfonts,geometry} % Typical maths resource packages
\usepackage{xcolor}                    % For creating coloured text and background
\usepackage{hyperref}                 % For creating hyperlinks in cross references
\usepackage{graphicx}
\usepackage{pstricks}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{teo}{Theorem}[section]
\numberwithin{section}{chapter}

\usepackage{fancyhdr}
%def "fancy" pagestyle
\pagestyle{fancy}
  \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername \ \thechapter \ \ #1}}{}}
  \fancyhf{}%clear all header and footer fields
    \fancyhead[LO]{\nouppercase{\rightmark}}
    \fancyhead[RE]{\nouppercase{\leftmark}}
       \fancyhead[RO,LE]{\thepage}
   
\def\chem#1#2{ {{\scriptscriptstyle#1\atop\longrightarrow}\atop{\longleftarrow\atop \scriptscriptstyle#2}} }


\begin{document}

\begin{titlepage}
\begin{center}
\vspace*{5mm}
\Huge  Hydrodynamic Stability and Flow Transitions\\
\vspace*{50mm}
\includegraphics[scale=0.7]{shield.pdf}
\vfill
\rm
{\LARGE } \\
\vspace*{25mm}
\small
\end{center}
\end{titlepage}
\newpage
\thispagestyle{empty}


\tableofcontents
\renewcommand*\thesection{\arabic{section}}
\clearpage{\pagestyle{empty}\cleardoublepage}

\newpage
\thispagestyle{empty} 

\newpage
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}


\chapter*{Notation}
\addcontentsline{toc}{chapter}{Notation}
\begin{table}[h!]
%\begin{small}
\begin{tabular}{l c l}
$x,y,z$& - & Cartesian coordinates \\ \\
$t$& - & Time\\ \\
$u,v,w$ & - & Eulerian components of the fluid velocity \\ \\
$U,V,W$ & - & Mean velocity components\\ \\
$\alpha$& - & Wave number in x direction \\ \\
$\beta$& - & Wave number in z direction \\ \\
$c=c_{r}+\mathbf{i}c_{\mathbf{i}}$& - & Complex phase velocity \\ \\
$\phi$& - & Eigenfunction \\ \\
$\psi$& - & Stream function\\ \\
$R$& - & Reynolds number of the mean flow, based on free stream velocity \\ \\
$\nu$ & - & Kinematic fluid Viscosity \\ \\
$',d/dy$ & - & Ordinary derivative\\ \\
$x,y,z,t$ & - & In subscript, partial derivative\\ \\
$*$  & - & In superscript, complex conjugate\\
%$\epsilon$& - & perturbation parameter \\
%$\zeta$& - & eigenvalue \\
\end{tabular}
\end{table}
\addcontentsline{toc}{chapter}{Notation}


\newpage
\chapter{Preliminaries}%-----------------------------Preliminaries------------------------------------------------------------------------

\section{Introduction to hydrodynamic stability} %---------------------------- section 1.1--------------------------------------
In fluid dynamics, hydrodynamic stability concerns the stability and instability of fluid flows. Hydrodynamic stability is an important phenome
. 
. 
.
hi.
I am having a trouble dividing sections for each chapter. I want to display 3 sections under chapter 1 (Preliminaries) as 1.1 , 1.2 and 1.3 but I do not know how. help please
Attachments
Picture 1.png
Picture 1.png (40.48 KiB) Viewed 1863 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

subsection dividing

Post by localghost »

Right after your command for the ToC there is a line that causes this behaviour.

Code: Select all

\renewcommand*\thesection{\arabic{section}}
Delete this line and the section counter will be displayed as set by default.

There is one more line that is completely unnecessary and thus can be deleted.

Code: Select all

\numberwithin{section}{chapter}
The counter for section is reset with each new chapter by default.

Finally just one hint. The geometry package has nothing to do with mathematics. It is for setting up page and paper dimensions. You should not group it with other packages in order to pass some specific options to it.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply