Page LayoutTitle sections as Lecture 1, Lecture 2 serially

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
itatitl
Posts: 13
Joined: Thu Mar 24, 2011 8:20 am

Title sections as Lecture 1, Lecture 2 serially

Post by itatitl »

I am preparing some lecture plan/notes. I just want to put \section for each lecture and get that section titled as Lecture 1, Lecture 2 serially. ( Not 0.1 Lecture 1, 0.2 Lecture 2 , etc.) What would be a simple method to achieve this.
Thanks
Last edited by cgnieder on Fri Jan 03, 2014 8:20 pm, edited 1 time in total.

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Title sections as Lecture 1, Lecture 2 serially

Post by cgnieder »

Hi itatitl,

Welcome to the LaTeX community!

Something like this?

Code: Select all

\documentclass{article}
\renewcommand\thesection{Lecture~\arabic{section}}

\usepackage{lipsum}% dummy text
\begin{document}

\section{Basic Stuff}
\lipsum[1]

\section{Advanced Stuff}
\lipsum[2]

\end{document}
lecture.png
lecture.png (69.07 KiB) Viewed 4319 times
Regards
site moderator & package author
itatitl
Posts: 13
Joined: Thu Mar 24, 2011 8:20 am

Re: Title sections as Lecture 1, Lecture 2 serially

Post by itatitl »

Thanks a lot Clemens,
That works perfect. I have the option to remove the lecture titles as well ( with \section{}).
Regards,
Itatitl.
Post Reply