From 1b72bf34a4eed500df66db2771632a8ef23a8617 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 29 Jun 2015 23:48:15 +0000 Subject: br-lex (28jun15) git-svn-id: svn://tug.org/texlive/trunk@37710 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/br-lex/README | 18 +++ Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf | Bin 0 -> 62654 bytes .../texmf-dist/doc/latex/br-lex/leis-exemplo.pdf | Bin 0 -> 36201 bytes Master/texmf-dist/tex/latex/br-lex/br-lex.cls | 180 +++++++++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/br-lex.tlpsrc | 0 Master/tlpkg/tlpsrc/collection-publishers.tlpsrc | 1 + 7 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/br-lex/README create mode 100644 Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf create mode 100644 Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf create mode 100644 Master/texmf-dist/tex/latex/br-lex/br-lex.cls create mode 100644 Master/tlpkg/tlpsrc/br-lex.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/br-lex/README b/Master/texmf-dist/doc/latex/br-lex/README new file mode 100644 index 00000000000..f59f4226642 --- /dev/null +++ b/Master/texmf-dist/doc/latex/br-lex/README @@ -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, 2015 + + 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". + ======================================================================== + + diff --git a/Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf b/Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf new file mode 100644 index 00000000000..d0a1c932a70 Binary files /dev/null and b/Master/texmf-dist/doc/latex/br-lex/brlex-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf b/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf new file mode 100644 index 00000000000..14a2483dd96 Binary files /dev/null and b/Master/texmf-dist/doc/latex/br-lex/leis-exemplo.pdf differ diff --git a/Master/texmf-dist/tex/latex/br-lex/br-lex.cls b/Master/texmf-dist/tex/latex/br-lex/br-lex.cls new file mode 100644 index 00000000000..1fa4b78fbb9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/br-lex/br-lex.cls @@ -0,0 +1,180 @@ + %% br-lex.cls + %% Copyright (c) Youssef Cherem, 2015 + % + % This work may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.3c + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.3 or later is part of all distributions of LaTeX + % version 2005/12/01 or later. + % + % This work has the LPPL maintenance status `maintained'. + % + % The Current Maintainer of this work is Youssef Cherem. + % + % This work consists of the files br-lex.cls, brlex-doc.tex, the example + % leis-exemplo.tex and the files compiled therefrom: + % brlex-doc.pdf and leis-exemplo.pdf + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{br-lex}[v. 2015/04/22] +%\DeclareOption*{% +%\PassOptionsToClass{\CurrentOption}{scrbook}% +%} +%\PassOptionsToClass{chapterprefix=true,pagesize}{scrbook} +\LoadClassWithOptions{scrbook}%%[a4paper,DIV=calc] +\KOMAoptions{pagesize,numbers=noendperiod,headings=small} +%chapterprefix=true desnecessário com titlesec +\RequirePackage{enumitem} +\RequirePackage{indentfirst} +\RequirePackage[sharp]{easylist} +\RequirePackage[normalem]{ulem} +\addtokomafont{chapter}{\centering} +\addtokomafont{pagehead}{\rmfamily\itshape} +%\addtokomafont{section}{\centering} +\renewcommand{\thechapter}{%Capítulo + \Roman{chapter}} %%%retirado: CAPÍTULO~ por causa da opção Koma chapterprefix=true +\renewcommand{\thesection}{%Seção~ + \Roman{section}} +%Retirado: capítulo e seção por causa de acentos com pdflatex. substituído por nome em titlesec. + +\RequirePackage[all]{nowidow} + +\RequirePackage{ifxetex} +\makeatletter +\ifxetex +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +\RequirePackage{polyglossia} +\setmainlanguage{brazil} +%\setotherlanguages{english,french,spanish,german,italian} +\else +\RequirePackage[utf8]{inputenc} +\addtokomafont{disposition}{\rmfamily} +\RequirePackage[brazil]{babel} +\fi +\makeatother + + +%%risca partes do texto +\newcommand{\cortado}[1]{\sout{#1}} + +\newcommand{\titulo}[1]{ + \begin{center} + \centering \bfseries \sffamily \huge #1 + \end{center}} + +\newcommand{\descricao}[1]{\hfill% + \begin{minipage}{0.5\textwidth} + #1 + \end{minipage} + \vspace{\baselineskip} + } + +%%seções + +\RequirePackage{titlesec} +\titleformat{\section}[display]% +{\large\bfseries\sffamily\centering} +{Seção \thesection} +{%-6pt + 0pt} +{} + +\titlespacing*{\section} +{0pt}{18pt}{16pt} + +\titlespacing*{\chapter} +{0pt}{18pt}{16pt} + +\titleformat{\chapter}[display]% +{\Large\bfseries\sffamily\centering} +{Capítulo \thechapter} +{%-10pt + 0pt} +{} + + + + + + +% % % Para começar capítulos na mesma página: + +\RequirePackage{etoolbox} % para opção de começar capítulos na mesma página + +%% opção de começar capítulos na mesma página: capitulo + +\DeclareOption{capitulo}{% +\makeatletter +\patchcmd{\chapter}{\cleardoublepage\else\clearpage\fi}{}{}{} +\patchcmd{\addchap}{\cleardoublepage\else\clearpage\fi}{}{}{} +\makeatother +} + +%%%original: +%\makeatletter +%\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{} +%\makeatother + + + +\DeclareOption{paragrafoespaco}{% +\setlength{\parskip}{10pt}% +\setlength{\parindent}{0pt}% +} + +\DeclareOption{paragrafonormal}{% + \setlength{\parskip}{0pt}% +} + +\ExecuteOptions{paragrafoespaco} + +\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}} + + + +\newcounter{artigo} +\newcommand{\artigo}{\refstepcounter{artigo} % + \ifnum\theartigo<10 % + {\bfseries Art.~\arabic{artigo}º~~}% + \else + {\bfseries Art. \arabic{artigo}~~}% + \fi + %Art. \arabic{artigo}.~ + } + +\newcounter{paragrafo} +\newcommand{\paragrafo}{\refstepcounter{paragrafo} % + \ifnum\theparagrafo<10 % + \S~\arabic{paragrafo}º~% + \else + \S~\arabic{paragrafo}~% + \fi +} + +\newenvironment{paragrafos}{\setcounter{paragrafo}{0} + \setlength{\parindent}{0pt} + \begin{addmargin}[4em]{0pt} + } + {\end{addmargin} + } + + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 05a2c63e880..691e6607c37 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -103,7 +103,7 @@ my @TLP_working = qw( booktabs booktabs-de booktabs-fr boolexpr boondox bophook borceux bosisio boxedminipage boxedminipage2e boxhandler bpchem bpolynomial - bracketkey braids braille braket brandeis-dissertation + br-lex bracketkey braids braille braket brandeis-dissertation breakcites breakurl breqn bropd brushscr bullcntr bundledoc burmese bussproofs bxbase bxcjkjatype bxdpx-beamer bxeepic bxjscls bytefield diff --git a/Master/tlpkg/tlpsrc/br-lex.tlpsrc b/Master/tlpkg/tlpsrc/br-lex.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc index 5140335b4ee..f8f48b4103d 100644 --- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc @@ -27,6 +27,7 @@ depend ascelike depend bangorcsthesis depend beamer-FUBerlin depend bgteubner +depend br-lex depend brandeis-dissertation depend cascadilla depend chem-journal -- cgit v1.2.3