Text FormattingSaving variables in LaTeX

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
demirci
Posts: 1
Joined: Sat Jun 27, 2009 1:59 am

Saving variables in LaTeX

Post by demirci »

Hi all,

I want to save the value of the variable "parindent". What I want to do is the following: In tabular, you can use the "p" argument to type paragraphs. But it sets the parindent to zero by default. What I have to do is, before entering into the tabular environment I will define a variable and set its value to parindent, then inside the tabular I will use \setlength{parindent}{variable-name}

How can I do this. On the internet I could not find my answer. Can you provide some general introduction for how to use variables in LaTeX?

Thank you all.

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

Post Reply