Differences between version 3 and predecessor to the previous major change of LaTeXNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Wednesday, August 13, 2003 9:02:51 pm | by StuartYeates | Revert |
Older page: | version 1 | Last edited on Thursday, July 18, 2002 5:08:05 pm | by JamieCurtis | Revert |
@@ -1,4 +1,15 @@
Notes on making the LaTeX markup language do what you want it to do.
* [LaTeXpdf] How to make LaTeX output nice pdf files
* [Here|http://www.giss.nasa.gov/latex/] is a really good online HTML doc about LaTeX commands
+
+----
+
+Here is a command that lets you do different things with numbers depending on their magnitude.
+
+ \newcommand{\formatnumber}[[1]{
+ \ifnum#1=0 {\bf zero} \else
+ \ifnum#1<2 {\bf one} \else
+ {\bf two or more}\fi
+ \fi
+ }