Donate
You find LaTeX Community useful? Please donate! Learn why!
Who is online
In total there are 16 users online :: 2 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm
Users browsing this forum: Google [Bot], Google Adsense [Bot] and 14 guests
Can't stom centering
6 posts
• Page 1 of 1
Can't stom centeringHi all,
I noticed that, wenn I'm doing a presentation and put \centering on a slide, after that the text on the other slides is also centered, although I had enclosed the \centering command with {}. For example: %Slide 1 {\centering Here is the text I want to be centered.} %Slide 2 And here is the text I don't want to be centered, but it still is. Why is that? Thank you very much, Alexander
Re: Can't stop centeringHi Alexander,
try a paragraph break by an empty line or \par (or break the line by \\) to end \centering:
Stefan LaTeX Community Moderator
TeXblog.net
Re: Can't stom centeringHello Stephen,
I tried that but it didn't want to compile the file. However, this is not a big thing, as I just use \begin{center}. I was just wondering why the hell it does that. Thank you for your advice.
Re: Can't stop centeringSee here: \centering.
The scope of \centering needs to be limited, for instance by \par, else it affects the next lines too. \begin{center} uses \centering internally too, but puts a list around it. One side effect of \begin{center} is that additional vertical space occures before and after the centered Text. If I don't want that I use {\centering text \\} or similar with \par. Stefan LaTeX Community Moderator
TeXblog.net
|




