Functions and text files
|
|
- Basil McCoy
- 5 years ago
- Views:
Transcription
1 Functions and text files Francesco Vespignani DiSCoF Università degli Studi di Trento. December 3, 2009
2 Today Functions and Scripts Latex Strings Text Files Practice
3 Function and Scripts
4 Finalizing a script Once you have solved a problem you can save it in a.m file and generalize the results. Where to save it? In the current directory or in the matlab path. The matlab path is simply a list or directories where to look for user-defined scripts and functions.
5 Types of scripts Matlab has three ways to create new commands: scripts functions mex-files
6 Scripts and functions Scripts are just a sequence of commands that run in the same workspace: all variables defined within the caller workspace may be changed, every variables defined by the script are visible in the caller workspace. Functions strictly define which variables of the caller are visible within the script (input arguments) and which one are returned back to the caller workspace output arguments. Moreover functions are compiled the first time that are called, while scripts are line-by-line interpreted as if they are typed on a terminal. Advantages of functions: it guarantees information encapsulation. Disadvantages of functions: when a large amount of data is passed as an argument a copy is created in memory and this can reduce performances.
7 Function s syntax The difference between scripts and functions depends on the first line of the.m file Syntax of a function: function [out1, out2,...] = MyFunctionName ( in1, in2,...) %MYFUNCTIONNAME makes something interesting % MYFUNCTIONNAME(a, b) returns some values... % function, argument, output description... % % example... %Written by Francesco Vespignani, version 0.98, date January 20, Function body... out1 = ciao... end A function must be stored in a file with the same name as the function name (in case of disagreement the files name dominates).
8 Global variables The function workspace is distinct from the caller s workspace. If you need you can create global variables, that are visible from within every function that has the declaration. Globals are useful to avoid a copy of a large data set at every function call or to share values between functions. Other programming languages (C) have a argument passing by address possibility. Example from Mastering matlab: function mytic global mytictoc mytictoc = clock; function mytoc global mytictoc disp(etime, clock,mytictoc);
9 Arguments A function can have a variable number of input and output arguments. Function behavior can be programmatically changed as a function of the number and types or arguments. For these purposes there are special variables: nargin: number or input argument in the actual call to the function nargout: number or output argument in the actual call to the function varargin: cell array containing the input argument values varargout: cell array containing the output argument values
10 Arguments Cell arrays are similar to arrays but can contain different types ordata. You can access to the elements by using Braces instead of Square brackets: varargout{12} In order to use varargin, varargout this must be explicitly declared in the function statement. Otherwise a function called with too much input or output arguments rises an error. Good practice is to do argument checking to prevent unexpected results. With if... then... else... end construct you can check if the arguments are of the right datatype or if numbers are they are within a specific range of values (e.g. positive, even...). A function typically exits at the end of the script. You can return to the caller execution stream with the return or with the error command.
11 Practice We can try to generate a function that loads a file with a bw snodgrass bmp image, transforms it in a rgb or indexed image and changes foreground and background colors. Let s make some input and output optional (returning the image or writing on a new file, changing only fg or both...) Provide an help.
12 Latex
13 A brief history of L A TEX L A TEXis one of the evolution of TEX, written by Donald Ervin Knuth, Stanford University starting from 1978 (see the wikipedia entry: TEX). TEXwas primary intended for typesetting mathematical formulas, given that new press technology were very poor compared to classical typographical techniques. i A B = P r ˆn da = P r dv. (1) Further examples of basics mathematical typesetting by Harvey Gould at
14 L A TEXrepositories and documentation Resources: The Tex users community web page : the CTAN archive: A Windows distribution: A text editor with syntax highlights and buttons for running the program may be useful (Emacs, WinEdt, TeXnic,...) Manuals and tutorial: There are many on the web... The not so short introduction to LaTeX learning by example (many authors public their source.tex files...)
15 How does L A TEXwork? It is a markup language, similar to html and xml. It is somewhat a script mixing data with tags (preceded by a backslash) that are commands that tell to the program how to render a particular type of text or how to use some data to create graphic objects in the output file. The output file is a vector graphic data file: dvi: (device independent) a typical latex generated format postscript: a language originally developed for interfacing in the same way to different printers and plotters (see Ghostscript, Ghostview and GSview). pdf: the file format created for Acrobat Reader by Adobe svg: scalable vector graphics an xml format
16 Halloworld in L A TEX Write in a file prova.tex the following: \documentclass{article} \begin{document} halloworld! \end{document} Then run from a command line >pdflatex prova.tex. A note about Miktex installation on windows (installing the full distribution with most of the packages takes time and disk space). On-the-fly package installation is possible (if allowed by the network firewall settings).
17 L A TEXDocument basic structure The structure of a L A TEXdocument: \documentclass{article} Preamble containing style-packages, definitions, macros \begin{document} % % Body of the document with sections, tables, figures etc. % \end{document}
18 learn L A TEX See simple examples from the web: download small2e.tex sample2e.tex Read the html help (cs.wlu.edu/~necaise/refs/latex2e/ or a local one) to understand how to make paragraphs, sectioning, environments (equation, table, figure, tabular), cross-references within the document. Figure numbering, section pages and bibliographic references are automatically managed. Complete refresh (e.g. of table of contents) may require to run pdflatex multiple times, since the output creation is strictly sequential. BibTeX is a different TEXvariant to print references on different formats (apastyle...).
19 Packages Basic latex allow to do relatively few thinks. It evolves by packages provided by the developers community. Some very useful commonly used packages: geometry: to personalize page borders, spaces etc. fancyhdr: full left-right alternating customization of page headers savetrees: basic latex has a elegant large borders page layout, however trees are important babel: support for many languages inputenc: defines the encoding of special characters (accents, ümlaut...) graphicx: to include vector and raster images
20 modern L A TEXexamples Making slides or posters: Beamer! beamer Beamer User Guide a beamer quickstart beamerposter (or sciposter) Drawings, complete control of arrows, overlays etc.: TiKz TikZ and PGF manual Examples web page L A TEXfor linguistics: Latex4Ling If you want to write a real book in L A TEXsee the class memoir: memoir
21 L A TEX I ll provide some examples from my own works on the website. In particular there are some basic document classes: letter article report book L A TEXis not easy to learn (steep beginners learning curve) but after some experience you can adapt many examples you find in the web to your purposes. Unlike microsoft word or other similar application it is easy to integrate into a script and execute it automatically, in order to extend graphic capability of a program (as matlab).
22 Install and configure MikTeX and TeXnic Two problems: access to the network installing software (user privileges) We are not directly connected to the web, we need to manually configure the proxy in the applications that need a web connection: address: proxy.unitn.it port: 3128
23 Why we need that Opensource languages and applications, but also Matlab sometimes need to download and install additional components (packages). Packages are bundles of scripts that provide additional features, typically contributed by users and not only by the application core development team. Package differs from simple scripts in that they follows specific principles that minimize interference with the core functions and with the other packages and scripts. Packages may depend on other (user-contributed) packages, this give rise to a somewhat complex hierarchy. Packages needs to be aligned in that some package needs a specific version of the environment or of other packages. Why not installing all the packages? They are a lot (more popular an application is, more packages, you will probably never use, exists).
24 How to install packages, manually Typically packages can be installed either manually or automatically. Manual installation requires the download of the package from some web site, in the form of a tarball or a zipped bunch of files. The tarball has to expanded into a specific place within the directory tree of the application. After that, for most applications, some command has to be run in order to refresh an internal list of the available packages.
25 How to install packages, automatically Usually applications such as MikTex have an automatic package download and installation system. This is available only for popular packages that are added in the software distribution. (Some new or experimental packages may not be available in the distribution and this is the only situation where manual installation is mandatory). Distributions are usually stored on a large number of computers that are kept aligned with the main distribution source (Mirror sites). Automatic installation guarantees that the right package version for the installed distribution/version is installed.
26 Knowing the structure of the application On windows usually installing and configuring an application involves many system directories, on unix-style applications (latex, R, matlab) usually everything is installed in the application directory that may have a rather complex structure. Typically what we need to know of this complex structure is where the executable files are and where the add-on packages and documentation are placed.
27 Let s see the MikTex hierarchy executables: MikTex X.Y/miktex/bin latex packages: MikTex X.Y/tex/latex packages documentation: MikTex X.Y/doc/latex
28 Practice Configuring MikTex for network packages installation. Telling TeXnic (or other editors) where the latex executables are. Practice with on-the fly package download and installation. Hoping that now the questionario and other latex examples works...
29 Strings
30 Text processing in matlab Strings in matlab are just arrays of characters. In other scripting languages there are more sophisticated text processing tools. However there are specialized functions for strings: let s see doc strings. For today s practice see in particular strtok for segmenting a string. Advanced string functions are regular expressions (see regexp).
31 Text Files
32 Files There are specific functions in matlab for reading and writing to files (similar to C). Basic concepts about files: special commands allow to open and close files. This guarantees that during file processing other applications does not change the file content. file access is typically sequential (read or write a piece after the other) or random (using special function that places reading or writing operation at specific points of the file). files can contain text or binary data. The open instruction can specify the type of file. Text files automatically recognize end-of-line and other special characters. When opening a text file you may specify the type of encoding (accent letters, chinese characters...).
33 Files For reading and writing on files matlab has a full set of functions (see halp iofun) at different level: dlmread, dlmwrite read and write entire delimited files (as.csv tables), does not need open/close functions. fprintf, fscanf read and write text files using c-style formatting fgets fgets gets line-by-line from a text file fread, fwrite low level io functions for binary data The same instructions can be used for virual files that can be pipeline communication with peripherals, processes or serial and parallel ports.
34 Practice
35 Today and homework practice Take a text (atext.txt) from a text file and format it using L A TEX. After this try to generate from matlab a number of pdf copies of the same text replacing at random words with space for completion. Completion texts were used in the fifties as a psycholinguistic tool to evaluate text readability (application to propaganda during the cold war). The idea is to replace words and see it the people completes with the right words. Our scripts should be able to produce many versions of the same text with different random words substituted with spaces.
36 A word about randomization Matlab has a function rand that produces a pseudo-casual sequence of number uniformly distributed between zero and 1. Pay attention that every time you launch rand after opening matlab the exact same sequence is returned. This is done so the same sequence can be produced when testing an algorithm. To change the sequence you have to change the seed that is an initial value of the random algorithm that determines causally the sequence. To set a random seed as a function of the current date and time you can run: rand( twister,sum(100*clock)). See the help page for further information.
Functions and text files
Functions and text files Francesco Vespignani DiSCoF Università degli Studi di Trento. francesco.vespignani@gmail.com December 3, 2009 Today Functions and Scripts Latex Strings Text Files Practice Function
More informationLatex Tutorial. CIS400 Senior Design 9/5/2013
1 Latex Tutorial CIS400 Senior Design 9/5/2013 2 Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling PDF documents from LaTeX Basic document
More informationAn Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014
An Introduction to Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows Compiling
More informationL A TEX for psychological researchers
Kahoot! L A TEX for psychological researchers Lecture 1: Introducton Sacha Epskamp University of Amsterdam Department of Psychological Methods 27-01-2015 Contact Details Workshop website: http://sachaepskamp.com/latex-workshop
More informationGetting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013
Getting ready for L A TEX Alexis Dimitriadis Version: March 28, 2013 LaTeX is a great system, but it takes some work to learn. Unfortunately, it also takes some work to set up the necessary software. This
More informationIntroduction to Scientific Typesetting Lesson 1: Getting Started
Introduction to Scientific Typesetting Lesson 1: Getting Started Ryan Higginbottom January 5, 2012 1 Our First The Structure of a L A T E X Our First L A T E X The Structure of a L A T E X 2 The Weaknesses
More informationMy Full-Length Title
My Full-Length Title X. Author1 1 Y. Author2 2 1 Department of Mathematics University of Author1 2 Department of Engineering University of Author2 Texas A&M University pre-reu program, 2012 Author1, Author2
More informationComputational Methods of Scientific Programming
12.010 Computational Methods of Scientific Programming Lecturers Thomas A Herring, Jim Elliot, Chris Hill, Summary of Today s class We will look at Matlab: History Getting help Variable definitions and
More informationAn Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009
An Introduction to Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009 Today's Outline Introducing TeX/LaTeX Benefits and potential difficulties Installation and use on Unix/Mac/Windows
More informationWYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems
WYSIWYG Systems CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html WYSIWYG
More informationCOMP496/901: Academic Presentation and Writing Skills Using LaTeX
COMP496/901: Academic Presentation and Writing Skills Using LaTeX Robert Dale Robert.Dale@mq.edu.au 1 Acknowledgements These slides borrow heavily from similar material by: Jan-Philipp Söhn David Squire
More informationCSCM10 Research Methodology A Taster of L A TEX
CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html November 10, 2016 CSCM10 Lecture 4, 11/2/16:
More informationIntroduction to LaTeX. Paul Fodor Stony Brook University
Introduction to LaTeX Paul Fodor Stony Brook University http://www.cs.stonybrook.edu/~cse215 LaTeX TeX is essentially a Markup Language (like HTML, CSS, JSON, XML and RTF) TeX written by Donald Knuth in
More informationVERY VERY SHORT GUIDE TO LATEX
- a System VERY VERY SHORT GUIDE TO LATEX School of Mathematics September 2017 - a System Advantages... Disadvantages... The Basics THE BASIC IDEA A word processor allows the user to design the document
More informationCSCM10 Research Methodology A Taster of L A TEX
CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html October 22, 2017 WYSIWYG Systems WYSIWYG
More informationWYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.
WYSIWYG Systems CSCM10 Research Methodology A Taster of L A TEX Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ computerscienceprojectresearchmethods/current/index.html WYSIWYG = What You See
More informationLatex Manually Set Font Size For Tables
Latex Manually Set Font Size For Tables I would like to set my table to font 10pt. Here is my coding /begin(table)(h) /resizebox(/textwidth)(!)(% /begin(tabular)(/l/l/l/l/l/) /hline & A & B & C & D //
More informationGetting started with Latex
Getting started with Latex Robert G. Niemeyer University of New Mexico, Albuquerque October 15, 2012 What is Latex? Latex is a mathematical typesetting language. Essentially, when you are using Latex to
More informationTeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven
TeXnicCenter v1 Beta 7.01 Frank Van Puyvlde ICT for Research K.U.Leuven March 2008 Contents 1 TeXnicCenter Installation 2 1.1 Installing TeXnicCenter........................... 2 1.2 TeXnicCenter and a
More informationFormatting with LaTeX
Formatting with LaTeX Zuyuan Wang School of Mechanical Engineering Purdue University wang1707@purdue.edu June 23, 2016 Seminar @ SURF 2016 About the SURF GAs Formatting with LaTeX (02/35) 06/23/2016 Purdue
More informationThe basics of LaTeX. Cédric Buron. April 25, 2016
The basics of LaTeX Cédric Buron April 25, 2016 Hello fellows! Today, I introduce a very important language in my PhD, L A TEX(what a logo!). In this article, I m going to introduce very quickly the purpose,
More informationLiterate Programming
Literate Programming Andreas Klein March 11, 2009 Contents 1 Introduction to Literate Programming 1 2 Pweb Desgin goals 2 3 Pweb Manual 2 3.1 Structure of a WEB-Document................... 2 3.2 Text sections.............................
More informationIntroduction to L A TEX for MCS-236
Introduction to L A TEX for MCS-236 Max Hailperin, based on a version by Tom LoFaro September 14, 2011 1 Why L A TEX? L A TEX is a very strange document formatting system. Actually, it is a combination
More informationIntroduction to L A TEX
Introduction to L A TEX Aravind Ranganathan Graduate Assistant Engineering Library University of Cincinnati r.aravind@gmail.com Workshop Objectives Introduction to L A TEX Hands-on Hello World! Basic Document
More informationUsing LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick
Using LaTex and BibTex to Write Academic Documents Ligang He Department of Computer Science University of Warwick Introduction In LaTex, a markup language is used to describe document structure and format,
More informationEffective Programming Practices for Economists
Effective Programming Practices for Economists 4. A L A T E X primer Hans-Martin von Gaudecker Department of Economics, Universität Bonn The case for plain L A T E X Version control works best with simple
More informationL A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?
LaTeX A document preparation system Used to typeset a document COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing LaTeX Compiler L A TEX http://en.wikipedia.org/wiki/latex
More informationMath 235: Introduction to LaTeX
Math 235: Introduction to LaTeX The LaTeX word processing system was built to do mathematical typesetting. It is different than word processors; in LaTeX you type in text and typesetting commands, then
More informationWritten & Oral Presentation: Computer Tools
Written & Oral Presentation: Computer Tools Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course MATH-GA.2840-004, Spring 2018 February 7th, 2018 A. Donev (Courant Institute) Tools
More informationAn Introduction to L A TEX
An Introduction to L A TEX John Hamer John.Hamer@glasgow.ac.uk 24 January 2018 What, how, where? L A TEX is a fine typesetting system. You write your document (paper, report, essay, thesis, poster, book,
More informationLecture 1: Short summary of LaTeX basics
Laura Konstantaki Lecture 1: Short summary of LaTeX basics Feel at ease with LaTeX Unless otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, which means
More informationWhat is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program
What is LaTeX LaTeX ( /ˈleɪtɛk/, /ˈleɪtɛx/, /ˈlɑːtɛx/, or /ˈlɑːtɛk/) Is a document markup language and document preparation system for the TeX typesetting program Refers only to the language, not to the
More information1. The Joy of TEX. Check out this example!
1. The Joy of TEX 1. TEX is typesetting language for scientific documents. It is incredibly customizable and allows you define your own styles, shortcuts, etc, so that it rapidly becomes a time-saver.
More information1 Introduction. 2 About L A TEX. Page 1(6) Why LATEX is used for review report typesetting within the TDB. project
AGENCE DE L OCDE POUR L ÉNERGIE NUCLÉAIRE OECD NUCLEAR ENERGY AGENCY Subject: PM Page 1(6) Why LATEX is used for review report typesetting within the TDB project Public Distribution: Issued by: Erik Östhols
More information1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). (3) In this tutorial I will introduce you to the amsart documentclass.
TUTORIAL 3: MY FIRST L A TEX DOCUMENT CHRISTOPHER RARIDAN Abstract. Upon completion of this tutorial, the author should be able to produce a very basic L A TEX document. This tutorial will introduce the
More informationIntroduction to Latex. A workshop by Dr. Ala Eshmawi
Introduction to Latex A workshop by Dr. Ala Eshmawi Introduction 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
More informationLaTeX A Tutorial. Mohsen Alimomeni, 2010
LaTeX A Tutorial Mohsen Alimomeni, 2010 How to pronounce LaTeX? (Lah-tek, or Lay-tek) A typesetting program, not a word-processor Designed for producing beautiful books, thesis, papers, articles... (Springer
More informationCSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker
CSCE 222 Discrete Structures for Computing LaTeX Dr. Hyunyoung Lee!!!!! Based on slides by Andreas Klappenecker 1 Tripitaka Koreana Palman Daejanggyeong ( Eighty-Thousand Tripitaka ) South Korean collection
More informationOpenOffice.org Writer
OOo MiniConf Downunder Technical Writing using OpenOffice.org Writer Jean Hollis Weber Jean Hollis Weber Community Volunteer - Slide 1 Why OOo for Techwriting? Combines best features of MS Word and FrameMaker
More informationLaTeX. Information Literacy II EN(IL2) Course
LaTeX Information Literacy II EN(IL2) Course Previous Lecture Saving plots to file Customizing plots Bar and pie charts Today Introduction to Latex - Basic commands - Structure of the document - Mathematical
More informationWeek - 01 Lecture - 04 Downloading and installing Python
Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and
More informationعمادة البحث العلمي جامعة الملك سعود
عمادة البحث العلمي جامعة الملك سعود Introduction to Latex A very quick look at typesetting documents Dr. Amal Almohisen (based on slides by Andrei Gurtov ) Introduction Essentially a Markup Language (like
More information(Yet Another) Introduction to L A TEX 2ε (V3)
(Yet Another) Introduction to L A TEX 2ε (V3) Matteo Carrara August 30th, 2013 (Yet Another) Introduction to LATEX2ε (V3) 1 / 29 What is L A TEX 2ε? Typesetting system that is very suitable for producing
More informationOutline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations
Outline UCLA Department of Statistics Statistical Consulting Center interface Working with text Tabbing and tables Figures Math and equations April 23, 2009 Installation Installing LaTeX Opening TeXShop
More informationIntroduction to LATEX
Introduction to LATEX Jennifer Flegg, September 5 2018 School of Mathematics and Statistics, University of Melbourne Why L A TEX? L A TEX is the mathematical/statistical standard L A TEX looks better than
More informationWhat 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
T E X and L A T E X Document preparation tools This lecture will introduce software necessary to produce documents using L A T E X in the School of Computer Science. It will also show the basics of producing
More informationIntroduzione a LaTex. Fabrizio Messina
Introduzione a LaTex Fabrizio Messina messina@dmi.unict.it www.dmi.unict.it/~fmessina Tex and LaTex TEX is a formatting program created by Donald E. Knuth from 1977. Typesetting text and mathematical formulae.
More informationIntroduction to L A TEX
Introduction to L A TEX Henrik Thostrup Jensen September 29 th 2006 1 About What is L A TEX How does it work Exercises Fetch slides and work from them Not everyone works with same speed/focus First a topic
More informationWorkshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015
Workshop on LATEX 2ε Asst. Prof. Dr. Kemal Bagzibagli Department of Economics 20 May 2015 1 Outline 1 Introduction 2 Some L A TEX Features 3 Input File Structure 4 The Layout of the Document 5 Special
More informationHow to get started in L A TEX
very How to get started in L A TEX Florence Bouvet Department of Economics Sonoma State University March 26, 2009 1 / 29 Introduction very L A TEX is a document preparation system for high-quality typesetting.
More informationMikkel Madsen
Mikkel Madsen latex@mikkl.dk After completing this course, you: Have an understanding of what LaTeX is Have an idea of what things can be easily accomplished in LaTeX Know where to look for help DON T
More informationIntro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math
Intro to LATEX I 1 1 POLS/CSSS 510, 2012 Intro to LATEX I 1 / 32 Outline 1 Why L A TEX? 2 Programming 3 Document Structure 4 Floats 5 Tables 6 Lists 7 Math Intro to LATEX I 2 / 32 The Complaint This sucks
More informationArrays and Images. Francesco Vespignani DiSCoF Università degli Studi di Trento. November 19, 2009
Arrays and Images Francesco Vespignani DiSCoF Università degli Studi di Trento. francesco.vespignani@gmail.com November 19, 2009 Today Arrays Practice on Matrix Basic Files Management Graphic formats Practice
More informationMy Mathematical Thesis
My Mathematical Thesis A. Student September 1, 2018 Abstract An abstract is a paragraph or few that gives the reader an overview of the document. Abstracts are commonly found on research articles, but
More informationHelen Cameron. A Brief Overview of LATEX
A Brief Overview of L A TEX What Is L A TEX? L A TEX is a document preparation system designed by Leslie Lamport on top of Donald Knuth s TEX. Useful Websites There s a useful wikibook about L A TEX at
More informationLecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1
Contents of the teaching and assessment blocks MA2730: Analysis I Lecture slides for MA2730 Analysis I Simon people.brunel.ac.uk/~icsrsss simon.shaw@brunel.ac.uk College of Engineering, Design and Physical
More informationINSTALLING AND USING L A TEX
INSTALLING AND USING L A TEX DAVID MEREDITH Contents 1. Installing and Running L A TEX with Microsoft Windows 2 1.1. Installing the compiler MikTeX 2 1.2. Installing the editor TeXtudio 2 1.3. Running
More informationBegan as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).
LaTeX Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport). Now maintained by Frank Mittlebach. For an interesting interview,
More informationMath 395 Homework #1 Due Wednesday, April 12
Math 395 Homework #1 Due Wednesday, April 12 LaTex is a typesetting system that is widely used by mathematicians. It has the ability to typeset just about any mathematical notation, as well as complex
More informationAn introduction to TeX. And other options for producing documents containing mathematics
An introduction to TeX And other options for producing documents containing mathematics Robbie Robinson Department of Mathematics GWU Washington DC 20052 robinson@gwu.edu 1. What is TeX? Tex is: A typesetting
More informationPDF and Accessibility
PDF and Accessibility Mark Gavin Appligent, Inc. January 11, 2005 Page 1 of 33 Agenda 1. What is PDF? a. What is it not? b. What are its Limitations? 2. Basic Drawing in PDF. 3. PDF Reference Page 2 of
More informationWord-to-L A TEX specification
Word-to-L A TEX specification Michal Kebrt April 19, 2005 Contents 1 Introduction 1 1.1 Text processors................................... 2 1.2 TEX and L A TEX................................... 2 1.3
More informationA Short L A TEX Introduction
A Short L A TEX Introduction Dr Will Hossack School of Physics & Astronomy tele: 50-5261 Will.Hossack@ed.ac.uk February 2016 What is L A TEX L A TEX(being Layman s-tex) is a text-formatting mark-up language,
More informationAbsolute L A TEX Beginner
Latest version of this document at http://liantze.googlepages.com/latextypesetting#beginner Absolute L A TEX Beginner Lim Lian Tze liantze@gmail.com Abstract Most people use the ubiquitous Word TM for
More informationIntroduction to MCS 220 and L A TEX
Introduction to MCS 220 and L A TEX Tom LoFaro August 28, 2009 1 Introduction to MCS 220 MCS 220, Introduction to Analysis, carries a WRITD (writing in the discipline) designation. What this means to you
More informationL A TEX: Eh? What is it, what isn t it, who cares? Andy Caird. LATEX: Eh? p.1/13
LATEX: Eh? p.1/13 L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird acaird@umich.edu LATEX: Eh? p.2/13 L A TEX It is not a word-processor. LATEX: Eh? p.2/13 L A TEX It is not a word-processor.
More informationProfessional outputs with ODS LATEX
Paper TU04 Professional outputs with ODS LATEX Arnaud DAUCHY, Sanofi Aventis, Paris, France Solenn LE GUENNEC, Sanofi Aventis, Paris, France ABSTRACT ODS tagset and ODS markup have been embedded from SAS
More informationStyle Report Enterprise Edition
INTRODUCTION Style Report Enterprise Edition Welcome to Style Report Enterprise Edition! Style Report is a report design and interactive analysis package that allows you to explore, analyze, monitor, report,
More informationTUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series.
TUTORIAL 10: ARRAYS AND MATRICES CHRISTOPHER RARIDAN Abstract. Upon completion of this tutorial, the author should be able to construct arrays and matrices. 1. Welcome Hello. My name is Dr. Christopher
More informationRemarks on common mistakes
Remarks on common mistakes Martin Helsø 14th January 2019 This document presents the proper treatment of mistakes that are common among L A TEX novices. It should be noted that the last tips from Section
More informationOutline Getting started Editing. LA TE X introduction. Kyle Rawlins. February 26, 2009
L A TEX introduction February 26, 2009 Installing LATEX Resources Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/ Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/
More informationHelen Cameron. A Brief Overview of LATEX
A Brief Overview of L A TEX What Is L A TEX? L A TEX is a document preparation system designed by Leslie Lamport on top of Donald Knuth s TEX. Useful Books Leslie Lamport. L A TEX: A document preparation
More informationIntroduction to Scripting
Introduction to Scripting Francesco Vespignani DiSCoF Università degli Studi di Trento. francesco.vespignani@gmail.com November 13, 2009 Today Course Introduction What is Scripting? What is Matlab Basic
More informationCSCI 171 Chapter Outlines
Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures
More informationCOMS 6100 Class note
COMS 6100 Class note Biala Toheeb A. 26 August, 2016 A short quiz was given to test if the students really studied the linux commands. The answers to the quiz are Q1. How do you create a directory named
More informationMath 291: Lecture 2. Presented by Prof. James for Prof. Fagerstrom
Math 291: Lecture 2 Presented by Prof. James for Prof. Fagerstrom Minnesota State University Moorhead web.mnstate.edu/fagerstrom/ fagerstrom@mnstate.edu January 18, 2018 Presented by Prof. James for Prof.
More informationInteractive MATLAB use. Often, many steps are needed. Automated data processing is common in Earth science! only good if problem is simple
Chapter 2 Interactive MATLAB use only good if problem is simple Often, many steps are needed We also want to be able to automate repeated tasks Automated data processing is common in Earth science! Automated
More informationA brief introduction to L A TEX
A brief introduction to L A TEX Chris Bowers October 16, 2007 What is L A TEX? TEX developed late 70 s as typesetting language. L A TEX is a set of macro extensions to TEX It s a document preparation system.
More informationNCSU Linguistics Eric Wilbanks & Jeff Mielke. November 21, An open-source typesetting language used for document mark-up
L A TEX Workshop NCSU Linguistics Eric Wilbanks & Jeff Mielke November 21, 2014 1 What is L A TEX? An open-source typesetting language used for document mark-up Used in conjunction with various TEXEditors
More informationHypertext Markup Language, or HTML, is a markup
Introduction to HTML Hypertext Markup Language, or HTML, is a markup language that enables you to structure and display content such as text, images, and links in Web pages. HTML is a very fast and efficient
More informationCompressed Images in PostScript and PDF with L A TEX HOWTO
Compressed Images in PostScript and PDF with L A TEX HOWTO Daniel Käps last revised: 2002-11-24 Abstract It is a common problem that PostScript files (as generated by TEX/L A TEX users) become really large
More informationLaTeX, automata,computability, and notation. CS154 Chris Pollett Jan. 25, 2006.
LaTeX, automata,computability, and notation CS154 Chris Pollett Jan. 25, 2006. Outline What is LaTeX? Automata, Computability, and Complexity Mathematical Notation and Terminology What is LaTeX? LaTeX
More informationAn Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.
An Interactive Introduction to L A TEX Part 2: Structured Documents & More Dr John D. Lees-Miller writel A TEX February 27, 2013 Outline Structured Documents Title and Abstract Sections Labels and Cross-References
More informationA LAT E X Tutorial. Evangelos Milios. March 15, 2004
A LAT E X Tutorial Evangelos Milios March 15, 2004 What is LAT E X LAT E X is a typesetter. processor. It is not WYSIWYG. It is not a word Author specifies the structure of the document symbolically (in
More informationTypesetting in wxmaxima
Typesetting in wxmaxima 1 Introduction To make your paper look as good as possible you should be familiar with the following: how to format text and create sections (and subsections, etc.), how to typeset
More informationL 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.
L A TEX examples This document is designed to help you see how to produce some mathematical typesetting. The best way to learn how to use L A TEX is to experiment with particular commands. After you have
More informationInstalling L A TEX under Windows 7
Installing L A TEX under Windows 7 James A. Swenson February 16, 2018 This is a record of my L A TEX installation procedure on 18 December 2013, incompletely updated on 16 February 2018. 1 Before you begin
More informationSECTION 2: PROGRAMMING WITH MATLAB. MAE 4020/5020 Numerical Methods with MATLAB
SECTION 2: PROGRAMMING WITH MATLAB MAE 4020/5020 Numerical Methods with MATLAB 2 Functions and M Files M Files 3 Script file so called due to.m filename extension Contains a series of MATLAB commands The
More informationIntroduction to LATEX
Introduction to L A TEX Department of Statistics, UC Berkeley January 28, 2011 1 Why L A TEX? 2 Basics 3 Typing Math 4 BibTeX 5 More Why L A TEX? Professional typesetting tool offering great control Why
More informationAdobe Dreamweaver CS3 English 510 Fall 2007
Adobe Dreamweaver CS3 English 510 Fall 2007 Important: Before going through this handout, you should create a WWW directory on your ISU e-mail account. Otherwise, you will not be able to upload and view
More informationDocument Preparation Using L A TEX
Document Preparation Using L A TEX 1 1 Department of Mathematics Michigan State University East Lansing, MI USA weil@math.msu.edu October 28, 2008 Before L A TEX Was TEX TEX is a professional typesetting
More informationAdvanced Topics in Curricular Accessibility: Strategies for Math and Science Accessibility
Advanced Topics in Curricular Accessibility: Strategies for Math and Science Accessibility Sean Keegan, Stanford University Ron Stewart, Chair AHEAD Instructional Materials Accessibility Group Creative
More informationLaTeX and Turing Machines. CS254 Chris Pollett Aug. 30, 2006.
LaTeX and Turing Machines CS254 Chris Pollett Aug. 30, 2006. Outline LaTeX Single Tape Turing Machines What is LaTeX? LaTeX is a markup language which can be used to specify how to typeset a document.
More informationHTMLDOC On Line Help
HTMLDOC On Line Help HTMLDOC On Line Help Table of Contents HTMLDOC On Line Help...1 Loading and Saving Books...2 The Input Tab...3 Setting the Document Type...3 Adding HTML Input Files...3 Adding URLs...3
More informationLATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3
LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3 1. Latex installation and text editors 1.1. Installation. Install Latex in your virtual machine with the following command. sudo apt get install texlive Note
More informationEducAide Software. Instructions for producing an Acces-compatible database module (program version 3.41 or higher)
EducAide Software Instructions for producing an Acces-compatible database module (program version 3.41 or higher) Requirements In order to produce your own database module, you need: a license for Acces,
More informationWriting. October 3, 2006
Writing October 3, 2006 Outline Style Outline Outline Style LaTeX Outline Style LaTeX Publishing Style The hard part......is to write in such a way that the reader feels that, behind the text, there is
More informationIntroduction to L A T E X
L A T E X R. M. Department of Mathematics University of Kentucky 6 October 2008 / L A T E X Outline T E X T E X was begun by Donald Knuth in 1977 because he did not like the appearance of his book The
More informationTypesetting with TEX
Typesetting with TEX Scientific typesetting made easy TEX (rhymes with blecchhh! ) is a technical typesetting system created by Donald Knuth of Stanford University. It is currently used by most physicists,
More informationmakempy Including text as graphics is far from trivial. First it has to be typeset, and of course we want to use
You can use METAPOST to create graphics in a declarative manner. Although there are tools to create METAPOST graphics interactively, by nature the input is a script defining the graphic. Plain METAPOST
More information