Presentation of Scientific Results

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

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to LaTeX. Paul Fodor Stony Brook University

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

An Introduction to L A TEX

Introduction to LATEX

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

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

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

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

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

Learning L A TEX. Patrick Lam

Introduzione a LaTex. Fabrizio Messina

Researcher Development Unit: Introduction to Latex

Latex Tutorial. CIS400 Senior Design 9/5/2013

Mikkel Madsen

Introduction to. Research Seminar System Analysis. Florian Kragulj

L A TEX From The Ground Up

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

Mikkel Madsen

A brief introduction to L A TEX

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Introduction to L A TEX

L A TEXInstallation and Introduction

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

Helen Cameron. A Brief Overview of LATEX

Assessments for CS students:

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

Dec. 27 th, 2010 University of Isfahan

A Short L A TEX Introduction

Introduction to L A TEX

Outline. A Sneak Peek

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

Introduction to L A TEX

LaTeX. Information Literacy II EN(IL2) Course

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

Basic L A TEX. what is LaTeX?

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh

How to get started in L A TEX

VERY VERY SHORT GUIDE TO LATEX

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

L A TEX for Psychological Researchers

An introduction to L A TEX for students

LaTeX is essentially a markup language

Introduction to L A TEX

Introduction to L A TEX

Introduction to L A TEX

Helen Cameron. A Brief Overview of LATEX

Getting started with Latex

Introduction to LATEX

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

A quick guide to L A TEX

A Brief Introduction to L A TEX

Workshop: A Simple Introduction to L A TEX

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Very Short Introduction to LaTeX

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

David Helmbold, October 2005, Revised October 2007

L A TEX for Psychological Researchers

MATLAB for the Sciences

An Introduction to L A TEX

An Introduction to L A TEX

Student Learning Service: Introduction to Latex

Lecture 3-Introduction to Latex (II)

Useful L A TEX Commands

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

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

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

Math 235: Introduction to LaTeX

Introduction to L A TEX beamer

LATEX Seminar Week 2 Jonathan Blair & Evan Ott. Document classes, basic math formatting, basic pictures, tables and matrices

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

Become a L A TEX Guru

Formatting with LaTeX

Using L A T E X for scientific writing

An Introduction to LATEX

Introduction to L A TEX

A Grasshopper s Approach to L A TEX

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

1 Obtaining LyX and L A TEX

Document Preparation Using L A TEX

CS 189 L A TEX and Linux: Displaying Text

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

LAT E X week 2: Basics for Writing a Document

Introduction to L A TEX Part II

L A TEX Workshop. Don Brower

Tools for Scientific Writing with LAT E X. Johan Carlson

Introduction to L A TEX Part II

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.

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

PHYS-4007/5007: Computational Physics

Introduction to LaTeX. Christoph Pickl

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

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

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

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

COMS 6100 Class note

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

Transcription:

Presentation of Scientific Results Marek Seliger Lecture and Seminar 2 nd lecture: Gnuplot and LaTeX how to prepare figures and equations physik.uni-graz.at/~sel/teaching/presentation Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 1/40

How to prepare figures program, method result plot with output Fortran C MATLAB Mathematica paper & pencil data set file.dat x y z...... analytical expression f(x)= Gnuplot Excel Origin Mathematica MATLAB screen figure PostScript (.ps) encapsulated ps (.eps) gif, tif, jpg, pdf (most common) Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 2/40

Gnuplot: An Introduction Gnuplot is a plotting device for analytical functions and for data Free for Linux and Windows www.gnuplot.info For Windows download binary: gp420win32.zip There you also find lots of examples screenshots tutorials Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 3/40

Features Easy to use Youcan work with it and also produce figures for presentations 2D plots 3D plots Contour plots Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 4/40

Basic Commands: An Example gnuplot set term post eps color solid set output 'figure.eps' set title 'Short Laser Puls' set xlabel 'Time [fs]' set ylabel 'Amplitude [arb. units]' set sample 1000 set size 0.6,0.6 set xrange [-pi:pi] plot 'data.txt' with xyerror title 'Experiment \,cos(x*10)*exp(-x*x) title 'Amplitude'\,exp(-x*x) title 'Envelope' quit data.txt: -3 0 0.3 0.1-2 0.05 0.3 0.1-1 -0.42 0.3 0.1 0 0.8 0.3 0.1 1-0.4 0.3 0.1 2 0 0.3 0.1 3 0 0.3 0.1 Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 5/40

