Code: Select all
2.3 primes pagenum
Some text text text text text
text text text text text text
...
Code: Select all
4.1 factorials pagenum
Some text text text text text
text text text text text text
...
Code: Select all
2.3 primes pagenum
Some text text text text text
text text text text text text
...
Code: Select all
4.1 factorials pagenum
Some text text text text text
text text text text text text
...
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
Does this mean that you have a two-sided document? Because in your example you provided code for a one-sided document. Would be good if you could clarify that once and for all. With fancyhdr for a two-sided document you could this (not tested).jaybz wrote:[…] I just want this with no horiz. lines and alternating for left and right pages. […]
Code: Select all
\fancyhf{} % clear all headers and footer
\fancyhead[LE,RO]{\nouppercase{\leftmark}\qquad\thepage} % subsection title and page number in header
\pagestyle{fancy}
Code: Select all
\documentclass[a4paper,11pt,Final]{article}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\usepackage{lipsum}
\begin{document}
\thispagestyle{fancy}
\setcounter{page}{124}
\renewcommand{\headrulewidth}{0pt}
\rhead{\Large{2.3 POLYNOMIALS \hspace{7mm}}{\thepage}}
\cfoot{}
\rfoot{}
\lfoot{}
\lipsum[1]
\newpage
\fancyhf{} % clear all header and footer fields
\thispagestyle{fancy}
\setcounter{page}{189}
\renewcommand{\headrulewidth}{0pt}
\lhead{\Large{{\thepage}\hspace{7mm}}4.3 FACTORIALS}
\lipsum[1]
\end{document}
Code: Select all
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 18.0pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
Code: Select all
124 2.3 POLYNOMIALS
Code: Select all
149 4.2 FACTORIALS
Code: Select all
225 5.1 FUNCTION GRAPHING
But this can be done automatically as described earlier.jaybz wrote:Yes it must be done by hand because it will change. […]
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