• Ei tuloksia

Latex exercises 4

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Latex exercises 4"

Copied!
3
0
0

Kokoteksti

(1)

Latex exercises 4

Today we will parctise to use xfigtool for drawing figures. Xfig is avail- able in cs and Linux. It is very easy to learn by trying, but you can find more information by command man xfigor you can search manual pages in the net (keywords: xfig manual).

Advices:

You can start xfig from shell by command xfig (when the file doesn’t have any name) or you can already give it a name by command xfig example.fig. If you didn’t give any file name in the beginning, you have to save your figure by command save as.

Click grid mode and select a grid. Now it is easier to draw objects into positions you want.

When you are finishing, remember to save your file. (You can save it during drawing, too. If something goes wrong, you can continue from the last saved version.)

In edit menu there is command undo which lets you cancel the last drawing operation.

By default, you cannot draw or move objects anywhere, but only in the grid. If this is too restricting, you can select Point position Any.

When you finish, save the figure as postscrip by selecting command Export from file menu. The default is encapsulated postscript and the file name will be example.eps (if your original file was example.fig).

Tasks

1. Draw some of the given figures by xfig, save them as eps. Check the eps figures by commandghostview example.epsorgv example.eps.

Notice: your figures do not have to be indentical than the examples!

1

(2)

2. Load figurearticletree.figfromhttp://www.cs.joensuu.fi/pages/

whamalai/sciwri/articletree.fig. Open it in xfig and make your own changes. Save the file and import it as an eps file.

3. Draw figures you need for your own Sciwri paper!

4. Extra task (if you have time): test how to include latex math com- mands into a figure in xfig. Write the math commands (inside $ char- acters) into your figure. Select Edit command and click the string which contains latex symbols. Change the Special Flag to Special.

When you export the figure select languageCombined PS/Latex (both parts). This produces two filesexample.pstexandexample.pstex t into your working directory. Include the latter into your document by

\input{example.pstex_t}as demonstrated in

Extra task: spell checking

Test aspell tool for spell checking. Notice that aspell is a newer (and better) tool than ispell. In our systems, the default language seems to be American English, but you can change it to British English.

If you run aspell from emacs, select the dictionary from tools spell checking select British dict. Start checking by select- ing Spell-Check Buffer from the same menu. You get the list of commands by ctrl-h.

If you run ispell from command line, give option -d british.multi.

Test aspell with file its.texhttp://www.cs.joensuu.fi/pages/whamalai/

sciwri/its.tex and correct it according to British English!

The aspell manual pages: http://aspell.sourceforge.net/man-html/

index.html

2

(3)

q0 q1 q2 +, −

d

d

d

.

f

x1 .

x2

. y1

. y2 . y3

A B

A

B

Parallel episode Serial episode

1. Understanding domain

3. Discovering patterns

5. Application 2. Preprocessing data

4. Postprocessing results

Figure 1: Example figures3

Viittaukset

LIITTYVÄT TIEDOSTOT

If you need more space (either horizontal or vertical) you can define it by commands \vspace{2cm}(vertical space of 2 cm) and \hspace{13mm} (a horizontal space of 13mm).

will create a PostScript file lissajous.ps of the current graphics figure which can subse- quently be printed using the system print command. If filename already exists, it will

The filename (or files) need to have your name in it. Your name and student number should be in the file too. Most common file types, like .doc .pdf are OK. The answers can be hand

If you are using matlab scripts, include also the script

This type of file contains MATLAB commands, so running it is equivalent to typing all the commands—one at a time—at the Command window prompt.. You can run the file by typing its

Whenever you have a file containing data you wish to import, try dragging and dropping the file onto the command window. If the file is recognised by MATLAB as importable, an

You can (and your should) type in a descriptive name for your query task in the Query name box and you can change the result dataset name (and library) by clicking

• If you are not able to come by during the opening hours and you cannot authorise another person to pick up your keys on your behalf, you can make an appointment (+358 9 549 900