if (entry_level >= level) {
// This entry is a direct descendant of the parent
temp_char = label_from_header(source, entry);
- print_const("\\item{} ");
+ print_const("\\item ");
mmd_export_token_tree_latex(out, source, entry->child, scratch);
printf("(\\autoref{%s})\n\n", temp_char);
case BLOCK_LIST_ITEM:
pad(out, 2, scratch);
- print_const("\\item{} ");
+ print_const("\\item ");
scratch->padded = 2;
mmd_export_token_tree_latex(out, source, t->child, scratch);
scratch->padded = 0;
case BLOCK_LIST_ITEM_TIGHT:
pad(out, 2, scratch);
- print_const("\\item{} ");
+ print_const("\\item ");
scratch->padded = 2;
mmd_export_token_tree_latex(out, source, t->child, scratch);
scratch->padded = 0;
\label{multimarkdownaddsseveralnewfeatures}
\begin{itemize}
-\item{} footnotes
+\item footnotes
-\item{} tables
+\item tables
-\item{} citations and bibliography
+\item citations and bibliography
-\item{} image attributes
+\item image attributes
-\item{} metadata
+\item metadata
-\item{} internal cross-references
+\item internal cross-references
-\item{} math support
+\item math support
-\item{} glossary entries
+\item glossary entries
-\item{} definition lists
+\item definition lists
-\item{} and more{\ldots}
+\item and more{\ldots}
\end{itemize}
\label{mmdalsoaddssomethingelse...}
\begin{itemize}
-\item{} Outside of the actual syntax, MMD supports multiple output formats,
+\item Outside of the actual syntax, MMD supports multiple output formats,
including HTML, \href{http://en.wikipedia.org/wiki/LaTeX}{LaTeX}\footnote{\href{http://en.wikipedia.org/wiki/LaTeX}{http:\slash \slash en.wikipedia.org\slash wiki\slash LaTeX}},
\href{http://en.wikipedia.org/wiki/OpenDocument}{OpenDocument}\footnote{\href{http://en.wikipedia.org/wiki/OpenDocument}{http:\slash \slash en.wikipedia.org\slash wiki\slash OpenDocument}}, and
\href{http://en.wikipedia.org/wiki/OPML}{OPML}\footnote{\href{http://en.wikipedia.org/wiki/OPML}{http:\slash \slash en.wikipedia.org\slash wiki\slash OPML}}
-\item{} This allows you to use the same markup language (MultiMarkdown) to create a
+\item This allows you to use the same markup language (MultiMarkdown) to create a
high quality pdf (article, book, or presentation like this one) without any
additional programming.
-\item{} Most importantly, you don't have to know how this works, or even what
+\item Most importantly, you don't have to know how this works, or even what
the LaTeX commands mean --- just have the software installed.
\end{itemize}
\label{supportforabibliographyisalsoincluded}
\begin{itemize}
-\item{} MultiMarkdown has support for \href{http://www.bibtex.org/}{BibTeX}\footnote{\href{http://www.bibtex.org/}{http:\slash \slash www.bibtex.org\slash }}, or
+\item MultiMarkdown has support for \href{http://www.bibtex.org/}{BibTeX}\footnote{\href{http://www.bibtex.org/}{http:\slash \slash www.bibtex.org\slash }}, or
for just including your own citations, so that you can back up your
arguments.~\citep[p. 42]{fake}
-\item{} The citation above links to the corresponding entry in the bibliography.
+\item The citation above links to the corresponding entry in the bibliography.
\end{itemize}
\label{installationiseasy}
\begin{itemize}
-\item{} Download the MultiMarkdown software --- there are installers for Mac OS X
+\item Download the MultiMarkdown software --- there are installers for Mac OS X
and Windows, and instructions for compiling in Linux.
-\item{} If you want to use LaTeX, install a version appropriate for your operating
+\item If you want to use LaTeX, install a version appropriate for your operating
system.
-\item{} OpenDocument output doesn't require any special software, but will require
+\item OpenDocument output doesn't require any special software, but will require
an application capable of opening the document --- LibreOffice,
OpenOffice.org (with the proper plug-in installed), etc.
\label{howdoicreateamultimarkdowndocument}
\begin{itemize}
-\item{} A MultiMarkdown is simply a text document that is written in the
+\item A MultiMarkdown is simply a text document that is written in the
MultiMarkdown syntax. You can use any text editor or application you like.
If your editor supports fonts, italics, etc. then be sure to save as a plain
text file (not a .doc, RTF, or other ``rich'' format).
-\item{} Some applications include built-in support for MultiMarkdown in various
+\item Some applications include built-in support for MultiMarkdown in various
ways. There's a \href{http://fletcher.github.com/markdown.tmbundle/}{bundle}\footnote{\href{http://fletcher.github.com/markdown.tmbundle/}{http:\slash \slash fletcher.github.com\slash markdown.tmbundle\slash }} for \href{http://macromates.com/}{TextMate}\footnote{\href{http://macromates.com/}{http:\slash \slash macromates.com\slash }}, and \href{http://www.literatureandlatte.com/scrivener.html}{Scrivener}\footnote{\href{http://www.literatureandlatte.com/scrivener.html}{http:\slash \slash www.literatureandlatte.com\slash scrivener.html}} includes
MultiMarkdown support.
If you're using LaTeX, and have the proper software installed it's easy:
\begin{enumerate}
-\item{} Type \texttt{mmd2tex filename.txt}
+\item Type \texttt{mmd2tex filename.txt}
-\item{} Use \texttt{pdflatex}, \texttt{xelatex}, or your preferred tool to compile the LaTeX
+\item Use \texttt{pdflatex}, \texttt{xelatex}, or your preferred tool to compile the LaTeX
file into a pdf.
-\item{} There is no step 3
+\item There is no step 3
\end{enumerate}
\label{wheretolearnmore}
\begin{itemize}
-\item{} \href{http://fletcherpenney.net/multimarkdown/}{http:\slash \slash fletcherpenney.net\slash multimarkdown\slash }
+\item \href{http://fletcherpenney.net/multimarkdown/}{http:\slash \slash fletcherpenney.net\slash multimarkdown\slash }
-\item{} \href{http://groups.google.com/group/multimarkdown/}{http:\slash \slash groups.google.com\slash group\slash multimarkdown\slash }
+\item \href{http://groups.google.com/group/multimarkdown/}{http:\slash \slash groups.google.com\slash group\slash multimarkdown\slash }
-\item{} \href{http://fletcher.github.com/MultiMarkdown-Gallery/}{http:\slash \slash fletcher.github.com\slash MultiMarkdown-Gallery\slash }
+\item \href{http://fletcher.github.com/MultiMarkdown-Gallery/}{http:\slash \slash fletcher.github.com\slash MultiMarkdown-Gallery\slash }
\end{itemize}
\label{markdown:syntax}
\begin{itemize}
-\item{} Overview (\autoref{overview})
+\item Overview (\autoref{overview})
\begin{itemize}
-\item{} Philosophy (\autoref{philosophy})
+\item Philosophy (\autoref{philosophy})
-\item{} Inline HTML (\autoref{html})
+\item Inline HTML (\autoref{html})
-\item{} Automatic Escaping for Special Characters (\autoref{autoescape})
+\item Automatic Escaping for Special Characters (\autoref{autoescape})
\end{itemize}
-\item{} Block Elements (\autoref{block})
+\item Block Elements (\autoref{block})
\begin{itemize}
-\item{} Paragraphs and Line Breaks (\autoref{p})
+\item Paragraphs and Line Breaks (\autoref{p})
-\item{} Headers (\autoref{header})
+\item Headers (\autoref{header})
-\item{} Blockquotes (\autoref{blockquote})
+\item Blockquotes (\autoref{blockquote})
-\item{} Lists (\autoref{list})
+\item Lists (\autoref{list})
-\item{} Code Blocks (\autoref{precode})
+\item Code Blocks (\autoref{precode})
-\item{} Horizontal Rules (\autoref{hr})
+\item Horizontal Rules (\autoref{hr})
\end{itemize}
-\item{} Span Elements (\autoref{span})
+\item Span Elements (\autoref{span})
\begin{itemize}
-\item{} Links (\autoref{link})
+\item Links (\autoref{link})
-\item{} Emphasis (\autoref{em})
+\item Emphasis (\autoref{em})
-\item{} Code (\autoref{code})
+\item Code (\autoref{code})
-\item{} Images (\autoref{img})
+\item Images (\autoref{img})
\end{itemize}
-\item{} Miscellaneous (\autoref{misc})
+\item Miscellaneous (\autoref{misc})
\begin{itemize}
-\item{} Backslash Escapes (\autoref{backslash})
+\item Backslash Escapes (\autoref{backslash})
-\item{} Automatic Links (\autoref{autolink})
+\item Automatic Links (\autoref{autolink})
\end{itemize}
That is:
\begin{itemize}
-\item{} Square brackets containing the link identifier (optionally
+\item Square brackets containing the link identifier (optionally
indented from the left margin using up to three spaces);
-\item{} followed by a colon;
+\item followed by a colon;
-\item{} followed by one or more spaces (or tabs);
+\item followed by one or more spaces (or tabs);
-\item{} followed by the URL for the link;
+\item followed by the URL for the link;
-\item{} optionally followed by a title attribute for the link, enclosed
+\item optionally followed by a title attribute for the link, enclosed
in double or single quotes, or enclosed in parentheses.
\end{itemize}
That is:
\begin{itemize}
-\item{} An exclamation mark: \texttt{!};
+\item An exclamation mark: \texttt{!};
-\item{} followed by a set of square brackets, containing the \texttt{alt}
+\item followed by a set of square brackets, containing the \texttt{alt}
attribute text for the image;
-\item{} followed by a set of parentheses, containing the URL or path to
+\item followed by a set of parentheses, containing the URL or path to
the image, and an optional \texttt{title} attribute enclosed in double
or single quotes.