summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/br-lex/brlex-doc.tex
blob: 0b2b75ab906274035cdb8806d468a02fbf62d9e0 (plain)
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
% ======================================================================
% brlex-doc.tex
% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2016
%
% This file is part of the br-lex LaTeX2e class.

% This work may be distributed and/or modified under the conditions of
% the LaTeX Project Public License, version 1.3c of the license.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01 and of this work.
%
% This work has the LPPL maintenance status "author-maintained".
% ======================================================================

\documentclass{ltxdoc}
\usepackage[brazil]{babel}
\usepackage[osf]{Alegreya,AlegreyaSans}
\RequirePackage[sharp]{easylist}
\usepackage[normalem]{ulem}
\newcommand{\cortado}[1]{\sout{#1}}
\usepackage[dvipsnames]{xcolor}

\frenchspacing 

\ListProperties(Numbers1=R,Numbers2=l,Numbers3=a,
FinalMark1={~---},FinalMark2={)},Hide2=1,Hide3=2,Margin1=4em,Margin2=6em,Margin3=7.5em,Align=move) 

\title{\texttt{br-lex}: Uma classe para redação\\ de normas e leis brasileiras}
\author{Youssef Cherem}

\newcommand{\nota}[1]{\marginpar{\hfill \cmd{#1}}}

\begin{document}

\maketitle

\begin{abstract}
Classe para redação de normas e leis de acordo com a Lei Complementar Nº 95, de 26 de fevereiro de 1998. O objetivo é uma implementação tipográfica facilitada para o usuário.
\end{abstract}

\section*{Utilização}

Para usar a classe \texttt{br-lex}, basta invocar as palavras mágicas: 

\begin{verbatim}
\documentclass{br-lex}
\end{verbatim}

As opções de língua portuguesa já vêm carregadas automaticamente, utilizando o pacote \texttt{babel}, se a compilação for com \texttt{pdflatex}, e o pacote \texttt{polyglossia}, se optar por \texttt{xelatex}. 

Esta classe foi elaborada com a classe \texttt{mwbk}. Além das opções das classes \texttt{mwcls}, há as seguintes opções: 

\begin{itemize}

\item 
\texttt{paragrafonormal}, para parágrafos indentados em sem espaço entre si; 

\item
\texttt{paragrafoespaco}, para parágrafos sem indentação e com espaço entre si, e 

\item 
\texttt{capitulo}, para começar os capítulos na mesma página.

\end{itemize}

As páginas têm cabeçalho automático de acordo com a classe \texttt{scrbook}. Se desejar, você pode mudar o estilo da página com o pacote \texttt{scrlayer-scrpage} (antigo \texttt{scrpage2}).



\begin{verbatim}\titulo{}
\end{verbatim}
\nota{\titulo\marg{Título}} 
Título.

Capítulos e seções são inseridos da maneira usual em \LaTeX: \verb|\chapter|\marg{Capítulo} e \verb|\section|\marg{Seção}.   


\begin{verbatim}\descricao{}
\end{verbatim}
\nota{\descricao\marg{Descrição}} 
Descrição da lei.


\begin{verbatim}\cortado{}
\end{verbatim}
\nota{\cortado\marg} 
Para inserir partes ``cortadas" (\cortado{revogadas}).


\begin{verbatim}
\artigo Escreva aqui o artigo.
\end{verbatim}
 
\cmd{\artigo} (sem \verb|{}|)\nota{\artigo} Insere um artigo, cuja numeração não depende do capítulo.



\begin{verbatim}
\begin{paragrafos}
\paragrafo Escreva aqui o parágrafo.
\paragrafo Outro parágrafo
...
\end{paragrafos}
\end{verbatim}

Ambiente \texttt{paragrafos},\nota{\paragrafo} cuja numeração recomeça a cada artigo. Dentro desse ambiente, você pode inserir um \verb|\paragrafo| (sem \verb|{}|). 

Para divisões inferiores a parágrafo, é utilizado o pacote \texttt{easylist}:

\begin{verbatim}
	\begin{easylist}
	# Incisos (romanos) com #
	
	## Alíneas (minúsculas) com ##
	
	### Itens com (arábicos) com ###
	\end{easylist}
\end{verbatim}
	
	

\begin{easylist}
	# Incisos (romanos) com \verb|#|
	
	## Alíneas (minúsculas) com \verb|##|
	
	### Itens com (arábicos) com \verb|###|
	
	###
	
	## \verb|##| Volta para alíneas.
	
	# \verb|#| Volta para incisos.
	\end{easylist}


\end{document}