The Fine Art of Figures: 3D Contour Plots set pm3d unset surface set palette model RGB rgbformulae -21,-35,-23 set palette model HSV rgbformulae 3,2,2 plot sin( sqrt(x*x+y*y) ) / sqrt(x*x+y*y) Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 6/40

LaTeX: An Introduction (based on slides by Troy D. Milner and Simon Cuce) TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70 s A revolution in typesetting Latex is an extension of TeX Macro packages to make TeX easier to use Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 7/40

Latex vs. Word Processors High typeset quality Easy to include math formulas Source file format is platform independent Latex implementations exists for all platforms Latex is free De facto standard for scientific publishing Very few bugs Good for large documents Can run even on 386 PC Not very easy to learn Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 8/40

How to install LaTeX 1. Package MikTeX: www.miktex.org 2. Ghostscript and GSview: www.cs.wisc.edu/~ghost 3. Acrobat Reader: www.adobe.com/products/acrobat/readstep2.html 4. Windows Editor TEXnicCenter: www.toolscenter.org WinEdit: www.winedt.com LyX: www.lyx.org Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 9/40

Example of Latex document \documentclass{article} \begin{document} Hello world! \end{document} Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 10/40

Example of Latex document \documentclass{article} \title{simple Example} \author{max Mustermann} \date{march 2007} \begin{document} \maketitle Hello world! \end{document} Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 11/40

Creating Latex Files Your Latex File (a text file) Latex compile x3 Your Bibtex File Bibtex compile x2 Latex compile x3 Device independent output.dvi dvips compile x1 Your Postscript File Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 12/40

Latex File Structure Document Class Predefined Formats (article, report, book,..). Packages used Added Functionality (graphics, reference style,...). Main Body Text and Bibliography References. Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 13/40

The Basics Document Class \documentclass[options]{class} options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,... class = article, report, book,... Packages \usepackage{package name} epsfig = insert PS pictures into the document fancyhdr = easy definition of footer and header Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 14/40

Body of Text Start with \begin{document} End with \end{document} Typesetting Text \\or \newline and \newpage Quotations Bold \textbf{ } or \bf Italics \emph{ } or \textit{ } or \it Underline \underline{ } or \ul Including Multiple Files \input{filename.tex} Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 15/40

Format Sections \section{ } \subsection{ } = 1. Latex is Great = 1.1 Why Latex is Great \subsubsection{ } = 1.1.1 Reason One \appendix - changes numbering scheme \chapter{ } - To be used with book and report document classes Titles, Authors and others \title{ } \author{ } \footnote{ } Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 16/40

Format Contd. \maketitle - Display Title and Author \tableofcontents - generates TOC \listoftables - generates LOT \listoffigures - generates LOF Labels \label{marker} - Marker in document. \pageref{marker} - Displays page no. of marker. \ref{marker} - Displays section location of marker. Itemize Use either enumerate, itemize or description. Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 17/40

Lists Source \begin{itemize} \item Apple \item Orange \end{itemize} Result Apple Orange Enumerate instead of itemize gives a numbered list Lists can be nested Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 18/40

Environment Something between \begin{name} \end{name} Many command, for example \bf affect the text until the end of environment Environments can be nested Examples: itemize, center, abstract Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 19/40

Group Group is some text between { and } Many commands work until the end of the group Code put {one word \bf in bold} here Result put one word in bold here Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 20/40

Alignment Environments: center, flushleft, flushright Example \begin{flushright} Right aligned \end{flushright} Result Right aligned Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 21/40

Font size \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 22/40

Tabular Columns \begin{tabular}{ } \end{tabular} Two Columns Rows & - [ampersand] Split text into columns \\ - End a row \hline - Draw line under row e.g. 123123 & 34.00\\ \hline l = automatically adjust size, left justify r = automatically adjust size, right justify p = set size e.g p{4.7cm} c = centre text Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 23/40

Example of table \begin{tabular}{ l r c } \hline Date & Price & Size \\ \hline Yesterday & 5 & big \\ \hline Today & 3 & small \\ \hline \end{tabular} Date Price Size Yesterday 5 Big Today 3 Small Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 24/40

Images Use epsfig package \usepackage{epsfig} Including images in main body \epsfig{file=filename.eps, width=10cm, height=9cm, angle=90} Creating EPS - Use xv and/or xfig MS Power Point, print as PostScript (PS) Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 25/40

