-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalgorithmic-portuguese.tex
62 lines (45 loc) · 2.12 KB
/
algorithmic-portuguese.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
%%
%% Copying and distribution of this file, with or without modification,
%% are permitted in any medium without royalty provided the copyright
%% notice and this notice are preserved. This file is offered as-is,
%% without any warranty.
%%
%% Copyright (c) 2012-2015 Filipe de Oliveira Saraiva <[email protected]>
%%
%% Entrada e saída do algoritmo
\renewcommand{\algorithmicrequire}{\textbf{Entrada:}}
\renewcommand{\algorithmicensure}{\textbf{Sa\'{i}da:}}
%% Variáveis
\renewcommand{\algorithmicinputs}{\textbf{entradas}}
\renewcommand{\algorithmicoutputs}{\textbf{sa\'{i}das}}
\renewcommand{\algorithmicglobals}{\textbf{globais}}
\renewcommand{\algorithmicreturn}{\textbf{retorna}}
%% Miscelânea: inicializadores e terminadores de blocos, comandos diversos
\renewcommand{\algorithmicdo}{\textbf{fa\c{c}a}}
\renewcommand{\algorithmicto}{\textbf{at\'{e}}}
\renewcommand{\algorithmicend}{\textbf{fim}}
\renewcommand{\algorithmicprint}{\textbf{imprime}}
%% Estruturas booleanas
\renewcommand{\algorithmictrue}{\textbf{verdadeiro}}
\renewcommand{\algorithmicfalse}{\textbf{falso}}
%% Estruturas e conectores lógicos
\renewcommand{\algorithmicand}{\textbf{e}}
\renewcommand{\algorithmicor}{\textbf{ou}}
\renewcommand{\algorithmicxor}{\textbf{xou}}
\renewcommand{\algorithmicnot}{\textbf{n\~{a}o}}
%% Estruturas condicionais
\renewcommand{\algorithmicif}{\textbf{se}}
\renewcommand{\algorithmicthen}{\textbf{ent\~{a}o}}
\renewcommand{\algorithmicelse}{\textbf{sen\~{a}o}}
\renewcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\renewcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
%% Estruturas de repetição
\renewcommand{\algorithmicwhile}{\textbf{enquanto}}
\renewcommand{\algorithmicendwhile}{\algorithmicend\ \algorithmicwhile}
\renewcommand{\algorithmicfor}{\textbf{para}}
\renewcommand{\algorithmicforall}{\textbf{para todo}}
\renewcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}
\renewcommand{\algorithmicloop}{\textbf{loop}}
\renewcommand{\algorithmicendloop}{\algorithmicend\ \algorithmicloop}
\renewcommand{\algorithmicrepeat}{\textbf{repita}}
\renewcommand{\algorithmicuntil}{\textbf{at\'{e}}}