Images - University of Sheffield

101
Images

Transcript of Images - University of Sheffield

Page 1: Images - University of Sheffield

Images

Page 2: Images - University of Sheffield

LATEX documents can include images.

There are twoapproaches.

(i) Use software (e.g. a graphics programme) to create animage, then include it as an image file;

(ii) Use one of LATEX’s packages to create the image directlywith simple commands.

We will look at both of these methods.

Page 3: Images - University of Sheffield

LATEX documents can include images. There are twoapproaches.

(i) Use software (e.g. a graphics programme) to create animage, then include it as an image file;

(ii) Use one of LATEX’s packages to create the image directlywith simple commands.

We will look at both of these methods.

Page 4: Images - University of Sheffield

LATEX documents can include images. There are twoapproaches.

(i) Use software (e.g. a graphics programme) to create animage, then include it as an image file;

(ii) Use one of LATEX’s packages to create the image directlywith simple commands.

We will look at both of these methods.

Page 5: Images - University of Sheffield

LATEX documents can include images. There are twoapproaches.

(i) Use software (e.g. a graphics programme) to create animage, then include it as an image file;

(ii) Use one of LATEX’s packages to create the image directlywith simple commands.

We will look at both of these methods.

Page 6: Images - University of Sheffield

LATEX documents can include images. There are twoapproaches.

(i) Use software (e.g. a graphics programme) to create animage, then include it as an image file;

(ii) Use one of LATEX’s packages to create the image directlywith simple commands.

We will look at both of these methods.

Page 7: Images - University of Sheffield

Image files

Page 8: Images - University of Sheffield

There are lots of ways to create and save an image, e.g. usinggraphics software, mathematical software, a digital camera etc.

Images can be stored in a number of different file-formats.Different formats suit different purposes.

Page 9: Images - University of Sheffield

There are lots of ways to create and save an image, e.g. usinggraphics software, mathematical software, a digital camera etc.

Images can be stored in a number of different file-formats.

Different formats suit different purposes.

Page 10: Images - University of Sheffield

There are lots of ways to create and save an image, e.g. usinggraphics software, mathematical software, a digital camera etc.

Images can be stored in a number of different file-formats.Different formats suit different purposes.

Page 11: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened. This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images. Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 12: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened.

This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images. Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 13: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened. This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images. Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 14: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened. This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images.

Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 15: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened. This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images. Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 16: Images - University of Sheffield

JPEG

You probably know JPEG (.jpg or .jpeg) files from digitalcameras; they are often used for photos.

The JPEG format keeps file-sizes low by compressing imagedata which makes images slightly blurred or softened. This isOK for photos, but doesn’t look good with black and whiteline drawings.

JPEGs can store colour or black and white images. Theamount of compression used can be varied: high compressiongives smaller filesize but lower image quality; low compressionmakes images clearer but increases the filesize.

JPEG files are used a lot on the web.

Page 17: Images - University of Sheffield

PNG

A less familiar format is PNG (Portable Network Graphics,.png).

(If you have seen GIF files, PNG is an alternative that workswith LATEX.)

Saving images in PNG format doesn’t result in a blurring, so itworks well for black and white or limited colour drawingswhere precision is important.

PNG filesizes are usually much bigger than for JPEG.

Page 18: Images - University of Sheffield

PNG

A less familiar format is PNG (Portable Network Graphics,.png).

(If you have seen GIF files, PNG is an alternative that workswith LATEX.)

Saving images in PNG format doesn’t result in a blurring, so itworks well for black and white or limited colour drawingswhere precision is important.

PNG filesizes are usually much bigger than for JPEG.

Page 19: Images - University of Sheffield

PNG

A less familiar format is PNG (Portable Network Graphics,.png).

(If you have seen GIF files, PNG is an alternative that workswith LATEX.)

Saving images in PNG format doesn’t result in a blurring, so itworks well for black and white or limited colour drawingswhere precision is important.

PNG filesizes are usually much bigger than for JPEG.

Page 20: Images - University of Sheffield

PNG

A less familiar format is PNG (Portable Network Graphics,.png).

