Search found 4 matches

by dbourrion
Mon May 13, 2024 6:03 pm
Forum: Page Layout
Topic: Having something like \chapter{Something #Number_of_that_specific_chapter}
Replies: 1
Views: 11052

Having something like \chapter{Something #Number_of_that_specific_chapter}

Hi
I'd lke to have my chapter working this way : \chapter{Something #Number_of_that_specific_chapter}

I haven't find how to made this working.
I'm pretty sure it's possible.

Any idea/help ?

Thanks
D.
by dbourrion
Sun Apr 14, 2024 9:33 am
Forum: Page Layout
Topic: Can I have my chapter titles centered, with numbering only, and no new pages before or after ?
Replies: 3
Views: 13907

Can I have my chapter titles centered, with numbering only, and no new pages before or after ?

Hi Stephan

About "I think I would have used a counter and a self-made heading command." : i'm a Latex newbie, I think I'm enable to do that :D

For "my" solution, I've just glue together two solutions I've found on the Internet. It's not very sexy, or accurate, but it works enough for me.

Best ...
by dbourrion
Sat Apr 13, 2024 2:43 pm
Forum: Page Layout
Topic: Can I have my chapter titles centered, with numbering only, and no new pages before or after ?
Replies: 3
Views: 13907

Can I have my chapter titles centered, with numbering only, and no new pages before or after ?

Well, this is working.
I'm happy.


\documentclass[a4paper,14pt,oneside]{extbook}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{setspace}
\usepackage{xpatch}

\makeatletter

\xpatchcmd{\@makeschapterhead}{%
\Huge \bfseries #1\par\nobreak%
}{%
\Huge \bfseries ...
by dbourrion
Sat Apr 13, 2024 8:43 am
Forum: Page Layout
Topic: Can I have my chapter titles centered, with numbering only, and no new pages before or after ?
Replies: 3
Views: 13907

Can I have my chapter titles centered, with numbering only, and no new pages before or after ?

Hi there.

Well, it seems everything is almost in the subject :)

Let's explain more.

In a book, I'm trying to have the number (juste the number) of each chapter in the center of the page, and newpage when a new chapter begins

The result should look like :

1 (centered)

Lorem ipsum dolor sit ...