<div>Hello! I am working in a article documentclass. It have five section using the command \section. My intention is that each equation number showed a determined format depending on if the section number is odd or even.</div><div><br></div><div>I intended using the conditionals, before the \section, for example:<br></div><div>\ifodd \value{section} \renewcommand{\theequation}{\textbf{{\thesection}-\alph{equation}}} \else \renewcommand{\theequation}{\textit{{\thesection}-\arabic{equation}}}\fi<br></div><div><br></div><div>But do not work fine, the compilation does not give errors, but all the numbers of equations are in the same format.<br></div><div><br></div><div>This is my first approach with the conditionals, I am testing this.<br></div><div><br></div><div>May do not work because I charging others archives? like this:<br></div><div><br></div><div>\documentclass[10pt,a4paper]{article}<br></div><div>\input{files_whit_packages_and_commands.tex}<br></div><div><br></div><div>\makeindex[columns = 3, intoc, options= -s file.ist]<br></div><div>% begin the  document<br></div><div><br></div><div>\begin{document}<br></div><div>\title{title}<br></div><div>\date{2020}<br></div><div>\author{}<br></div><div>\pagebreak<br></div><div><br></div><div>\maketitle<br></div><div>\tableofcontents<br></div><div>\pagebreak<br></div><div><br></div><div>% CONDITIONAL PROOF<br></div><div>\ifodd \value{section} \renewcommand{\theequation}{\textbf{{\thesection}-\alph{equation}}} \else \renewcommand{\theequation}{\textit{{\thesection}-\arabic{equation}}}\fi<br></div><div><br></div><div>\input{file1.tex}<br></div><div>\pagebreak<br></div><div>\input{file2.tex}</div><div>\pagebreak<br></div><div>\input{file3.tex}</div><div>\pagebreak<br></div><div>\input{file4.tex}</div><div>\pagebreak<br></div><div>\input{file5.tex}</div><div>\pagebreak<br></div><div><br></div><div>\listoffigures<br></div><div>\addcontentsline{toc}{section}{Índice de figuras}<br></div><div>\listoftables<br></div><div>\addcontentsline{toc}{section}{Índice de tablas}<br></div><div><br></div><div>\pagebreak<br></div><div>\printindex<br></div><div><br></div><div>\end{document}<br></div><div><br></div><div>same result if the conditional in the preambule.<br></div><div><br></div><div>Thanks a lot!<br></div><div>Darío<br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>-<br></div></div><div><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div>