DOC PREVIEW
UNL CSCE 235 - How to use LaTeX

This preview shows page 1-2-3 out of 10 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

How to use LaTexCSCE 235 Introductions to Discrete StructureJie [email protected] 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 youranswers to homework 1. The detailed steps are as follows. 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 hw01bibtex hw01latex hw01latex hw01dvipdf hw01.dvi hw01.pdfAlternatively, you can do:pdflatex hw01Please 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. Your can use “vi”, “vim” or any other editor to edit your file. Here, we use “vi” as an example. Go to the directory “CSE235Hw1”, and type “vi 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. WinEdtIn Window machine, you can use “WinEdt” to edit your file. The detailed steps are as follows. (More information can be found at http://www.winedt.com/ )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. Tex File 1. Declare our document type, article is usually the default\documentclass{article}2. Declare the packages used in this file \usepackage{epsfig} %A package for importing EPS graphics into your document3. 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-data6. 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|}\hlinea & b & a $\wedge$ b\\\hline\hline0 & 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 itin 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^2 + b^2 + 2ab\\ \nonumber (a + b)^3 & = & a^3 + 3a^2b + 3ab^2 + b^3 \end{eqnarray} 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 to typeset your homework example",year = "2004"}In your file, add the following line\cite{Bourke94}Reference[1]


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
Download How to use LaTeX
Our administrator received your request to download this document. We will send you the file to your email shortly.
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 2 2 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?