Text FormattingJutification of text of paragraphs?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mgrobler
Posts: 1
Joined: Tue May 26, 2009 10:13 am

Jutification of text of paragraphs?

Post by mgrobler »

Hi everyone.

Im new here and a beginner user.
I can help myself now in LaTeX in general but still having many problems and am seeking help on text justification.

I can see that there are ways to get LateX to align text to the left and align text to the right and to the center using \flushleft and \flushright and \center commands.

I am seeking a way to tell LaTeX to space text evenly spread it out in a block of text that left justifies and right justifies at the same time. At the moment im just using \hfill and other commands such as \, \: etc to do alignment myself but this is going to take forever on a 20page document.

Is this possible?

Im referring to the effect one gets when clicking on the justify button found in MS-Word....

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Jutification of text of paragraphs?

Post by localghost »

mgrobler wrote:[...] I am seeking a way to tell LaTeX to space text evenly spread it out in a block of text that left justifies and right justifies at the same time. At the moment im just using \hfill and other commands such as \, \: etc to do alignment myself but this is going to take forever on a 20page document. [...]
Full justification is the default setting. Thus you have to do nothing but let the compiler typeset your document. Consider the following code.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage{blindtext}

\pagestyle{headings}

\begin{document}
  \Blinddocument
\end{document}
As you can see, it's working fine. In any other case please provide a minimal working example (MWE) that shows another alignment of the text.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply