summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/abntexto
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-08 03:00:47 +0000
committerNorbert Preining <norbert@preining.info>2024-04-08 03:00:47 +0000
commit23803b0f35b5b0020c2c03924a79ed79654b130f (patch)
tree1935465ea1680bd709092ec465f831c945c63383 /macros/latex/contrib/abntexto
parent8b8ca487806f0f30fc532309d920767c745b568d (diff)
CTAN sync 202404080300
Diffstat (limited to 'macros/latex/contrib/abntexto')
-rw-r--r--macros/latex/contrib/abntexto/README4
-rw-r--r--macros/latex/contrib/abntexto/abntexto.cls56
-rw-r--r--macros/latex/contrib/abntexto/abntexto.pdfbin258189 -> 260747 bytes
-rw-r--r--macros/latex/contrib/abntexto/abntexto.tex2
4 files changed, 40 insertions, 22 deletions
diff --git a/macros/latex/contrib/abntexto/README b/macros/latex/contrib/abntexto/README
index 8a02781587..eeaeb92ef6 100644
--- a/macros/latex/contrib/abntexto/README
+++ b/macros/latex/contrib/abntexto/README
@@ -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@gmail.com
diff --git a/macros/latex/contrib/abntexto/abntexto.cls b/macros/latex/contrib/abntexto/abntexto.cls
index bdfd09ff5e..f7a74197fc 100644
--- a/macros/latex/contrib/abntexto/abntexto.cls
+++ b/macros/latex/contrib/abntexto/abntexto.cls
@@ -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@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
diff --git a/macros/latex/contrib/abntexto/abntexto.pdf b/macros/latex/contrib/abntexto/abntexto.pdf
index a1f9ae0fac..c714fcc8d2 100644
--- a/macros/latex/contrib/abntexto/abntexto.pdf
+++ b/macros/latex/contrib/abntexto/abntexto.pdf
Binary files differ
diff --git a/macros/latex/contrib/abntexto/abntexto.tex b/macros/latex/contrib/abntexto/abntexto.tex
index 32dc5e19d7..a46c613c06 100644
--- a/macros/latex/contrib/abntexto/abntexto.tex
+++ b/macros/latex/contrib/abntexto/abntexto.tex
@@ -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}