(If you have seen GIF files, PNG is an alternative that workswith LATEX.)

Saving images in PNG format doesn’t result in a blurring, so itworks well for black and white or limited colour drawingswhere precision is important.

PNG filesizes are usually much bigger than for JPEG.

Page 21: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image.

An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 22: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 23: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,

meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 24: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.

Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 25: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 26: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing.

If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 27: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.

Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 28: Images - University of Sheffield

Image size

Image sizes are often given as numbers of pixels. Pixels are theindividual dots that make up the image. An image saved as aJPEG or PNG file will have a height and width given in pixels.

Graphics packages have an option to view at ‘actual size’,meaning each pixel corresponds to a dot on the monitor.Zooming in further you will see blocks appearing as you noticethe pixels that make up the image.

Image size is important in printing. If the image size is not bigenough, the result looks pixelated (or blocky) when printed.Standard practice is to use 300 pixels to fill an inch (300dpi)on the page.

Page 29: Images - University of Sheffield
Page 30: Images - University of Sheffield

PDF

PDF (Portable Document Format, .pdf) is a format often usedfor documents, but images can sometimes be saved as PDFsas well.

The big advantage of PDF images is scalability. PDFs saveimages as instructions (e.g. ‘create a circle of radius ∗ withcentre ∗’). Because of this, images created as PDFs often lookvery smooth.

Page 31: Images - University of Sheffield

PDF

PDF (Portable Document Format, .pdf) is a format often usedfor documents, but images can sometimes be saved as PDFsas well.

The big advantage of PDF images is scalability.

PDFs saveimages as instructions (e.g. ‘create a circle of radius ∗ withcentre ∗’). Because of this, images created as PDFs often lookvery smooth.

Page 32: Images - University of Sheffield

PDF

PDF (Portable Document Format, .pdf) is a format often usedfor documents, but images can sometimes be saved as PDFsas well.

The big advantage of PDF images is scalability. PDFs saveimages as instructions (e.g. ‘create a circle of radius ∗ withcentre ∗’).

Because of this, images created as PDFs often lookvery smooth.

Page 33: Images - University of Sheffield

PDF

PDF (Portable Document Format, .pdf) is a format often usedfor documents, but images can sometimes be saved as PDFsas well.

The big advantage of PDF images is scalability. PDFs saveimages as instructions (e.g. ‘create a circle of radius ∗ withcentre ∗’). Because of this, images created as PDFs often lookvery smooth.

Page 34: Images - University of Sheffield
Page 35: Images - University of Sheffield

As a rule, use PDF images wherever possible for mathematicaldiagrams to get a smooth result,

switching to PNG or JPEG ifnot possible.

Opening an image in a graphics program (e.g. AdobePhotoshop) will allow you to choose the file type when saving.There are also websites that will convert images betweendifferent filetypes.

(Note: a blocky JPEG image cannot be made into a smoothPDF by changing the filetype; instead you will need to startagain.)

Page 36: Images - University of Sheffield

As a rule, use PDF images wherever possible for mathematicaldiagrams to get a smooth result, switching to PNG or JPEG ifnot possible.

Opening an image in a graphics program (e.g. AdobePhotoshop) will allow you to choose the file type when saving.There are also websites that will convert images betweendifferent filetypes.

(Note: a blocky JPEG image cannot be made into a smoothPDF by changing the filetype; instead you will need to startagain.)

Page 37: Images - University of Sheffield

As a rule, use PDF images wherever possible for mathematicaldiagrams to get a smooth result, switching to PNG or JPEG ifnot possible.

Opening an image in a graphics program (e.g. AdobePhotoshop) will allow you to choose the file type when saving.

There are also websites that will convert images betweendifferent filetypes.

(Note: a blocky JPEG image cannot be made into a smoothPDF by changing the filetype; instead you will need to startagain.)

Page 38: Images - University of Sheffield

As a rule, use PDF images wherever possible for mathematicaldiagrams to get a smooth result, switching to PNG or JPEG ifnot possible.

