Jump to content

User:Tompw/wiki-latex

From Wikipedia, the free encyclopedia

How wikitext markup could translate into LaTeX. Feel free to use the talk page to discuss.

What Wiki Latex Notes
Article links [[X]] \textsc{X} SMALL CAPS
Suffixed links [[X]]s \textsc{Xs}
Piped links [[X|y]] y (see \textsc{X})
Level 1 heading == X == \section{X}
Level 2 heading === X === \subsection{X}
Level 3 heading ==== X ==== \subsubsection{X}
Level 4 heading ===== X ===== \paragraph{X}
Level 5 heading ====== X ====== \subparagraph{X}
Indent : \indent indents line only?
Multiple indent : … : ??
Unorderd list * X1

* X2

"\begin{itemize}

\item X1
\item X2
\end{itemize}"

.
Unorderd list # X1

# X2

"\begin{enumerate}

\item X1
\item X2
\end{enumerate}"

.
Nested lists (combine) (combine)
Maths <math>x=y</math> \( x=y \)
Displayed maths :<math>x=y</math> \[ x=y \]
Italics (prose) ''words'' \textit{words} when one or two characters
Italics (maths) ''X'' $X$
Bold '''X''' \textbf{X}
Paragraph X
 
Y
X
\\
Y
Hyperlink [http://www.a.com name] \href{http://www.a.com}{name} problematic
Image [[Image:X.jpg|120px|right|caption]] \begin{figure}[!h]

\centering
\includegraphics[height=10mm]{path/X.jpg}
\caption{caption}
\label{caption}
\end{figure}

.
Media [[Media:Example.ogg]] N/A copy tag contents verbatim
Nowiki <nowiki>*</nowiki> *
Redirect #REDIRECT [[XX]] \textit{See} \textsc{X} "\usepackage{ulem}

in header"

Strikethrough <S>text</s> \sout{text}
Line break <br /> or <br/> or <br> \linebreak
Small <small>text</small> {\small text } if non-math
Superscript <sup>b</sup> \(^{\mbox{b}}\) if non-math
Subscript <sub>b</sub> \(_{\mbox{b}}\) note line break
Comment before <!--comment --> after before
%comment
after
could cause problems
Preformatted text \begin{verbatim}

text
\end{verbatim}

.
Quote-block <blockquote>to be or</blockquote> \begin{quote}

to be or
\end{quote}

.
Table complicated
References problematic
Picture gallery