File: sample.tex

package info (click to toggle)
txt2tags 2.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,448 kB
  • ctags: 706
  • sloc: python: 2,323; lisp: 414; ruby: 347; php: 114; sh: 81; makefile: 67; xml: 59
file content (224 lines) | stat: -rw-r--r-- 5,234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
\documentclass[11pt,a4paper]{article}
\usepackage{amsfonts,graphicx}
\usepackage[pdfstartview=FitH,urlcolor=blue,colorlinks=true,bookmarks=true]{hyperref}
\usepackage[latin1]{inputenc}  % char encoding
\pagestyle{plain}   % do page numbering ('empty' turns off)
\frenchspacing      % no aditional spaces after periods
\setlength{\parskip}{8pt}\parindent=0pt  % no paragraph indentation

\title{TXT2TAGS SAMPLE}
\author{Aurelio Marinho Jargas}
\begin{document}
\date{03/21/2005}
\maketitle
\clearpage


\section*{Introduction}
Welcome to the txt2tags sample file.

Here you have examples and a brief explanation of all
marks.

The first 3 lines of the this file are used as headers,
on the following format:

\begin{verbatim}
line1: document title
line2: author name, email
line3: date, version
\end{verbatim}

Lines with balanced equal signs = around are titles.


\section*{Fonts and Beautifiers}
We have two sets of fonts:

The NORMAL type that can be improved with beautifiers.

The TYPEWRITER type that uses monospaced font for
preformatted text.

We will now enter on a subtitle...

\subsection*{Beautifiers}
The text marks for beautifiers are simple, just as you
type on a plain text email message.

We use double *, / and \_ to represent \textbf{bold},
\textit{italic} and \underline{underline}.

The \textbf{\textit{bold italic}} style is also supported as a
combination.

\subsection*{Pre-Formatted Text}
We can put a code sample or other preformatted text:

\begin{verbatim}
  here    is     preformatted
//marks// are  **not**  ``interpreted``
\end{verbatim}

And also, it's easy to put a one line preformatted
text:

\begin{verbatim}
prompt$ ls /etc
\end{verbatim}

Or use \texttt{preformatted} inside sentences.

\subsection*{More Cosmetics}
Special entities like email (\htmladdnormallink{duh@somewhere.com}{mailto:duh@somewhere.com}) and
URL (\htmladdnormallink{http://www.duh.com}{http://www.duh.com}) are detected automagically,
as long as the horizontal line:


\hrulefill{}

\^{} thin or large v

\clearpage

You can also specify an \htmladdnormallink{explicit link}{http://duh.org}
with label.

And remember,

	\begin{quotation}
A TAB in front of the line does a quotation.
		\begin{quotation}
More TABs, more depth (if allowed).
		\end{quotation}
	\end{quotation}
Nice.


\section*{Lists}
A list of items is natural, just putting a \textbf{dash} or
a \textbf{plus} at the beginning of the line.

\subsection*{Plain List}
The dash is the default list identifier. For sublists,
just add \textbf{spaces} at the beginning of the line. More
spaces, more sublists.

\begin{itemize}
\item earth
  \begin{itemize}
  \item america
    \begin{itemize}
    \item south america
      \begin{itemize}
      \item brazil
      \item how deep can i go?
      \end{itemize}
    \end{itemize}
  \item europe
    \begin{itemize}
    \item lots of countries
    \end{itemize}
  \end{itemize}
\item mars
  \begin{itemize}
  \item who knows?
  \end{itemize}
\end{itemize}

The list ends with \textbf{two} consecutive blank lines.

\subsection*{Numbered List}
The same rules as the plain list, just a different
identifier (plus).

\begin{enumerate}
\item one
\item two
\item three
  \begin{itemize}
  \item mixed lists!
  \item what a mess
    \begin{enumerate}
    \item counting again
    \item ...
    \end{enumerate}
  \end{itemize}
\item four
\end{enumerate}

\subsection*{Definition List}
The definition list identifier is a colon, followed by
the term. The term contents is placed on the next line.

\begin{description}
\item[orange]
  a yellow fruit
\item[apple]
  a green or red fruit
\item[other fruits]
  \begin{itemize}
  \item wee!
  \item mixing lists
    \begin{enumerate}
    \item again!
    \item and again!
    \end{enumerate}
  \end{itemize}
\end{description}


\section*{Tables}
Use pipes to compose table rows and cells.
Double pipe at the line beginning starts a heading row.
Natural spaces specify each cell alignment.

\begin{center}\begin{tabular}{|l|c|r|}
\hline \textbf{heading 1} & \textbf{heading 2} & \textbf{heading 3} \\
\hline cell 1.1 & cell 1.2 & cell 1.3 \\
\hline cell 2.1 & cell 2.2 & cell 2.3 \\
\hline \end{tabular}\end{center}


Without the last pipe, no border:

\begin{center}\begin{tabular}{lcr}
\textbf{heading 1} & \textbf{heading 2} & \textbf{heading 3} \\
cell 1.1 & cell 1.2 & cell 1.3 \\
cell 2.1 & cell 2.2 & cell 2.3 \\
\end{tabular}\end{center}



\section*{Special Entities}
Because things were too simple.

\subsection*{Images}
The image mark is as simple as it can be: \texttt{[filename]}.

                      \includegraphics{img/photo.jpg}  

\begin{itemize}
\item The filename must end in PNG, JPG, GIF, or similar.
\item No spaces inside the brackets!
\end{itemize}

\subsection*{Other}
The handy \texttt{\%\%date} macro expands to the current date.

So today is 20050614 on the ISO \texttt{YYYYMMDD} format.

You can also specify the date format with the \%? flags,
as \texttt{\%\%date(\%m-\%d-\%Y)} which gives: 06-14-2005.

That's all 4now.


\hrulefill{}

\includegraphics{img/t2tpowered.png} (\htmladdnormallink{sample.t2t}{sample.t2t})


% LaTeX2e code generated by txt2tags 2.3 (http://txt2tags.sf.net)
% cmdline: txt2tags -t tex samples/sample.t2t
\end{document}