texlive[44819] Master/texmf-dist: br-lex (16jul17)
commits+karl at tug.org
commits+karl at tug.org
Sun Jul 16 22:50:15 CEST 2017
Revision: 44819
http://tug.org/svn/texlive?view=revision&revision=44819
Author: karl
Date: 2017-07-16 22:50:15 +0200 (Sun, 16 Jul 2017)
Log Message:
-----------
br-lex (16jul17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf
trunk/Master/texmf-dist/doc/latex/br-lex/brlex-doc.tex
trunk/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf
trunk/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.tex
trunk/Master/texmf-dist/tex/latex/br-lex/br-lex.cls
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/br-lex/README.md
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/br-lex/README
Deleted: trunk/Master/texmf-dist/doc/latex/br-lex/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/br-lex/README 2017-07-16 20:34:02 UTC (rev 44818)
+++ trunk/Master/texmf-dist/doc/latex/br-lex/README 2017-07-16 20:50:15 UTC (rev 44819)
@@ -1,18 +0,0 @@
-======= Br-LeX -- A Class for Typesetting Brazilian legal texts ==========
-
-This class implements rules to typeset Brazilian legal texts.
-
-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".
- ========================================================================
-
-
Added: trunk/Master/texmf-dist/doc/latex/br-lex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/br-lex/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/br-lex/README.md 2017-07-16 20:50:15 UTC (rev 44819)
@@ -0,0 +1,18 @@
+======= Br-LeX -- A Class for Typesetting Brazilian legal texts ==========
+
+This class implements rules to typeset Brazilian legal texts.
+
+Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
+
+ 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".
+ ========================================================================
+
+
Property changes on: trunk/Master/texmf-dist/doc/latex/br-lex/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/br-lex/brlex-doc.tex
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.tex
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/br-lex/br-lex.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/br-lex/br-lex.cls 2017-07-16 20:34:02 UTC (rev 44818)
+++ trunk/Master/texmf-dist/tex/latex/br-lex/br-lex.cls 2017-07-16 20:50:15 UTC (rev 44819)
@@ -1,5 +1,5 @@
%% br-lex.cls
- %% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2016
+ %% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -17,28 +17,25 @@
% leis-exemplo.tex and the files compiled therefrom:
% brlex-doc.pdf and leis-exemplo.pdf
-
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{br-lex}[2016/02/11]
+\ProvidesClass{br-lex}[2017/07/15]
\LoadClassWithOptions{mwbk}
-\RequirePackage{enumitem}
\RequirePackage{indentfirst}
-\RequirePackage[sharp]{easylist}
\RequirePackage[normalem]{ulem}
-\renewcommand{\thechapter}{%Capítulo
- \Roman{chapter}} %%%retirado: CAPÍTULO~ por causa da opção Koma chapterprefix=true
-\renewcommand{\thesection}{Seção \Roman{section}}
\SetSectionFormatting{section}
-{10pt plus4pt}
+{12pt}
{\centering\large\textbf{\ifHeadingNumbered
+ Se\c{c}\~{a}o~
\HeadingNumber\enspace\fi\\[8pt] %retirei o ponto
\HeadingText}}
-{6pt plus2pt}
+{6pt}
-\RequirePackage{hyperref}
-\RequirePackage[all]{nowidow}
+\renewcommand{\thesection}{\Roman{section}}
+%\RequirePackage{hyperref}
+%\RequirePackage[all]{nowidow}
+
\RequirePackage{ifxetex}
\ifxetex
\RequirePackage{fontspec}
@@ -76,16 +73,30 @@
% opção de começar capítulos na mesma página: capitulo
\DeclareOption{capitulo}{%
- \SetSectionFormatting[wholewidth]{chapter}
-{24pt plus5pt minus2pt}
- {\FormatChapterHeading{0pt}%
- {\centering\large \@chapapp \space}{\Large\centering}}
-{10pt plus3pt}
+%\SetSectionFormatting[wholewidth]{chapter}
+%{12pt}
+%{\centering\Large\textbf{\ifHeadingNumbered
+% \@chapapp\enspace
+% \HeadingNumber\enspace\fi\\[8pt] %retirei o ponto
+% \HeadingText}}
+%{6pt}
+
+
+\widowpenalty 1000
+\clubpenalty 1000
+\displaywidowpenalty 1000
+
+\SetSectionFormatting[wholewidth]{chapter}
+{12pt}
+{\FormatRigidChapterHeading{4\baselineskip}{0pt}%
+ {\centering\large\@chapapp\space}{\Large}}
+{\baselineskip}
+
}
\DeclareOption{paragrafoespaco}{%
-\setlength{\parskip}{10pt}%
+\setlength{\parskip}{8pt}%
\setlength{\parindent}{0pt}%
}
@@ -98,21 +109,19 @@
\ProcessOptions\relax
-%% Do pacote easylist: listas segundo a norma: incisos, alíneas, itens.
-\ListProperties(Numbers1=R,Numbers2=l,Numbers3=a,FinalMark1={~---},FinalMark2={)},Hide2=1,Hide3=2,Margin1=4em,Margin2=6em,Margin3=7.5em,Align=move) %Space*=10pt entre mesmo nível,Space=9pt,Space*=9pt
-%Adiciona: Margin=\the\parindent,Progressive=3ex, 27-04-2015Progressive=3em,Margin1=5em,Align=move
-%%%from the etoolbox package: restart numbering easylist
-\AtBeginEnvironment{easylist}
-{\ListProperties(Start1=1)}
-{}
-{}
-%\renewcommand*{\chapterheadstartvskip}{\vspace*{-12pt}}
-%\renewcommand*{\chapterheadendvskip}{\vspace*{-24pt}}
+%%%%%%%%%
+%# a unidade básica de articulação será o artigo, indicado pela abreviatura "Art.", seguida de numeração ordinal até o nono e cardinal a partir deste;
+%
+%# os artigos desdobrar-se-ão em parágrafos ou em incisos; os parágrafos em incisos, os incisos em alíneas e as alíneas em itens;
+%
+%# os parágrafos serão representados pelo sinal gráfico "§", seguido de numeração ordinal até o nono e cardinal a partir deste, utilizando-se, quando existente apenas um, a expressão "parágrafo único" por extenso;
+%
+%# os incisos serão representados por algarismos romanos, as alíneas por letras minúsculas e os itens por algarismos arábicos;
+%%%%%
-
\newcounter{artigo}
\newcommand{\artigo}{\refstepcounter{artigo} %
\ifnum\theartigo<10 %
@@ -121,10 +130,12 @@
{\bfseries Art. \arabic{artigo}~~}%
\fi
%Art. \arabic{artigo}.~
- }
+ \setcounter{inciso}{0}
+}
-\newcounter{paragrafo}
-\newcommand{\paragrafo}{\refstepcounter{paragrafo} %
+\newcounter{paragrafo}[artigo]
+\newcommand{\paragrafo}{\refstepcounter{paragrafo} %
+ \par
\ifnum\theparagrafo<10 %
\S~\arabic{paragrafo}º~%
\else
@@ -132,13 +143,26 @@
\fi
}
-\newenvironment{paragrafos}{\setcounter{paragrafo}{0}
- \setlength{\parindent}{0pt}
- \leftskip=4em
- %\begin{addmargin}[4em]{0pt}
- }
- {%\end{addmargin}
- }
-
-
+
+\newcounter{inciso}[paragrafo]
+\newcommand{\inciso}{\refstepcounter{inciso} %
+\par
+\Roman{inciso} ---
+}
+
+
+
+\newcounter{alinea}[inciso]
+\newcommand{\alinea}{\refstepcounter{alinea} %
+\par
+\leftskip=2em \alph{alinea})
+}
+
+\newcounter{itens}[alinea]
+\newcommand{\itens}{\refstepcounter{itens} %
+\par
+\leftskip=3em \arabic{itens}.
+}
+
+
\endinput
More information about the tex-live-commits
mailing list