summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/abntexto/abntexto.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/abntexto/abntexto.cls')
-rw-r--r--Master/texmf-dist/tex/latex/abntexto/abntexto.cls56
1 files changed, 37 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/abntexto/abntexto.cls b/Master/texmf-dist/tex/latex/abntexto/abntexto.cls
index bdfd09ff5ee..f7a74197fc3 100644
--- a/Master/texmf-dist/tex/latex/abntexto/abntexto.cls
+++ b/Master/texmf-dist/tex/latex/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