Typesetting in wxmaxima

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

1 Obtaining LyX and L A TEX

A Brief Introduction to L A TEX

Latex Tutorial. CIS400 Senior Design 9/5/2013

Introduction to MCS 220 and L A TEX

Math 235: Introduction to LaTeX

A Short L A TEX Introduction

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

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

Homework # You ll want to use some LaTeX editor to edit and compile your.tex files

Introduction to L A TEX

FCKEditor v1.0 Basic Formatting Create Links Insert Tables

LaTeX A Tutorial. Mohsen Alimomeni, 2010

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

An Introduction to LATEX

L A TEX for Psychological Researchers

Introduction to L A TEX for MCS-236

Guide to using L A TEX

INSTALLING AND USING L A TEX

L A TEX Primer. Randall R. Holmes. August 17, 2018

My Mathematical Thesis

Using the Text Editor Tutorial

Contents. Foreword. Examples of GeoGebra Applet Construction 1 A Straight Line Graph... 1 A Quadratic Graph... 6 The Scalar Product...

VERY VERY SHORT GUIDE TO LATEX

Creating Word Outlines from Compendium on a Mac

Table of Contents. 1. Creating a Microsoft Excel Workbook...1 EVALUATION COPY

LATEX Primer. 1 Introduction (Read Me)

Karlen Communications Track Changes and Comments in Word. Karen McCall, M.Ed.

Meeting One. Aaron Ecay. February 2, 2011

ADOBE DREAMWEAVER CS4 BASICS

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

ü 1.1 Getting Started

L A TEX: Online module 2

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.

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

Math 395 Homework #1 Due Wednesday, April 12

2. Unlock the Customization Features: The Edit Button Click the "Edit" button on the Dashboard Home Page to unlock the customization features.

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


A Guide to Quark Author Web Edition 2015

Introduction to L A TEX

Latex Tutorial 1 L A TEX. 1.1 Text

Student Guide Updated February 22, 2018

Simple Math. Adam Dishaw 2011 September 21. Suppose you want to include some math in your documents. Just follow these basics steps:

Course A, Part 1 Basic Formatting in L A TEX

Typing Mathematics. Darrin Doud

The MathType Window. The picture below shows MathType with all parts of its toolbar visible: Small bar. Tabs. Ruler. Selection.

Outline. A Sneak Peek

TUTORIAL 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.

An Interactive Introduction to L A TEX

1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). (3) In this tutorial I will introduce you to the amsart documentclass.

A Guide to Quark Author Web Edition October 2017 Update

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

Assessments for CS students:

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

set in Options). Returns the cursor to its position prior to the Correct command.

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

Getting Started with L A TEX

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Microsoft Word Basic Features

Student Learning Service: Introduction to Latex

An introduction to L A TEX for students

Introduction to typesetting with L A TEX

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

Formatting with LaTeX

Adding Proofing Stamps to Adobe for Marking up Assessment Material

Homework # (Latex Handout) by Laura Parkinson

Quark XML Author October 2017 Update with Business Documents

Getting Started in L A TEX

Become a L A TEX Guru

Introduction to Latex. A workshop by Dr. Ala Eshmawi

The content editor has two view modes: simple mode and advanced mode. Change the view in the upper-right corner of the content editor.

Do It Yourself Website Editing Training Guide

Introduction to L A TEX

Best Practices for Using the Rich Text Editor

Introduction to LAT E X

Helen Cameron. A Brief Overview of LATEX

Teacher Activity: page 1/9 Mathematical Expressions in Microsoft Word

A Short Introduction to L A TEX

Developing a Basic Web Page

The HTML Editor in icollege

Introduction to LATEX

Best Practices for Using the Rich Text Editor

Introduction to L A TEX

SPEECH RECOGNITION COMMON COMMANDS

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

Lab1: Use of Word and Excel

by Paul Richard and Jim Fitzgerald

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Quark XML Author June 2017 Update for Platform with DITA

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

simpletex Documentation

The Cantor Handbook. Alexander Rieder

Dreamweaver: Accessible Web Sites

C1 CMS User Guide Orckestra, Europe Nygårdsvej 16 DK-2100 Copenhagen Phone

Quark XML Author 2015 October Update with Business Documents

Introduction to FrontPage 2002

Part - I : Short Course Typing Text

Content Creation and Management System. External User Guide 3 Question types in CCMS (an overview)

Introduction to LATEX

Transcription:

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 equations, and how to incorporate graphics. These topics are discussed below. We begin with how to incorporate graphics, because we use the screenshots that follow to illustrate what follows. At the end of this paragraph is the L A TEX command to include a file named wxmaxima1.png and to set its with to 12 centimeters. This graph is in the Textsetting_img folder. We discuss the creation of this folder just below the graph. The command is this: \includegraphics[width=12cm]{typesetting_img/wxmaxima1.png}. The width specification is optional. The brackets identify the image to be included. The default assumption is that its location is relative to the folder in which the wxmaxima file is located. 1.1 Entering Material and Exporting L A TEX Files The image above shows the wxmaxima file that created the document that you are reading now, when it consisted of a single paragraph. This conent is repeated in the graphic image that follows, as it appears in the L A TEX editor TexMaker. 1

Before looking at the Texmaker image, consider some points regarding the wx- Maxima image. The first, obvious point is that the text cell begins with TeX:. Each text cell must have this preface if wxmaxima is to export the material to a L A TEX file. Document, section, and subsection titles can be entered with wxmaxima commands. We discourage this approach, however, because titles entered this way can cause difficulties when the tex file is processed to produce a pdf file. Once the text and related material are entered into wxmaxima, the material is to be exported to a L A TEX file. Use the File menu option for this purpose. Within that menu, select Export..., which opens the dialog box that appears below. In that box, select the Save as type drop-down menu box and then select pdflatex file (*.tex). Then enter the name of the file. Giving the file the same name as the folder in which it is located has some advantages. In this illustrative case, the folder is named Typesetting, and the L A TEX file is named Typesetting.tex. wxmaxima creates a folder named Typesetting.img, which contains all wxmaxima- generated graphics. Placing all other graphs, like our screenshots, into this folder simplifies matters. At first, you should export files frequently. Each time you do so, follow these steps. Select Save as type and make the proper selection (wxmaxima s default is HTML file (*.htm). Be sure to change that and to select the name of the file from the list in the dialog box (it should be the only entry). Then Save it. A dialog box should appear warning that saving this file will overwrite the existing file. Instruct wxmaxima to save it. Then move to TexMaker. These instructions continue after we have discussed the TexMaker screenshot, just below. 2

1.2 TeXstudio The TexStudio editor screenshot appears below. TeXstudio is a freeware L A TEX editor that provides a useful intemediary between wxmaxima and the PDF file that shows the resulting typeset-quality output. To open the file that wxmaxima created, use the File/Open menu option or click on the second icon from the left. Then select Typesetting.tex. If nothing else is to be done to the file, then selecting Tools/pdfLaTeX from the menu or using the F6 key generates the file Typesetting.pdf. This file can be read in any PDF reader. The next section addresses the reading of the file. Before turning to reading the file, consider a few more aspects of the screenshot above. First, TeXstudio has three windows. The window on the left keeps track of the file. As more sections are entered, they are reported here. This window can be used for navigation. It has other uses as well, but they are beyond the scope of the overview. The main window shows the L A TEX file s content, which consists of a heading (the material before \begin{document}, which wxmaxima creates and which we need not address. The document itself lies between \begin{document} and \end{document}. It is exactly as entered into wxmaxima. The third window keeps a log of file creation. Once the F6 key is struck, this log is opened. In the case shown above, the log entry is quite simple. It shows that the process begins and ends normally. If, as often happens, a L A TEX error occurs, this window reports where the error occurs and tries to indicate the nature of the error. 3

TexStudio can be used to check spelling (wxmaxima lacks this feature). The menu entry Tools/Check Spelling checks spelling. By default, TexMaker uses English (U. K.) spelling, but this is easily changed. Use the Options / Configure TeXstudio menu. When an error is found, correct the spelling in wxmaxima. Each time a file is revised in wxmaxima, one should export the file to the existing tex file, overwriting the old file. The first time the file is overwritten, TeXstudio will ask whether the revised file is to replace the existing one. An affirmative response will result in this replacement occurring automatically after each export of a revised file from wxmaxima. The PDFLaTeX command (or F6) will automatically update the pdf file. 1.3 Reading the PDF File Once PDFLaTeX is executed the resulting file appears as below. We use the freeware PDF reader Sumatra for this purpose. Any such reader can be used. Sumatra s default is to refresh the display any time the PDF file is modified. It is useful to ensure that the PDF viewer being used is set to this option. Because writing a document involves a number of revisions, it helps to have wxmaxima, TexMaker (or another L A TEX editor), and Sumatra (or another PDF reader) open at the same time. If screen space allows, having them appear simultaneously on the screen, as below, helps. The image on the top left shows the wxmaxima text cell, the image on the top right shows TeXstudio with the tex file exported by wxmaxima, and the image at the lower left shows the pdf file that TeXstudio generates. 4

2 Creating wxmaxima Cells Clicking between any two cells in wxmaxima or at the beginning or end of a session window results in the appearance of a horizontal line, wxmaxima s horizontal cursor. wmmaxima assumes that an input cell is about to be created. Entering a command directly or selecting F5 or Cell/Insert Input Cell creates such a cell. We return to such cells below. First, we consider text cells and title cells. Selecting the menu entry Cell/Insert Text Cell or selecting the F6 key creates a text cell. One should immediately enter TeX:. The case is critical as is the colon after TeX. This tells wxmaxima to produce L A TEX mark-up for the material in this cell. To insert a sub-section title between two cells, click there and select F7 or the associated Cell menu entry. Likewise, F8 results in a section title, and F9 results in a title for the document. While section and subsection cells can be created and used to produce section and subsection titles in L A TEX we discourage that approach. Rather use the L A TEX markup \section{section Title} and \subsection{subsection Title}. Once a text cell has been created and TEX: has be entered, either type straight text or enter standard L A TEX mark-up commands, such as those that have appeared up to this point. 5

2.1 wxmaxima Input and Output The material just below shows the result of entering an equation into a wxmaxima input cell and applying the wxdraw2d command. (%i3) (%o3) f(%theta) := sin(%theta); wxdraw2d( explicit(f(%theta), %theta, -2*%pi, 2*%pi))$ f (θ) := sin (θ) (%t4) wxmaxima creates two pieces of graphical output, the equation in output %o1 and the graph. wxmaxima places each of these into the Typesetting_img folder. It also places references to these into the file Typesetting.tex. 3 Some L A TEX Basics This introduction covers the most basic of L A TEX editing. It reviews the markup that has been used to create the file to this point. Then it addresses some mark-up rules for mathematics. 3.1 A Review Up to this point a few aspects of marking up text have been used. We provided for emphasis, created a separate font for verbatim material which is exempt from L A TEX mark-up, 1 we created the L A TEX logo as part of the file, and we inserted figures. Emphasis (italicized font) is one of a set of mark-up options that share the same rules: specify the command, preceded by a \ and place the material to 1 Actually two: we used verb and we used texttt. These two are not identical. For example verb cannot be used in footnotes like this one. 6

be treated by the command inside curly brackets, {}. Other, similar commands are textbf, which creates bold font text in the body of a report, and mathbf, which creates bold font within mathematical expressions. The last section of this overview provides references that contain much more extensive lists and instructions. Also, texttt produces typewriter-style output. The verb command, as noted turns off L A TEX mark-up. This command is useful for specifying names such as Maxima commands. One special use warrants mention: When the carat ^ appears outside of a mathematical expression, it can cause mischief. Phasing it verbatim avoids such concern. Note the command s structure: the word verb is followed by two apostrophes. The text is embedded between these apostrophes. Other characters can be used in place of the apostrophe. Occasionally, special characters like the ampersand (&) or the percent sign (%) appear as text. To inform L A TEX that these are to be treated as text and not as special L A TEX characters, place a backward slash (\) before them. 3.2 Math Basics Mathematical expressions may be entered into L A TEX in any of three ways. The simplest is to insert the expression between two dollar signs, like this: $z = e^{\alpha t}x^{\beta_1}y^{\beta_2}$. The resulting expression, typset, is this: z = e αt x β1 y β2 Before looking at alternatives, consider some aspects of L A TEX that this example points out. First, the Greek letters are entered as indicated, with a back slash preceding the letter s name. Capitalizing the first letter of the name would result in the capital letter. Second, the superscript (^) and the subscript (_) commands mirror each other. L A TEX treats these two expressions as equivalent: $x_1^2$ and $x^2_1$, even though the order of subscripting and superscripting is reversed. Either one produces this result: x 2 1. In the expression z = e αt x β1 y β2, all exponents are enclosed in brackets. In the first case \alpha t is placed inside brackets because failure to do so would result in this: e α t. That is, L A TEX treats the first character to follow the carat as the exponent and anything that follows as another part of the expression. The reason for the brackets for the exponents of x and y is different. Here we want to ensure that the exponents are subscripted. Here is the result of not using brackets for the x variable: x β 1. Often the material is easier to follow if the mathematical expression appears on a separate line. To achieve this, place the expression within this bracket: \[ expression \]. For example, \[ \mathbf{a} = \frac{\mathbf{f}}{m}, \] produces this result: a = F m, where a and F, acceleration and force, are vectors, and mass (m) is a scalar. Note the use of \frac to affect the appearance of the fraction. Note also that 7

brackets can be nested to as many levels as is required. expression could have been stated this way: Without frac, the a = F/m. Finally, we often wish to place a mathematical expression on a separate line and have L A TEX assign a number to it, like this: Use this command set to generate the result above: e iπ + 1 = 0. (1) \begin{equation} e^{i \pi} + 1 = 0. \label{eq:euler} \end{equation} This expression, due to Euler, is said to combine the five most important numbers in mathematics. We may refer to Equation eq:euler at any point in the remainder of this document by using the instruction \Equation~{eq:euler}. 4 Software and Instructional Sources We have used the following software in developing this guide. wxmaxima is part of the Maxima package that can be downloaded at http://maxima.sourceforge.net/download.html. TeXstudio gives you an environment where you can easily create and manage LaTeX documents. It provides modern writing support, like interactive spell checking, code folding and syntax highlighting. Also it serves as a starting point from where you can easily run all necessary LaTeX tools.... You can run it on Windows, Unix/Linux, BSD and MacOSX systems and modify it if you want, since it is licensed under the GPL. (from the software s web site: http://www.http://texstudio.sourceforge.net/). Sumatra is a small and fast PDF reader for use in the Microsoft Windows environment. It works on Windows 2000 and later operating systems. Download Sumatra at http://blog.kowalczyk.info/software/sumatrapdf/download.html. Skim PDF is a small and fast PDF reader for use in the Mac OX 10.5 and higher environment. Download Skim PDF at http://sourceforge.net/projects/skim-app/. The following sites provide more information on typesetting with L A TEX. 8

Jeff Clark, L A TEX Tutorial is provided for students at Elon College. Its address is http://frodo.elon.edu/tutorial/tutorial.pdf. This is a PDF file. A briefer introduction is Henri P. Gavin, A brief L A TEX tutorial from Duke University. Its address is: http://www.duke.edu/~hpgavin/tutorial.pdf. This is a PDF file. The classic reference, by the developer of L A TEX is Leslie Lamport, LaTeX: User s Guide & Reference Manual. Hypertext Help with L A TEX, developed by NASA, is available at many sites, including this one: http://www.stat.unipg.it/tex-man/. You may access information online or download the entire set of hypertext material to your computer. Also, entering a few keywords and latex into a search engine generates helpful references. 9