Mikkel Madsen

Similar documents
Mikkel Madsen

LAT E X week 2: Basics for Writing a Document

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

Introduction to LaTeX. Paul Fodor Stony Brook University

An Introduction to L A TEX

Introduction to LATEX

عمادة البحث العلمي جامعة الملك سعود

Learning L A TEX. Patrick Lam

Assessments for CS students:

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

An introduction to L A TEX for students

Academic Skills in Computer Science (ASiCS) II) Text Processing with Latex II.1) Introduction to Latex

Dec. 27 th, 2010 University of Isfahan

Forschungskolleg / ACSE Exercise 1 - LaTeX

LaTeX. Information Literacy II EN(IL2) Course

Introduction to L A TEX beamer

Student Learning Service: Introduction to Latex

LaTeX A Tutorial. Mohsen Alimomeni, 2010

EBESS and MESS Presents: Learn to LaTeX. Presented by Joshua Tambunan 13 February 2018

Aalborg October 2014

L A TEXInstallation and Introduction

L A TEXday, morning session Discovering L A TEX

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

L A TEX From The Ground Up

L A TEX for Psychological Researchers

Exercises in LaTeX IDA on AAU

Useful L A TEX Commands

An Introduction to L A TEX

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

Introduction to L A TEX

How to L A TEX. George Wong, David Mykytyn. 6 October 2016

L A TEX for Psychological Researchers

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

An Introduction to L A T E X

Basic L A TEX. what is LaTeX?

Latex Manually Set Font Size For Tables

Introduction to Latex. A workshop by Dr. Ala Eshmawi

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

Introduction to L A TEX

Introduzione a LaTex. Fabrizio Messina

Document Preparation Word Processors

An Introduction to LATEX

Introduction to L A T E X

Lecture 3-Introduction to Latex (II)

Using L A TEX Tom Edgar

Researcher Development Unit: Introduction to Latex

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

CS 189 L A TEX and Linux: Displaying Text

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

A Grasshopper s Approach to L A TEX

The basics of LaTeX. Cédric Buron. April 25, 2016

Introduction to L A TEX

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1

LaTeX. Information Literacy II EN(IL2) Course

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4

A brief introduction to L A TEX

Helen Cameron. A Brief Overview of LATEX

L A TEX Workshop. Don Brower

Getting started with Latex

Intro to LaTeX Workshop

Introduction to. Research Seminar System Analysis. Florian Kragulj

Very Short Introduction to LaTeX

MATLAB for the Sciences

Introduction to L A TEX

LaTeX: Scientific Document Writing

Introduction to L A TEX

Word Training - Maintaining Consistency Supporting Handout Designing Styles within a Word Template Version: Mac

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

Latex Programs for Record

Basics. Options. Commands

Word Training - Maintaining Consistency Supporting Handout Designing Styles within a Word Template Version: Windows

A L A T E X quick start

A Very Brief Introduction to L A T E X MAT 3535

Getting Started with L A TEX

Introduction to L A TEX

L A TEX for psychological researchers

PHYS-4007/5007: Computational Physics

L A TEX Workshop. An Introduction to L A TEX. Rakesh Jana Research Scholar Department of Mathematics IIT Guwhati

Math 235: Introduction to LaTeX

Effective Programming Practices for Economists

CS 189 L A TEX and Linux: Document Layout and Organization

simpletex Documentation

An Interactive Introduction to L A TEX. Part 3: Not Just Papers: Presentations & More. John Lees-Miller. writel A TEX

Learn how to [learn] LATEX

GROUP ASSIGNMENT. L A TEX Assignment 1/3

Document Formatting with Word

Introduction to LATEX

Helen Cameron. A Brief Overview of LATEX

Introduction to LaTeX. Christoph Pickl

Instructions for IEEE style paper writing

Become a L A TEX Guru

Presentation of Scientific Results

Outline. A Sneak Peek

TUTORIAL 5: LIST ENVIRONMENTS. 1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R).

Transcription:

Mikkel Madsen latex@mikkl.dk

Today Recap from lecture 1 Sections, figures, tables, equations, multiple files TechnicCenter demonstration Navigating a large report Compiling New material Bold, italic, fontsize etc. Lists Footnotes References Header, footer and margins 2

Installation Windows: MiKTeX - http://miktex.org/2.9/setup TeXnicCenter - http://www.texniccenter.org/ OS X: MacTeX Editor of choice Linux: TeXlive Editor of choice See http://latex.mikkl.dk > Installation 3

Hello, World! Preamble and contents \documentclass[a4paper,12pt]{book} \usepackage[latin1]{inputenc} %This line is commented out, so it does nothing \begin{document} Hello, World! \end{document} 4

Adam Tulinius latex@antistof.dk 2010 5

Table of Contents \tableofcontents NB: You may need to build your project twice to update the ToC 6

Multiple Files Easier for groups You don t have to scroll around in a 9000 line file c:\report\report.tex c:\report\chapter1\intro.tex c:\report\chapter1\section1\first_part.tex (You will give folders and files meaningful names, related to their contents. Instead of chapter1 and section1 ) Use relative paths to files (and leave out.tex): \input{chapter1/intro} \input{chapter1/section1/first_part} the path is relative to the ROOT file, i.e. the file containing your preamble. 7

Figures - Extended Preamble: \usepackage{graphicx} \begin{figure}[htb] \centering \includegraphics[width=0.5\textwidth]{graph.jpg} \caption{caption text} \end{figure} % desired width is defined and a caption is added Width=0.5\textwidth sets the width to half of the space between the right and left margins, i.e. the text width 8

Formula Preamble: \usepackage{amsmath,amssymb} Inline formula: Lorem ipsum $ f(x) = x^2 $ dolor sit amet. Normal formula: Lorem ipsum \begin{displaymath} f(x) = \int_{a}^{b} x^2 \, dx \end{displaymath} Dolor sit amet 9

Tables \begin{table}[htb] \centering \begin{tabular}{ l c r } \hline 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \hline \end{tabular} \caption{blabla caption} \end{table} 10

Today Recap from lecture 1 Sections, figures, tables, equations, multiple files TechnicCenter demonstration Navigating a large report Compiling New material Bold, italic, fontsize etc. Lists Footnotes References Header, footer and margins 11

Today Recap from lecture 1 Sections, figures, tables, equations, multiple files TechnicCenter demonstration Navigating a large report Compiling New material Bold, italic, fontsize etc. Lists Footnotes References Header, footer and margins 12

Font sizes \tiny \scriptsize \footnotesize \small \normalsize (standard) \large \Large \LARGE \huge \Huge Commands change the size of all text after it Surround the text with {} if you don t want this. E.g. {\Large some text} 13

Bold, italic & typewriter \textbf{bold} \emph{italic} \texttt{typewriter} Bold Italic Typewriter 14

Extra line change \\ (double backslash) forces a new line \noindent prevents LaTeX from indenting the line (as it will do for the first line of a paragraph) 15

Force new page \clearpage Skip to next page \cleardoublepage Skip to next odd page 16

Lists 1/2 \begin{enumerate} \item Step 1 \item Step 2 \end{enumerate} \begin{description} \item [Lorem ipsum] dolor sit amet \item [consectetur] dipiscing elit \end{description} \begin{itemize} \item Lorem \item Ipsum \end{itemize} Enumerate Itemize Description 17

Lists 2/2 \begin{enumerate} \item Step 1 \item Step 2 \begin{enumerate} \item Step 2.1 \item Step 2.2 \end{enumerate} \end{enumerate} 18

Footnotes A computer contains, among other things, a CPU\footnote{ CPU: Central Processing Unit}. 19

References 1/3 \label{labelnavn} \ref{label} is replaced by figure number \pageref{label} is replaced by the page # the figure is on You can add labels to many things, floats (figures, tables), equations, sections/chapters etc. See figure \ref{fig:graph} on page \pageref{fig:graph}. \begin{figure}[htb] \centering \includegraphics[width=0.8\textwidth]{graph.jpg} \caption{blabla} \label{fig:graph} \end{figure} 20

References 2/3 - table See table \ref{tab:stuff} on page \pageref{tab:stuff}. \begin{table}[htb] \centering \begin{tabular}{ l c r } \hline 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \hline \caption{blabla caption} \label{tab:stuff} \end{table} 21

References 3/3 - section \section{first section}\label{sec:first_sec} Lorem ipsum dolor sit amet. \section{second section} See section \ref{sec:first_sec} on page \pageref{sec:first_sec}. 22

Headers & footers 1/2 % Header and footer style defined in preamble \usepackage{fancyhdr} \setlength{\headheight}{15.2pt} \pagestyle{fancy} % thickness of line in header: \renewcommand{\headrulewidth}{0.5pt} % thickness of line in footer: \renewcommand{\footrulewidth}{0pt} 23

Headers & footers 2/2 % In preamble \lhead[left-of-header-even]{left-of-header-odd} \chead[center-of-header-even]{center-of-header-odd} \rhead[right-of-header-even]{right-of-header-odd} \lfoot[left-of-footer-even]{left-of-footer-odd} \cfoot[center-of-footer-even]{center-of-footer-odd} \rfoot[right-of-footer-even]{right-of-footer-odd} Replace X-of-header/footer-X with the content you want to be in that position. Insert page number with: \thepage If you use the template, you won t need to do any of this, but you may want something specific 24

Margins \usepackage[top=2cm, bottom=2cm, left=3cm, right=4cm]{geometry} NB: Margins indicate the whitespace around the actual content (not including the header/footer), so there must be room for the header and footer in the margins NB: This indicates the margin sizes for odd pages, they will be mirrored for even pages. (we want larger margins at the edge, than where the pages are bound) 25

Exercise Download the report template from latex.mikkl.dk Are you able to compile? Try the things we have covered so far: Sections Figures Tables Equations/formulas Font size, bold font, etc. References Footnotes 26

Until next week USE THE WEBSITE LATEX.MIKKL.DK The page for this course is linked at the top Elective course on LaTeX 2011 Slides are available there Install SVN, we will be using it next time http://latex.mikkl.dk/index.php?title=svn 27