Floating Objects Floating objects can stop splitting of tables and images over pages. \begin{figure}[options] \end{figure} \begin{table}[options] \end{table} use \clearpage to flush all floating objects They will now appear in the List of Figures (LOF) and List of Tables (LOT). Options (recommendations) h = place table here t = place at top of page b = place at bottom of page Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 26/40

Example of floating figure \begin{figure}[ht] \epsfig{file=uni.eps, height=5cm} \caption{university of Graz} \label{uni} \end{figure} Figure \ref{uni}shows... Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 27/40

Typesetting Math Mathematical text is placed between $ which is normally displayed inline like $f(x)=y$ To display formulas as an extra equation use $$ F=m a $$ For numbered equations use \begin{equation} F=m a \end{equation} Math mode uses italics and no spaces between words Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 28/40

Useful Math Commands Greek letters $\pi$ for lowercase, $\Pi$ for uppercase Fractions $\frac{numerator}{denominator}$ Inline: My equation is $\alpha = \frac{n}{2} \times \xi$. Square roots $\sqrt{x}$ Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 29/40

Useful Math Commands Superscripts and Subscripts $x^2$ $x_2$ Use curly braces to group items together $x_{i_2}$ or $x_{min}$ Can have a superscript and a subscript on the same character $x_i^3$ Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 30/40

Useful Math Commands Limits and Integrals $$ \int \lim_{x \to \infty} 3x $$ $$ \int_0^2 x\, dx $$ The \, gives a space between x and dx $$ \sum_{i=1}^n i = \frac{n(n+1)}{2} $$ Displaying special characters $\ mathbb{r} $ Trignometric functions $\sin$ or $\cos$ Math inequalities $\le$ or $\ge$ Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 31/40

Using Parenthesis The size of the parenthesis should match the size of the mathematical expression. $O(\frac{1}{n})$ $O\left(\frac{1}{n}\right)$ 1 O( ) n O 1 n $\left\{\frac{1}{n}\right\}$ { is a special symbol: Use \{ 1 n Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 32/40

An Example \begin{equation} x = \left\{ \begin{array}{lr} y & \mbox{if $y > 0$} \\ z+y & \mbox{otherwise} \end{array} \right. \end{equation} Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 33/40

Some Examples $$ y=\frac{a^3+2c_{x}} {1+\sqrt{b_{x}}} $$ $$ Q=\sum_{i=1}^{j} \int_{\mu}^{\infty} f(x_{j}) dx $$ $$ \Psi = \oint_{- \infty}^{\infty} f_{xy} ({\frac{\partial Qx}{\partial Qy}}) ^{\Im_{\pi}^ \prime} $$ Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 34/40

Other Important Characters Comments Use % at the beginning of any lines you want to comment out Creating a space between two characters \, Creating a new line \newline Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 35/40

Bibliography by hand \begin{thebibliography}{} \bibitem[mus07]{mm07} M. Muster, and M. M\ uller, {\sl My first paper}, Phys. Rev. A {\bf 55}, 2145 (2007). \end{thebibliography} [12] M. Muster, and M. Müller, My first paper, Phys. Rev. A 55, 2145 (2007). Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 36/40

Bibliography using Bibtex Bibliography information is stored in a *.bib file, in Bibtex format. Include chicago package \usepackage{chicago} Set referencing style \bibliographystyle{chicago} Create reference section by \bibliography{bibfile with no extension} Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 37/40

Bibliography using Bibtex @book{come95, author= D. E. Comer, title={internetworking with TCP/IP: Principles, Protocols and Architecture}, publisher= Prentice-Hall, year=1995, volume=1, edition= Third } Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 38/40

Bibliography contd. Citing references in text \cite{cuc98} = [12] or (Cuce 1998) \citen{cru98} = Crud (1998) \shortcite{tom98} = (Tom, et. al. 1998) Creating Bibtex Files Use Emacs with extensions. or copy Bibtex entries from bibliography database. Use JabRef as your personal data base Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 39/40

Thank You for Your Attention! Now you know: how to make simple figures how to install LaTeX how to produce a LaTeX document Next time (April 3 rd ): How to prepare a scientific talk the central point of this lecture: don t miss that one Marek Seliger Presentation of Scientific Results, Gnuplot and LaTeX page 40/40