Text FormattingCenter the whole document

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Philosophaie
Posts: 17
Joined: Sat Mar 21, 2015 8:59 pm

Center the whole document

Post by Philosophaie »

How do you center the whole document.

Or at least between the two:

Code: Select all

\begin{align*}
\end{align*}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Center the whole document

Post by Stefan Kottwitz »

The align* environment is centered by default. You could check the document class option, perhaps you made a setting fleqn which stands for flushed left equation and would remove the default centering.

Perhaps post your lines with \documentclass and the one containing \usepackage[...]{amsmath}. Tip, each problem is easy to solve if a Infominimal working example would be posted. Otherwise it's often needed to guess what's not shown.

Stefan
LaTeX.org admin
Philosophaie
Posts: 17
Joined: Sat Mar 21, 2015 8:59 pm

Center the whole document

Post by Philosophaie »

Not sure how to use "lipsum" or like functions because they use:

Code: Select all

\begin{align*}
...
\end{align*} 
also.
Is there a way to just center the \begin...\end{align*}.
I tried \begin{gather*}...\end{gather*} but that only works for text not latex and gives errors for {} and $$ which I do not understand.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Center the whole document

Post by Johannes_B »

Please don't missunderstand me, but are you a bot?


Your last post seems in no way be related to what Stefan already suggested, it does not show a minimal working example, the only way to help you in an efficient way.
It also introduces the word lipsum out of nowhere.
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
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Center the whole document

Post by Johannes_B »

This seems to be a cross post to tex.sx as well. http://tex.stackexchange.com/questions/ ... everything
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply