Tools for Scientific Writing with LAT E X. Johan Carlson

Similar documents
Tools for Scientific Writing with LAT E X. Johan Carlson

(Yet Another) Introduction to L A TEX 2ε (V3)

Learn LaTeX in 30 Minutes. A. LOTFI School of Science and Technology Nottingham Trent University

Introduction to LaTeX. Paul Fodor Stony Brook University

CTAN lion drawing by Duane Bibby \LaTeX and \BibTeX. HJ Hoogeboom 19 april 2013 Bachelorklas

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

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

Introduction to L A TEX

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

An Introduction to LATEX

Introduction to LATEX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

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

Indian T E X Users Group

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

David Helmbold, October 2005, Revised October 2007

MATLAB for the Sciences

Math 235: Introduction to LaTeX

Become a L A TEX Guru

BibTeX / BibLaTeX. An introduction

L A TEX-cursus 5th e session: thesis in L A TEX

L A TEXcourse. Carmen Alonso Montes. 30th May-2nd June, 2016

T E X and L A T E X Document preparation tools

Formatting with LaTeX

Latex Tutorial. CIS400 Senior Design 9/5/2013

1. The Joy of TEX. Check out this example!

VERY VERY SHORT GUIDE TO LATEX

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Basic L A TEX. what is LaTeX?

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

Manuscript Title. with Forced Linebreak. Ann Author a) and Second Author b) Authors institution and/or address This line break forced with \\

Introduction to LATEX

L A T E X FOSSEE. Department of Aerospace Engineering IIT Bombay. FOSSEE (IIT Bombay) LAT E X 1 / 58

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

Introduction to L A TEX Part II

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Pimp your thesis: a minimal introduction to L A T E X.

Introduction to L A TEX Part II

Assessments for CS students:

Effective Programming Practices for Economists

Manuscript Title: with Forced Linebreak

Using the Penn Biostat LaTeX Templates

Introduction to L A TEX

Note for the LaT E X version of this Document

Mikkel Madsen

RefWorks 2.0 and LaTex Version 1/2016

Typesetting with TEX

An Introduction to L A TEX

Guide to L A TEX. Daniel M. Kane

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

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

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

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

Report Title. Author Name. January 15, Abstract

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

Abstract A quick intro by examples to the document preparation language L A TEX.

Learn how to [learn] LATEX

Instructions for Typesetting Manuscripts Using L A TEX

Introduction to LAT E X

An introduction to LaTeX

Workshop P. Stallinga 16-X-2012

Bibliographies in L A T E X

How to manage references and use your team bibliography database?

Appendix B: Latex survival guide

Getting Started with L A T E X for a Technical Document or Thesis

LaTeX and Turing Machines. CS254 Chris Pollett Aug. 30, 2006.

CSCM10 Research Methodology A Taster of L A TEX

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

GENERAL INFORMATION INSTRUCTIONS FOR MANUSCRIPT SUBMISSION

1 Obtaining LyX and L A TEX

Guidelines for ETNA manuscripts 1

arxiv: v1 [cs.oh] 12 Sep 2017

Introduction to LaTeX. Christoph Pickl

The KBibTeX Handbook. Yuri Chornoivan

A Grasshopper s Approach to L A TEX

A Quick L A TEX Primer

An introduction to TeX. And other options for producing documents containing mathematics

REFWORKS 2.0 GETTING STARTED

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

A brief introduction to L A TEX

Introduction to L A TEX

Sample L A TEX Style Guide for European Journal of Pure and Applied Mathematics

The Joys of LAT E X. Vadim Ponomarenko. introducing the world s standard typesetting language.

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

Introduction to BibL a TEX IFI master s week

Learning LaTeX: The Basics

LaTeX: Scientific Document Writing

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

Citations and Bibliographies

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

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor

An Interactive Introduction to L A TEX

Introduction to MCS 220 and L A TEX

CSCM10 Research Methodology A Taster of L A TEX

Workshop: A Simple Introduction to L A TEX

Explanatory note on the LaTeX thesis template. Basic knowledge of using LaTeX

Introduction to Scientific Typesetting Lesson 5: The Structure of a Document

L A TEX for Psychological Researchers

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

Transcription:

Tools for Scientific Writing with LAT E X Johan Carlson Luleå University of Technology Dept. of CSEE EISLAB Email: johanc@csee.ltu.se Tools for Scientific Writing Lecture no. 2 1

Last lecture What is L A T E X? Setting up a working environment. A first document. Sectioning of a document. Labels and references. Placing figures. Tools for Scientific Writing Lecture no. 2 2

Today s menu Bibliography references \bibitem The BIBTEX database system. Writing equations. Simple equations. Useful packages. Tools for Scientific Writing Lecture no. 2 3

Bilbliography references Citations can be added in two ways: 1. \bibitem Manually add bibliography lists at end of a document. Manually typset the list. 2. BibTeX databases. All references are stored in a database. The list is automatically generated and typset according to a BibTeX style file (.bst). Tools for Scientific Writing Lecture no. 2 4

The \bibitem method The thebibliography environment defines a list of references, a \bibitem list \begin{thebibliography}{widest_entry} \bibitem[label1]{cite_key1} Bibliographic information \bibitem[label2]{cite_key2} Bibliographic information... \end{thebibliography} The widest entry is a text specifying the largest number in the bibliography list. The label is optional, but specifiec how the list items are labeled. Default is a number in square brackets [1]. Tools for Scientific Writing Lecture no. 2 5

The \bibitem method (continued...) An example of a \bibitem list \begin{thebibliography}{99} \bibitem{doe01} J.\ Doe, "A journal paper," \textit{the Journal}, vol.\ 78, no.\ 8, pp.\ 1155--1157, 2001. \bibitem{doe02} J.\ Doe, "Another journal paper," \textit{the Journal}, vol.\ 79, no.\ 1, pp.\ 1--5, 2002. \end{thebibliography} Tools for Scientific Writing Lecture no. 2 6

BibTeX databases With \bibitem lists, the references have to be typeset manually. Since the style is different for different conferences and journals, this is not very effective. A better way of managing bibliography references is the BibTeX database system. All references are stored in a database file, and the reference list is created automatically, and typset according to a specified template. Tools for Scientific Writing Lecture no. 2 7

The BibTeX database The entries of the BibTeX file (a text file) consist of three parts: An entry type, e.g.: book, article or inproceedings. A user chosen keyword identifying the publication. If you want to cite a publication, the cite key of the \cite command should be identical to this keyword. A series of fields consisting of a field identifier and its data. Tools for Scientific Writing Lecture no. 2 8

A BibTeX entry Many editors (e.g. WinEdt, Kile, and Emacs) have built-in functions for BibTeX entries. Also, see the book (reference on course web page). This is an example of an article entry: @Article{BSF01, author = {M. Burns and H. Simpson and N. Flanders}, title = {Life in Springfield}, journal = {Fiction}, year = {2001}, volume = {1}, number = {1}, pages = {1--10}} Tools for Scientific Writing Lecture no. 2 9

Citing a reference To cite a reference, use the \cite{key} command, where key is the reference key specified in either the BibTeX database entry or in the \bibitem list entry. Tools for Scientific Writing Lecture no. 2 10

Using BibTeX in your document \documentclass[a4paper,titlepage,11pt]{article} \usepackage{...}... \bibliographystyle{plain}... \begin{document} Life in Springfield is described in \cite{bsf01}...... \bibliography{mybib_db} \end{document} Tools for Scientific Writing Lecture no. 2 11

Bibliography styles There are numerous style files available also for BibTeX formatting. Some examples are: plain Entries sorted alphabetically with numbered labels. unsrt Same as plain, but unsorted. alpha Standard BibTeX style. Labels are formed from author s name and publication year. ieeetr IEEE Transaction style references. Tools for Scientific Writing Lecture no. 2 12

How to typeset BibTeX Once you have your database file and you wish to generate a bibliography list: Compile your document with L A T E X. Run BibTeX on your document (.aux file). Run L A T E X again, twice, to include the bibliography in the document and get the correct citations in the text. Tools for Scientific Writing Lecture no. 2 13

Organizing your BibTeX database Most L A T E X adapted editors can provide templates for the BibTeX entries, but how do I keep track of all reference keys? Is there a clever naming convention to use? Type in all your database entries in your file, and give them a unique reference key (temporary). Create a document that uses the alpha bibliography style that cites all references. The alpha bibliography style automatically labels the list items with a key constructed from the authors names and the publication year. Change all reference keys to the same as this label. In this way you can print an alphabetical listing of your BibTeX database, with the reference keys given in the margin. Tools for Scientific Writing Lecture no. 2 14

Printing your BibTeX database \documentclass[a4paper,titlepage,11pt]{article} \usepackage{a4wide} \bibliographystyle{alpha} \begin{document} \nocite{*} \bibliography{my_publ} \end{document} Tools for Scientific Writing Lecture no. 2 15

Equations Simple one-line equations are defined with the equation environment. Refer to them with the \ref{eqlabel} command. Eq. (1) is given by N n=1 \begin{equation} \sum_{n=1}^{n} \frac{1}{n} x^{2}. \label{eq:myfirsteq} \end{equation} 1 n x2. (1) Tools for Scientific Writing Lecture no. 2 16

Equation environments (continued...) A slightly more advanced example { x 1 x 2, x 1 x 2 f(x 1, x 2 ) = x 2 1 + x 2 (2) 2, x 1 > x 2 \begin{equation} f(x_1, x_2) = \left\lbrace \begin{array}{ll} x_1 - x_2, & x_1 \leq x_2\\ x_1^2 + x_2^2, & x_1 > x_2 \end{array}\right. \end{equation} Tools for Scientific Writing Lecture no. 2 17

Multiline equation environments The simplest one is eqnarray. Columns are separated with & and newline is given by \\. \begin{eqnarray} x_1 - x_2 & = & A \label{eq:line1}\\ x_1 + 2x_2 & = & B \label{eq:line2} \end{eqnarray} x 1 x 2 = A (3) x 1 + 2x 2 = B (4) Tools for Scientific Writing Lecture no. 2 18

Other multiline equation environments The amsmath package contains several multiline equation environments, with different row alignment properties. The * means unnumbered equation. multline and multline* split and split* gather and gather* See book for details. Tools for Scientific Writing Lecture no. 2 19

Inline math It is also possible to write inline math, that is, inside the text. Let us define f(x 1, x 2 ) = x 2 1 + x 2 2, where x 1 = 1... 5 and x 2 = π... π. Let us define $f(x_1,x_2)=x_1^2+x_2^2$, where $x_1=1\ldots 5$ and $x_2=-\pi \ldots \pi$. Tools for Scientific Writing Lecture no. 2 20

Tools for math writing Writing math in L A T E X can be a tedious task. Most L A T E X-friendly editors have menus or buttons that help adding mathematical symbols or environments. There are also graphical tools to draw equation and then export the L A T E X code. On a Windows system, Scientific Workplace can be used for this, although it might be a bit too advanced for most purposes. Tools for Scientific Writing Lecture no. 2 21

Homework assignments Generate a BibTeX database with your own publications and a file that prints the list with the alpha style. Write a few equations of your choice, label them and add references to them in the text. Look on the web for equation editors that can help generate the L A T E X code for your math stuff. Start thinking about a suitable final project. What type of document are you prepared to attack and convert to L A T E X (or write a new, if you don t have a good one)? Tools for Scientific Writing Lecture no. 2 22

Next lecture Tables and matrices. Presentation in L A T E X. Tweaking the layout. Assigning final projects. Tools for Scientific Writing Lecture no. 2 23