Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter number is missing #169

Closed
colombojrj opened this issue Nov 25, 2021 · 1 comment
Closed

Chapter number is missing #169

colombojrj opened this issue Nov 25, 2021 · 1 comment

Comments

@colombojrj
Copy link

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.

@EthanDeng
Copy link
Member

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.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants