File:Latex-algorithmic-if-else.png

Original file(1,329 × 800 pixels, file size: 58 KB, MIME type: image/png)

Summary

Description
Source Own work
Author Nemti

Produced by the following:

$ cat algorithm.tex
\documentclass[12pt]{article}
\usepackage{algorithmic}
\usepackage[right=8cm]{geometry}
\usepackage[active,pdftex,tightpage]{preview}
\PreviewEnvironment[]{algorithmic}
\begin{document}
\begin{algorithmic}
\IF {$i\geq maxval$}
        \STATE $i\gets 0$
\ELSE
        \IF {$i+k\leq maxval$}
                \STATE $i\gets i+k$
        \ENDIF
\ENDIF
\end{algorithmic}
\end{document}
$ pdflatex algorithm.tex
...
$ pdftoppm -r 600 algorithm.pdf algorithm
$ convert algorithm-1.ppm latex-algorithmic-if-else.png

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current01:32, 24 March 2009Thumbnail for version as of 01:32, 24 March 20091,329 × 800 (58 KB)Nemti{{Information |Description={{en|1=Image of the example code from wikibooks:en:LaTeX/Algorithms_and_Pseudocode#Typesetting_using_the_algorithmic_package}} |Source=Own work by uploader |Author=Nemti |Date= |Permission= |other_versions= }}

The following 2 pages use this file:

Global file usage

The following other wikis use this file: