markup.LaTeX 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Markup
  2. This wiki's pages are written in (a subset of) [LaTeX].
  3. [LaTeX]: http://www.latex-project.org/
  4. The following commands and environments are recognized:
  5. - `\emph{emphasis}`
  6. - `\textbf{bold}`
  7. - `verb!verbatim@@\#!`
  8. - `\textsubscr{2}`
  9. - `\sout{strikeout}`
  10. - `\textsuperscript{2}`
  11. - `$e = mc^2$`
  12. - `$$e = mc^2$$`
  13. - `\footnote{a footnote}`
  14. - `\section{section}`, `\subsection{subsection}`, etc.
  15. - `\begin{quote} . . . \end{quote}`
  16. - `\begin{verbatim} . . . \end{verbatim}`
  17. - `\begin{itemize} . . . \end{itemize}`
  18. - `\begin{enumerate} . . . \end{enumerate}`
  19. ## Wiki links
  20. Links to other wiki pages are formed this way: `\href{}{Page Name}`.
  21. (Gitit converts markdown links with empty targets into wikilinks.)
  22. To link to a wiki page using something else as the link text:
  23. `\href{Page Name}{Something else}`.
  24. Note that page names may contain spaces and some special
  25. characters. They need not be CamelCase. CamelCase words are *not*
  26. automatically converted to wiki links.
  27. Wiki pages may be organized into directories. So, if you have
  28. several pages on wine, you may wish to organize them like so:
  29. Wine/Pinot Noir
  30. Wine/Burgundy
  31. Wine/Cabernet Sauvignon
  32. Note that a wiki link `\href{}{Burgundy}` that occurs inside the `Wine`
  33. directory will link to `Wine/Burgundy`, and not to `Burgundy`. To
  34. link to a top-level page called `Burgundy`, you'd have to use
  35. `\href{/Burgundy}{Burgundy}`.
  36. To link to a directory listing for a subdirectory, use a trailing
  37. slash: `\href{}{Wine/}` will link to a listing of the `Wine` subdirectory.