SlideShare a Scribd company logo
1 of 55
Download to read offline
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Lancaster University LATEX 1-Day Course: Special
Topics
Raffi Khatchadourian
June 5, 2008
B56, Physics Building
Several Slides borrowed from
http://www.haptonstahl.org/latex
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
1 Graphics
2 Bibliographies
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
3 Tabular
4 Floats
5 Indices
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Inserting Graphics
Kinds of files you can insert
PNGa
JPEG0
PDF0
MPS0
EPS
PS
a
Requires use of pdflatex to the best of my knowledge.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Things to Remember
Remember . . .
When specifying the location of the graphic file, the path is
taken as relative to your working directory.
There are several package we can use, we’ll be using the
graphicx package mostly in this course. Thus, you’ll need to
ensure that you are “using” the graphicx package like so:
Example
usepackage{graphicx}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
The includegraphics Command
Use this command to insert the picture. (Here the name of the file
is insert me.png)
includegraphics{insert_me}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
The includegraphics Command
You can specify the height or width of the graphic easily. Using
either of these commands will resize while maintaining the
height/width ratio.
includegraphics[height=3in]{insert_this}
includegraphics[width=4cm]{insert_that}
includegraphics[scale=0.5]{insert_that}
By the way, I use the scale argument the most!
Example
Try it with an image! (One can be found in
http://sites.google.com/site/latexcourse/files)
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliographies in LATEX
Bibliographies are very convenient in LATEX
There are several different ways to do bibliographies in LATEX.
We’ll be using another program to help us called BibTeX.
BibTeX is a separate program from LATEX that takes an input
a file of bibliography entries.
BibTeX input files are normally named with the .bib
extension.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliographies in LATEX
Bibliographies are very convenient in LATEX
There are several different ways to do bibliographies in LATEX.
We’ll be using another program to help us called BibTeX.
BibTeX is a separate program from LATEX that takes an input
a file of bibliography entries.
BibTeX input files are normally named with the .bib
extension.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliographies in LATEX
Bibliographies are very convenient in LATEX
There are several different ways to do bibliographies in LATEX.
We’ll be using another program to help us called BibTeX.
BibTeX is a separate program from LATEX that takes an input
a file of bibliography entries.
BibTeX input files are normally named with the .bib
extension.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliographies in LATEX
Bibliographies are very convenient in LATEX
There are several different ways to do bibliographies in LATEX.
We’ll be using another program to help us called BibTeX.
BibTeX is a separate program from LATEX that takes an input
a file of bibliography entries.
BibTeX input files are normally named with the .bib
extension.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliographies in LATEX
Bibliographies are very convenient in LATEX
There are several different ways to do bibliographies in LATEX.
We’ll be using another program to help us called BibTeX.
BibTeX is a separate program from LATEX that takes an input
a file of bibliography entries.
BibTeX input files are normally named with the .bib
extension.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliography Entry Details
a bibliography entry can take many forms, e.g., book,
article, inproceedings, proceedings.
Each entry type has its own schema, i.e., the kind of
information associated with it.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliography Entry Details
a bibliography entry can take many forms, e.g., book,
article, inproceedings, proceedings.
Each entry type has its own schema, i.e., the kind of
information associated with it.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Bibliography Entry Example
Example
@inproceedings{name.08,
Author = {Your name.},
Booktitle = {Your conference here.},
Title = {Your paper’s title.},
Year = {Your publication year here.}}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
You must compile your .bib file using bibtex before the
citations can be used in your LATEX document.
How you go about this depends on your environment.
One the command line it would be as follows assuming that
your latex compiler executable is named latex, your main
document is named paper.tex, and your bibliography is
named paper.bib:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
You must compile your .bib file using bibtex before the
citations can be used in your LATEX document.
How you go about this depends on your environment.
One the command line it would be as follows assuming that
your latex compiler executable is named latex, your main
document is named paper.tex, and your bibliography is
named paper.bib:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
You must compile your .bib file using bibtex before the
citations can be used in your LATEX document.
How you go about this depends on your environment.
One the command line it would be as follows assuming that
your latex compiler executable is named latex, your main
document is named paper.tex, and your bibliography is
named paper.bib:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Example
latex paper
bibtex paper
latex paper
latex paper
The repeated commands are used for linking bibliography entries
to the document. That brings us to our next topic!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Including Citations in Your Documents
The cite a document contained in your bibliography we use
the cite command.
The cite command typically accepts a single argument which
is the key of bibliography entry.
Additional arguments are, for instance, used to cite certain
pages in a book.
In our previous example (ex. 3) , the key to our entry was
name.08.
To cite this document we would use the cite command as
follows:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Including Citations in Your Documents
The cite a document contained in your bibliography we use
the cite command.
The cite command typically accepts a single argument which
is the key of bibliography entry.
Additional arguments are, for instance, used to cite certain
pages in a book.
In our previous example (ex. 3) , the key to our entry was
name.08.
To cite this document we would use the cite command as
follows:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Including Citations in Your Documents
The cite a document contained in your bibliography we use
the cite command.
The cite command typically accepts a single argument which
is the key of bibliography entry.
Additional arguments are, for instance, used to cite certain
pages in a book.
In our previous example (ex. 3) , the key to our entry was
name.08.
To cite this document we would use the cite command as
follows:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Including Citations in Your Documents
The cite a document contained in your bibliography we use
the cite command.
The cite command typically accepts a single argument which
is the key of bibliography entry.
Additional arguments are, for instance, used to cite certain
pages in a book.
In our previous example (ex. 3) , the key to our entry was
name.08.
To cite this document we would use the cite command as
follows:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Including Citations in Your Documents
The cite a document contained in your bibliography we use
the cite command.
The cite command typically accepts a single argument which
is the key of bibliography entry.
Additional arguments are, for instance, used to cite certain
pages in a book.
In our previous example (ex. 3) , the key to our entry was
name.08.
To cite this document we would use the cite command as
follows:
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Citing a Document
Example
cite{name.08}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Bibliography Entries
Compiling Bibliographies
Citing Documents
Bibliography Managers
Its difficult to remember the schema for each kind of
document.
Also, there may be complicated cross references (e.g.,
inproceedings, proceedings) contained in your bibliography.
Therefore, several very good programs exist to help you
manage your .bib file. There’s a few listed on
http://sites.google.com/site/latexcourse/links-2.
One may exist on the lab computers, but if not, we’ll install
one called JabRef.
JabRef is a Java program and shouldn’t require any
complicated installation process, and moreover should run
(correctly) on all platforms.
Let’s take a few minutes and visit
http://www.haptonstahl.org/latex/work_bibtex.php
and follow the on screen instructions!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
About The Tabular Environment
The tabular environment is basically used to make tables.
This is a bit confusing since there is also a table
environment, but we’ll cover that in the next section.
The LATEXcode to generate tables can be a pain.
The good news is that you can use other software to write
this code for you.
There are several tools available to help you create tables in
LATEX from other documents (e.g., an excel worksheet). Some
of these are listed in the Wiki.
My personal favorite is a tool called csv2latex which is a
command line tool typically included in most *NIX
distributions, including, of course, OS X.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Tabular By Hand
Three environmental commands do about the same thing and use
the same syntax:
begin{tabular}[pos]{cols} ... end{tabular}
begin{tabular*}{width}[pos]{cols} ... end{tabular}
begin{array}[pos]{cols} ... end{tabular}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Details
The tabular environment creates a table whose width is set
automatically based on the content.
The tabular* environment gives you the option of setting
the overall width of the table.
The array environment is used in math mode.
In fact, there’s a useful eqnarray environment in math mode
thats very useful for aligning multi-lined equations!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Details
The tabular environment creates a table whose width is set
automatically based on the content.
The tabular* environment gives you the option of setting
the overall width of the table.
The array environment is used in math mode.
In fact, there’s a useful eqnarray environment in math mode
thats very useful for aligning multi-lined equations!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Details
The tabular environment creates a table whose width is set
automatically based on the content.
The tabular* environment gives you the option of setting
the overall width of the table.
The array environment is used in math mode.
In fact, there’s a useful eqnarray environment in math mode
thats very useful for aligning multi-lined equations!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Details
The tabular environment creates a table whose width is set
automatically based on the content.
The tabular* environment gives you the option of setting
the overall width of the table.
The array environment is used in math mode.
In fact, there’s a useful eqnarray environment in math mode
thats very useful for aligning multi-lined equations!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Details
Arguments
[pos] is an optional command.
If you set [t], then the top line of the table is aligned with
the baseline of the text preceding the table.
If you set [b] or do not use this command, the bottom of the
table is aligned with the baseline of the text preceding the
table.
{cols} sets the number of columns and the default alignment
in each column.
You can also add vertical lines between columns (borders)
that run the entire height of the table.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Example
begin{tabular}{|c|l|}
hline
Cell 1 & Cell 2 
hline
Bottom row is longer & but the table adjusts
to fit! 
hline
end{tabular}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Will produce . . .
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Cell 1 Cell 2
Bottom row is longer but the table adjusts to fit!
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Centering a table: You can center a table by putting
begin{center} and end{center} around it.
Partial horizontal lines: The command cline{n-m} draws a
horizontal line from the left side of column n to the
right side of column m.
Spanning columns: The command
multicolumn{num}{col}{text} puts text is a cell
that spans num columns using alignment and border
formatting col.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
begin{center}
begin{tabular}{cp{2.5in}rr}
Qty & Description & Cost each & Sub Total 
hline
10 & Course text & $12.95 & $129.50 
1 & Custom-built software, including full
documentation & $4,500 & 4,500.00 
2 & Servers (to run the software) &
$1,495.00 & 2,990.00 
hline
multicolumn{3}{r}{Total (not including tax):} &
$7,619.50 
cline{4-4}
end{tabular}
end{center}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Will produce . . .
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Qty Description Cost each Sub Total
10 Course text $12.95 $129.50
1 Custom-built software, including full
documentation
$4,500 4,500.00
2 Servers (to run the software) $1,495.00 2,990.00
Total (not including tax): $7,619.50
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Notes
To type a dollar sign, you must precede it with  to tell
LaTeX you’re not entering math mode.
The multicolumn command is used since the ”Total (not
including tax): is expected to be wider than the ”Cost each”
column, and we don’t want that column to automatically be
way too wide for the dollar amounts.
The cline command lets us underline the total dollar
amount.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
http://www.haptonstahl.org/latex/work_floats.php
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
LaTeX can automatically create indexes while you work on
your document.
To use LaTeX indexing, you must first include the makeidx
command in the preamble.
The full command is:
usepackage{makeidx}
makeindex
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
When you want to index something, use the command:
index{Index Entry}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
There are several types of index entries that LaTeX can create.
These are:
Plain entry: uses the basic command index{cheese} to make
an entry for cheese with the current page number
Subindex Entry: uses the basic command with an exclamation
point to separate the first main entry from the
subentry. The command for a single level of subentry
appears as such: index{cheese!gouda}
Subentries can be up to one additional level deep,
and the command appears as such:
index{cheese!gouda!brie}
Cross-references: Entries which are simple ”See” and another entry
are created using the vertical bar with this command:
index{cheese|see{crackers}}
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
Outline
Graphics
Bibliographies
Tabular
Floats
Indices
Font changes: To change the style of an index entry, use the @
sign followed by a font change command like this:
This example indexes Kraft and italicizes it at the
same time. Any of the standard font change
commands which use text... will work within this
syntax. Out of sequence: This can be used to make
index entries appear out of sequence, so that they
appear with the work they represent. For instance:
index{cheese@gouda} Would place gouda in the
list right next to cheese, as if gouda was actually
spelled cheese.
Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics

More Related Content

What's hot

What Is Cataloging 2003 version
What Is Cataloging 2003 versionWhat Is Cataloging 2003 version
What Is Cataloging 2003 version
Johan Koren
 
Collision course presentation (corrrect)
Collision course presentation (corrrect)Collision course presentation (corrrect)
Collision course presentation (corrrect)
William Worford
 

What's hot (7)

Expanding the content categories at JaLC
Expanding the content categories at JaLCExpanding the content categories at JaLC
Expanding the content categories at JaLC
 
Classification, Cataloguing And Marc Crash Course
Classification, Cataloguing And Marc Crash CourseClassification, Cataloguing And Marc Crash Course
Classification, Cataloguing And Marc Crash Course
 
Indexing and Hashing
Indexing and HashingIndexing and Hashing
Indexing and Hashing
 
What Is Cataloging 2003 version
What Is Cataloging 2003 versionWhat Is Cataloging 2003 version
What Is Cataloging 2003 version
 
Cataloging basics
Cataloging basicsCataloging basics
Cataloging basics
 
Cataloging Standards
Cataloging StandardsCataloging Standards
Cataloging Standards
 
Collision course presentation (corrrect)
Collision course presentation (corrrect)Collision course presentation (corrrect)
Collision course presentation (corrrect)
 

Viewers also liked

Harness your energy attain your targets
Harness your energy   attain your targetsHarness your energy   attain your targets
Harness your energy attain your targets
amazingselfb0
 
An optical instrument
An optical instrumentAn optical instrument
An optical instrument
Dita Issriza
 
Pence: Cyclotron
Pence: CyclotronPence: Cyclotron
Pence: Cyclotron
jtrip
 
Conventional and non Conventional Resources
Conventional and non Conventional ResourcesConventional and non Conventional Resources
Conventional and non Conventional Resources
Triambak Sahai
 
mordern means of communication
mordern means of communicationmordern means of communication
mordern means of communication
Nitin Patil
 
Modern communication
Modern communicationModern communication
Modern communication
Irina K
 
Renewable non-renewable-energy-resources
Renewable non-renewable-energy-resourcesRenewable non-renewable-energy-resources
Renewable non-renewable-energy-resources
Rachit Walia
 
Internet ppt
Internet pptInternet ppt
Internet ppt
tej_vish
 

Viewers also liked (20)

Harness your energy attain your targets
Harness your energy   attain your targetsHarness your energy   attain your targets
Harness your energy attain your targets
 
Non conventional energy
Non conventional energyNon conventional energy
Non conventional energy
 
Renewable Energy: How to Harness the Power and Help the Future
Renewable Energy: How to Harness the Power and Help the FutureRenewable Energy: How to Harness the Power and Help the Future
Renewable Energy: How to Harness the Power and Help the Future
 
The Internet and Its Importance
The Internet and Its ImportanceThe Internet and Its Importance
The Internet and Its Importance
 
Hurricanes
HurricanesHurricanes
Hurricanes
 
Modern Telecommunication ... The Very Basic.
Modern Telecommunication ... The Very Basic.Modern Telecommunication ... The Very Basic.
Modern Telecommunication ... The Very Basic.
 
An optical instrument
An optical instrumentAn optical instrument
An optical instrument
 
Importance of the internet
Importance of the internetImportance of the internet
Importance of the internet
 
Pence: Cyclotron
Pence: CyclotronPence: Cyclotron
Pence: Cyclotron
 
Modern Communication
Modern CommunicationModern Communication
Modern Communication
 
Rio Olympic - 2016
Rio Olympic - 2016Rio Olympic - 2016
Rio Olympic - 2016
 
Olympic games 2016
Olympic games 2016Olympic games 2016
Olympic games 2016
 
Conventional and non Conventional Resources
Conventional and non Conventional ResourcesConventional and non Conventional Resources
Conventional and non Conventional Resources
 
Cyclotron (1)
Cyclotron (1)Cyclotron (1)
Cyclotron (1)
 
6th chapter modern communication device.
6th chapter modern communication device.6th chapter modern communication device.
6th chapter modern communication device.
 
mordern means of communication
mordern means of communicationmordern means of communication
mordern means of communication
 
Modern communication
Modern communicationModern communication
Modern communication
 
Renewable non-renewable-energy-resources
Renewable non-renewable-energy-resourcesRenewable non-renewable-energy-resources
Renewable non-renewable-energy-resources
 
Non conventional sources of energy
Non conventional sources of energyNon conventional sources of energy
Non conventional sources of energy
 
Internet ppt
Internet pptInternet ppt
Internet ppt
 

Similar to Lancaster University LaTeX 1-Day Course: Special Topics

Putting the library in your bb pages version 9
Putting the library in your bb pages version 9Putting the library in your bb pages version 9
Putting the library in your bb pages version 9
jardimm1
 
Ales 204 presentation nov 4
Ales 204 presentation nov 4Ales 204 presentation nov 4
Ales 204 presentation nov 4
cangie202
 
End note reference manager2013
End note reference manager2013End note reference manager2013
End note reference manager2013
Bettie Kock
 

Similar to Lancaster University LaTeX 1-Day Course: Special Topics (20)

Putting The Library In Your Blackboard Pages
Putting The Library In Your Blackboard PagesPutting The Library In Your Blackboard Pages
Putting The Library In Your Blackboard Pages
 
Putting the library in your bb pages version 9
Putting the library in your bb pages version 9Putting the library in your bb pages version 9
Putting the library in your bb pages version 9
 
Web of science,Scopus,bibtex,latex
Web of science,Scopus,bibtex,latexWeb of science,Scopus,bibtex,latex
Web of science,Scopus,bibtex,latex
 
Apsc 100 Clinic 3 C Fall 09
Apsc 100 Clinic 3 C Fall 09Apsc 100 Clinic 3 C Fall 09
Apsc 100 Clinic 3 C Fall 09
 
Literature Search MAE 4262: Rockets & Mission Analysis
Literature Search MAE 4262: Rockets & Mission AnalysisLiterature Search MAE 4262: Rockets & Mission Analysis
Literature Search MAE 4262: Rockets & Mission Analysis
 
Librarything
LibrarythingLibrarything
Librarything
 
Ales 204 presentation nov 4
Ales 204 presentation nov 4Ales 204 presentation nov 4
Ales 204 presentation nov 4
 
2012 the literature review_industrial_systemsengineering
2012 the literature review_industrial_systemsengineering2012 the literature review_industrial_systemsengineering
2012 the literature review_industrial_systemsengineering
 
ENS/OCN 3911 Preparation for Field Projects
ENS/OCN 3911 Preparation for Field ProjectsENS/OCN 3911 Preparation for Field Projects
ENS/OCN 3911 Preparation for Field Projects
 
Learn Latex
Learn LatexLearn Latex
Learn Latex
 
Doing Research on Language and Linguistics (2009)
Doing Research on Language and Linguistics (2009)Doing Research on Language and Linguistics (2009)
Doing Research on Language and Linguistics (2009)
 
Research Skills for Neuroscience Grads
Research Skills for Neuroscience GradsResearch Skills for Neuroscience Grads
Research Skills for Neuroscience Grads
 
Introduction to guides.lib
Introduction to guides.libIntroduction to guides.lib
Introduction to guides.lib
 
End note reference manager2013
End note reference manager2013End note reference manager2013
End note reference manager2013
 
SKOS - 2007 Open Forum on Metadata Registries - NYC
SKOS - 2007 Open Forum on Metadata Registries - NYCSKOS - 2007 Open Forum on Metadata Registries - NYC
SKOS - 2007 Open Forum on Metadata Registries - NYC
 
OCN 3911 Field Project - Spring 2020 Semester
OCN 3911 Field Project - Spring 2020 SemesterOCN 3911 Field Project - Spring 2020 Semester
OCN 3911 Field Project - Spring 2020 Semester
 
RefWorks for DEPARTMENT OF FAMILY MEDICINE - Faculty Development
RefWorks for DEPARTMENT OF FAMILY MEDICINE - Faculty Development RefWorks for DEPARTMENT OF FAMILY MEDICINE - Faculty Development
RefWorks for DEPARTMENT OF FAMILY MEDICINE - Faculty Development
 
Annotated Bibliographical Reference Corpora In Digital Humanities
Annotated Bibliographical Reference Corpora In Digital HumanitiesAnnotated Bibliographical Reference Corpora In Digital Humanities
Annotated Bibliographical Reference Corpora In Digital Humanities
 
Earthsciences 4490 Library Workshops
Earthsciences 4490 Library WorkshopsEarthsciences 4490 Library Workshops
Earthsciences 4490 Library Workshops
 
1. Reference management tools.ppt
1. Reference management tools.ppt1. Reference management tools.ppt
1. Reference management tools.ppt
 

More from Raffi Khatchadourian

Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Raffi Khatchadourian
 
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Raffi Khatchadourian
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
Raffi Khatchadourian
 
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
Raffi Khatchadourian
 
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Raffi Khatchadourian
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 StreamsSafe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Raffi Khatchadourian
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 StreamsSafe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Raffi Khatchadourian
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
Raffi Khatchadourian
 
A Tool for Optimizing Java 8 Stream Software via Automated Refactoring
A Tool for Optimizing Java 8 Stream Software via Automated RefactoringA Tool for Optimizing Java 8 Stream Software via Automated Refactoring
A Tool for Optimizing Java 8 Stream Software via Automated Refactoring
Raffi Khatchadourian
 
Proactive Empirical Assessment of New Language Feature Adoption via Automated...
Proactive Empirical Assessment of New Language Feature Adoption via Automated...Proactive Empirical Assessment of New Language Feature Adoption via Automated...
Proactive Empirical Assessment of New Language Feature Adoption via Automated...
Raffi Khatchadourian
 

More from Raffi Khatchadourian (20)

Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
 
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
 
A Tool for Rejuvenating Feature Logging Levels via Git Histories and Degree o...
A Tool for Rejuvenating Feature Logging Levels via Git Histories and Degree o...A Tool for Rejuvenating Feature Logging Levels via Git Histories and Degree o...
A Tool for Rejuvenating Feature Logging Levels via Git Histories and Degree o...
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
 
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
Actor Concurrency Bugs: A Comprehensive Study on Symptoms, Root Causes, API U...
 
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
An Empirical Study of Refactorings and Technical Debt in Machine Learning Sys...
 
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
Automated Evolution of Feature Logging Statement Levels Using Git Histories a...
 
An Empirical Study on the Use and Misuse of Java 8 Streams
An Empirical Study on the Use and Misuse of Java 8 StreamsAn Empirical Study on the Use and Misuse of Java 8 Streams
An Empirical Study on the Use and Misuse of Java 8 Streams
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 StreamsSafe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 StreamsSafe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams
 
A Brief Introduction to Type Constraints
A Brief Introduction to Type ConstraintsA Brief Introduction to Type Constraints
A Brief Introduction to Type Constraints
 
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
Safe Automated Refactoring for Intelligent Parallelization of Java 8 Streams ...
 
A Tool for Optimizing Java 8 Stream Software via Automated Refactoring
A Tool for Optimizing Java 8 Stream Software via Automated RefactoringA Tool for Optimizing Java 8 Stream Software via Automated Refactoring
A Tool for Optimizing Java 8 Stream Software via Automated Refactoring
 
Porting the NetBeans Java 8 Enhanced For Loop Lambda Expression Refactoring t...
Porting the NetBeans Java 8 Enhanced For Loop Lambda Expression Refactoring t...Porting the NetBeans Java 8 Enhanced For Loop Lambda Expression Refactoring t...
Porting the NetBeans Java 8 Enhanced For Loop Lambda Expression Refactoring t...
 
Towards Safe Refactoring for Intelligent Parallelization of Java 8 Streams
Towards Safe Refactoring for Intelligent Parallelization of Java 8 StreamsTowards Safe Refactoring for Intelligent Parallelization of Java 8 Streams
Towards Safe Refactoring for Intelligent Parallelization of Java 8 Streams
 
Proactive Empirical Assessment of New Language Feature Adoption via Automated...
Proactive Empirical Assessment of New Language Feature Adoption via Automated...Proactive Empirical Assessment of New Language Feature Adoption via Automated...
Proactive Empirical Assessment of New Language Feature Adoption via Automated...
 
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
 
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
 
Automated Refactoring of Legacy Java Software to Default Methods Talk at ICSE...
Automated Refactoring of Legacy Java Software to Default Methods Talk at ICSE...Automated Refactoring of Legacy Java Software to Default Methods Talk at ICSE...
Automated Refactoring of Legacy Java Software to Default Methods Talk at ICSE...
 
Poster on Automated Refactoring of Legacy Java Software to Default Methods
Poster on Automated Refactoring of Legacy Java Software to Default MethodsPoster on Automated Refactoring of Legacy Java Software to Default Methods
Poster on Automated Refactoring of Legacy Java Software to Default Methods
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Recently uploaded (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

Lancaster University LaTeX 1-Day Course: Special Topics

  • 1. Outline Graphics Bibliographies Tabular Floats Indices Lancaster University LATEX 1-Day Course: Special Topics Raffi Khatchadourian June 5, 2008 B56, Physics Building Several Slides borrowed from http://www.haptonstahl.org/latex Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 2. Outline Graphics Bibliographies Tabular Floats Indices 1 Graphics 2 Bibliographies Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers 3 Tabular 4 Floats 5 Indices Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 3. Outline Graphics Bibliographies Tabular Floats Indices Inserting Graphics Kinds of files you can insert PNGa JPEG0 PDF0 MPS0 EPS PS a Requires use of pdflatex to the best of my knowledge. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 4. Outline Graphics Bibliographies Tabular Floats Indices Things to Remember Remember . . . When specifying the location of the graphic file, the path is taken as relative to your working directory. There are several package we can use, we’ll be using the graphicx package mostly in this course. Thus, you’ll need to ensure that you are “using” the graphicx package like so: Example usepackage{graphicx} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 5. Outline Graphics Bibliographies Tabular Floats Indices The includegraphics Command Use this command to insert the picture. (Here the name of the file is insert me.png) includegraphics{insert_me} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 6. Outline Graphics Bibliographies Tabular Floats Indices The includegraphics Command You can specify the height or width of the graphic easily. Using either of these commands will resize while maintaining the height/width ratio. includegraphics[height=3in]{insert_this} includegraphics[width=4cm]{insert_that} includegraphics[scale=0.5]{insert_that} By the way, I use the scale argument the most! Example Try it with an image! (One can be found in http://sites.google.com/site/latexcourse/files) Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 7. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliographies in LATEX Bibliographies are very convenient in LATEX There are several different ways to do bibliographies in LATEX. We’ll be using another program to help us called BibTeX. BibTeX is a separate program from LATEX that takes an input a file of bibliography entries. BibTeX input files are normally named with the .bib extension. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 8. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliographies in LATEX Bibliographies are very convenient in LATEX There are several different ways to do bibliographies in LATEX. We’ll be using another program to help us called BibTeX. BibTeX is a separate program from LATEX that takes an input a file of bibliography entries. BibTeX input files are normally named with the .bib extension. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 9. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliographies in LATEX Bibliographies are very convenient in LATEX There are several different ways to do bibliographies in LATEX. We’ll be using another program to help us called BibTeX. BibTeX is a separate program from LATEX that takes an input a file of bibliography entries. BibTeX input files are normally named with the .bib extension. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 10. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliographies in LATEX Bibliographies are very convenient in LATEX There are several different ways to do bibliographies in LATEX. We’ll be using another program to help us called BibTeX. BibTeX is a separate program from LATEX that takes an input a file of bibliography entries. BibTeX input files are normally named with the .bib extension. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 11. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliographies in LATEX Bibliographies are very convenient in LATEX There are several different ways to do bibliographies in LATEX. We’ll be using another program to help us called BibTeX. BibTeX is a separate program from LATEX that takes an input a file of bibliography entries. BibTeX input files are normally named with the .bib extension. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 12. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliography Entry Details a bibliography entry can take many forms, e.g., book, article, inproceedings, proceedings. Each entry type has its own schema, i.e., the kind of information associated with it. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 13. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliography Entry Details a bibliography entry can take many forms, e.g., book, article, inproceedings, proceedings. Each entry type has its own schema, i.e., the kind of information associated with it. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 14. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Bibliography Entry Example Example @inproceedings{name.08, Author = {Your name.}, Booktitle = {Your conference here.}, Title = {Your paper’s title.}, Year = {Your publication year here.}} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 15. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers You must compile your .bib file using bibtex before the citations can be used in your LATEX document. How you go about this depends on your environment. One the command line it would be as follows assuming that your latex compiler executable is named latex, your main document is named paper.tex, and your bibliography is named paper.bib: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 16. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers You must compile your .bib file using bibtex before the citations can be used in your LATEX document. How you go about this depends on your environment. One the command line it would be as follows assuming that your latex compiler executable is named latex, your main document is named paper.tex, and your bibliography is named paper.bib: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 17. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers You must compile your .bib file using bibtex before the citations can be used in your LATEX document. How you go about this depends on your environment. One the command line it would be as follows assuming that your latex compiler executable is named latex, your main document is named paper.tex, and your bibliography is named paper.bib: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 18. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Example latex paper bibtex paper latex paper latex paper The repeated commands are used for linking bibliography entries to the document. That brings us to our next topic! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 19. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Including Citations in Your Documents The cite a document contained in your bibliography we use the cite command. The cite command typically accepts a single argument which is the key of bibliography entry. Additional arguments are, for instance, used to cite certain pages in a book. In our previous example (ex. 3) , the key to our entry was name.08. To cite this document we would use the cite command as follows: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 20. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Including Citations in Your Documents The cite a document contained in your bibliography we use the cite command. The cite command typically accepts a single argument which is the key of bibliography entry. Additional arguments are, for instance, used to cite certain pages in a book. In our previous example (ex. 3) , the key to our entry was name.08. To cite this document we would use the cite command as follows: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 21. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Including Citations in Your Documents The cite a document contained in your bibliography we use the cite command. The cite command typically accepts a single argument which is the key of bibliography entry. Additional arguments are, for instance, used to cite certain pages in a book. In our previous example (ex. 3) , the key to our entry was name.08. To cite this document we would use the cite command as follows: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 22. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Including Citations in Your Documents The cite a document contained in your bibliography we use the cite command. The cite command typically accepts a single argument which is the key of bibliography entry. Additional arguments are, for instance, used to cite certain pages in a book. In our previous example (ex. 3) , the key to our entry was name.08. To cite this document we would use the cite command as follows: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 23. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Including Citations in Your Documents The cite a document contained in your bibliography we use the cite command. The cite command typically accepts a single argument which is the key of bibliography entry. Additional arguments are, for instance, used to cite certain pages in a book. In our previous example (ex. 3) , the key to our entry was name.08. To cite this document we would use the cite command as follows: Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 24. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Citing a Document Example cite{name.08} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 25. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 26. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 27. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 28. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 29. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 30. Outline Graphics Bibliographies Tabular Floats Indices Bibliography Entries Compiling Bibliographies Citing Documents Bibliography Managers Its difficult to remember the schema for each kind of document. Also, there may be complicated cross references (e.g., inproceedings, proceedings) contained in your bibliography. Therefore, several very good programs exist to help you manage your .bib file. There’s a few listed on http://sites.google.com/site/latexcourse/links-2. One may exist on the lab computers, but if not, we’ll install one called JabRef. JabRef is a Java program and shouldn’t require any complicated installation process, and moreover should run (correctly) on all platforms. Let’s take a few minutes and visit http://www.haptonstahl.org/latex/work_bibtex.php and follow the on screen instructions! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 31. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 32. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 33. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 34. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 35. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 36. Outline Graphics Bibliographies Tabular Floats Indices About The Tabular Environment The tabular environment is basically used to make tables. This is a bit confusing since there is also a table environment, but we’ll cover that in the next section. The LATEXcode to generate tables can be a pain. The good news is that you can use other software to write this code for you. There are several tools available to help you create tables in LATEX from other documents (e.g., an excel worksheet). Some of these are listed in the Wiki. My personal favorite is a tool called csv2latex which is a command line tool typically included in most *NIX distributions, including, of course, OS X. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 37. Outline Graphics Bibliographies Tabular Floats Indices Tabular By Hand Three environmental commands do about the same thing and use the same syntax: begin{tabular}[pos]{cols} ... end{tabular} begin{tabular*}{width}[pos]{cols} ... end{tabular} begin{array}[pos]{cols} ... end{tabular} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 38. Outline Graphics Bibliographies Tabular Floats Indices Details The tabular environment creates a table whose width is set automatically based on the content. The tabular* environment gives you the option of setting the overall width of the table. The array environment is used in math mode. In fact, there’s a useful eqnarray environment in math mode thats very useful for aligning multi-lined equations! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 39. Outline Graphics Bibliographies Tabular Floats Indices Details The tabular environment creates a table whose width is set automatically based on the content. The tabular* environment gives you the option of setting the overall width of the table. The array environment is used in math mode. In fact, there’s a useful eqnarray environment in math mode thats very useful for aligning multi-lined equations! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 40. Outline Graphics Bibliographies Tabular Floats Indices Details The tabular environment creates a table whose width is set automatically based on the content. The tabular* environment gives you the option of setting the overall width of the table. The array environment is used in math mode. In fact, there’s a useful eqnarray environment in math mode thats very useful for aligning multi-lined equations! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 41. Outline Graphics Bibliographies Tabular Floats Indices Details The tabular environment creates a table whose width is set automatically based on the content. The tabular* environment gives you the option of setting the overall width of the table. The array environment is used in math mode. In fact, there’s a useful eqnarray environment in math mode thats very useful for aligning multi-lined equations! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 42. Outline Graphics Bibliographies Tabular Floats Indices Details Arguments [pos] is an optional command. If you set [t], then the top line of the table is aligned with the baseline of the text preceding the table. If you set [b] or do not use this command, the bottom of the table is aligned with the baseline of the text preceding the table. {cols} sets the number of columns and the default alignment in each column. You can also add vertical lines between columns (borders) that run the entire height of the table. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 43. Outline Graphics Bibliographies Tabular Floats Indices Example begin{tabular}{|c|l|} hline Cell 1 & Cell 2 hline Bottom row is longer & but the table adjusts to fit! hline end{tabular} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 44. Outline Graphics Bibliographies Tabular Floats Indices Will produce . . . Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 45. Outline Graphics Bibliographies Tabular Floats Indices Cell 1 Cell 2 Bottom row is longer but the table adjusts to fit! Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 46. Outline Graphics Bibliographies Tabular Floats Indices Centering a table: You can center a table by putting begin{center} and end{center} around it. Partial horizontal lines: The command cline{n-m} draws a horizontal line from the left side of column n to the right side of column m. Spanning columns: The command multicolumn{num}{col}{text} puts text is a cell that spans num columns using alignment and border formatting col. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 47. Outline Graphics Bibliographies Tabular Floats Indices begin{center} begin{tabular}{cp{2.5in}rr} Qty & Description & Cost each & Sub Total hline 10 & Course text & $12.95 & $129.50 1 & Custom-built software, including full documentation & $4,500 & 4,500.00 2 & Servers (to run the software) & $1,495.00 & 2,990.00 hline multicolumn{3}{r}{Total (not including tax):} & $7,619.50 cline{4-4} end{tabular} end{center} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 48. Outline Graphics Bibliographies Tabular Floats Indices Will produce . . . Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 49. Outline Graphics Bibliographies Tabular Floats Indices Qty Description Cost each Sub Total 10 Course text $12.95 $129.50 1 Custom-built software, including full documentation $4,500 4,500.00 2 Servers (to run the software) $1,495.00 2,990.00 Total (not including tax): $7,619.50 Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 50. Outline Graphics Bibliographies Tabular Floats Indices Notes To type a dollar sign, you must precede it with to tell LaTeX you’re not entering math mode. The multicolumn command is used since the ”Total (not including tax): is expected to be wider than the ”Cost each” column, and we don’t want that column to automatically be way too wide for the dollar amounts. The cline command lets us underline the total dollar amount. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 52. Outline Graphics Bibliographies Tabular Floats Indices LaTeX can automatically create indexes while you work on your document. To use LaTeX indexing, you must first include the makeidx command in the preamble. The full command is: usepackage{makeidx} makeindex Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 53. Outline Graphics Bibliographies Tabular Floats Indices When you want to index something, use the command: index{Index Entry} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 54. Outline Graphics Bibliographies Tabular Floats Indices There are several types of index entries that LaTeX can create. These are: Plain entry: uses the basic command index{cheese} to make an entry for cheese with the current page number Subindex Entry: uses the basic command with an exclamation point to separate the first main entry from the subentry. The command for a single level of subentry appears as such: index{cheese!gouda} Subentries can be up to one additional level deep, and the command appears as such: index{cheese!gouda!brie} Cross-references: Entries which are simple ”See” and another entry are created using the vertical bar with this command: index{cheese|see{crackers}} Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics
  • 55. Outline Graphics Bibliographies Tabular Floats Indices Font changes: To change the style of an index entry, use the @ sign followed by a font change command like this: This example indexes Kraft and italicizes it at the same time. Any of the standard font change commands which use text... will work within this syntax. Out of sequence: This can be used to make index entries appear out of sequence, so that they appear with the work they represent. For instance: index{cheese@gouda} Would place gouda in the list right next to cheese, as if gouda was actually spelled cheese. Raffi Khatchadourian Lancaster University LATEX 1-Day Course: Special Topics