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

Code, edit and compile here:
\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
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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 1973 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
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}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
Post Reply