Document ClassesChapters, book, mwrep

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
arrowman
Posts: 2
Joined: Fri Jan 14, 2011 2:19 am

Chapters, book, mwrep

Post by arrowman »

Hi,
I would like ask about help mainly with: \chapter.

When i am using book class(maybe wrong word), here is example:

Code: Select all

\documentclass[12pt,a4paper,openany,landscape]{book}
when i write \chapter{Begining}
I hav something like this:

Code: Select all

Chapter 1
Begining
but i need:

Code: Select all

1. Begining
How can i solve this?


I tried other class:

Code: Select all

\documentclass[12pt,a4paper,openany,landscape]{mwrep}
Chapters are ok, but \evensidemargin work bad(do nothing)...

Could Anyone help me? Please...

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Chapters, book, mwrep

Post by frabjous »

I suggest using the titlesec package. See its documentation for more info.

Code: Select all

\documentclass[12pt,a4paper,openany,landscape]{book}
\usepackage{titlesec}
\titleformat{\chapter}% title command to restyle
    [hang]% format as single hanging paragraph, like a section title 
    {\huge\bfseries}% font commands applied to both number and title
    {\thechapter.}% the number and dot
    {0.5em}% space between number and title
    {}% font commands applied to title
\begin{document}
\chapter{Beginning}
Some text.
\end{document}
I don't understand what you were trying to say about \evensidemargin.
arrowman
Posts: 2
Joined: Fri Jan 14, 2011 2:19 am

Chapters, book, mwrep

Post by arrowman »

Oh, thank You! You're great! It works very well.

The problem with \evensidemargin is the following:
When i use:

Code: Select all

\documentclass[12pt,a4paper,openany,landscape]{mwrep}
Latex ignore \evensidemargin command. mwrep is a lot of better for me but by these margins i can't use this.
How can i define own \evensidemargin?

Thank You again.
A.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Chapters, book, mwrep

Post by frabjous »

I wouldn't. I would set the margins with the geometry package instead. See its documentation.

Code: Select all

\documentclass[12pt,openany]{mwrep}
\usepackage{geometry} 
\geometry{landscape,a4paper,right=2cm,top=3cm,bottom=2cm,left=3cm}
Post Reply