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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
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