ElegantBook icon indicating copy to clipboard operation
ElegantBook copied to clipboard

Chapter number is missing

Open colombojrj opened this issue 3 years ago • 1 comments

Hello,

The chapter number disappears when I add the following code to the cls file:

\ifdefstring{\ELEGANT@lang}{ptBR}{
  \RequirePackage[brazil]{babel}
  \setlength\parindent{2em}
  \newcommand\figref[1]{\textbf{Figura}~\ref{#1}}
  \newcommand\tabref[1]{\textbf{Tabela}~\ref{#1}}
  \renewcommand{\chaptername}{Capítulo \thechapter}
  \renewcommand{\partname}{\color{structurecolor} Parte}
  \newcommand{\authorname}{\textbf{Autor: }}
  \newcommand{\institutename}{\textbf{Instituto: }}
  \newcommand{\datename}{\textbf{Data: }}
  \newcommand{\versionname}{\textbf{Versão: }}
  \newcommand{\notename}{Nota}
  \newcommand{\proofname}{Prova}
  \newcommand{\problemname}{Problema}
  \newcommand{\definitionname}{Definição}
  \newcommand{\theoremname}{Teorema}
  \newcommand{\axiomname}{Axioma}
  \newcommand{\postulatename}{Postulado}
  \newcommand{\lemmaname}{Lema}
  \newcommand{\propositionname}{Proposição}
  \newcommand{\corollaryname}{Corolário}
  \newcommand{\examplename}{Exemplo}
  \newcommand{\exercisename}{Exercício}
  \newcommand{\remarkname}{Observação}
  \newcommand{\assumptionname}{Premissa}
  \newcommand{\conclusionname}{Conclusão}
  \newcommand{\solutionname}{Solução}
  \newcommand{\propertyname}{Propriedade}
  \newcommand{\introductionname}{Introdução}
  \renewcommand{\appendixname}{Apêndice}
  \newcommand\bioinfo[2]{\gdef\@bioinfo{\textbf{#1}: #2}}
  \newcommand{\updatename}{Atualizações:}
  \newcommand{\historyname}{Histórico de versões}
}{\relax}

Please help.

colombojrj avatar Nov 25 '21 13:11 colombojrj

sorry, this problem is caused by the \chaptername re-definition, I update the logic, but it still in test stage, you can try the latest version of elegantbook.cls (download from dev branch, and place this file in your project folder), add you language settings according other language settings.).

EthanDeng avatar Mar 08 '22 05:03 EthanDeng