General ⇒ Centering \section
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Centering \section
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Centering \section
you could try this:
Code: Select all
\documentclass{book}
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\centering\normalfont\Large\bfseries}}
\makeatother
\begin{document}
\chapter{Dummy chapter}
\section{Test section}
text text text
\end{document}
Centering \section
or simply switch to the memoir class where it would be as simple as
Code: Select all
\setsecheadstyle{\Large\bfseries\centering}
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Re: Centering \section
Thanks again.
Re: Centering \section
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Centering \section
gmedina wrote:Hi,
you could try this:Code: Select all
\documentclass{book} \makeatletter \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\centering\normalfont\Large\bfseries}} \makeatother \begin{document} \chapter{Dummy chapter} \section{Test section} text text text \end{document}
Re: Centering \section
-
- Posts: 16
- Joined: Sat Dec 06, 2008 7:55 pm
Centering \section
I appreciate the question and I do need to reconsider. The book is an anthology, a mixture of poetry and narrative fiction. I've considered using drop caps for the first para of the narrative fiction, but then the top left side of the page appears very heavy. A question of aesthetics.daleif wrote:then I think you should reconsider your choice, why only center some? and not have a consistent layout
This is my first venture with LaTeX, and I find the learning curve is a bit steep. I'm grateful for this forum, and for the responses, such as yours, that I get.