Text FormattingHorizontal Text Alignment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Horizontal Text Alignment

Post by hbaromega »

I want to commence text always at the same position. I want to decide the position at the beginning. This is something like what we using while writing a biological data. For example.

Code: Select all

Surname:          Einstein

Name:             Albert

Date of birth:    March 14, 1879
You can notice that Einstein, Albert and March appear at the same position.

Thanks.

Recommended reading 2024:

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

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

Horizontal Text Alignment

Post by localghost »

What about a {tabbing} (← Link!) or {tabular} (← Link!) environment?


Thorsten
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Horizontal Text Alignment

Post by hbaromega »

localghost wrote:What about a {tabbing} (← Link!) or {tabular} (← Link!) environment?
{tabular} I particularly want to avoid, since I want to continue for several pages. I guess there could be some issues.

I want to start a sentence, for example, at every 4cm from the margin. Also
would be nice if you use my "Albert Einstein" example.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Horizontal Text Alignment

Post by localghost »

Then try a customized {list} environment. It allows page breaks.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Horizontal Text Alignment

Post by Stefan Kottwitz »

{tabbing} works with line breaks, just try and let us know if there are still problems.

Stefan
LaTeX.org admin
Post Reply