Writing a L A T E X Article Using Tables L A T E X Workshop 4
|
|
- Walter Matthews
- 5 years ago
- Views:
Transcription
1 Writing a L A E X Article Using ables L A E X Workshop 4. Stitz Abstract During workshop 4, attendees will include tables in a L A E X document using the standard commands available with L A E X as well as packages that improve appearance and simplify entry. External software developed to simplify table entry will be discussed briefly as well. 1 ables with L A E X 1.1 abular Environment he basic structure of a table is constructed by using \tabular[vertical position]{column formatting}. An illustrative example is shown below. Note: If the class file that you are using specifies how to use the tabular environment, use those specifications to create the table. For example when using IEEEtran, do not use vertical bars at the beginning and end of the table. First notice that column data is separated by & and row end is marked as \\. Also, the declaration version boldface is used. he duration of this declaration is only for the cell it is declared, so {} is not necessary. Let s examine the column formatting. Lines are drawn between the columns using the character. In our example, there is a double horizontal line after the first column and before the last column. Data can be centered (c), left justified (l), or right justified (r). In our example, the first column is centered. he second and fifth are right justified and the fourth and seventh are left justified. he eighth column has a width of a quarter of the width of the text on the page. Normally, the columns do not word wrap unless a column width is specified using p. Wrapped text in a column is full-justified by default. A column containing the same content can be added by using character. In our example, there are two columns of colons (third and sixth). \begin{tabular}{ c r@{:}l r@{:}l p{0.25\textwidth} } \hline \multicolumn{6}{ c }{\raisebox{-3ex}{\bfseries }}\\[5ex] \hline\hline & 10 & 00A & 10 & 50A & \bfseries Class 1\\ \cline{2-5} & 2 & 00P & 4 & 50P & \bfseries Lab 1\\ \hline\hline & 8 & 00A & 8 & 50A & \bfseries Class 2\\ \cline{2-5} \raisebox{1.5ex}[0pt]{} & 9 & 00A & 9 & 50A & \bfseries Class 3\\ \hline\hline W & 10 & 00A & 10 & 50A & \bfseries Class 1\\ Applied Sciences Librarian, Phone: , Fax: , tstitz@uakron.edu 1
2 \hline\hline & 8 & 00A & 8 & 50A & \bfseries Class 2\\ \cline{2-5} \raisebox{1.5ex}[0pt]{} & 9 & 00A & 9 & 50A & \bfseries Class 3\\ \hline \end{tabular} he hline command places horizontal lines between the rows. here is a double horizontal line separating each day. he cline command is used to draw a single line between each time block. he first row is one cell that spans the entire table. his is achieved using the \multicolumn{number of columns}{column format}{text} command. In order to achieve more whitespace between the first and second row, an option ([5ex]) was placed at the end of the first line, which forces 5ex between the first and second row. he text was placed in a box and it was lowered by 3ex to center it; otherwise, it would appear at the top of the row. An invisible horizontal rule could be used to provide more white space and center the text vertically (i.e. \rule[-1.75ex]{0mm}{5ex}) as well. 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 If you have a cell that spans several rows, you place the text in the appropriate row to get the look desired and leave the other cells empty as in the case of. here is an odd number of rows, so the text was placed in the center row to give the text a centered look. his cannot be done with an even number of rows as in the case for, W, and. he raisebox command can be used to achieve a centered look. Notice there is an option of 0pt chosen for this command. If you do not select this option, it increases the height of the row thereby increasing the vertical space. 8:00A 8:50A Class 3 9:00A 9:50A Class able Environment he table environment allows tables to be floated to optimize space. It also enables automatic table numbering with the author s caption. A caption that is shorter than one line will be centered, so often the tabular environment requires centering to align properly with the caption. A caption can be placed below a table or above a table by declaring before or after the tabular environment. 1 Options for placement of the table include where it occurs within the text (h), at the top of the page (t), at the bottom of the page (b), or on a special page (p). he placement is approximate, but will be closer to where specified when using! in conjunction with these options. he! will override some normal spacing and number restrictions. A float will not appear on a page before its declaration. here is also a special version * of the table environment, table*. When the document contains two columns, this environment is used to span both columns. Generally, tables print in sequence; however, it is possible to print out of sequence when using table*. For more information on floats, see (Kopka & Daly, 2004; ittelbach, Goossens, Braams, Carlisle, & Rowley, 2004). \begin{table}[h] \caption{class } \centering our tabular example \end{table} 1 Sometimes the caption will be too close to the table when placing the caption about it. Use \vspace{} when that happens. 2
3 able 1: Class 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 2 able Packages here are contributed packages that L A E X users have developed to enable easier entry of this information. When using a publisher class file, be sure to read the documentation thoroughly to ensure that a package does not conflict with the class file. For example, IEEEtran.cls documentation states that you cannot use caption.sty without the caption=false option, or else it overrides IEEEtran caption style. 2.1 Caption Package he caption package enables easy formatting of the caption. Caption format, such as font and position, can be adjusted using this package. \usepackage[key=value]{caption} he formatting can be set for the entire document using the optional arguments when loading the package. Use the captionsetup command within the table environment to scope the format to a particular table. As stated previously, the caption is automatically centered when using the table environment. By using singlelinecheck=false, it can be overridden. Change the label separator to a period, the font size to footnote size, and the label caption to bold and italic in our example table. \captionsetup{singlelinecheck=false,labelsep=period,font=footnotesize,labelfont={bf,it}} able 2. Class 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 3
4 2.2 Array Package he array package extends the column definitions available with the tabular environment. With the use of > and <, code can be inserted for the column while retaining the column interspace (unlike command). he code happens before the column in the case of > and the code happens after the column in the case of <. Use > to display the last column in boldface. \begin{tabular}{ c r@{:}l r@{:}l >{\bfseries}p{0.25\textwidth} } able 3. Class 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 wo additional commands are available with the array package when specifying column width (m,b). Each option works like p except for vertical alignment with respect to baseline. he top row is aligned using p, the middle is aligned using m, and the bottom line is aligned using b. When declaring column width with these options, the cells will be word wrapped and full justified. Often, a column will have a better appearance when it is simply left aligned. Using \raggedright\arraybackslash will left justify the column. \arraybackslash must be used whenever aligning column text using this method; otherwise, there will be difficulties when \\ is used and there could be errors when compiling your document. able 4. Class 10:00A 10:50A Class 1 Note: he prerequisite is Class A. 2:00P 4:50P Lab 1 5:20P 6:25P Class ultirow Package L A E X has a command to span columns; however, it does not have a command to span rows. package can be used for this purpose. he multirow \multirow{number of rows}{width}{text} Entering a * for width will use the natural width. Use the multirow command for the appropriate rows in your table. 4
5 able 5. Class 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class Colortbl Package he colortbl package enables background color for rows, columns, and cells of a table. ext color is set using the color package. he colortbl package works well with the array package commands < and >, but not all commands work properly when command is used. Using our table example, set the first column to bold, red text, the last column to a background color of light gray, and the first column to a background color of dark gray. here are two options used for the color package in the example below. he option dvipnames allows the named color model of dvips (common graphics driver used when creating DVI files) available to other drivers. he option usenames defines all the named colors. Using these options enables the use of the color BrickRed in our example. \usepackage[usenames,dvipsnames]{color} \usepackage{,colortbl} \begin{tabular}{>{\bfseries\color{brickred}}cr@{:}lr@{:}l>{\bfseries\columncolor[gray]{.8}}l} \multicolumn{6}{c}{\raisebox{-3ex}{\cellcolor[gray]{.3}\color{white}\bfseries }}\\[5ex] able 6. Class 10:00A 10:50A Class 1 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class Footnotes for ables here are a few options when incorporating footnotes with a table. he threeparttable package enables the author to easily add footnotes that display below the table. he basic structure when using threeparttable is 5
6 \begin{table}[h] \begin{threeparttable} \begin{tabular}{} & 2 & 00P & 4 & 50P & Lab 1\tnote{a} \\ \end{tabular} \begin{tablenotes} \item[a]{be 15 min. early on first day of laboratory to fill out necessary paperwork.} \end{tablenotes} \end{threeparttable} \end{table} able 7. Class 10:00A 10:50A Class 1a 2:00P 4:50P Lab 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 W 10:00A 10:50A Class 1 8:00A 8:50A Class 2 9:00A 9:50A Class 3 a Be 15 min. early on first day of laboratory to fill out necessary paperwork. 2.6 Some Packages for Large ables here are situations when a table is larger than can fit on one page in portrait mode. One popular package to enable a table to span multiple pages is longtable. It is possible to produce a table in landscape mode as well. Use of the rotating package enables a landscape table using the sidewaystable environment. 2.7 Datatool Package he datatool package allows database type operations to be performed on a text file. here are many operations available, but this workshop is going to focus on pulling data from an existing text file to display as a table. o load the text file, use \DLloaddb[options]{database name}{file name} If the data does not contain a header row, keys can be set with the optional argument. By default, the separator is a comma and there is an optional delimiter of ; however, these values can be adjusted using commands. If there are special characters in your data, it might be beneficial to use \DLloadrawdb. he data read from the text file can be displayed in a tabular or longtable environment using the DLdisplaydb ordldisplaylongdb command, respectively. Using the ascii.csv file, try the following: \DLloaddb{ascii}{ascii.csv} \DLdisplaylongdb[caption={ascii table},contcaption={ascii table cont.}]{ascii} 6
7 able 8: ascii table Char Dec Oct ex (nul) 0 0 0x00 (soh) 1 1 0x01 (stx) 2 2 0x02 (etx) 3 3 0x03 (eot) 4 4 0x04 (enq) 5 5 0x05 (ack) 6 6 0x06 (bel) 7 7 0x07 (bs) x08 (ht) x09 (nl) x0a (vt) x0b (np) x0c (cr) x0d (so) x0e (si) x0f (dle) x10 (dc1) x11 (dc2) x12 (dc3) x13 (dc4) x14 (nak) x15 (syn) x16 (etb) x17 (can) x18 (em) x19 (sub) x1a (esc) x1b (fs) x1c (gs) x1d (rs) x1e (us) x1f (sp) x20! x x22 # x23 $ x24 % x25 & x26 In the datafile, I included the appropriate commands in the data instead of using the raw version of the command, since not all characters would appear properly. It is easier to use the raw version if all the exceptions in your data are covered by the command. he display commands choose the data type according to the following rules: 1. If one entry is of string type in the column, the column data type is string 2. if (1) is not true and one entry is of currency type, the column data type is currency 3. if (1-2) are not true and all data entries are floats and integers, the column type is number 4. if (1-2) are not true and all data entries are integers, the column type is integer 7
8 here are commands that can be used in conjunction with the display commands discussed so far, but complex formatting cannot be done. If complex formatting is needed, it might be better to display on a line by line basis where fields can be separated. he DLforeach command is used in this case. ry the following: \begin{longtable}{llll} \caption{ascii table} \\ \bfseries Char & \bfseries Dec & \bfseries Oct & \bfseries ex \\ \endfirsthead \multicolumn{4}{c}{\tablename\ \thetable: ascii table cont.}\\ \bfseries Char & \bfseries Dec & \bfseries Oct & \bfseries ex \\ \endhead \DLforeach{ascii}{\symbol=Char,\decBase=Dec,\octBase=Oct,\hexBase=ex}{\bfseries \symbol & \decbase & \octbase & \hexbase\\} \end{longtable} able 9: ascii table Char Dec Oct ex (nul) 0 0 0x00 (soh) 1 1 0x01 (stx) 2 2 0x02 (etx) 3 3 0x03 (eot) 4 4 0x04 (enq) 5 5 0x05 (ack) 6 6 0x06 (bel) 7 7 0x07 (bs) x08 (ht) x09 (nl) x0a (vt) x0b (np) x0c (cr) x0d (so) x0e (si) x0f (dle) x10 (dc1) x11 (dc2) x12 (dc3) x13 (dc4) x14 (nak) x15 (syn) x16 (etb) x17 (can) x18 (em) x19 (sub) x1a (esc) x1b (fs) x1c (gs) x1d (rs) x1e (us) x1f (sp) x20! x x22 # x23 8
9 able 9: ascii table cont. Char Dec Oct ex $ x24 % x25 & x26 3 Other Software Some editors, such as ex Shop, have macros that enable users to paste from spreadsheets and will create a simple tabular environment in a L A E X document. here are some software tools that interface with other external programs and create a L A E X table. here are a few for icrosoft Excel. Excel2latex is an example of one written using VBA and installed as an add on for icrosoft Excel. here is a tool for Open Office as well. here is also software that enables users to connect to certain databases in a L A E X document. Latexdb is available for Linux and it interfaces with ysql and PostgreSQL databases. When using the database commands available with latexdb, the latexdb command is used instead of latex when creating a.dvi file. he program is written in Python; thus, Python is needed to run it. here is another program written in Ruby to perform the same function that could be used on a Windows system. o use it, Ruby must be installed. References Kopka,., & Daly, P. W. (2004). Guide to L A E X (4th ed.). Boston: Addison-Wesley. Retrieved from proquest.safaribooksonline.com/ Kottwitz, S. (2011). L A E X beginner s guide. Birmingham: Packt Publishing. ittelbach, F., Goossens,., Braams, J., Carlisle, D., & Rowley, C. (2004). he L A E X companion (2nd ed.). Boston: Addison-Wesley. Retrieved from 9
Number Representations
Simple Arithmetic [Arithm Notes] Number representations Signed numbers Sign-magnitude, ones and twos complement Arithmetic Addition, subtraction, negation, overflow MIPS instructions Logic operations MIPS
More informationCPS 104 Computer Organization and Programming Lecture-2 : Data representations,
CPS 104 Computer Organization and Programming Lecture-2 : Data representations, Sep. 1, 1999 Dietolf Ramm http://www.cs.duke.edu/~dr/cps104.html CPS104 Lec2.1 GK&DR Fall 1999 Data Representation Computers
More informationCS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON
CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Pradip Vallathol and Junaid Khalid Midterm Examination 1 In Class (50 minutes) Friday, September
More informationChapter 2 Number System
Chapter 2 Number System Embedded Systems with ARM Cortext-M Updated: Tuesday, January 16, 2018 What you should know.. Before coming to this class Decimal Binary Octal Hex 0 0000 00 0x0 1 0001 01 0x1 2
More informationCS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON
CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Junaid Khalid and Pradip Vallathol Midterm Examination 1 In Class (50 minutes) Friday, September
More informationNumber Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers
Outline of Introduction Administrivia What is computer architecture? What do computers do? Representing high level things in binary Data objects: integers, decimals, characters, etc. Memory locations (We
More informationChapter 8. Characters and Strings
Chapter 8 Characters and s OJECTIVES After you have read and studied this chapter, you should be able to Declare and manipulate data of the char data type. Write string processing programs using and uffer
More informationChapter 2 Bits, Data Types, and Operations
Chapter Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize two
More information2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme
2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme repeated (integer) division by two. Example: What is
More informationChapter 2 Bits, Data Types, and Operations
Chapter 2 Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize
More informationData Representation and Binary Arithmetic. Lecture 2
Data Representation and Binary Arithmetic Lecture 2 Computer Data Data is stored as binary; 0 s and 1 s Because two-state ( 0 & 1 ) logic elements can be manufactured easily Bit: binary digit (smallest
More informationCS341 *** TURN OFF ALL CELLPHONES *** Practice NAME
CS341 *** TURN OFF ALL CELLPHONES *** Practice Final Exam B. Wilson NAME OPEN BOOK / OPEN NOTES: I GIVE PARTIAL CREDIT! SHOW ALL WORK! 1. Processor Architecture (20 points) a. In a Harvard architecture
More informationASSIGNMENT 5 TIPS AND TRICKS
ASSIGNMENT 5 TIPS AND TRICKS linear-feedback shift registers Java implementation a simple encryption scheme http://princeton.edu/~cos26 Last updated on /26/7 : PM Goals OOP: implement a data type; write
More informationFundamentals of Programming (C)
Borrowed from lecturer notes by Omid Jafarinezhad Fundamentals of Programming (C) Group 8 Lecturer: Vahid Khodabakhshi Lecture Number Systems Department of Computer Engineering Outline Numeral Systems
More informationDo not start the test until instructed to do so!
Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices
More informationEXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)
EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: To understand and apply USART command for sending and receiving data Introduction Universal Serial Asynchronous
More informationUnder the Hood: Data Representation. Computer Science 104 Lecture 2
Under the Hood: Data Representation Computer Science 104 Lecture 2 Admin Piazza, Sakai Up Everyone should have access Homework 1 Posted Due Feb 6 PDF or Plain Text Only: No Word or RTF Recommended: Learn
More information5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital
Chapter 8: Bits and the "Why" of Bytes: Representing Information Digitally Digitizing Discrete Information Fluency with Information Technology Third Edition by Lawrence Snyder Copyright 2008 Pearson Education,
More informationExercises Software Development I. 03 Data Representation. Data types, range of values, internal format, literals. October 22nd, 2014
Exercises Software Development I 03 Data Representation Data types, range of values, ernal format, literals October 22nd, 2014 Software Development I Wer term 2013/2014 Priv.-Doz. Dipl.-Ing. Dr. Andreas
More informationBinary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example
The Basics Binary Numbers Part Bit of This and a Bit of That What is a Number? Base Number We use the Hindu-Arabic Number System positional grouping system each position represents a power of Binary numbers
More informationChapter 2 Bits, Data Types, and Operations
Chapter 2 Bits, Data Types, and Operations Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox, Colorado State University How do we represent data in a computer?!
More informationCSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.
9 February 2011 CSE-1520R Test #1 [7F] w/ answers p. 1 of 8 CSE-1520R Test #1 Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 45 minutes Term: Winter 2011 The
More informationChapter 2 Bits, Data Types, and Operations
Chapter 2 Bits, Data Types, and Operations Original slides from Gregory Byrd, North Carolina State University Modified by Chris Wilcox, S. Rajopadhye Colorado State University How do we represent data
More informationEXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)
EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: Introduction To understand and apply USART command for sending and receiving data Universal Serial Asynchronous
More informationChapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2
Chapter Introduction to Computers and Programming Hardware Chapter.2 Hardware Categories Input Devices Process Devices Output Devices Store Devices /2/27 Sacramento State - CSc A 3 Storage Devices Primary
More informationCSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.
9 February 2011 CSE-1520R Test #1 [B4] p. 1 of 8 CSE-1520R Test #1 Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 45 minutes Term: Winter 2011 The exam is closed
More informationVariables and data types
Programming with Python Module 1 Variables and data types Theoretical part Contents 1 Module overview 4 2 Writing computer programs 4 2.1 Computer programs consist of data and instructions......... 4 2.2
More informationThe Binary Number System
The Binary Number System Robert B. Heckendorn University of Idaho August 24, 2017 Numbers are said to be represented by a place-value system, where the value of a symbol depends on where it is... its place.
More informationLecture (09) x86 programming 8
Lecture (09) x86 programming 8 By: Dr. Ahmed ElShafee 1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
More informationChapter 3. Information Representation
Chapter 3 Information Representation Instruction Set Architecture APPLICATION LEVEL HIGH-ORDER LANGUAGE LEVEL ASSEMBLY LEVEL OPERATING SYSTEM LEVEL INSTRUCTION SET ARCHITECTURE LEVEL 3 MICROCODE LEVEL
More informationNumbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras
Numbers and Computers Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras 1 Think of a number between 1 and 15 8 9 10 11 12 13 14 15 4 5 6 7 12 13 14 15 2 3 6 7 10 11 14 15
More informationReview. Single Pixel Filters. Spatial Filters. Image Processing Applications. Thresholding Posterize Histogram Equalization Negative Sepia Grayscale
Review Single Pixel Filters Thresholding Posterize Histogram Equalization Negative Sepia Grayscale Spatial Filters Smooth Blur Low Pass Filter Sharpen High Pass Filter Erosion Dilation Image Processing
More informationOberon Data Types. Matteo Corti. December 5, 2001
Oberon Data Types Matteo Corti corti@inf.ethz.ch December 5, 2001 1 Introduction This document is aimed at students without any previous programming experience. We briefly describe some data types of the
More information1.1. INTRODUCTION 1.2. NUMBER SYSTEMS
Chapter 1. 1.1. INTRODUCTION Digital computers have brought about the information age that we live in today. Computers are important tools because they can locate and process enormous amounts of information
More informationmarson MT8200S 2D Handheld Scanner User Manual V / 6 / 25 - I -
marson MT8200S 2D Handheld Scanner User Manual V1.1 2018 / 6 / 25 - I - Table of Contents 1 Gettting Started...1 1.1 Introduction...1 1.2 Configuring MT8200S...1 1.2.1 Barcode Configurability...1 1.2.2
More informationWatch the following for more announcements
Review "plain text file" loadstrings() split() splittokens() selectinput() println(), float(), int(), can take an array argument, will return an array easy way to convert an array of Strings to an array
More informationIntroduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators
Boolean & If Statements Introduction to Decision Structures Chapter 4 Fall 2015, CSUS Chapter 4.1 Introduction to Decision Structures Different Types of Decisions A decision structure allows a program
More informationChapter 2 Bits, Data Types, and Operations
Chapter 2 Bits, Data Types, and Operations Computer is a binary digital system. Digital system: finite number of symbols Binary (base two) system: has two states: 0 and 1 Basic unit of information is the
More informationPureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 -
PureScan - ML1 Wireless Linear Imager Wireless Laser scanner Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up the parameter 3 Chapter 2
More informationPositional Number System
Positional Number System A number is represented by a string of digits where each digit position has an associated weight. The weight is based on the radix of the number system. Some common radices: Decimal.
More informationFD-011WU. 2D Barcode Reader User Guide V1.6CC
FD-011WU 2D Barcode Reader User Guide V1.6CC Table of Contents 1 Getting Started... 1 1.1 Factory Defaults... 1 2 Communication Interfaces...2 2.1 TTL-232 Interface... 2 2.2 Baud Rate... 3 2.3 Data Bit
More informationA small extension to threeparttable or bringing threeparttable to longtable
A small extension to threeparttable or bringing threeparttable to longtable Lars Madsen Corresponding to version 0.3, manual updated May 22, 2014 Introduction Because of the measuring nature of the original
More informationCreating Tables and Figures with L A T E X
Creating and with L A T E X Ricky Patterson bit.ly/latex 5 Oct 2016 Ricky Patterson and in LAT E X 5 Oct 2016 1 / 23 Outline Introduction picture environment Importing Graphics Ricky Patterson and in LAT
More informationDATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes
1 DATA REPRESENTATION Data Types Complements Fixed Point Representations Floating Point Representations Other Binary Codes Error Detection Codes 2 Data Types DATA REPRESENTATION Information that a Computer
More informationUnit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School
Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions Mr. Dave Clausen La Cañada High School Vocabulary Variable- A variable holds data that can change while the program
More informationCSE 30 Spring 2006 Final Exam
cs30x_ Student ID Name _ Signature CSE 30 Spring 2006 Final Exam 1. Number Systems _ (15 points) 2. Binary Addition/Condition Code Bits/Overflow Detection _ (12 points) 3. Branching _ (18 points) 4. Bit
More informationCSE 30 Fall 2013 Final Exam
Login: cs30x Student ID Name Signature By filling in the above and signing my name, I confirm I will complete this exam with the utmost integrity and in accordance with the Policy on Integrity of Scholarship.
More informationCSE 30 Fall 2007 Final Exam
Login: cs30x Student ID Name Signature CSE 30 Fall 2007 Final Exam 1. Number Systems (25 points) 2. Binary Addition/Condition Code Bits/Overflow Detection (12 points) 3. Branching (19 points) 4. Bit Operations
More informationTable of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup
Table of Contents Chapter 1 System Information 1.1 Setup Scanner with PC 1.2 Setup Scanner with Mobile Device 1.3 Configure ios On-Screen Keyboard 1.4 Memory Mode 3 4 4 5 1.5 Sleep Settings 6 1.6 How to
More informationFundamentals of Programming
Fundamentals of Programming Lecture 2 Number Systems & Arithmetic Lecturer : Ebrahim Jahandar Some Parts borrowed from slides by IETC1011-Yourk University Common Number Systems System Base Symbols Used
More informationDo not start the test until instructed to do so!
Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices
More informationCSE 30 Spring 2007 Final Exam
Login: cs30x Student ID Name Signature CSE 30 Spring 2007 Final Exam 1. Number Systems (25 points) 2. Binary Addition/Condition Code Bits/Overflow Detection (12 points) 3. Branching (19 points) 4. Bit
More informationJ2 LCM Customer Display. Manual
J2 LCM Customer Display Manual July 2012 Contents LCM Customer Display... 3 Overview... 3 Customer Display Configureation... 4 Port Settings... 4 CD Settings... 5 Emulation Mode... 5 Character Sets...
More informationConnecting UniOP to Datalogic Barcode Readers
Connecting UniOP to Datalogic Barcode Readers This Technical Note contains the information needed to connect UniOP to Datalogic Barcode Scanners. Contents 1. Introduction...1 2. Designer setup...1 2.1
More informationCSE 30 Winter 2014 Final Exam
Signature Login: cs30x Name Student ID By filling in the above and signing my name, I confirm I will complete this exam with the utmost integrity and in accordance with the Policy on Integrity of Scholarship.
More information4/14/2015. Architecture of the World Wide Web. During this session we will discuss: Structure of the World Wide Web
Internet Gambling Investigations Architecture of the World Wide Web Ω Objectives During this session we will discuss: The term world wide web User interaction on the world wide web The purpose of gateways
More informationvoid mouseclicked() { // Called when the mouse is pressed and released // at the same mouse position }
Review Commenting your code Random numbers and printing messages mousex, mousey void setup() & void draw() framerate(), loop(), noloop() Arcs, curves, bézier curves, beginshape/endshape Example Sketches
More informationMidterm CSE 131 Winter 2015
Login Name _ Signature Name _ Student ID Midterm CSE 131 Winter 2015 Page 1 Page 2 Page 3 Page 4 Page 5 (30 points) (26 points) (28 points) (28 points) (30 points) Subtotal (142 points = 100%) Page 6 Extra
More informationMK D Imager Barcode Scanner Configuration Guide
MK-5500 2D Imager Barcode Scanner Configuration Guide V1.4 Table of Contents 1 Getting Started... 3 1.1 About This Guide... 3 1.2 Barcode Scanning... 3 1.3 Factory Defaults... 3 2 Communication Interfaces...
More informationCMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes
Multiple-byte data CMSC 313 Lecture 03 big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes UMBC, CMSC313, Richard Chang 4-5 Chapter
More informationCSE 30 Fall 2012 Final Exam
Login: cs30x Student ID Name Signature By filling in the above and signing my name, I confirm I will complete this exam with the utmost integrity and in accordance with the Policy on Integrity of Scholarship.
More information1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1
Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 1. Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 2. Numeric Representation of
More informationMidterm CSE 131 Winter 2014
Student ID Login Name _ Name Signature Midterm CSE 131 Winter 2014 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 (21 points) (36 points) (28 points) (16 points) (18 points) (20 points) Subtotal (139 points
More informationIntroduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison
Introduction to Computer Engineering CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison Chapter 5 The LC-3 Announcements Homework 3 due today No class on Monday
More informationPD1100 STAND-ALONE PROGRAMMING & USER S GUIDE. use the freedom
PD1100 STAND-ALONE ALPHANUMERIC POLE DISPLAY PROGRAMMING & USER S GUIDE use the freedom Forward The information contained in this user s guide is subject to change without notice. This Programming and
More informationMOBILE THERMAL PRINTER
MOBILE THERMAL PRINTER MODEL CMP-30 series ESC Command Manual Rev. 1.00 TABLE OF CONTENTS 1. Command Description... 6 2. Commands... 7 HT... 7 LF... 7 CR... 8 FF... 8 CAN... 8 DLE EOT... 9 DLE ENQ... 12
More informationSquare cells: an array cooking lesson
The PracTEX Journal TPJ 2005 No 02, 2005-04-15 Rev. 2005-03-25 Square cells: an array cooking lesson Will Robertson 1 Square cells in tabular Late last year, there was a question on the Mac OS X TEX mailing
More informationAddmaster Corporation
IJ-1000 Ink-Jet Validation Printer Specification Addmaster Corporation Address: 225 East Huntington Drive Monrovia, CA 91016 Web: www.addmaster.com Phone: (626) 358-2395 FAX: (626) 358-2784 Document: ij1w.doc
More informationDo not start the test until instructed to do so!
Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices
More informationMidterm CSE 131 Fall 2014
Login Name _ Signature Name _ Student ID Midterm CSE 131 Fall 2014 Page 1 Page 2 Page 3 Page 4 Page 5 (35 points) (30 points) (24 points) (24 points) (32 points) Subtotal (145 points = 100%) Page 6 Extra
More informationLecture 10 Arrays (2) and Strings. UniMAP SEM II - 11/12 DKT121 1
Lecture 10 Arrays (2) and Strings UniMAP SEM II - 11/12 DKT121 1 Outline 8.1 Passing Arrays to Function 8.2 Displaying Array in a Function 8.3 How Arrays are passed in a function call 8.4 Introduction
More informationSPM723 Programmable Stereo Preamp/Mixer
SPM723 Programmable Stereo Preamp/Mixer RS-232 Control Manual Released: 14 Aug 2001 Biamp Systems, 10074 S.W. Arctic Drive, Beaverton, Oregon 97005 U.S.A. (503) 641-7287 an affiliate of Rauland-Borg Corp.
More informationMidterm CSE 131 Winter 2012
Login Name Signature _ Name Student ID Midterm CSE 131 Winter 2012 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 (22 points) (29 points) (25 points) (34 points) (20 points) (18 points) Subtotal (148 points
More informationBits and Bytes. Data Representation. A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices.
Bits and Bytes 1 A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices. A byte is a sequence of 8 bits. A byte is also the fundamental unit of storage
More informationNumber Systems Base r
King Fahd University of Petroleum & Minerals Computer Engineering Dept COE 2 Fundamentals of Computer Engineering Term 22 Dr. Ashraf S. Hasan Mahmoud Rm 22-44 Ext. 724 Email: ashraf@ccse.kfupm.edu.sa 3/7/23
More informationNumber Systems II MA1S1. Tristan McLoughlin. November 30, 2013
Number Systems II MA1S1 Tristan McLoughlin November 30, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/18 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii
More informationUser s Manual. Xi3000 Scanner. Table of Contents
Xi3000 Scanner User s Manual Table of Contents Restore Default Settings... 1 Exit Setup without Changes... 1 Configure Through RS232... 1 List Setting... 1 Buzzer Settings... 2 Reading Redundancy Setting...
More informationSimple Data Types in C. Alan L. Cox
Simple Data Types in C Alan L. Cox alc@rice.edu Objectives Be able to explain to others what a data type is Be able to use basic data types in C programs Be able to see the inaccuracies and limitations
More informationFinal CSE 131 Fall 2014
Login Name Student ID Name Signature Final CSE 131 Fall 2014 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 (35 points) (24 points) (30 points) (32 points) (25 points) (36 points) (30 points)
More informationExperiment 3. TITLE Optional: Write here the Title of your program.model SMALL This directive defines the memory model used in the program.
Experiment 3 Introduction: In this experiment the students are exposed to the structure of an assembly language program and the definition of data variables and constants. Objectives: Assembly language
More informationSource coding and compression
Computer Mathematics Week 5 Source coding and compression College of Information Science and Engineering Ritsumeikan University last week binary representations of signed numbers sign-magnitude, biased
More informationMenu & commands booklet FOR BAR CODE SCANNERS * *
Menu & commands booklet FOR BAR CODE SCANNERS *201002993520* Caution! This menu book may be revised or withdrawn at any time. Copyright 1993-99, Datalogic S.p.A. All Rights Reserved. No part of this publication
More informationAPPENDIX A : KEYWORDS... 2 APPENDIX B : OPERATORS... 3 APPENDIX C : OPERATOR PRECEDENCE... 4 APPENDIX D : ESCAPE SEQUENCES... 5
APPENDIX A : KEYWORDS... 2 APPENDIX B : OPERATORS... 3 APPENDIX C : OPERATOR PRECEDENCE... 4 APPENDIX D : ESCAPE SEQUENCES... 5 APPENDIX E : ASCII CHARACTER SET... 6 APPENDIX F : USING THE GCC COMPILER
More informationRS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200
RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200 Biamp Systems, 14130 N.W. Science Park, Portland, Oregon 97229 U.S.A. (503) 641-7287 an affiliate of Rauland-Borg Corp. Introduction
More information2D BARCODE SCANNER CA-SC-20200B
D BARCODE SCANNER CA-SC-B Quick Start Guide Getting Familiar with Your Device Thank you for choosing Capture Bar Code Scanner. All Devices deliver world-class performance for a broad range of applications
More informationFinal Exam Practice Questions
Final Exam Practice Questions 1. Short Answer Questions (10 points total) (a) Given the following hierarchy: class Alpha {... class Beta extends Alpha {... class Gamma extends Beta {... What order are
More informationCMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012
CMSC 33 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 2, FALL 22 TOPICS TODAY Bits of Memory Data formats for negative numbers Modulo arithmetic & two s complement Floating point formats
More informationConfiguration Manual PULSAR C CCD SCANNER. Table of Contents
Table of Contents PULSAR C CCD SCANNER Configuration Manual Metrologic Instruments GmbH Dornier Strasse 2 82178 Puchheim Germany Tel +49 89 890190 Fax +49 89 89019200 www.europe.metrologic.com Metrologic
More informationADDMASTER. Addmaster Corporation. IJ-3080 Journal/Validation Printer. Specification. IJ-3080 Specification
IJ-3080 Journal/Validation Printer Specification Provides the electrical, mechanical, and interface specifications of the IJ-3080 Journal/Validation Printer. Cover Models: IJ-3080 The Addmaster Model IJ-3080
More informationWeek 1 / Lecture 2 8 March 2017 NWEN 241 C Fundamentals. Alvin Valera. School of Engineering and Computer Science Victoria University of Wellington
Week 1 / Lecture 2 8 March 2017 NWEN 241 C Fundamentals Alvin Valera School of Engineering and Computer Science Victoria University of Wellington Admin stuff People Course Coordinator Lecturer Alvin Valera
More informationCSE 30 Fall 2006 Final Exam
cs30x_ Student ID Name _ Signature CSE 30 Fall 2006 Final Exam 1. Number Systems _ (15 points) 2. Binary Addition/Condition Code Bits/Overflow Detection _ (12 points) 3. Branching _ (20 points) 4. Bit
More information+ Inheritance. n Superclass (base class) higher in the hierarchy. n Subclass (child class) lower in the hierarchy
+ Word Clouds + Inheritance n Superclass (base class) higher in the hierarchy n Subclass (child class) lower in the hierarchy n A subclass is derived from from a superclass n Subclasses inherit the fields
More informationMidterm CSE 131 Winter 2013
Login Name Signature _ Name Student ID Midterm CSE 131 Winter 2013 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 (21 points) (21 points) (21 points) (23 points) (18 points) (24 points) Subtotal (128 points
More informationD730. Remote Display Installation Manual
D730 Remote Display Installation Manual Copyright All Rights Reserved. No part of this document may be copied, reproduced, republished, uploaded, posted, transmitted, distributed, stored in or introduced
More informationFinal CSE 131 Fall 2015
Login Name Student ID Name Signature Final CSE 131 Fall 2015 Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 (26 points) (24 points) (22 points) (18 points) (20 points) (22 points) (24 points)
More informationCSE 30 Winter 2009 Final Exam
Login: cs30x Student ID Name Signature CSE 30 Winter 2009 Final Exam 1. Number Systems / C Compiling Sequence (15 points) 2. Binary Addition/Condition Code Bits/Overflow Detection (12 points) 3. Branching
More informationIntroduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS)
Chapter Introduction Introduction to Computers and Programming (Fall 25, CSUS) Chapter. Introduction Creators of Software Computers perform any job that their programs tell them to do A program is a set
More informationNumber System (Different Ways To Say How Many) Fall 2016
Number System (Different Ways To Say How Many) Fall 2016 Introduction to Information and Communication Technologies CSD 102 Email: mehwish.fatima@ciitlahore.edu.pk Website: https://sites.google.com/a/ciitlahore.edu.pk/ict/
More informationCS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON
CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Pradip Vallathol and Junaid Khalid Examination 4 In Class (50 minutes) Wednesday, December 12,
More informationCPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation
CPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation George Tsiknis University of British Columbia Department of Computer Science Winter Term 2, 2015-2016 Last updated: 04/04/2016
More information