Tags:
view all tags
%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 TWiki.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]])
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r8
|
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r4 - 2016-07-04
-
TWikiAdminUser
Home
Site map
Main web
Sandbox web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Edit
Attach
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.LatexIntro
.