File:Latex-algorithmic-if-else.png

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

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 edit

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.

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 (talk | contribs){{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= }}

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: