date may 28 2009 latex walk-in - tex.aanhet.nettex.aanhet.net/rugtex/uitloop.pdf · everybody uses...

58
faculty of economics and business latex support Date May 28 2009 LaT E X walk-in Siep Kroonenberg may 28 2009 | Introduction | Examples | Editors | Documentation | 1

Upload: vukhuong

Post on 26-Aug-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

faculty of economicsand business

latexsupport

Date May 28 2009

LaTEX walk-in

Siep Kroonenbergmay 28 2009

| Introduction |Examples |Editors |Documentation | 1

faculty of economicsand business

latexsupport

Date May 28 2009

• Background

• Examples

• Editors

• Software documentation

| Introduction |Examples |Editors |Documentation | 2

faculty of economicsand business

latexsupport

Date May 28 2009

Background

• Based on TEX, developed by Donald E. Knuth

• TEX sets the standard for math typesetting and linebreaking

• Nowadays pdf output

• Works with markup (cf. html)

• Programmable: TEX is a macro language

• LaTEX adds structural markup

• Open source avant la lettre

| Introduction |Examples |Editors |Documentation | 3

faculty of economicsand business

latexsupport

Date May 28 2009

Examples

| Introduction |Examples |Editors |Documentation | 4

faculty of economicsand business

latexsupport

Date May 28 2009

Example with code: A complete document

Macros usually start with ‘\’.

Opening- and closing tags \begin{...} and \end{...}.

Example includes title, abstract and some text.

Default formatting, except choice for Palatino font(\usepackage{mathpazo}).

| Introduction |Examples |Editors |Documentation | 5

faculty of economicsand business

latexsupport

Date May 28 2009

\documentclass{article}\usepackage{mathpazo} % use Palatino font\begin{document}

\title{An Article}\author{Siep Kroonenberg \\Rijksuniversiteit Groningen}\maketitle

\begin{abstract}This document demonstrates the title page for the articles class.\end{abstract}

\section{A section}Now we start with the real content of the paper. The\texttt{mathpazo} package, which is loaded in the preamble of thefile, selects the Palatino font family, with accompanying math fonts.\end{document}

| Introduction |Examples |Editors |Documentation | 6

An Article

Siep KroonenbergRijksuniversiteit Groningen

June 1, 2009

Abstract

This document demonstrates the title page for the article class.

1 A section

Now we start with the real content of the paper. The mathpazo package, whichis loaded in the preamble of the file, selects the Palatino font family, with ac-companying math fonts.

7

faculty of economicsand business

latexsupport

Date May 28 2009

(Sub)sections, cross-reference

Two levels of sectioning.

Special characters ‘\&’ for ‘&’ and ‘--’ for ‘–’.

Cross-referencing with \ref and \label.

| Introduction |Examples |Editors |Documentation | 8

faculty of economicsand business

latexsupport

Date May 28 2009

\section{Grant ceremony}

On November 14, 1885, Senator \& Mrs.~Leland Stanford calledtogether at their San Francisco mansion the 24~prominent menwho had been chosen as the first trustees of The LelandStanford Junior University. They handed to the board theFounding Grant of the University, which they had executedthree days before. This document -- with various amendments,legislative acts, and court decrees -- remains as theUniversity’s charter; see section \ref{math}.

\subsection{Some mathematics}\label{math}

The econometric model is confronted with observed data andthe parameters are estimated by econometric techniques:

| Introduction |Examples |Editors |Documentation | 9

1 Grant ceremony

On November 14, 1885, Senator & Mrs. Leland Stanford called together attheir San Francisco mansion the 24 prominent men who had been chosen asthe first trustees of The Leland Stanford Junior University. They handed tothe board the Founding Grant of the University, which they had executed threedays before. This document – with various amendments, legislative acts, andcourt decrees – remains as the University’s charter; see section 1.1.

1.1 Some mathematics

The econometric model is confronted with observed data and the parametersare estimated by econometric techniques:

10

faculty of economicsand business

latexsupport

Date May 28 2009

Math

Numbered equation with \begin{equation} and\end{equation}.

Inline math bracketed with ‘$’: $y$ for y.

Unnumbered equation with \[ and \].

| Introduction |Examples |Editors |Documentation | 11

faculty of economicsand business

latexsupport

Date May 28 2009

\begin{equation}Y_t = G_1 (Y, X, \hat{\Theta}, \hat{U})\label{eq:smm}\end{equation}

To show how the system produces cyclical patterns, wepartition the endogenous variables into $y$, a variable thatrepresents the cycle, and the other endogenous variables$\bar{Y}$, and solve (\ref{eq:smm}) for $y$ assumingidentifying conditions are satisfied:\[y_t = g_1 (Y^+, \bar{Y}_t, Y^-, X, \hat{\Theta}, \hat{U})\]

| Introduction |Examples |Editors |Documentation | 12

Yt = G1(Y, X, Θ, U) (1)

To show how the system produces cyclical patterns, we partition the en-dogenous variables into y, a variable that represents the cycle, and the otherendogenous variables Y , and solve (1) for y assuming identifying conditions aresatisfied:

yt = g1(Y +, Yt, Y−, X, Θ, U)

13

faculty of economicsand business

latexsupport

Date May 28 2009

Bibliographic references

Bibliographic database.

Referenced entries automatically collected.

Formatting done by external ‘bibliography style’.

| Introduction |Examples |Editors |Documentation | 14

faculty of economicsand business

latexsupport

Date May 28 2009

\bibliographystyle{plain}

...

\begin{document}

...

In this respect the situation has not changed since the

\cite{adelmanadelman95} analysis of the

\cite{kleingoldberger55} model.

...

\bibliography{jjbib}

| Introduction |Examples |Editors |Documentation | 15

faculty of economicsand business

latexsupport

Date May 28 2009

@Article{adelmanadelman95,title = {The dynamic properties of the {K}lein-{G}oldberger model},author = {I. Adelman and F.L. Adelman},journal = {Econometrica},year = 1995,volume = 27}

@Book{kleingoldberger55,title = {An econometric model of the {U}nited {S}tates 1929--1952},author = {J.R. Klein and A.S. Goldberger},year = 1955,publisher = {North-Holland},address = {Amsterdam}}

| Introduction |Examples |Editors |Documentation | 16

In this respect the situation has not changed since the analysis in [1] of themodel in [2].

References

[1] I. Adelman and F.L. Adelman. The dynamic properties of the Klein-Goldberger model. Econometrica, 27, 1995.

[2] J.R. Klein and A.S. Goldberger. An econometric model of the United States1929–1952. North-Holland, Amsterdam, 1955.

17

faculty of economicsand business

latexsupport

Date May 28 2009

Default and alternate layout

Formatting defined in header or in external file: nodifferences in the body of the LaTEX source.

| Introduction |Examples |Editors |Documentation | 18

1 GRANT CEREMONY 1

1 Grant ceremony

On November 14, 1885, Senator & Mrs. Leland Stanford called together attheir San Francisco mansion the 24 prominent men who had been chosen asthe first trustees of The Leland Stanford Junior University. They handed tothe board the Founding Grant of the University, which they had executed threedays before. This document – with various amendments, legislative acts, andcourt decrees – remains as the University’s charter; see section 1.1.

1.1 Some mathematics

The econometric model is confronted with observed data and the parametersare estimated by econometric techniques:

Yt = G1(Y, X, Θ, U) (1)

To show how the system produces cyclical patterns, we partition the en-dogenous variables into y, a variable that represents the cycle, and the otherendogenous variables Y , and solve (1) for y assuming identifying conditions aresatisfied:

yt = g1(Y +, Yt, Y−, X, Θ, U)

We can characterize cycles in simultaneous equations models with the aboveequation. Impulses originate from changes in the exogenous variables ∆X andthe error terms U . The impulses are propagated by the system by means of thelagged endogenous variables Y −.

In this respect the situation has not changed since the analysis in [1] of themodel in [2].

References

[1] I. Adelman and F.L. Adelman. The dynamic properties of the Klein-Goldberger model. Econometrica, 27, 1995.

[2] J.R. Klein and A.S. Goldberger. An econometric model of the United States1929–1952. North-Holland, Amsterdam, 1955. 19

REFERENCES 1

1 Grant ceremony

On November 14, 1885, Senator & Mrs. Leland Stanford called together at theirSan Francisco mansion the 24 prominent men who had been chosen as the firsttrustees of The Leland Stanford Junior University. They handed to the board theFounding Grant of the University, which they had executed three days before.This document – with various amendments, legislative acts, and court decrees– remains as the University’s charter; see section 1.1.

1.1 Some mathematics

The econometric model is confronted with observed data and the parametersare estimated by econometric techniques:

Yt = G1(Y,X, Θ, U) (1.1)

To show how the system produces cyclical patterns, we partition the endoge-nous variables into y, a variable that represents the cycle, and the other en-dogenous variables Y, and solve (1.1) for y assuming identifying conditions aresatisfied:

yt = g1(Y+, Yt,Y−,X, Θ, U)

We can characterize cycles in simultaneous equations models with the aboveequation. Impulses originate from changes in the exogenous variables ∆X andthe error terms U. The impulses are propagated by the system by means of thelagged endogenous variables Y−.

In this respect the situation has not changed since the analysis in Adelman &Adelman (1995) of the model in Klein & Goldberger (1955).

References

Adelman, I. & Adelman, F. (1995). The dynamic properties of the Klein-Goldberger model. Econometrica, 27.

Klein, J. & Goldberger, A. (1955). An econometric model of the United States1929–1952. Amsterdam: North-Holland.

20

faculty of economicsand business

latexsupport

Date May 28 2009

Presentations

This presentation was done with a customized version of theLaTEX classfile for house style presentations.

There are various publicly available packages, but almosteverybody uses Beamer; see the next four slides.

| Introduction |Examples |Editors |Documentation | 21

Presentation TitlePresentation Subtitle

F. Author1 S. Another2

1Department of Computer ScienceUniversity of Somewhere

2Department of Theoretical PhilosophyUniversity of Elsewhere

Date / Occasion

22

Outline

1 IntroductionFirst Subsection NameSecond Subsection

23

Short Paper Title

Presentation TitlePresentation Subtitle

F. Author1 S. Another2

1Department of Computer ScienceUniversity of Somewhere

2Department of Theoretical PhilosophyUniversity of Elsewhere

Date / Occasion

24

Short Paper Title

Introduction

Second Subsection

Outline

1 IntroductionFirst Subsection NameSecond Subsection

25

faculty of economicsand business

latexsupport

Date May 28 2009

House style

• Presentations

• Letters

| Introduction |Examples |Editors |Documentation | 26

faculty of economicsand business

my researchgroup

Date 03.03.2009

Example LATEX presentation

A. UthorMarch 3, 2009

527

faculty of economics andbusiness

strategy finance andbusiness management

C.O. NtactpersonT +31 (0)50 363 xxxxF +31 (0)50 363 [email protected]

Landleven 59747 AD GroningenPO box 8009700 AV GroningenThe Netherlands

my.home.page.nl

KvK 1234567890BTW 0987654321Bank 12 34 00 00 00IBAN ABCDEFGHIJKLM

Confidential

Mega CorporationAll LATEX usersMain Street 19999 ZZ Somewhere

Handled by

myself

Date

September 15, 2008Our reference

1234Your reference

4321

Subject

LATEX house style

To all LATEX users,

Text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text.

Regards,

Zaphod OtherInterim career manager

1 › 1

This letter may not represent company policy.

Enclosures ›

Various

28

faculty of economicsand business

latexsupport

Date May 28 2009

Fancy examples

See TEX Showcase, http://www.tug.org/texshowcase/

| Introduction |Examples |Editors |Documentation | 29

30

faculty of economicsand business

latexsupport

Date May 28 2009

Editors and front-ends

| Introduction |Examples |Editors |Documentation | 31

faculty of economicsand business

latexsupport

Date May 28 2009

RUG TEX installation

Installer creates TeX Live 2008 menu under ‘Start /Programs’.

Includes TeXnicCenter as editor/front-end.

| Introduction |Examples |Editors |Documentation | 32

33

faculty of economicsand business

latexsupport

Date May 28 2009

TeXnicCenter

• Edit window, info panels, output window

• Lots of buttons, e.g. for entering math

• Help in fixing errors; next/previous error buttons

• Preview button calls up suitable previewer, and, ifpossible, matches up source and output

• Windows-only

| Introduction |Examples |Editors |Documentation | 34

35

36

37

38

faculty of economicsand business

latexsupport

Date May 28 2009

Texmaker

Also available for Linux and Mac OS X

| Introduction |Examples |Editors |Documentation | 39

40

41

faculty of economicsand business

latexsupport

Date May 28 2009

Emacs

Cross-platform.

With a sober GUI you can keep a previewer side-by-side.

| Introduction |Examples |Editors |Documentation | 42

43

44

faculty of economicsand business

latexsupport

Date May 28 2009

TeXShop

Mac OS X only.

Source-output synchronization done right.

| Introduction |Examples |Editors |Documentation | 45

46

47

48

faculty of economicsand business

latexsupport

Date May 28 2009

TeXworks

Cross-platform.

TeXShop-style source-output synchronization.

Not yet ready for primetime.

| Introduction |Examples |Editors |Documentation | 49

50

faculty of economicsand business

latexsupport

Date May 28 2009

LyX

Cross-platform.

WYSYWYM (What You See Is What You Mean); cf. ScientificWord.

| Introduction |Examples |Editors |Documentation | 51

52

faculty of economicsand business

latexsupport

Date May 28 2009

JabRef

For bibliographies.

Can access online resources.

Cross-platform (Java).

| Introduction |Examples |Editors |Documentation | 53

54

55

faculty of economicsand business

latexsupport

Date May 28 2009

TEX and LaTEX forsoftware documentation

| Introduction |Examples |Editors |Documentation | 56

faculty of economicsand business

latexsupport

Date May 28 2009

Advantages of markup formats

• Markup-based text formats are well-suited to VersionControl systems (CVS, SVN, Git)

• Fits in with source code management

• Efficient tracking of changes

• Easy collaboration

| Introduction |Examples |Editors |Documentation | 57

faculty of economicsand business

latexsupport

Date May 28 2009

Examples

• Python: reST (reStructuredText) source format; convertedto html and via LaTEX to pdf

• Samba: DocBook xml source format; converted to htmland via LaTEX to pdf

• Various GNU tools: Texinfo source format; texinfo candirectly produce info, html and pdf output

• TeX Live manual: LaTEX sources; converted directly to pdf.Html generated with tex4ht.

| Introduction |Examples |Editors |Documentation | 58