-
Notifications
You must be signed in to change notification settings - Fork 2
/
mystyle.sty
141 lines (120 loc) · 4.46 KB
/
mystyle.sty
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
% -*- coding: utf-8 -*-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Criado por Márcio Moretto Ribeiro
%%
%% Última modificação 16/10/2008
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Para usar adicione um link para esse arquivo no diretório que
%% contém o arquivo .tex
%%
%% No arquivo .tex coloque a linha \usepackage[option]
%%
%% Obs.: alguma das 2 opções TEM que ser excolhidas: portuges ou
%% english
\usepackage{float}
\usepackage{mathrsfs}
\usepackage{amsfonts,amsmath,amssymb,amsthm}
%% Textos em inglês
\DeclareOption{english}{
%% Teoremas
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}[theorem]{Definition}
\newtheorem{representation}[theorem]{Representation Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{observation}[theorem]{Observation}
\newtheorem{conjecture}[theorem]{Conjecture}
%% Prova
% \newenvironment{proof}{{\bf Proof:}}{\cqd\medskip}
%% Exemplo
% \newcounter{example}
\newenvironment{example}{\refstepcounter{theorem}
\medskip
{\bf Example~\thetheorem: }\begin{quote}\rmfamily}{\end{quote}\medskip}
\newenvironment{example*}{
\begin{quote}{\bf Example: }
\rmfamily}{\end{quote}\medskip}
%% Algoritmo
\floatstyle{ruled}
\newfloat{algorithm}{ht}{lop}[section]
\floatname{algorithm}{Algorithm}
\newcommand{\listofalgorithms}{\listof{algorithm}{List of Algorithms}}
}
%% Textos em portugues
\DeclareOption{portugues}{
%% Teoremas
\newtheorem{theorem}{Teorema}[section]
\newtheorem{definition}[theorem]{Definição}
\newtheorem{representation}[theorem]{Teorema de Representação}
\newtheorem{corollary}[theorem]{Corolario}
\newtheorem{proposition}[theorem]{Proposição}
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{observation}[theorem]{Observação}
%% Prova
% \newenvironment{proof}{\paragraph{Prova:}}{\cqd\medskip}
%% Exemplo
% \newcounter{example}
\newenvironment{example}{\refstepcounter{theorem}
\medskip
{\bf Exemplo~\thetheorem: }\begin{quote}
\rmfamily}{\end{quote}\medskip}
%% Algoritmo
\floatstyle{ruled}
\newfloat{algorithm}{ht}{lop}[section]
\floatname{algorithm}{Algoritimo}
\newcommand{\listofalgorithms}{\listof{algorithm}{Lista de Algoritmos}}
}
%% Definições que não precisam de opção
\ProcessOptions\relax
%% Enviroments
\newenvironment{postulate}[1]{\medskip{\bf (#1)}}{\medskip}
\newenvironment{property}[1]{\begin{description}\item {\em #1}:}
{\end{description}}
%% Símbolos
\newcommand{\remainder}{\perp}
\newcommand{\diagnostic}{\;\text{\rotatebox{90}{$\Vdash$}}\;}
\newcommand{\falsum}{\bot}
\newcommand{\cqd}{\hfill$\Box$}
\newcommand{\kernel}{{\mbox{$\;\perp\!\!\!\perp\,$}}}
\newcommand{\kdown}{{\mbox{$\;\downarrow\!\!\!\!\!\downarrow\;$}}}
%\newcommand{\nsqsubseteq}{{\mbox{$\;/\!\!\!\!\!\sqsubseteq$~}}}
%\newcommand{\transsqsubseteq}{{\mbox{$\;*\!\!\!\!\!\!\sqsubseteq$}}}
\newcommand{\transsqsubseteq}{{\mbox{$\widetilde{\sqsubseteq}$}}}
\newcommand{\package}{\stackrel{\forall}{-}}
\newcommand{\choice}{\stackrel{\exists}{-}}
\newcommand{\braquet}[1]{\mbox{$\langle #1 \rangle$}}
\newcommand{\logic}{\braquet{\L, Cn}} %% <L,Cn>
%\newcommand{\logic}{\mbox{$\langle \L, Cn \rangle$}~} %% <L,Cn>
%% Palavras Chaves: enfatiza e põe no índice
\newcommand{\keyword}[1]{\emph{#1}\index{#1}}
\newcommand{\keywords}[2]{\emph{#1}\index{#2}}
%% Letras estilizadas
\newcommand{\I}{\mathcal{I}} %% interpretação
\newcommand{\R}{\mathscr{R}} %% conjunto dos papeis
\newcommand{\K}{K} %% conjunto de crença
\newcommand{\B}{B} %% base de crença
\newcommand{\A}{A} %% conjunto de sentenças
\newcommand{\KB}{\mathbf{KB}} %% base de conhecimento
\renewcommand{\L}{\mathscr{L}} %% Linguagem
\newcommand{\D}{\textbf{D}} %% D de datatypes
%% Nome das DLs
\newcommand{\DL}[1]{$\mathcal{#1}$}
\newcommand{\SHIFD}{$\mathcal{SHIF}$($\D$)}
\newcommand{\SHOIND}{$\mathcal{SHOIN}$($\D$)}
\newcommand{\SHOIQD}{$\mathcal{SHOIQ}$($\D$)}
\newcommand{\AL}{$\mathcal{AL}$}
\newcommand{\ALC}{$\mathcal{ALC}$}
\newcommand{\ALN}{$\mathcal{ALN}$}
\newcommand{\ALCI}{$\mathcal{ALCI}$}
\newcommand{\FLminus}{$\mathcal{FL}^-$}
\newcommand{\FL}{$\mathcal{FL}$}
\newcommand{\EL}{$\mathcal{EL}$}
\newcommand{\DLlite}{$\mathcal{DL}-\mathcal{L}ite$}
%% Abreviações
\newcommand{\TELL}{\mbox{\tt TELL}~}
\newcommand{\ASK}{\mbox{\tt ASK}~}
\newcommand{\FORGET}{\mbox{\tt FORGET}~}