Hi,
I'm having a problem in which the images and text I enter, though of the same alignment, do not align properly. I've tried \begin{center} - \end{center} tags and \centering but both exhibit the same problem.
*also, site requires me to log in repeatedly which is utterly annoying
Page Layout ⇒ Center, Centering Inconsistency
Center, Centering Inconsistency
- Attachments
-
- centering.png (110.61 KiB) Viewed 2943 times
Last edited by localghost on Fri Dec 02, 2011 10:38 am, edited 1 time in total.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Center, Centering Inconsistency
Check the log file for warnings.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Center, Centering Inconsistency
Hello Thorsten,
What do you mean? Where do I find the log file? Is there a specific error I should look for to fix this?
Cheers,
Josh
What do you mean? Where do I find the log file? Is there a specific error I should look for to fix this?
Cheers,
Josh
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Center, Centering Inconsistency
The log file (*.log) is located in the same directory as your source file (*.tex). I'm pretty sure that you get some warnings about "overfull hboxes".
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Center, Centering Inconsistency
Hi Josh,
I guess your images are too wide. If they are wider than the text width, they cannot be centered.
Either resize the bigger images, such as by
or hide them with a box of smaller width, for example by
see perhaps Centering wide tables or figures.
Stefan
I guess your images are too wide. If they are wider than the text width, they cannot be centered.
Either resize the bigger images, such as by
Code: Select all
\includegraphics[width=\textwidth]{filename}
Code: Select all
\noindent\makebox[\textwidth]{\includegraphics{filename}}
Stefan
LaTeX.org admin
Re: Center, Centering Inconsistency
Hello,
Thank you for your responses. I used Stefan's second solution and it worked perfectly. Again, thank you very much.
Cheers,
Josh
Thank you for your responses. I used Stefan's second solution and it worked perfectly. Again, thank you very much.

Cheers,
Josh