texlive[70881] Master/texmf-dist: abntexto (7apr24)

commits+karl at tug.org commits+karl at tug.org
Sun Apr 7 21:57:04 CEST 2024


Revision: 70881
          https://tug.org/svn/texlive?view=revision&revision=70881
Author:   karl
Date:     2024-04-07 21:57:04 +0200 (Sun, 07 Apr 2024)
Log Message:
-----------
abntexto (7apr24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/abntexto/README
    trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.pdf
    trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.tex
    trunk/Master/texmf-dist/tex/latex/abntexto/abntexto.cls

Modified: trunk/Master/texmf-dist/doc/latex/abntexto/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/abntexto/README	2024-04-07 07:26:21 UTC (rev 70880)
+++ trunk/Master/texmf-dist/doc/latex/abntexto/README	2024-04-07 19:57:04 UTC (rev 70881)
@@ -1,6 +1,6 @@
 Public Domain Software
-2023-11-13
-3.1.0-beta
+2024-06-04
+3.1.1-beta
 Elayson Abreu
 abntexto.classe at gmail.com 
 

Modified: trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.tex	2024-04-07 07:26:21 UTC (rev 70880)
+++ trunk/Master/texmf-dist/doc/latex/abntexto/abntexto.tex	2024-04-07 19:57:04 UTC (rev 70881)
@@ -121,7 +121,7 @@
 \par}
 \vskip3in
 
-{\centering\large\ttfamily 3.1.0-beta\par}
+{\centering\large\ttfamily 3.1.1-beta\par}
 \newpage
 
 \nonum\notoc\section{Sumário}

Modified: trunk/Master/texmf-dist/tex/latex/abntexto/abntexto.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/abntexto/abntexto.cls	2024-04-07 07:26:21 UTC (rev 70880)
+++ trunk/Master/texmf-dist/tex/latex/abntexto/abntexto.cls	2024-04-07 19:57:04 UTC (rev 70881)
@@ -1,6 +1,6 @@
 %! Public Domain Software
-%! 2023-11-13
-%! 3.1.0-beta
+%! 2024-04-06
+%! 3.1.1-beta
 %! Elayson Abreu
 %! abntexto.classe at gmail.com
 
@@ -30,7 +30,7 @@
 % \begin{code} 
 \NeedsTeXFormat{LaTeX2e}
 
-\ProvidesClass{abntexto}[2023-11-13 3.1.0-beta Preparation of works in ABNT standards]
+\ProvidesClass{abntexto}[2024-04-06 3.1.1-beta Preparation of works in ABNT standards]
 
 \LoadClass{article}
 \RequirePackage{geometry}
@@ -82,16 +82,21 @@
 
 % A instrução |\textual| põe a numeração de página no topo direito nas páginas ímpares e no topo esquerdo em páginas pares. Além disso, |twoside| vai espelhar as margens horizontais.
 
+% O comando |\eletroniclayout| é útil para leitura do trabalho em {\em display} digital. Para ativar este {\em layout} basta escrever |\let\onesidelayout=\eletroniclayout| e |\let\twosidelayout=\eletroniclayout| no preâmbulo do documento.
+
 % Por algum motivo, |\newgeometry| reseta |\baselineskip| e |\parindent|, então temos de repetir estas instruções.
 
-% \begin{code} 
-\def\pretextual{%
-	\let\@oddhead=\empty
-	\let\@evenhead=\empty
-	\let\@oddfoot=\empty
-	\let\@evenfoot=\empty
+% \begin{code}
+\def\onesidelayout{%
+	\newgeometry{
+		twoside=false,
+		left   = 3cm,
+		top    = 3cm,
+		right  = 2cm,
+		bottom = 2cm
+	}
 }
-\def\textual{%
+\def\twosidelayout{%
 	\newgeometry{
 		twoside=true,
 		left   = 3cm,
@@ -99,6 +104,26 @@
 		right  = 2cm,
 		bottom = 2cm
 	}%
+}
+\def\eletroniclayout{%
+	\newgeometry{
+		twoside=false,
+		left   = 2.5cm,
+		top    = 3cm,
+		right  = 2.5cm,
+		bottom = 2cm
+	}%
+}
+
+\def\pretextual{%
+	\onesidelayout
+	\let\@oddhead=\empty
+	\let\@evenhead=\empty
+	\let\@oddfoot=\empty
+	\let\@evenfoot=\empty
+}
+\def\textual{%
+	\twosidelayout
 	\spacing{1.5}%
 	\parindent=1.5cm
 	\def\@oddhead{\hfil\small\thepage}%
@@ -817,14 +842,7 @@
 
 \spacing{1.5}
 
-\geometry{
-	a4paper,
-	twoside=false,
-	left=3cm,
-	top=3cm,
-	right=2cm,
-	bottom=2cm
-}
+\geometry{a4paper}
 
 \frenchspacing
 \parindent=0pt 
@@ -880,4 +898,4 @@
 \AddToHook{begindocument}{\pretextual}
 
 \endinput
-% \end{code}   
+% \end{code}
\ No newline at end of file



More information about the tex-live-commits mailing list.