shift

Environment in package preformatted.

Synopsis

\begin{shift}{num}
  content
\end{shift}

Description

Shifts the content of the environment by num characters. num may be negative.

Shifting is done by inserting or deleting spaces at the beginning of each line of
content. Note that the effect is only visible in preformatted or similar environments,
since the browser usually collapses multiple blanks.

Example

\begin{preformatted}
  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
  commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus.     
  \begin{shift}{5}
  Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac,
  enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a,
  tellus. Phasellus viverra nulla ut metus varius laoreet.
  \end{shift}
  \begin{shift}{-1}
  Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue.
  Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus.
  \end{shift}
\end{preformatted}

Result, as rendered by your browser

  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
  commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus.     
  
  Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac,
  enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a,
  tellus. Phasellus viverra nulla ut metus varius laoreet.
  
  
  Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue.
  Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus.
  


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

Add picture from clipboard (Maximum size: 500 MB)