Skip to content

Commit

Permalink
Added chapter-1 and2
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddesh25 authored May 10, 2019
1 parent e666ad6 commit 3d59d52
Show file tree
Hide file tree
Showing 40 changed files with 365 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Chapter01/example1.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
This is our first document.
\end{document}
9 changes: 9 additions & 0 deletions Chapter02/9867_02_01.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\documentclass[a4paper,11pt]{article}
\begin{document}
\title{Example 2}
\author{My name}
\date{January 5, 2011}
\maketitle
\section{What's this?}
This is our second document. It contains a title and a section with text.
\end{document}
14 changes: 14 additions & 0 deletions Chapter02/9867_02_02.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\documentclass[a4paper,11pt]{article}
\begin{document}
\title{Example 3}
\author{My name}
\date{January 5, 2011}
\maketitle
\section{What's this?}
This is our
second document.

It contains two paragraphs. The first line of a paragraph will be
indented, but not when it follows a heading.
% Here's a comment.
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_03.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
Statement \#1:
50\% of \$100 makes \$50.
More special symbols are \&, \_, \{ and \}.
\end{document}
11 changes: 11 additions & 0 deletions Chapter02/9867_02_04.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\documentclass{article}
\begin{document}
Text can be \emph{emphasized}.

Besides being \textit{italic} words could be \textbf{bold},
\textsl{slanted} or typeset in \textsc{Small Caps}.

Such commands can be \textit{\textbf{nested}}.

\emph{See how \emph{emphasizing} looks when nested.}
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_05.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
\section{\textsf{\LaTeX\ resources in the internet}}
The best place for downloading LaTeX related software is CTAN.
Its address is \texttt{http://www.ctan.org}.
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_06.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
\section{\sffamily\LaTeX\ resources in the internet}
The best place for downloading LaTeX related software is CTAN.
Its address is \ttfamily http://www.ctan.org\rmfamily.
\end{document}
22 changes: 22 additions & 0 deletions Chapter02/9867_02_07.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\documentclass{article}
\usepackage{booktabs}
\renewcommand*\c{\textbackslash\ttfamily}
\begin{document}
\sffamily
\begin{tabular}{lll}
\toprule
\textbf{Command} & \textbf{Declaration} & \textbf{Meaning} \\
\midrule
\c textrm\{\ldots\} & \c rmfamily & \normalfont\rmfamily roman family \\
\c textsf\{\ldots\} & \c sffamily & \normalfont\sffamily sans-serif family \\
\c texttt\{\ldots\} & \c ttfamily & \normalfont\ttfamily typewriter family \\
\c textbf\{\ldots\} & \c bfseries & \normalfont\bfseries bold-face \\
\c textmd\{\ldots\} & \c mdseries & \normalfont\mdseries medium \\
\c textit\{\ldots\} & \c itshape & \normalfont\itshape italic shape \\
\c textsl\{\ldots\} & \c slshape & \normalfont\slshape slanted shape \\
\c textsc\{\ldots\} & \c scshape & \normalfont\scshape Small Caps shape \\
\c textup\{\ldots\} & \c upshape & \normalfont\upshape upright shape \\
\c textnormal\{\ldots\} & \c normalfont & \normalfont default font \\
\bottomrule
\end{tabular}
\end{document}
12 changes: 12 additions & 0 deletions Chapter02/9867_02_08.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\documentclass{article}
\begin{document}
{\sffamily
Text can be {\em emphasized}.

Besides being {\itshape italic} words could be {\bfseries bold},
{\slshape slanted} or typeset in {\scshape Small Caps}.

Such commands can be {\itshape\bfseries nested}.}

{\em See how {\em emphasizing} looks when nested.}
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_09.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
\noindent\tiny We \scriptsize start \footnotesize \small small,
\normalsize get \large big \Large and \LARGE bigger,
\huge huge and \Huge gigantic!
\end{document}
10 changes: 10 additions & 0 deletions Chapter02/9867_02_10.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
\documentclass{article}
\begin{document}
\begin{huge}
\bfseries
A small example

\end{huge}
\bigskip
This is just another small illustrative example.
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_11.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\newcommand{\TUG}{TeX Users Group}
\begin{document}
\section{The \TUG}
The \TUG\ is an organization for people who are interested in \TeX\ or \LaTeX.
\end{document}
7 changes: 7 additions & 0 deletions Chapter02/9867_02_12.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\usepackage{xspace}
\newcommand{\TUG}{\textsc{TeX Users Group}\xspace}
\begin{document}
\section{The \TUG}
The \TUG is an organization for people who are interested in \TeX\ or \LaTeX.
\end{document}
8 changes: 8 additions & 0 deletions Chapter02/9867_02_13.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\usepackage{xspace}
\newcommand{\TUG}{\textsc{\TeX\ Users Group}\xspace}
\begin{document}
\section{The \TUG}
The \TUG is an organization for people who are interested in \TeX\ or \LaTeX.
\end{document}

6 changes: 6 additions & 0 deletions Chapter02/9867_02_14.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\newcommand{\keyword}[1]{\textbf{#1}}
\begin{document}
\keyword{Grouping} by curly braces limits the
\keyword{scope} of \keyword{declarations}.
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_15.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\newcommand{\keyword}[2][\bfseries]{{#1#2}}
\begin{document}
\keyword{Grouping} by curly braces limits the
\keyword{scope} of \keyword[\itshape]{declarations}.
\end{document}
4 changes: 4 additions & 0 deletions Chapter02/9867_02_16.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
\parbox{3cm}{TUG is an acronym. It means \TeX\ Users Group.}
\end{document}
7 changes: 7 additions & 0 deletions Chapter02/9867_02_17.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\begin{document}
Text line
\quad\parbox[b]{1.8cm}{this parbox is aligned at its bottom line}
\quad\parbox{1.5cm}{center-aligned parbox}
\quad\parbox[t]{2cm}{another parbox aligned at its top line}
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_18.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
\begin{minipage}{3cm}
TUG is an acronym. It means \TeX\ Users Group.
\end{minipage}
\end{document}
7 changes: 7 additions & 0 deletions Chapter02/9867_02_19.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\hyphenation{acro-nym}
\begin{document}
\begin{minipage}{3cm}
TUG is an acronym. It means \TeX\ Users Group.
\end{minipage}
\end{document}
8 changes: 8 additions & 0 deletions Chapter02/9867_02_20.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\usepackage{microtype}
\hyphenation{acro-nym}
\begin{document}
\begin{minipage}{3cm}
TUG is an acronym. It means \TeX\ Users Group.
\end{minipage}
\end{document}
8 changes: 8 additions & 0 deletions Chapter02/9867_02_21-2.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\begin{document}
\emph{Annabel Lee}\\*[3mm]
It was many and many a year ago,\linebreak
In a kingdom by the sea,\\
That a maiden there lived whom you may know\\
By the name of Annabel Lee
\end{document}
8 changes: 8 additions & 0 deletions Chapter02/9867_02_21.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\begin{document}
\emph{Annabel Lee}\\
It was many and many a year ago,\\
In a kingdom by the sea,\\
That a maiden there lived whom you may know\\
By the name of Annabel Lee
\end{document}
9 changes: 9 additions & 0 deletions Chapter02/9867_02_22-2.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\documentclass[a4paper,11pt]{article}
\title{Example 3}
\author{My name}
\date{2011-01-05}
\begin{document}
ff fi fl ffi ffl -- ---

f\/f f\/i f\/l f\/f\/i f\/f\/l -\/- -\/-\/-
\end{document}
18 changes: 18 additions & 0 deletions Chapter02/9867_02_22.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
\documentclass[a4paper,11pt]{article}
\title{Example 3}
\author{My name}
\date{2011-01-05}
\begin{document}
\maketitle
\section{What's here}
This is our
second document.

It contains two paragraphs. The first line of a paragraph will be
indented, but not when it follows a heading.
% Here’s a comment.

ff fi fl ffi ffl -- ---

f\/f f\/i f\/l f\/f\/i f\/f\/l -\/- -\/-\/-
\end{document}
14 changes: 14 additions & 0 deletions Chapter02/9867_02_23.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\documentclass[a4paper,11pt]{article}
\title{Example 3}
\author{My name}
\date{2011-01-05}
\begin{document}
\maketitle
\section{What's here}
This is our
second document.

It contains two paragraphs. The first line of a paragraph will be
indented, but not when it follows a heading.
% Here’s a comment.
\end{document}
5 changes: 5 additions & 0 deletions Chapter02/9867_02_24.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
\documentclass[a4paper,10pt]{article}
\begin{document}
\TeX\ was designed by Donald E. Knuth.
It has become a de facto standard in mathematics.
\end{document}
4 changes: 4 additions & 0 deletions Chapter02/9867_02_25.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
Look at the spacing etc. in LaTeX. See it?
\end{document}
4 changes: 4 additions & 0 deletions Chapter02/9867_02_26.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
Look at the spacing etc.\ in LaTeX\@. See it?
\end{document}
8 changes: 8 additions & 0 deletions Chapter02/9867_02_27.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\documentclass{article}
\frenchspacing
\begin{document}
\TeX\ was designed by Donald E. Knuth.
It has become a de facto standard in mathematics.

Look at the spacing etc. in LaTeX. See it?
\end{document}
4 changes: 4 additions & 0 deletions Chapter02/9867_02_28.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
Here are three dots... compare them to the ellipsis\ldots
\end{document}
6 changes: 6 additions & 0 deletions Chapter02/9867_02_29.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\documentclass{article}
\begin{document}
N\~{a}o compreendo. H\'{a} aqui algu\'{e}m que fale ingl\^{e}s?

Comment \c{c}a va? O\`{u} se trouve l'a\'{e}roport?
\end{document}
19 changes: 19 additions & 0 deletions Chapter02/9867_02_30.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
\documentclass{article}
\usepackage{booktabs}
\newcommand*\co{\ttfamily\textbackslash}
\begin{document}
\sffamily
\begin{tabular}{cccc}
\toprule
\textbf{Command} & \textbf{Output} & \textbf{Command} & \textbf{Output} \\
\midrule
\co '\{a\} & \'{a} & \co u\{a\} & \u{a} \\
\co `\{o\} & \`{o} & \co v\{e\} & \v{e} \\
\co \^{ }\{e\} & \^{e} & \co H\{a\} & \H{a} \\
\co"\{u\} & \"{u} & \co t\{oo\} & \t{oo} \\
\co\~{}\{n\} & \~{n} & \co c\{c\} & \c{c} \\
\co =\{o\} & \={o} & \co d\{n\} & \d{n} \\
\co .\{a\} & \.{a} & \co b\{i\} & \b{i} \\
\bottomrule
\end{tabular}
\end{document}
7 changes: 7 additions & 0 deletions Chapter02/9867_02_31.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
Não compreendo. Há aqui alguém que fale inglês?

Comment ça va? Où se trouve l'aéroport?
\end{document}
5 changes: 5 additions & 0 deletions Chapter02/9867_02_32.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
\documentclass{article}
\begin{document}
\parbox{3cm}{\raggedright
TUG is an acronym. It means \TeX\ Users Group.}
\end{document}
9 changes: 9 additions & 0 deletions Chapter02/9867_02_33.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\documentclass{article}
\begin{document}
{\centering
\huge\bfseries Centered text \\
\Large\normalfont written by me \\
\normalsize\today

}
\end{document}
17 changes: 17 additions & 0 deletions Chapter02/9867_02_34.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\documentclass{article}
\usepackage{url}
\begin{document}
\noindent This is the beginning of a poem
by Edgar Allan Poe:
\begin{center}
\emph{Annabel Lee}
\end{center}
\begin{center}
It was many and many a year ago,\\
In a kingdom by the sea,\\
That a maiden there lived whom you may know\\
By the name of Annabel Lee
\end{center}
The complete poem can be read on
\url{http://www.online-literature.com/poe/576/}.
\end{document}
11 changes: 11 additions & 0 deletions Chapter02/9867_02_35.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\documentclass{article}
\pagestyle{empty}
\begin{document}
Niels Bohr said: ``An expert is a person who has made
all the mistakes that can be made in a very narrow field.''
Albert Einstein said:
\begin{quote}
Anyone who has never made a mistake has never tried anything new.
\end{quote}
Errors are inevitable. So, let's be brave trying something new.
\end{document}
24 changes: 24 additions & 0 deletions Chapter02/9867_02_36.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
\documentclass{article}
\usepackage{url}
\begin{document}
The authors of the CTAN team listed ten good reasons
for using \TeX. Among them are:
\begin{quotation}
\TeX\ has the best output. What you end with,
the symbols on the page, is as useable, and beautiful,
as a non-professional can produce.

\TeX\ knows typesetting. As those plain text samples
show, \TeX's has more sophisticated typographical algorithms
such as those for making paragraphs and for hyphenating.

\TeX\ is fast. On today's machines \TeX\ is very fast.
It is easy on memory and disk space, too.

\TeX\ is stable. It is in wide use, with a long history.
It has been tested by millions of users, on demanding input.
It will never eat your document. Never.
\end{quotation}
The original text can be found on
\url{ http://www.ctan.org/what_is_tex.html}.
\end{document}
Loading

0 comments on commit 3d59d52

Please sign in to comment.