
The spacing on the left side is bigger than the spacing on the right side. How can I center this for any text?
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
fushleft
is an environment. You should not misuse it as command. The corresponding command would be \raggedright
.This only seems so and is a combination of an optical effect an the fact, that no text line of the shown example reachs to the right edge of the text area. This is an usual effect of unjustified text without hyphenation. You could minimize this effect, by allowing hyphenation using package ragged2e:MasterWizz wrote: The spacing on the left side is bigger than the spacing on the right side.
Code: Select all
\documentclass{report}
\usepackage[margin=14.3pt,paperwidth=194pt,paperheight=194pt,showframe]{geometry}
\usepackage{ragged2e}
\usepackage{lipsum}
\begin{document}
\RaggedRight
\lipsum[3]
\end{document}
geometry
's option showframe
to illustrate the text area and show, that this is indeed centered.report
does not provide font size 9pt. So option 9pt
is unused in your example. If you really need 9pt you have to use an extra package like extsizes or scrextend or use another class, that provides font sizes other than 10pt, 11pt or 12pt, e.g., a KOMA-Script class.Code: Select all
\begin{varwidth}{\textwidth}
\narrowragged
\lipsum[3]
\end{varwidth}
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