Document ClassesWhat class does this come from?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

What class does this come from?

Post by niles »

Hi

I wish to make the attached layout myself for each chapter, but I thought perhaps that a class exists that has this layout as default. Do you know if that is the case, and if yes, what the class is called?

[Please see the attached picture].

Best,
Niles.
Attachments
header1.png
header1.png (8.95 KiB) Viewed 2939 times
Last edited by niles on Sun Sep 11, 2011 4:12 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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

What class does this come from?

Post by localghost »

I'm not aware of any special class with this chapter heading. But this can easily be done by the titlesec package.

Code: Select all

\documentclass[11pt,english]{report}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{titlesec}
\usepackage{blindtext}

\titleformat{\chapter}[display]
{\scshape\large}
{\chaptertitlename\ \huge\thechapter}
{4ex}
{\filleft\normalfont\sffamily\bfseries\huge}
[\vspace{1ex}\titlerule]

\begin{document}
  \blinddocument
\end{document}
As always, the blindtext package is not part of the solution. It has only been used to create dummy text.


Thorsten
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: What class does this come from?

Post by niles »

Thank you, localghost. I'll look more closely at that package. I'll let you know how it turns out in this thread.

Best,
Niles.
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

What class does this come from?

Post by niles »

Thanks, it works just as I hoped for. A question (maybe a bit off-topic): How do I make the chapter title bolder? I am referring to this part:

Code: Select all

{\filleft\normalfont\sffamily\bfseries\huge}
Best,
Niles.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

What class does this come from?

Post by localghost »

Not at all. The title is already bold faced. But you can choose another font like lmodern.

Code: Select all

\usepackage{lmodern}
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: What class does this come from?

Post by niles »

Thanks, very kind of you. Consider this problem solved!

Best,
Niles.
Post Reply