forked from reamat/CalculoNumerico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preambulo.tex
132 lines (103 loc) · 3.46 KB
/
preambulo.tex
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
%Este trabalho está licenciado sob a Licença Creative Commons Atribuição-CompartilhaIgual 3.0 Não Adaptada. Para ver uma cópia desta licença, visite http://creativecommons.org/licenses/by-sa/3.0/ ou envie uma carta para Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ATENÇÃO
%
% POR SEGURANÇA, NÃO EDITE ESTE ARQUIVO.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Predefinicoes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\ifisbook % O layout será book?
\newif\ifishtml % O layout será html?
\newif\ifisslide % O layout será slide?
\newif\ifisscilab % As notas incluirão Scilab?
\newif\ifisoctave % As notas incluirão octave?
\def\tfn{main.knd} % Arquivo que guarda as definições do tipo de saída
\def \tdata{} % Definições do tipo de saída: book, slide ou html.
\openin1=\tfn\relax % Leitura das definições de saída
\read1 to \tdata
\closein1
\tdata % Definições de saída
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Opcões de Linguagem
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{xunicode} é o pacote necessário para a codificação UTF-8 no XeTeX
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{Cálculo Numérico}
\fancyhead[LO]{\rightmark}
\fancyhead[LE,RO]{\thepage}
%license footnote
\cfoot{\tiny{Licença CC-BY-SA-3.0. Contato: \url{[email protected]}}}
%%%% no blank pages between chapters %%%%
\let\cleardoublepage\clearpage
%%%% independent chapters %%%%
\usepackage{subfiles}
%%%% ams-latex %%%%
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
%%%% graphics %%%%
\usepackage{graphics}
\usepackage{graphicx}
%\usepackage{caption}
%%%% links %%%%
\usepackage[hidelinks]{hyperref}
%%%% copy and paste from PDF (correctly) %%%%
\usepackage{upquote}
\usepackage{lmodern}
%%%% code insert (verbatim) %%%%
\usepackage{verbatim}
%%%% indent first line %%%%
\usepackage{indentfirst}
%%%% comma as a decimal separator %%%%
\usepackage{icomma}
%%%% citation %%%%
\usepackage{cite}
%%%% miscellaneous %%%%
\usepackage{multicol}
\usepackage{multirow}
\usepackage[normalem]{ulem}
\renewcommand{\arraystretch}{1.5} %space between rows in tables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Formatacoes de estilo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xcolor}
\newcommand{\RED}[1]{{\color{red}{#1}}}
\newcommand{\BLU}[1]{{\color{blue}{#1}}}
\newcommand{\GRE}[1]{{\color{darkgreen}{#1}}}
%emphasis \emph
\DeclareTextFontCommand{\emph}{\bfseries}
\newcommand{\sen}{\operatorname{sen}\,}
\newcommand{\tg}{\operatorname{tg}\,}
\newcommand{\p}{\partial}
\newcommand{\Dom}{\operatorname{Dom}\,}
\newcommand{\diag}{\operatorname{diag}\,}
\newenvironment{sol}
{\let\oldqedsymbol=\qedsymbol
\renewcommand{\qedsymbol}{$\Diamond$}
\begin{proof}[\bfseries\upshape Solução]}
{\end{proof}
\renewcommand{\qedsymbol}{\oldqedsymbol}}
%%%% indexing %%%%
\usepackage{makeidx}
\makeindex
%%%%% macros %%%%%%%%%%%%%
\newcommand{\matdd}[4]{\begin{bmatrix} #1\\#3 \end{bmatrix}}
\newcommand{\matddd}[9]{\begin{bmatrix} #1 \\ #4 \\ #7	 \end{bmatrix}}
\newcommand{\vetdd}[2]{\begin{bmatrix} #1 \\#2 \end{bmatrix}}
\newcommand{\vetddd}[3]{\begin{bmatrix} #1 \\ #2\\ #3 \end{bmatrix}}
\ifisslide
\input preambulo_slide.tex
\else
\ifishtml
\input preambulo_html.tex
\else
\input preambulo_book.tex
\fi
\fi