From CIRCA

Jump to: navigation, search

LaTeX code for Editing

Click here for a plain text version of this LaTeX code.
\documentclass[a4paper,11pt]{article}
\usepackage{ulem}
\usepackage{a4wide}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage[pdftex]{graphicx}

\usepackage{hyperref}
% commands generated by html2latex


\begin{document}
\begin{tabular}

\subsection{Contents}
\begin{itemize}
	\item \hyperlink{Basic_Editing}{1Basic Editing}
	\item \hyperlink{Text_formatting_markup}{2Text formatting markup}
	\item \hyperlink{Paragraphs}{3Paragraphs}
	\item \hyperlink{HTML}{4HTML}
	\item \hyperlink{Other_formatting}{5Other formatting}
\end{itemize}
\end{tabular}\hypertarget{Basic_Editing}{}

\subsubsection{ Basic Editing }

You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in \textit{italic}, you include it in two single quotes like \texttt{''this''}\hypertarget{Text_formatting_markup}{}

\subsection{ Text formatting markup }
\begin{tabular}\href{/index.php?title=Template:Hl2&action=edit&redlink=1}{Template:Hl2} |\textbf{Description} & \href{/index.php?title=Template:Hl2&action=edit&redlink=1}{Template:Hl2} |\textbf{You type} & \href{/index.php?title=Template:Hl2&action=edit&redlink=1}{Template:Hl2} |\textbf{You get} \\ 
\textit{applies anywhere} \\ 
Italic text & \texttt{''italic''} & \textit{italic} \\ 
 Bold text & \texttt{'''bold'''} & \textbf{bold} \\ 
 Bold and italic & \texttt{'''''bold \& italic'''''} & \textit{\textbf{bold \& italic}} \\ 
Escape wiki markup & \texttt{$<$nowiki$>$no "markup"$<$/nowiki$>$} & no ''markup'' \\ 
Fixed width text & 

$<$tt$>$Fixed width text$<$/tt$>$ & 

\texttt{Fixed width text} \\ 
\textit{only at the beginning of the line} \\ 
 Indent text & 

\texttt{:Single indent}
\\\texttt{::Double indent}
\\\texttt{:::::Multiple indent} & 
\begin{description}Single indent
\begin{description}Double indent
\begin{description}
\begin{description}
\begin{description}Multiple indent
\end{description}
\end{description}
\end{description}
\end{description}
\end{description} \\ 
Headings of
\\

different levels $<$ref$>$An article with four or more headings will automatically create a \href{http://en.wikipedia.org/wiki/Wikipedia:Section#Table_of_contents_.28TOC.29}{table of contents}.$<$/ref$>$ & 

\texttt{=level 1=}$<$ref$>$Use of a level 1 heading is \textit{\textbf{highly discouraged}} as it appears with the same formatting and size as the page title, which can be confusing.$<$/ref$>$
\\\texttt{==level 2==}
\\\texttt{===level 3===}
\\\texttt{====level 4====}
\\\texttt{=====level 5=====}
\\\texttt{======level 6======} & 

Level 1
\\
\\Level 2
\\
\\Level 3
\\Level 4
\\Level 5
\\Level 6
\\ \\ 
Horizontal rule & 

\texttt{----} & 

\line(1,0){300}
 \\ 
Bullet list & 

* one
\\* two
\\* three
\\** three and one-third
\\** three and two-thirds
\\ & 
\begin{itemize}
	\item  one
	\item  two
	\item  three
\begin{itemize}
	\item  three and one-third
	\item  three and two-thirds
\end{itemize}
\end{itemize} \\ 
Numbered list & 

# one
\\# two$<$br$>$spanning several lines$<$br$>$without breaking the numbering
\\# three
\\## three point one
\\## three point two
\\ & 
\begin{enumerate}
	\item  one
	\item  two
\\spanning several lines
\\without breaking the numbering
	\item  three
\begin{enumerate}
	\item  three point one
	\item  three point two
\end{enumerate}
\end{enumerate} \\ 
 Mixture of bulleted
\\ and numbered lists & 

# one
\\# two
\\#* two point one
\\#* two point two
\\ & 
\begin{enumerate}
	\item  one
	\item  two
\begin{itemize}
	\item  two point one
	\item  two point two
\end{itemize}
\end{enumerate} \\ 
Definition list & 

;Definition
\\:item 1
\\:item 2
\\ & 
\begin{description}
	\item[Definition] item 1item 2
\end{description} \\ 
Preformatted text & 

\nolinebreak\nolinebreakpreformatted text is done with
\\\nolinebreak\nolinebreaka space at the
\\\nolinebreak\nolinebreakbeginning of the line
\\ & 
\begin{verbatim}
preformatted text is done with
a space at the 
beginning of the line
\end{verbatim} \\ 
Preformatted text with no indentation & 

\nolinebreak$<$pre$>$ some preformatted text with no indentation $<$/pre$>$ & 
\begin{verbatim}

some preformatted
text with no indentation
\end{verbatim} \\ 
Blockquotes & 

Body
\\text text text text text text text text text text text texttext text text text text text text text text text text text

$<$blockquote$>$  quote quote quote quote quote quote $<$/blockquote$>$

text text text text text text text text text text text text & 

Body
\\text text text text text text text text text text text texttext text text text text text text text text text text text
\begin{quotation}  quote quote quote quote quote quote 
\end{quotation}

text text text text text text text text text text text text \\ 
Comment & 

\texttt{$<$!--This is comment--$>$} & 
\end{tabular}


\\Notes: $<$references/$>$\hypertarget{Paragraphs}{}

\subsection{ Paragraphs }

MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags \texttt{$<$br$>$ or $<$br/$>$}.\hypertarget{HTML}{}

\subsection{ HTML }

Some \href{http://en.wikipedia.org/wiki/HTML}{HTML} tags are allowed in MediaWiki, for example \texttt{$<$code$>$}, \texttt{$<$div$>$}, \texttt{$<$span$>$} and \texttt{$<$font$>$}.

\href{/index.php?title=Template:Admin_tip&action=edit&redlink=1}{Template:Admin tip}


\\\hypertarget{Other_formatting}{}

\subsection{ Other formatting }

Beyond the text formatting markup shown above, here are some other formatting references:
\begin{itemize}
	\item \href{/index.php/Help:Links}{Links}
	\item \href{/index.php?title=Help:Images&action=edit&redlink=1}{Images}
	\item \href{/index.php/Help:Tables}{Tables}
	\item \href{http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_Page_Help/Do-It-Yourself/Formatting_Text}{More Formatting from Wikipedia}
\end{itemize}

\href{/index.php?title=Template:Languages&action=edit&redlink=1}{Template:Languages}

\end{document}
Personal tools