Opening an image in a graphics program (e.g. AdobePhotoshop) will allow you to choose the file type when saving.There are also websites that will convert images betweendifferent filetypes.

(Note: a blocky JPEG image cannot be made into a smoothPDF by changing the filetype; instead you will need to startagain.)

Page 39: Images - University of Sheffield

As a rule, use PDF images wherever possible for mathematicaldiagrams to get a smooth result, switching to PNG or JPEG ifnot possible.

Opening an image in a graphics program (e.g. AdobePhotoshop) will allow you to choose the file type when saving.There are also websites that will convert images betweendifferent filetypes.

(Note: a blocky JPEG image cannot be made into a smoothPDF by changing the filetype; instead you will need to startagain.)

Page 40: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)

and Google Drive, which are both free. Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files. On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 41: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)and Google Drive,

which are both free. Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files. On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 42: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)and Google Drive, which are both free.

Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files. On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 43: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)and Google Drive, which are both free. Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files. On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 44: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)and Google Drive, which are both free. Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files.

On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 45: Images - University of Sheffield

Image editing software

Good software to try for creating mathematical diagramsincludes Geogebra (http://www.geogebra.org/geometry)and Google Drive, which are both free. Geogebra and GoogleDrive export images as PDFs.

GIMP is a free image editor which works well for editing JPGand PNG files. On the University’s managed desktop, you caninstall Adobe Photoshop from the Software Center.

Page 46: Images - University of Sheffield

Using the PGFplots package

Page 47: Images - University of Sheffield

For creating graphs quickly, by far the best option is using oneof LATEX’s packages.

The one we will use is PGFplots,included with \usepackage{pgfplots} in the preamble.

Page 48: Images - University of Sheffield

For creating graphs quickly, by far the best option is using oneof LATEX’s packages. The one we will use is PGFplots,included with \usepackage{pgfplots} in the preamble.

Page 49: Images - University of Sheffield

PGFplots can create graphs like this

−4 −2 2 4

−1

−0.5

0.5

1

x

y

y = sinx

Page 50: Images - University of Sheffield

PGFplots can create graphs like this

−4 −2 2 4

−1

−0.5

0.5

1

x

y

y = sinx

Page 51: Images - University of Sheffield

this

−6 −4 −2 0 2 4 6

−2,000

0

2,000

modelestimate

Page 52: Images - University of Sheffield

this

−6 −4 −2 0 2 4 6

−2,000

0

2,000

modelestimate

Page 53: Images - University of Sheffield

and even this

.

Page 54: Images - University of Sheffield

and even this

.

Page 55: Images - University of Sheffield

The good news is that the code to make the pictures isn’tcomplicated.

For example, a very basic graph of y = x2 justneeds the code

\begin{tikzpicture}

\begin{axis}[xlabel=$x$,ylabel=$y$]

\addplot[smooth]{x^2};

\end{axis}

\end{tikzpicture}

Page 56: Images - University of Sheffield

The good news is that the code to make the pictures isn’tcomplicated. For example, a very basic graph of y = x2 justneeds the code

\begin{tikzpicture}

\begin{axis}[xlabel=$x$,ylabel=$y$]

\addplot[smooth]{x^2};

\end{axis}

\end{tikzpicture}

Page 57: Images - University of Sheffield

The good news is that the code to make the pictures isn’tcomplicated. For example, a very basic graph of y = x2 justneeds the code

\begin{tikzpicture}

\begin{axis}[xlabel=$x$,ylabel=$y$]

\addplot[smooth]{x^2};

\end{axis}

\end{tikzpicture}

Page 58: Images - University of Sheffield

−6 −4 −2 0 2 4 6

0

10

20

x

y

Page 59: Images - University of Sheffield

We’ll look at how to use PGFplots more in Lab 4, but lots ofexamples are available on the PGFplots webpage athttp://pgfplots.sourceforge.net/gallery.html.

Page 60: Images - University of Sheffield

Punctuation

Page 61: Images - University of Sheffield

Activity. The document in the Week 4 materials on thecourse website is in need of a serious proof-reading. Find andcorrect as many problems as you can (some of which may beLATEX errors).

Page 62: Images - University of Sheffield

Basic punctuation is easy: start sentences with capital lettersand end them with full-stops.

However, there are plenty ofother punctuation marks that are often used (and misused).

It’s not hard to use punctuation correctly once one learns therules.

Page 63: Images - University of Sheffield

Basic punctuation is easy: start sentences with capital lettersand end them with full-stops. However, there are plenty ofother punctuation marks that are often used (and misused).

It’s not hard to use punctuation correctly once one learns therules.

Page 64: Images - University of Sheffield

Basic punctuation is easy: start sentences with capital lettersand end them with full-stops. However, there are plenty ofother punctuation marks that are often used (and misused).

It’s not hard to use punctuation correctly once one learns therules.

Page 65: Images - University of Sheffield

Commas (,)

Commas are used in lists.

However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 66: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses.

Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 67: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 68: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 69: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 70: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd.

It’sbest to miss one out if in doubt.

Page 71: Images - University of Sheffield

Commas (,)

Commas are used in lists. However, they have other uses. Oneof these is to separate clauses in sentences.

Often, where commas are used corresponds to where a pauseis needed if read aloud.

Example.

You will find plenty of examples, both good and bad, in thesenotes.

A common mistake is to overuse commas, inserting them inplaces where a pause in speech makes things sound odd. It’sbest to miss one out if in doubt.

Page 72: Images - University of Sheffield

Colons (:)

A colon is used to indicate that what follows explains or listswhat precedes it.

Examples.

• The reason was clear: no-one was at home.

• The shopping list had three items on: eggs, bacon andbread.

Most people use colons correctly, although a common error isto put a (pointless) hyphen afterwards, creating ‘:-’. Avoid!

Page 73: Images - University of Sheffield

Colons (:)

A colon is used to indicate that what follows explains or listswhat precedes it.

Examples.

• The reason was clear: no-one was at home.

• The shopping list had three items on: eggs, bacon andbread.

Most people use colons correctly, although a common error isto put a (pointless) hyphen afterwards, creating ‘:-’. Avoid!

Page 74: Images - University of Sheffield

Colons (:)

A colon is used to indicate that what follows explains or listswhat precedes it.

Examples.

• The reason was clear: no-one was at home.

• The shopping list had three items on: eggs, bacon andbread.

Most people use colons correctly, although a common error isto put a (pointless) hyphen afterwards, creating ‘:-’. Avoid!

Page 75: Images - University of Sheffield

Colons (:)

A colon is used to indicate that what follows explains or listswhat precedes it.

Examples.

• The reason was clear: no-one was at home.

• The shopping list had three items on: eggs, bacon andbread.

Most people use colons correctly, although a common error isto put a (pointless) hyphen afterwards, creating ‘:-’.

Avoid!

Page 76: Images - University of Sheffield

Colons (:)

A colon is used to indicate that what follows explains or listswhat precedes it.

Examples.

• The reason was clear: no-one was at home.

• The shopping list had three items on: eggs, bacon andbread.

Most people use colons correctly, although a common error isto put a (pointless) hyphen afterwards, creating ‘:-’. Avoid!

Page 77: Images - University of Sheffield

Colons often aren’t needed after the phrase ‘as follows’,

wherea full-stop is usually more appropriate.

Example.

We define the function as follows. Given x ∈ R, letf(x) = x2 + 2.

Page 78: Images - University of Sheffield

Colons often aren’t needed after the phrase ‘as follows’, wherea full-stop is usually more appropriate.

Example.

We define the function as follows. Given x ∈ R, letf(x) = x2 + 2.

Page 79: Images - University of Sheffield

Colons often aren’t needed after the phrase ‘as follows’, wherea full-stop is usually more appropriate.

Example.

We define the function as follows.

Given x ∈ R, letf(x) = x2 + 2.

Page 80: Images - University of Sheffield

Colons often aren’t needed after the phrase ‘as follows’, wherea full-stop is usually more appropriate.

Example.

We define the function as follows. Given x ∈ R, letf(x) = x2 + 2.

Page 81: Images - University of Sheffield

Semicolons (;)

The main use of a semicolon is to join together two sentenceswhere the latter is related to the former.

In all these cases afull-stop would work as well, so the use of a semicolon is toindicate a connection.

Examples.

• The weather took a turn for the worse; the sky becamedarker.

• I will look at the problem soon; it’s on my to-do list.

Page 82: Images - University of Sheffield

Semicolons (;)

The main use of a semicolon is to join together two sentenceswhere the latter is related to the former. In all these cases afull-stop would work as well, so the use of a semicolon is toindicate a connection.

Examples.

• The weather took a turn for the worse; the sky becamedarker.

• I will look at the problem soon; it’s on my to-do list.

Page 83: Images - University of Sheffield

Semicolons (;)

The main use of a semicolon is to join together two sentenceswhere the latter is related to the former. In all these cases afull-stop would work as well, so the use of a semicolon is toindicate a connection.

Examples.

• The weather took a turn for the worse; the sky becamedarker.

• I will look at the problem soon; it’s on my to-do list.

Page 84: Images - University of Sheffield

Semicolons (;)

The main use of a semicolon is to join together two sentenceswhere the latter is related to the former. In all these cases afull-stop would work as well, so the use of a semicolon is toindicate a connection.

Examples.

• The weather took a turn for the worse; the sky becamedarker.

• I will look at the problem soon; it’s on my to-do list.

Page 85: Images - University of Sheffield

Try not to overuse semicolons.

Of using semicolons, theauthor Kurt Vonnegut wrote

Here is a lesson in creative writing. First rule: Do notuse semicolons. All they do is show you’ve been tocollege.

Page 86: Images - University of Sheffield

Try not to overuse semicolons. Of using semicolons, theauthor Kurt Vonnegut wrote

Here is a lesson in creative writing. First rule: Do notuse semicolons. All they do is show you’ve been tocollege.

Page 87: Images - University of Sheffield

Try not to overuse semicolons. Of using semicolons, theauthor Kurt Vonnegut wrote

Here is a lesson in creative writing. First rule: Do notuse semicolons. All they do is show you’ve been tocollege.

Page 88: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing. FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 89: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing. FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 90: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing. FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 91: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing.

FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 92: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing. FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 93: Images - University of Sheffield

Exclamation marks (!)

Exclamation marks are used for indicating surprise or forissuing instructions.

Examples.

• Stop! I want a word with you.

• I can’t believe it!

Exclamation marks are not often used in formal writing. FScott Fitzgerald wrote

Cut out all those exclamation marks. An exclamationmark is like laughing at your own jokes.

Page 94: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’. Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals. Bad use of apostrophes tends toprovoke strong reactions!

Page 95: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’. Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals. Bad use of apostrophes tends toprovoke strong reactions!

Page 96: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’. Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals. Bad use of apostrophes tends toprovoke strong reactions!

Page 97: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’.

Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals. Bad use of apostrophes tends toprovoke strong reactions!

Page 98: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’. Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals.

Bad use of apostrophes tends toprovoke strong reactions!

Page 99: Images - University of Sheffield

Apostrophes (’)

Apostrophes are used to indicate missing letters or to indicatepossession.

Examples.

• It’s true that an apostrophe is needed here, as it indicatesa shortening of ‘it is’.

• This is Sam’s lecture. Alex’s lecture is on a different day.

A common error is to use an apostrophe in ‘its’ when used in apossessive way, as in ‘The cat chased its tail’. Apostrophes arealso unnecessary in ours, yours, his, hers, theirs, and whose,and never needed for plurals. Bad use of apostrophes tends toprovoke strong reactions!

Page 100: Images - University of Sheffield

Activity. The document in the Week 4 materials on thecourse website is in need of a serious proof-reading. Find andcorrect as many problems as you can (some of which may beLATEX errors).

Page 101: Images - University of Sheffield

About Computer Lab 4

In Computer Lab 4 we’ll look at the commands needed toinclude graphics in a document. We’ll also look at a few moreLATEX features that come in handy when creating mathematicaldocuments.