Template:Latex tab/doc

From About PCs Wiki
Jump to navigation Jump to search
edit · history · refresh · system messages · page infos · edit template · template page information
This is the documention subpage ot the template Latex tab

The template {{Latex tab}} creates tabs for latex code example and results using preload file PreLatex

Parameter list

x
namedescriptiondefaultstatus
codeLatex code include pageemptyoptional
picpicture without extension; must be of type pngemptyoptional

Copy&paste

{{Latex tab|code=|pic=}}

{{Latex tab|code=Latex sample page/lcode|pic=Latex sample page}}
renders as
\documentclass[11pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage{blindtext,multicol,fancyhdr,graphicx,lipsum,minibox,fontspec,anyfontsize,rotating,wrapfig,ragged2e,color}
\usepackage[T1]{fontenc}

\newfontfamily\arial{Arial}

\usepackage[margin=1.5cm,top=2cm,nomarginpar,nofoot,headheight=.5cm,headsep=.5cm]{geometry}

\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{1pt}
\pagestyle{fancy}
\fancyhf{}
\rhead{16}
\lhead{example text headline}

\begin{document}
\noindent
\begin{center}
	\arial\textbf{\Huge Huge Header Arial}
\end{center}
\textbf{\LaTeX Standardfont}	
\blindtext \par
\begin{wrapfigure}{R}{0.3\textwidth}
	\centering
\includegraphics[width=0.25\textwidth,height=9cm]{example-image}
\end{wrapfigure}
\arial
\textbf{Arial}
\blindtext
\par
\sffamily
\textbf{\LaTeX SansSerif}
\blindtext
\par
\vspace{1em}
\ttfamily
\textbf{\LaTeX Typewriter flushleft footnotesize}
\begin{flushleft}
	{\footnotesize \blindtext}
\end{flushleft}
\normalfont
\par
\textbf{\LaTeX Standardfont ragged right}
\begin{RaggedRight}
	\blindtext
\end{RaggedRight}
\end{document}

Wikitext

<includeonly><onlyinclude>{{#tag:tabber|

Result=[[File:{{{pic|{{PAGENAME}}}}}.png|{{{width|600}}}px]] {{!}}-{{!}} Latex Code=<div style="float: left;">{{#tag:inputbox| type=create break=no width={{{width|40}}} default={{{code|{{PAGENAME}}/lcode}}} buttonlabel={{#ifexist:{{{code|{{PAGENAME}}/lcode}}}|edit|create}} LaTeX Code preload=PreLatex }}</div> {{#ifexist:{{{code|{{PAGENAME}}/lcode}}}|{{:{{{code|{{PAGENAME}}/lcode}}}}}}}

}}</onlyinclude></includeonly>{{Documentation}}