Text FormattingGaps in the beginning of the line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
wugi
Posts: 1
Joined: Mon Apr 06, 2015 5:54 pm

Gaps in the beginning of the line

Post by wugi »

Hi everyone,
I'm trying to make tabs in the beginning of the line. Something like:
[gap]sorts real, vector, bool
[gap]ops create: real x real -> vector
[gap][gap] add:[gap] vector x vector -> vector
[gap][gap] scalar: [gap] vector x vector -> real
...
...
I know how to make gaps between letters, but how does it work here?
Sorry if i'm asking something that's already been answered.
Cheers,
wugi

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Gaps in the beginning of the line

Post by Stefan Kottwitz »

Hello Wugi,

welcome to the forum!

There are some commands for inserting spacing, such as \hspace*{1cm}, but I guess you like to have tabs with alignment.

Try the tabbing environment. It's explained with example here: Creating tables with LaTeX. It's from the book I wrote, so it's the first link I could find. ;-)

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Gaps in the beginning of the line

Post by Stefan Kottwitz »

Perhaps also look here: tabbing reference in the LaTeX manual.

Could not open it at first, from the slow hotel WiFi :roll: I should split that page in better manageable pieces.

Stefan
LaTeX.org admin
Post Reply