Text FormattingChapter header

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
SegevT
Posts: 1
Joined: Tue Apr 24, 2018 5:46 am

Chapter header

Post by SegevT »

With this code

Code: Select all

\chapter{Unit 1: Solar Resource}
\pagenumbering{arabic}
\input{HS_U1_SolarResource_2018_S}
I get

Chapter 1
Unit 1: Solar Resource

Question: how do I remove the first line, so that "Chapter 1" does not show up?

Thanks!!
Attachments
Chapter 1 Unit 1.png
Chapter 1 Unit 1.png (38.54 KiB) Viewed 3199 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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Chapter header

Post by Johannes_B »

Which documentclass are you using?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Chapter header

Post by Stefan Kottwitz »

Welcome to the forum!

A little late, but you did not answer Johannes question, and the document class is making the chapter heading design. The book and report class print it that way, scrbook and scrreprt print it in the way you desire.

Anyway, it seems you don't want automatic numbering since you write the number in the heading text manually. So the easiest way is:

Code: Select all

\documentclass{report}
\begin{document}
\chapter*{Unit 1: Solar Resource}
\end{document}
A better way would be: calling the chapters "units", and using the automatic numbering by LaTeX. A good class (scrreprt) or the titlesec package can then help in customizing the header appearance.

Stefan
LaTeX.org admin
Post Reply