Giter Club home page Giter Club logo

Comments (4)

matthiasdiener avatar matthiasdiener commented on July 4, 2024

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.

mgmillani avatar mgmillani commented on July 4, 2024

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.

matthiasdiener avatar matthiasdiener commented on July 4, 2024

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.

mgmillani avatar mgmillani commented on July 4, 2024

Seems to work. Thanks!

from infufrgs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.