Transcription of Introduction to LATEX
1 Introduction to LATEXI ntroduction to LATEXW riting papers the right wayRSI 2015 StaffResearch Science InstituteMassachusetts Institute of TechnologyIntroduction to LATEXI ntroductionTable of Contents1 Introduction2A Basic DocumentWriting LATEX CodeBasic Formatting3 LATEX and YouThe FilesMath ModeFigures and Tables4 Beamer5 LATEX ExtendedCommon ErrorsMore MathMacros6 ConclusionIntroduction to LATEXI ntroductionLATEX is.. a sophisticated document preparation has..Stylistic uniformityBibliography supportSophisticated structuring abilitiesReference trackingHighly extendible capabilitiesIntroduction to LATEXI ntroductionLATEX is not.
2 A word does not..Spell-check your documents1 Give you complete control over formattingProvide a graphical interface for editing You take care of writing, and we ll take care of presentation. 1 You can use ispell to check your LATEXI ntroduction to LATEXI ntroductionWhy LATEX ?Presentation shouldn t get in the way of example..With a word processor , you spend valuable time agonizing overwhat font size to make the section LATEX , you just tell it to start a new a word processor , changing the formatting means you have tochange each instance LATEX , you just redefine the relevant a word processor , you have to carefully match any LATEX , you can be sure you ve fit the template.
3 And switchtemplates to LATEXA Basic DocumentTable of Contents1 Introduction2A Basic DocumentWriting LATEX CodeBasic Formatting3 LATEX and YouThe FilesMath ModeFigures and Tables4 Beamer5 LATEX ExtendedCommon ErrorsMore MathMacros6 ConclusionIntroduction to LATEXA Basic Document Hello LATEX ! Creating a LATEX DocumentWrite using any text editor and save it in theMiniPaperfolder% this is \documentclass{article}\begin{document}H ello,\ LATEX !\end{document}Compile using the RSI Makefile$ cd /RSI/MiniPaper/$ make the results$ evince & Introduction to LATEXA Basic DocumentWriting LATEX CodedocumentclassLATEX has several templates, selected using\ ll be using the article class for your paper, beamer class foryour presentationIntroduction to LATEXA Basic DocumentWriting LATEX CodeDeclarations and EnvironmentsDeclarations.
4 Are stated onceTake effect until further noticeCan optionally be constrainedEx.\documentclass,\smallEnvir onments..Have matchingbeginandenddeclarationsMust be constrainedEx.\begin{document}..\end{doc ument} Introduction to LATEXA Basic DocumentWriting LATEX CodeArgumentsRequired arguments..Are contained in curly bracesMust be includedEx.\documentclass{article}Option al arguments..Are contained in square bracketsCan be left outGive you more control over the commandsEx.\documentclass[12pt]{article} Introduction to LATEXA Basic DocumentWriting LATEX CodeSpecial CharactersAnother type of commandDon t define any formatting or structurePrint non-standard characters or characters which usuallymean something elseEx.
5 \ LATEX ,\textbackslash,\%Note: % is a special character reserved for comments (after a %,the rest of a line is ignored by the compiler) Introduction to LATEXA Basic DocumentWriting LATEX CodePackagesPackages allow you to further customize command:\usepackage{name}Some packages:graphicx, epsfig, geometry, fancyhdr, setspace, amsmath, listings,xcolor, url..Most of the packages you ll need are already included in thetemplateIntroduction to LATEXA Basic DocumentBasic FormattingFont TypesFont face:\emph{Text},\textbf{Text},\texttt{T ext},\textrm{Text},\textsf{Text},\textsc {Text}Font size:{\tinyText},{\scriptsizeText},{\foo tnotesizeText},{\smallText},{\normalsize Text},{\largeText},{\LargeText},{\LARGET ext},{\hugeText},{\HugeText}Alignment:\b egin{center/flushright/flushleft}.
6 \end{center/flushright/flushleft}Introdu ction to LATEXA Basic DocumentBasic FormattingSpacingMarginsThe default: between inches and inchesSetting margins:\usepackage[margin= ]{geometry}Paragraphs and other breaksParagraphs are separated by a blank can force a new line using\\To force a new page, use\newpageor\clearpageOther spacingForce a space using Add space using\hspace{1in}or\vspace{1in}Fill space using\hfillor\vfillIntroduction to LATEXA Basic DocumentBasic FormattingListsThere are two main types..Bulleted lists:\begin{itemize}\itemText\itemText\ end{itemize}TextTextNumbered lists:\begin{enumerate}\itemText\itemTex t\end{enumerate}1 Text2 TextIntroduction to LATEXLATEX and YouTable of Contents1 Introduction2A Basic DocumentWriting LATEX CodeBasic Formatting3 LATEX and YouThe FilesMath ModeFigures and Tables4 Beamer5 LATEX ExtendedCommon ErrorsMore MathMacros6 ConclusionIntroduction to LATEXLATEX and YouThe FilesThe RSI File StructureIn yourMiniPaperorPaperdirectory, you ll notice several files.
7 Everything together, don t edit any additional packages or the cover information (title, author, etc.) the text of yourscientific abstract and executive summary, the main body of your paper, includingany and all figures, tables, a BibTEX file containing your the text of any appendices you may haveCompile usingmake to LATEXLATEX and YouThe FilesThe Title where you define the content of your title pageIt includes declarations of thetitle,author, anddateYou should replace the title and author as needed, but leavethe date alone\title{Length-enhanced superlative verbiage}\author{Joe Everystudent\vspace{ }\\under the direction of\\Dr.}
8 Famous Person\\Massachusetts Institute of Technology\vspace{1in}}The title page is created automatically using themaketitlecommand to LATEXLATEX and YouThe FilesAbstract and SummaryThe minipaper only has an abstractYour final paper will have both atechnicalabstract and anon-technicalsummaryAll you need to do is fill in the text, and the template takescare of the restBehind the Scenes\begin{abstract}\input{abstract}\v space{1in}\begin{center}\textbf{Summary} \end{center}\input{summary}\end{abstract } Introduction to LATEXLATEX and YouThe as a database of references, and only includes inthe bibliography those references you cite in your paperBibTEX@article{nameofentry,author ={John Backus},title ={Symmetric Encryption},journal ={Journal of Modalities},volume =46,year =1993,number =2.
9 Pages ={44--57}}A more complete list of examples can be found to LATEXLATEX and YouThe FilesThe PaperLATEX is built off of the idea ofstructureoverformatting\section{Introd uction}Layers of sectioningsectionsubsectionsubsubsection paragraphsubparagraphThese commands should be used as needed in to LATEXLATEX and YouThe FilesReferencingReferences\section{Resul ts}\label{res}..As seen in Section\ref{res}.. \footnote{Phony telephones}CitationsRedundancy\cite{name ofentry}For multiple citations:..methodology\cite{nameofentry ,nameofotherentry} Introduction to LATEXLATEX and YouMath ModeTypesetting MathLATEX allows you to typeset any sort of math support bad 1 + 2= tan 1b tan 1aUsing math modeInline math mode:$.
10 $ 1e xdx n=0n!Display math mode:$$..$$Numbered equations:\begin{equation}..\end{equatio n} Introduction to LATEXLATEX and YouMath ModeSome Commands974$974$4 + 2$4+2$3 5$\sqrt[3]{5}$xy$\frac{x}{y}$Axy$A^{x}{y }$ nk=1k$\sum{k=1}^n k$26= 4$2\ne 4$ $\phi\in\Psi$ = k$\hat{\i} \times\hat{\j}=\hat{k}$f ( )$f (\xi)$CH3 COOHCH$3$COOH180 C180$^{\circ}$ in $\Theta(\log n)$ to LATEXLATEX and YouMath ModeMath symbols resourcesDetexify: a symbol, Detexify tells you a bunch of possibleLATEX symbolsAoPS symbols: :SymbolsAlso has lots of other LATEX resourcesRSI Website (go to Tech help ) Introduction to LATEXLATEX and YouMath ModeMath exercisesWrite the follow basic equations in =32+12n(n+ 1)2=n i=1ix= b b2 4ac2aIntroduction to LATEXLATEX and YouMath ModeMore math exercisesHere are some trickier equations (not just math) to try: B dS= 0 0d Edt+ 0ienck=Ae EA/RTKa=[H30+][A ][HA]V= Spec(T)V( ) Vnon-spIntroduction to LATEXLATEX and YouFigures and TablesFigures and TablesBoth are environments:Figures\begin{figure}.