Unformatted text preview:

How to use LaTeX CSCE 235 Introductions to Discrete Structure Nobel Khandaker knobel cse unl edu 1 13 2019 In this document we explain how to use LaTeX to edit your homework on CSE computers First of all the GTA will provide you a F08 hw example tex file This file is a template for homework that you want to customize for each homework if you choose to submit them in LaTeX You can save it as hw01 tex to include the questions of and your answers to homework 1 The detailed steps are as follows Using nano or Kile 1 Create a folder called CSE235Hw1 and put the file hw01 tex in this folder 2 Use SSH Secure Shell Client to connect to the CSE server 3 Upload the folder CSE235Hw1 to the server by using ssh client 4 To fully compile and link the cross references on please go to the directory CSE235Hw1 and repeat some commands as follows lateX hw01 bibTeX hw01 lateX hw01 lateX hw01 dvipdf hw01 dvi hw01 pdf Alternatively you can do pdflatex hw01 Please also refer to the next figure 1 5 Your will see a file called hw01 pdf added to your directory This is the file that you need to hand in 6 Edit your homework You can use nano or other editors like vim emacs to edit your tex files Go to the directory CSE235Hw1 and type nano hw01 tex Edit your solution after a problem After you finish your homework compile it and hand in your PDF file using the handin program on cse unl edu A better alternative to editing TeX files in Linux environment is to use Kile You can login to the Unix environment in the local machines in the cse lab and use Kile Using WinEdt In Window machine you can use WinEdt to edit your file The detailed steps are as follows http www winedt com More information can be found at 1 Create a folder called CSE235Hw1 and put the two files in this folder 2 Use WinEdt to open hw01 tex 3 Edit your solution after each problem 4 To compile the TEX file press the icon as follow The following screen will appear 5 To form a PDF file press the icon in the red circle as follows Then we have the PDF file of hw01 pdf as follows If you use a Linux system such as Fedora 9 you can use kile to edit your TEX file kile is a TEX editor with a nice graphic user interface Editing Your TeX File 1 Declare our document type article is usually the default documentclass article 2 Declare the packages used in this file usepackage epsfig your document A package for importing EPS graphics into 3 We can also define new commands Instead of having to write newcommand problem vspace 5cm textbf Problem 4 Write a title title CSE 235 Homework Template author Jie Feng date Fall 2008 5 Begin to write a document begin document maketitle This prints out the title with all the meta data 6 Some commands you will use a List some items begin itemize item AA item BB item CC end itemize b Make a table begin table t caption small Definition of the logical connective wedge begin center begin tabular cc c hline a b a wedge b hline hline 0 0 0 0 1 0 1 0 0 1 1 1 hline end tabular end center label tab logical and end table c Mathematical equation In line equations a b 2k n i frac 3x 7y The equation will be displayed centered on a new line a b 2k n i frac 3x 7y The equation will be display in the center and numbered You can reference it in the text using its label as in Equation ref eq my equation begin equation a b 2k n i frac 3x 7y label eq my equation end equation Two or more equations will be displayed as in a table and each will be numbered unless nonumber is specified begin eqnarray a b 2 a 2 b 2 2ab a b 2 a b 3 end eqnarray a 2 b 2 2ab nonumber a 3 3a 2b 3ab 2 b 3 d To insert a figure use the figure environment Each figure should always be introduced in the Text and referenced using its label Figure ref fig k shows a complete graph with 5 nodes begin figure ht begin center includegraphics scale 0 6 k5 eps caption small A complete graph with 5 nodes label fig k5 end center end figure e Making a citation bibliographystyle plain bibliography yourbibliofile Edit your references in yourbibliofile bib file article Bourke94 author Chris Bourke title Using LaTeX example year 2004 to typeset your homework In your file add the following line cite Bourke94 Note This document is a modified version of the original document prepared by Jie Feng


View Full Document

UNL CSCE 235 - How to use LaTeX

Documents in this Course
Logic

Logic

77 pages

Proofs

Proofs

82 pages

Induction

Induction

85 pages

Proofs

Proofs

52 pages

Sets

Sets

8 pages

Recursion

Recursion

16 pages

Proofs

Proofs

82 pages

Functions

Functions

71 pages

Recursion

Recursion

50 pages

Functions

Functions

54 pages

Graphs

Graphs

56 pages

Induction

Induction

32 pages

Relations

Relations

60 pages

Graphs

Graphs

10 pages

Recursion

Recursion

80 pages

Recursion

Recursion

81 pages

Functions

Functions

16 pages

Recursion

Recursion

16 pages

Sets

Sets

52 pages

Relations

Relations

60 pages

Load more
Loading Unlocking...
Login

Join to view How to use LaTeX and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view How to use LaTeX and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?