Document Classeshow to make line in header?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
flippy
Posts: 2
Joined: Mon May 12, 2008 8:57 am

how to make line in header?

Post by flippy »

I'm a novice and I'm writing my thesis in latex (Miktex 2.7 with Led editor). How to make in heading line which will separate name of section and page number from text? something like in this document but my document is one page so on left side is name of section and on right side should be page number. Now I use memoir class.
thanks for help

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

how to make line in header?

Post by Stefan Kottwitz »

Hi flippy,

welcome to the LaTeX Community board!
Choose a predefined pagestyle and/or use the command \makeheadrule. An example:

Code: Select all

\documentclass[oneside]{memoir}
\usepackage[english]{babel}
\usepackage{blindtext}
\makeheadrule{headings}{\textwidth}{0.3pt}
\begin{document}
\chapter{The Class Memoir}

\section{Test Section}

\blindtext[6]

\newpage
\section{Another Section}

\blindtext[6]
\end{document}
The memoir manual will give you more information.

Stefan
LaTeX.org admin
flippy
Posts: 2
Joined: Mon May 12, 2008 8:57 am

Re: how to make line in header?

Post by flippy »

great it's working thanks a lot:]
Post Reply