Comments (4)
As far as I can see, paragraphs are already preceded by 5 numbers, although the paragraph title appears with no special style (i.e., the same style as the normal text):
2.3.1.2.1 test paragraph
from infufrgs.
The first issue is indeed solved (and the paragraph title should have the same style as the text according to the standards), but the second isn't. For example, we get:
1 Introduction
instead of:
1 Introduction
from infufrgs.
Regarding the second issue, what do you think of the following (somewhat silly) patch:
diff --git a/inputs/iiufrgs.cls b/inputs/iiufrgs.cls
index 39a79c8..e79cca9 100644
--- a/inputs/iiufrgs.cls
+++ b/inputs/iiufrgs.cls
@@ -410,9 +410,12 @@
\penalty\@highpenalty
\endgroup
}
+
+\newlength{\seclen}\settowidth{\seclen}{\textbf{2.2~}}
+\newlength{\subseclen}\settowidth{\subseclen}{2.2.2~}
\renewcommand*{\l@section}[2]
- {\@dottedtocline{1}{0em}{2.8em}{\textbf{#1}}{\hss #2}}
-\renewcommand*{\l@subsection}{\@dottedtocline{2}{0em}{3.7em}}
+ {\@dottedtocline{1}{0em}{\seclen}{\textbf{#1}}{\hss #2}}
+\renewcommand*{\l@subsection}{\@dottedtocline{2}{0em}{\subseclen}}
\newif\if@aftertoc
\@aftertocfalse
\renewcommand{\tableofcontents}{%
@@ -504,7 +507,7 @@
\xdef\Hy@chapapp{CHAPTER}%
\gdef\theHchapter{\thechapter}%
\refstepcounter{chapter}%
- \addcontentsline{toc}{chapter}{\protect\numberline{\@chapapp\thechapter}#1}%
+ \addcontentsline{toc}{chapter}{\protect\@chapapp\thechapter~#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\pagestyle{iiufrgs}\let\ps@plain\ps@iiufrgs%
@@ -513,7 +516,7 @@
\def\@makechapterhead#1{%
%\vspace*{90pt}
%\vspace{12pt}
- \reset@font\noindent{\ii@chapterfont\sffamily\textbf{\@chapapp\thechapter\hspace{1em}\MakeUppercase{#1}}\par}
+ \reset@font\noindent{\ii@chapterfont\sffamily\textbf{\@chapapp\thechapter\hphantom{~}\MakeUppercase{#1}}\par}
\addvspace{12pt}
%\par
}
@@ -553,6 +556,7 @@
% Formatação das seções
%==============================================================================
\setcounter{secnumdepth}{5}
+\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\ }
\renewcommand{\section}{%
\@startsection{section}{2}{0pt}{18pt}{18pt}{\reset@font\normalsize\bfseries}
from infufrgs.
Seems to work. Thanks!
from infufrgs.
Related Issues (20)
- Incompatibility with color package HOT 4
- Lista de Quadros HOT 14
- Makefile doesn't copy the files .bst e .bib at install HOT 2
- Simplify package HOT 5
- Sections are not numbered HOT 5
- As seções não estão sem numeração. Isso está correto? HOT 2
- Problema com `mathptmx`
- Et al nas referências HOT 8
- Local de definição de keywords dos abstracts é inconsistente HOT 1
- Templates Beamer no estilo INF/UFRGS HOT 1
- CTAN Package HOT 1
- Erro ao instalar HOT 1
- tocstyle deprecated, update for using tocbasic HOT 7
- Citação com dois ou mais autores usa "e" e não "and" como separador HOT 3
- Referências bibliográficas não estão sendo justificadas HOT 1
- Variáveis para outros institutos e cursos
- Suporte para sobrescrever o orientadorname HOT 1
- Template de slides
- Ordem da lista de abreviações não está de acordo com a ABNT nos exemplos HOT 1
- Atualização ABNT NBR 10520:2023 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infufrgs.