You are here:
Foswiki
>
System Web
>
LatexIntro
(02 Nov 2013,
UnknownUser
)
(raw view)
E
dit
A
ttach
%BEGINLATEXPREAMBLE% \usepackage{amsfonts} \definecolor{Lightmaroon}{rgb}{0.6667,0,0} \definecolor{Cornflowerblue}{rgb}{0,0.4,0.8} %ENDLATEXPREAMBLE% ---++ Introduction to %BEGINLATEX{inline="1" color="Lightmaroon"}%\Large\LaTeX%ENDLATEX% %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX% is a complete typesetting language developed by Leslie Lamport on top of Donald Knuth's %BEGINLATEX{inline="1"}%\TeX%ENDLATEX%. Most of it is implemented using %SYSTEMWEB%.LatexModePlugin, but the main use is producing mathematics, since most other formatting is more conveniently accomplished using Wiki constructs. To produce mathematics _in-line_, the %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX% text must be surrounded by %BROWN%%<nop>$%ENDCOLOR% and %BROWN%$%%ENDCOLOR%. Thus, <verbatim>%$\Gamma \vdash Rx_1\cdots x_n$%</verbatim> looks like this %$\Gamma \vdash Rx_1\cdots x_n$% in the middle of some text. To _display_ mathematics, it must be surrounded by %BROWN%%<nop>\[%ENDCOLOR% and %BROWN%\]%%ENDCOLOR%. Thus, %BROWN%%<nop>\[\mathcal{N}=\langle \mathbb{N},0,1+,\cdot \rangle \subseteq \langle \mathbb{R},0,1+,\cdot \rangle\]%%ENDCOLOR% produces this centered display %\[\mathcal{N}=\langle \mathbb{N},0,1+,\cdot \rangle \subseteq \langle \mathbb{R},0,1+,\cdot \rangle\]% in the middle of a paragraph, which is preferable for long formulas or ones requiring emphasis. %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX% is used by most mathematicians, physicists, and engineers for mathematics, and articles and books are typically submitted for publication in %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX%. There are therefore many helpful web sites, newsgroups, and books about %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX%. The standard complete reference is Lamport's [[http://www.amazon.com/exec/obidos/tg/detail/-/0201529831/102-6948132-3441705?v=glance][LaTeX: A Document Preparation System (2nd Edition)]]. The place to start on the web is the [[http://www.tug.org/][%BEGINLATEX{color="Cornflowerblue" inline="1"}%\TeX%ENDLATEX% Users Group]]. ---+++Brief Tutorial on %BEGINLATEX{inline="1" color="Lightmaroon"}%\bf\LaTeX%ENDLATEX% All %BEGINLATEX{inline="1"}%\TeX%ENDLATEX% codes begin with a backslash (\). Curly braces ({ }) are used to delimit groupings, except in a few cases where optional arguments must be enclosed in square brackets ([ ]). Many symbols have mnemonic names, like =\Alpha=, =\alpha=, =\forall=, =\exists=, =\lor=, =\land=. A list of some common symbols is given in the LatexSymbols topic. Other off-site lists include: [[http://www.math.union.edu/~dpvc/jsMath/symbols/welcome.html][Some Symbols]] and [[http://www.iam.ubc.ca/~newbury/tex/symbols.html][Some Little-Known Symbols]], [[http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf][All the Symbols]]. Not all the symbols work in the Wiki, but most of them do. A subscript is indicated with an underline (_). If the subscript consists of more than one symbol, it must be enclosed in braces. Similarly, a superscript is indicated with a caret (^). Thus, %BROWN%%<nop>$ \alpha _{ \beta _1^2}^{ \gamma ^{ \delta ^ \epsilon }} $%%ENDCOLOR% yields %$ \alpha _{ \beta _1^2}^{ \gamma ^{ \delta^ \epsilon }}$%, ---+++Document Structure In standard %BEGINLATEX{inline="1"}%\LaTeX%ENDLATEX% 2e documents, the main file has the following structure: <div style="border-style:solid; border-width: 1px; border-color:#666; width:80%;"> =\documentclass[<i>options</i>]{<i>class</i>}= <i>preamble</i> =\begin{document}= <i>text</i> =\end{document}= </div> Any text that normally goes in the _preamble_ or _text_ sections of the template above can be rendered in TWiki. The _preamble_ is typically used to define new commands, or use !LaTeX style-files to extend !LaTeX's functionality. The _text_ area contains the actual text to be rendered. One does not need to use the =\documentclass= or =document= environment to use !LaTeX in TWiki. The ability to render a complete !LaTeX document within TWiki, say from an existing file, is currently under consideration. See TWiki:Codev.IncludeExistingLatexDocsInTWiki for details and current status. -- courtesy of TWiki:Main.ShaughanLavine ([[http://zillion.philosophy.arizona.edu/twiki/bin/view/Courses/LaTeX][see also]])
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 02 Nov 2013,
UnknownUser
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Cosmo
Main
Sandbox
System
English
Français
Polski
Copyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki?
Send feedback