summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html')
-rw-r--r--Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html
index c493b9d9395..90868d69ce4 100644
--- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html
+++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-algorithms.html
@@ -2,10 +2,10 @@
<title>UK TeX FAQ -- question label algorithms</title>
</head><body>
<h3>Typesetting pseudocode in LaTeX</h3>
-<p>There is no consensus on the &lsquo;right&rsquo; way to typeset pseudocode.
+<p/>There is no consensus on the &lsquo;right&rsquo; way to typeset pseudocode.
Consequently, there are a variety of LaTeX packages to choose from
for producing &aelig;sthetically pleasing pseudocode listings.
-<p>Pseudocode differs from actual program listings in that it lacks
+<p/>Pseudocode differs from actual program listings in that it lacks
strict syntax and semantics. Also, because pseudocode is supposed to
be a clear expression of an algorithm it may need to incorporate
mathematical notation, figures, tables, and other LaTeX features
@@ -13,12 +13,12 @@ that do not appear in conventional programming languages.
<a href="FAQ-codelist.html">Typesetting program listings</a> is described
elsewhere.
-<p>You can certainly create your own environment for typesetting
+<p/>You can certainly create your own environment for typesetting
pseudocode using, for example, the <code>tabbing</code> or
<code>list</code> environments &mdash; it&rsquo;s not difficult, but it may
prove boring. So it&rsquo;s worth trying the following packages, all
designed specifically for typesetting pseudocode.
-<p>The <i>algorithms</i> bundle (which contains packages
+<p/>The <i>algorithms</i> bundle (which contains packages
<i>algorithm</i> and <i>algorithmic</i>, both of which are
needed for ordinary use) has a simple interface and produces fairly
nice output. It provides primitives for statements, which can contain
@@ -31,7 +31,7 @@ uses the facilities of the <i>float</i> package to number
algorithms sequentially, enable algorithms to float like figures or
tables, and support including a List of Algorithms in a document&rsquo;s
front matter.
-<p>Packages in the <i>algorithmicx</i> bundle are similiar both in
+<p/>Packages in the <i>algorithmicx</i> bundle are similiar both in
concept and output form to <i>algorithmic</i> but additionally
provide support for adding new keywords and altering the formatting.
It provides the <i>algpseudocode</i> package which is (almost) a
@@ -41,31 +41,31 @@ differently from <i>algpseudocode</i>, and puts command arguments
in maths mode instead of text mode. There is no floating environment
but <i>algorithmicx</i>, like <i>algorithmic</i>, is compatible
with the <i>algorithm</i> package.
-<p>The <i>alg</i> package, like <i>algorithms</i>, offers a
+<p/>The <i>alg</i> package, like <i>algorithms</i>, offers a
floating algorithm environment with all of the ensuing niceties.
<i>alg</i>, however, can caption its floats in a variety of
(natural) languages. In addition, <i>alg</i> unlike
<i>algorithms</i>, makes it easy to add new constructs.
-<p>The <i>newalg</i> package has a somewhat similar interface to
+<p/>The <i>newalg</i> package has a somewhat similar interface to
<i>algorithms</i>, but its output is designed to mimic the rather
pleasant typesetting used in the book &ldquo;<em>Introduction to Algorithms</em>&rdquo;
by Corman, Leiserson, Rivest and Stein. Unfortunately,
<i>newalg</i> does not support a floating environment or any
customisation of the output.
-<p>&ldquo;<em>Bona fide</em>&rdquo; use of the style of &ldquo;Introduction to
+<p/>&ldquo;<em>Bona fide</em>&rdquo; use of the style of &ldquo;Introduction to
Algorithms&rdquo; may be achieved with Cormen&rsquo;s own <i>clrscode</i>:
this is the package as used in the second edition of the book.
-<p>Similarly, the style of
+<p/>Similarly, the style of
&ldquo;<em>Combinatorial Algorithms: Generation, Enumeration and Search</em>&rdquo;
is supported by the <i>pseudocode</i> package, written by the
authors of the book. It has the common &lsquo;Pascal-like&rsquo; style, and has
some interesting constructs for what one thinks of as Pascal blocks.
-<p>The <i>algorithm2e</i> is of very long standing, and is widely used
+<p/>The <i>algorithm2e</i> is of very long standing, and is widely used
and recommended. It loads the <i>float</i> package to provide the
option of floating algorithm descriptions, but you can always use the
&ldquo;<code>H</code>&rdquo; option of <i>float</i> to have the algorithm appear
&ldquo;where you write it&rdquo;.
-<p>The usage of the <i>program</i> package is a little different from
+<p/>The usage of the <i>program</i> package is a little different from
that of the other packages. It typesets programs in maths mode
instead of text mode; and linebreaks are significant.
<i>program</i> lacks a floating environment but does number
@@ -73,7 +73,7 @@ algorithms like <i>alg</i> and <i>algorithms</i>. Customisation
and extension are not supported. Documentation of the
<i>program</i> package (such as it is) appears in a file
<i>program.msg</i> in the distribution.
-<p>None of the above are perfect. The factors that should influence your
+<p/>None of the above are perfect. The factors that should influence your
choice of package include the output style you prefer, how much you
need to extend or modify the set of keywords, and whether you require
algorithms to float like figures and tables.
@@ -103,5 +103,5 @@ algorithms to float like figures and tables.
<dt><tt><i>program.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/program.zip">macros/latex/contrib/program</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/program.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/program/">browse</a>)
<dt><tt><i>pseudocode.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pseudocode.zip">macros/latex/contrib/pseudocode</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pseudocode.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/pseudocode/">browse</a>)
</dl>
-<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms</a>
+<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms</a>
</body>