This document provides solutions and explanations to queries from a previous LaTeX typesetting session. It addresses issues with landscape and lettersize document formatting, list customization using paralist, coloring text with color, removing page headers/footers, typesetting special characters, and inserting mathematical symbols, formulas, and structures like matrices, trigonometric functions, integrals, and piecewise functions. Examples and code snippets are given for each topic.
1 of 18
More Related Content
Basic Latex Typesetting - Session 2
1. Queries and Issues from Session 1
Some Special Characters
Some Math Symbols and Commands (Cont.)
The multicols Environment
Tables, Matrices and Cases
A
Basic LTEX Typesetting
A Hands-On Seminar for Math Training Elective
Kiel F. Granada
Philippine Science High School Main Campus
Session 2
July 24, 2010
KFGranada A
Basic L TEX Typesetting
2. Queries and Issues from Session 1
landscape and lettersize Options
Some Special Characters
List Tweaks
Some Math Symbols and Commands (Cont.)
The color Package
The multicols Environment
pagestyle{empty} Issue
Tables, Matrices and Cases
Correction
$x = 1 :)
y = 4 does NOT work.
z = 3$
Math environment should be declared for each line, i.e.
$x = 1$
$y = 4$
$z = 3$
KFGranada A
Basic L TEX Typesetting
3. Queries and Issues from Session 1
landscape and lettersize Options
Some Special Characters
List Tweaks
Some Math Symbols and Commands (Cont.)
The color Package
The multicols Environment
pagestyle{empty} Issue
Tables, Matrices and Cases
landscape and lettersize Options
Con鍖gure TEXMAKER. Find under Options.
In the dvips command, between 揃 揃 揃 /dvips and %.dvi, type:
-t landscape -Ppdf or
-t letter -Ppdf or
-t landscape -t letter -Ppdf
Compile to PDF by pressing F2 F4 F8 .
Wait for each process to 鍖nish before starting the next one.
View PDF by pressing F7 .
KFGranada A
Basic L TEX Typesetting
4. Queries and Issues from Session 1
landscape and lettersize Options
Some Special Characters
List Tweaks
Some Math Symbols and Commands (Cont.)
The color Package
The multicols Environment
pagestyle{empty} Issue
Tables, Matrices and Cases
List Tweaks
The paralist Package
In the preamble, add:
usepackage { p a r a l i s t }
s e t d e f a u l t e n u m {A} { 1 ) } { ( a ) } { i ) }
This declares a new environment compactenum with
customizable structure.
New environments declaration:
b e g i n { compactenum }
item F i r s t
i t e m Second
end { compactenum }
KFGranada A
Basic L TEX Typesetting
5. Queries and Issues from Session 1
landscape and lettersize Options
Some Special Characters
List Tweaks
Some Math Symbols and Commands (Cont.)
The color Package
The multicols Environment
pagestyle{empty} Issue
Tables, Matrices and Cases
The color Package
usepackage { c o l o r }
d e f i n e c o l o r { d a r k b l u e }{ r g b } { 0 , 0 . 0 8 , 0 . 4 5 }
color { darkblue }
KFGranada A
Basic L TEX Typesetting
6. Queries and Issues from Session 1
landscape and lettersize Options
Some Special Characters
List Tweaks
Some Math Symbols and Commands (Cont.)
The color Package
The multicols Environment
pagestyle{empty} Issue
Tables, Matrices and Cases
pagestyle{empty} Issue
usepackage { f u l l p a g e }
p a g e s t y l e { empty }
KFGranada A
Basic L TEX Typesetting
7. Queries and Issues from Session 1
Some Special Characters
Some Math Symbols and Commands (Cont.)
The multicols Environment
Tables, Matrices and Cases
Some Special Characters
to distinguish commands from text
{ } to enclose command arguments/options
& to set alignments
% to insert comments
$ $ to delineate math environments
# to de鍖ne use of arguments
$ b a c k s l a s h $
{ } & % $ #
KFGranada A
Basic L TEX Typesetting
8. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
More Algebraic Functions
n
x
d
n
x d
n
|x| k
$ l f l o o r x r f l o o r $
$ l c e i l x r c e i l $
$|x|$
$ l e f t ( d f r a c {n }{ d } r i g h t ) $
$ l e f t { d f r a c {n }{ d } r i g h t } $
$ d i s p l a y s t y l e {n c h o o s e k } $
KFGranada A
Basic L TEX Typesetting
9. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Geometry Notations
$ o v e r l e f t r i g h t a r r o w {AB} $ AB
$ o v e r r i g h t a r r o w {AB} $
AB
$ o v e r l i n e {AB} $
AB
newcommand{ L i n e }{ o v e r l e f t r i g h t a r r o w }
newcommand{ Ray }{ o v e r r i g h t a r r o w }
newcommand{ Segment }{ o v e r l i n e }
$ L i n e {AB} p e r p Ray {AB} $ AB AB
$ Segment {AB} p a r a l l e l Segment {BC} $
AB BC
KFGranada A
Basic L TEX Typesetting
10. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Geometry Notations
$ a n g l e ABC$ ABC
$ t r i a n g l e ABC$ ABC
$ cong$
=
$ sim$
usepackage { arcs } MN
$ o v e r a r c {MN} $
KFGranada A
Basic L TEX Typesetting
11. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Greek Letters
$ a l p h a $
$ b e t a $ $ Delta$
$gamma$
$ e p s i l o n $
$ p i $
留硫粒
KFGranada A
Basic L TEX Typesetting
12. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Trigonometric Functions
$ s i n t h e t a $ sin 慮
$ c o s 30{ c i r c }$ cos 30
$ t a n ( a l p h a + b e t a ) $
tan(留 + 硫)
newcommand{Deg }{{ c i r c }}
$ c o s 30 Deg$
KFGranada A
Basic L TEX Typesetting
13. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Limits and Integrals
$ l i m { x t o 1} f ( x ) $
$$ l i m { x t o 1} f ( x ) $$
$ d i s p l a y s t y l e l i m { x t o 1} f ( x ) $
$ i n t 1 3 g ( x ) d i s p l a y s t y l e i n t 1 3 g ( x ) $
limx1 f (x)
lim f (x)
x1
lim f (x)
x1
3
3
1 g (x) g (x)
1
KFGranada A
Basic L TEX Typesetting
14. Queries and Issues from Session 1 More Algebraic Functions
Some Special Characters Geometry Notations
Some Math Symbols and Commands (Cont.) Trigonometric Functions
The multicols Environment Limits and Integrals
Tables, Matrices and Cases Sums and Products
Sums and Products
$ sum { i =1}{n} i 2 $
$n ! = p r o d { i =1}{n} i $
$ d i s p l a y s t y l e sum { i =1}{n} l e q p r o d { i =1}{n} $
n 2
i=1 i
n! = n i i=1
n n
i=1 i=1
KFGranada A
Basic L TEX Typesetting
15. Queries and Issues from Session 1
Some Special Characters
Some Math Symbols and Commands (Cont.)
The multicols Environment
Tables, Matrices and Cases
The multicols Environment
usepackage { m u l t i c o l }
b e g i n { m u l t i c o l s }{ number o f c o l u m n s }
column 1 c o n t e n t s
columnbreak
column 2 c o n t e n t s
end { m u l t i c o l s }
KFGranada A
Basic L TEX Typesetting
16. Queries and Issues from Session 1
Some Special Characters Tables
Some Math Symbols and Commands (Cont.) Matrices
The multicols Environment Cases
Tables, Matrices and Cases
Tables
b e g i n { t a b u l a r }{ l c r } left center right
l e f t & c e n t e r & r i g h t l c r
l & c & r
end { t a b u l a r }
begin { tabular }{| l | c | r |} left center right
hline l c r
l e f t & c e n t e r & r i g h t
hline
l & c & r
end { t a b u l a r }
KFGranada A
Basic L TEX Typesetting
17. Queries and Issues from Session 1
Some Special Characters Tables
Some Math Symbols and Commands (Cont.) Matrices
The multicols Environment Cases
Tables, Matrices and Cases
Matrices
Environment Braces $ b eg in { bmatrix }
matrix None a {11} & c d o t s & a {1 n}
pmatrix () v d o t s & c d o t s & v d o t s
bmatrix [] a {m1} & c d o t s & a {mn}
end { b m a t r i x }$
Bmatrix {}
||
錚 錚
vmatrix a11 揃揃揃 a1n
Vmatrix 錚 . . 錚
錚 .
. 揃揃揃 . 錚
.
am1 揃揃揃 amn
Note:
The matrix environments need to be enclosed by $ $.
KFGranada A
Basic L TEX Typesetting
18. Queries and Issues from Session 1
Some Special Characters Tables
Some Math Symbols and Commands (Cont.) Matrices
The multicols Environment Cases
Tables, Matrices and Cases
Cases
錚
$ s gn ( x ) = 錚1
錚 x >0
begin { cases } sgn(x) = 0 x =0
1 & x > 0 錚
1 x <0
錚
0 & x = 0
1 & x < 0
end { c a s e s } $
Note:
The cases environment also need to be enclosed by $ $.
KFGranada A
Basic L TEX Typesetting