"Fossies" - the Fresh Open Source Software Archive 
Member "hevea-2.35/bugs/009/livro.tex" (16 Jan 2021, 1544 Bytes) of package /linux/www/hevea-2.35.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TeX and LaTeX source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 \documentclass[a4paper,10pt]{book}
2
3 \usepackage{hevea}
4 \usepackage{hevea-epsfbox-def}
5
6 \usepackage[latin1]{inputenc}
7 \usepackage[portuguese]{babel}
8
9 \usepackage{listings}
10
11 \newstyle{.myclisting}{font-family:monospace;white-space:pre;margin:lex;padding:2ex;}
12
13 \lst@definelanguage{myHaskell}{language={Haskell},
14 morekeywords={if,then,else,case,class,data,default,deriving,%
15 hiding,in,infix,infixl,infixr,import,instance,let,module,%
16 newtype,of,qualified,type,where,do}} %Bug in Hevea (?): if I put last '}' in the next line, keywords do not work!
17 {}
18 % Bug in Hevea (?): I have to repeat here the haskell keywords,
19 % copied from lstlang2.sty (more specifically, from lst@definelanguage{Haskell}{keywords={if,...}})
20
21 \lstnewenvironment{hask}[2]{
22 \lstset{language=myHaskell,emph={#1},
23 backgroundcolor={\color{#2}}
24 }}
25
26 {} % Bug in Hevea: if I comment this line, Hevea causes a fatal error, and asks reporting bug to Luc...
27 \newcommand{\inh}{\lstinline[language=myHaskell]}
28
29
30 % listings e lstinline para C
31 \lst@definelanguage{myAlg}{language={C++},%
32 morekeywords={with,to}}
33
34 \lstnewenvironment{alg}[2]{
35 \lstset{language={myAlg},emph={#1},
36 backgroundcolor={\color{#2}}}}
37 {}
38
39 \newcommand{\ina}{\lstinline[language=myAlg]}
40 %-----------------------------------------------
41
42 \begin{document}
43
44 \ina{§$c$§)
45
46 \begin{enumerate}
47
48 %\epsfbox{/home/camarao/ipcc/fig/hanoi-sol.eps} % bbllx=0pt,bblly=0pt,bburx=1031pt,bbury=1027pt} % height=9cm,width=.9\textwidth}
49
50 \end{enumerate}
51
52 \end{document}