\setlength

Command in package length.

Synopsis

\setlength{length1}{length2}

Description

Sets the value of the length length1 to the value of the length length2.

Example 1

\newlength{\mylen}[1em]

mylen is \writelength[em][4.1]{\mylen}

\setlength{\mylen}{40px}

Now mylen is \writelength[px][4.1]{\mylen}

Result, as rendered by your browser

mylen is 1.0em

Now mylen is 40.0px

Example 2

\newlength{\mylen}[1em]
\newlength{\mylenii}[2em]

mylen is \writelength[em][4.1]{\mylen}

\setlength{\mylen}{\mylenii}

Now mylen is \writelength[em][4.1]{\mylen}

Result, as rendered by your browser

mylen is 1.0em

Now mylen is 2.0em


This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)