DOC PREVIEW
FSU COP 4342 - LATEX font styles

This preview shows page 1-2-14-15-29-30 out of 30 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 30 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Fall 2008 Document preparationLATEX font styles+ Text shape: you can choose a text “shape” withvarious “text” commands:\textit{italics text}\textsl{slanted text}\textsc{small caps text}italics textslanted textSMALL CAPS TEXT1Fall 2008 Document preparationLATEX font styles+ Text weight: you can also choose text “weight” with“text” commands:\textmd{medium weight}\\\textbf{boldface weight}\\medium weight boldface weight2Fall 2008 Document preparationLATEX font styles+ Text families: you can also choose text families with“text” commands:\textrm{Roman family}\textsf{Sans serif family}\texttt{Typewriter/teletype family}Roman familySans serif familyTypewriter/teletype family3Fall 2008 Document preparationLATEX font styles+ Also, you can use \usepackage{family} tospecify a font family:\usepackage{avant}\usepackage{bookman}\usepackage{chancery}\usepackage{charter}\usepackage{courier}\usepackage{newcent}\usepackage{palatino}4Fall 2008 Document preparationFont sizesYou can use the following commands to modify thecurrent font size:\tiny\scriptsize\footnotesize\normalsize\large\Large\LARGE\huge\Huge5Fall 2008 Document preparationLATEX tablesLATEX has two table-related environments: “table”and “tabular”.The floating “table” enviroment is used to specifylocation and captioning.The “tabular” environment is used to format theactual table.6Fall 2008 Document preparationLATEX tables\begin{table}[t] %% top placement\begin{tabular}{c|c|c} %% center everythingcenter & center & center \\\hline %% doesn’t need a \\center & center & center \\center & center & center \\\end{tabular}\end{table}7Fall 2008 Document preparationTable placementYou can suggest locations for tables, which are“float”. You can use the following location suggestions,and you may list them in order of your preference:+ h – “here”. Try to place the table where at this pointin the text.+ t – “top”. Try to place the table at the top of thecurrent page; if it doesn’t fit, try to place it at the top8Fall 2008 Document preparationof the next page.+ b – “bottom”. Try to place the table at the bottom ofthe current page; if it doesn’t fit, try to place it at thebottom of the next page.+ p – “page”. Place the table on a separate page fortables and figures.9Fall 2008 Document preparationFormatting columnsThe \begin{tabular}{FORMAT} command allowsyou to specify column formatting.l %% column is left-justifiedc %% column is centeredr %% column is right-justified| %% draws a vertical|| %% draws two vertical lines together10Fall 2008 Document preparationSpecifying data in the tableHorizontal “data” lines end in “\\”.Column entries are divided by ampersands (“&”).Horizontal rules can be drawn with “\hline”.For example:\begin{tabular}{l|l||l}Command & Arguments & Explanation\\\hline{\tt break} & \verb+[file:]function+ & Sets a breakpoint at function\\\end{tabular}11Fall 2008 Document preparationFiguresLATEX supports a “figure” environment, where youcan place a graphic of some sort (though I think thatgenerally it is best to stick with either encapsulatedPostScriptR; however, the “png” format generally worksfine also.)12Fall 2008 Document preparationFigures\begin{figure}[PLACEMENT]\includegraphics[OPTIONS]{FILENAME}\caption{CAPTION}\label{LABEL}\end{figure}13Fall 2008 Document preparationFiguresNote that the PLACEMENT is an option specifiedwith [ ], not a requirement as with the tableenvironment.14Fall 2008 Document preparationOptionswidth= %% you can specify a width, such as [width=5in]height= %% you can specify a height, such as [height=5in]scale= %% you can specify a scaling factor, such as [scale=0.75]angle= %% you can specify an angle in degrees, such as [angle=45]15Fall 2008 Document preparationFigure exampleFigure 1: FSU 1851 logo\begin{figure}[h]\centering\includegraphics[width=2.2in]{fsu-1851-trans.png}16Fall 2008 Document preparation\caption{FSU 1851 logo}\end{figure}17Fall 2008 Document preparationAnother figure exampleFigure 2: FSU 1851 logo\begin{figure}[h]\centering\includegraphics[width=1.6in,angle=30]{fsu-1851-trans.png}18Fall 2008 Document preparation\caption{FSU 1851 logo}\end{figure}19Fall 2008 Document preparationLists in LATEXThere are many types of lists possible in LATEX.For instance, you can use:+ itemize – bulleted lists+ enumerate – numbered lists+ description – customized lists20Fall 2008 Document preparation+ dinglist – a type of customized used on this list21Fall 2008 Document preparationLists in LATEXThe general form is\begin{LISTTYPE}\item\item...\item\end{LISTTYPE}22Fall 2008 Document preparationExample of a list\begin{dinglist}{\DingListSymbolA}\item {\tt itemize} -- bulleted lists\item {\tt enumerate} -- numbered lists\item {\tt description} -- customized lists\item {\tt dinglist} -- a type of customized used on this list (via\verb+\usepackage{pifont}+, which gives you access to ding characters)\end{dinglist}23Fall 2008 Document preparationArbitrary text rotationYou can use the package “rotating” to do arbitrarilyrotated text:Rotate this text\usepackage{rotating}...\begin{rotate}{30}Rotate this text\end{rotate}24Fall 2008 Document preparationThe verbatim and Verbatim environments;inline verbWith the wide allocation of special characters todefault use in LATEX, it is often convenient go intoa mode that explicitly treats special characters asordinary ones. Since this very useful for displayingprogram code, these environments generally also aremonospaced and, by default, in a teletype font.+ \verb – you can use the inline \verb to specify25Fall 2008 Document preparationverbatim while in normal paragraph mode, such as%@*!)!%$%*!@ with \verb+%@*!)!%$%*!@+.+ \begin{verbatim} – you can use the standardverbatim environment for multiline material+ \begin{Verbatim} – if you do a \usepackage{fancyvrb}you can include verbatim material in footnotes,modify the font size and font family, and many othereffects.26Fall 2008 Document preparationFancy VerbatimThe output of the following\begin{Verbatim}[fontshape=it,frame=leftline,fontsize=\scriptsize]Easy to see what is thereWhen the left line is whereWe might care\ end{Verbatim}is on the next slide...27Fall 2008 Document preparationFancy VerbatimEasy to see what is thereWhen the left line is whereWe might care28Fall 2008 Document preparationMultiple columnsYou can also create multicolumn output in the middleof a page with the “multicol”


View Full Document

FSU COP 4342 - LATEX font styles

Download LATEX font styles
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view LATEX font styles and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view LATEX font styles 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?