From bfe2329b363c41fc91a699fd6a735ebe9715dd8f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 18 Jul 2017 21:37:16 +0000 Subject: br-lex (18jul17) git-svn-id: svn://tug.org/texlive/trunk@44842 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/br-lex/br-lex.cls | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/br-lex') diff --git a/Master/texmf-dist/tex/latex/br-lex/br-lex.cls b/Master/texmf-dist/tex/latex/br-lex/br-lex.cls index 2dd169a7fde..645ef073ada 100644 --- a/Master/texmf-dist/tex/latex/br-lex/br-lex.cls +++ b/Master/texmf-dist/tex/latex/br-lex/br-lex.cls @@ -18,7 +18,7 @@ % brlex-doc.pdf and leis-exemplo.pdf \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{br-lex}[2017/07/15] +\ProvidesClass{br-lex}[2017/07/17] \LoadClassWithOptions{mwbk} \RequirePackage{indentfirst} \RequirePackage[normalem]{ulem} @@ -33,6 +33,10 @@ \renewcommand{\thesection}{\Roman{section}} +%%%SECTION IN TOC%%%% +\renewcommand*\l@section[2]{\mw@tocline{1}{1.5em}{4em}{Seção~ #1}{#2}} +%%%%%%%%%%%%%%%%%%%%%%%%%%% + %\RequirePackage{hyperref} %\RequirePackage[all]{nowidow} @@ -124,6 +128,7 @@ \newcounter{artigo} \newcommand{\artigo}{\refstepcounter{artigo} % + \par \ifnum\theartigo<10 % {\bfseries Art.~\arabic{artigo}º~~}% \else @@ -137,16 +142,23 @@ \newcommand{\paragrafo}{\refstepcounter{paragrafo} % \par \ifnum\theparagrafo<10 % - \S~\arabic{paragrafo}º~% + \hangindent=2em \hangafter=0 \S~\arabic{paragrafo}º~% \else - \S~\arabic{paragrafo}~% + \hangindent=2em \hangafter=0 \S~\arabic{paragrafo}~% \fi } +\newcommand{\paragrafounico}{\hangindent=2em \hangafter=0 Parágrafo único.\enspace} + \newcounter{inciso}[paragrafo] \newcommand{\inciso}{\refstepcounter{inciso} % -\par +\par +\ifnum\theparagrafo=0 +\hangindent=2em \hangafter=0 +\else +\hangindent=3.5em \hangafter=0 +\fi \Roman{inciso} --- } @@ -155,13 +167,13 @@ \newcounter{alinea}[inciso] \newcommand{\alinea}{\refstepcounter{alinea} % \par -\leftskip=2em \alph{alinea}) + \hangindent=5em \hangafter=0 \alph{alinea}) } \newcounter{itens}[alinea] \newcommand{\itens}{\refstepcounter{itens} % \par -\leftskip=3em \arabic{itens}. + \hangindent=6.5em \hangafter=0 \arabic{itens}. } -- cgit v1.2.3