You can't1 have a macro called \mês
, with an accented letter, so here's a \mes
macro:
\newcommand\mes{\ifcase\month
\or Janeiro\or Fevereiro\or Março\or Abril\or Maio\or Junho\or
Julho\or Agosto\or Setembro\or Outubro\or Novembro\or Dezembro\fi}
It takes the value of \month
and branches to one of twelve cases (there's an explanation about the syntax of \ifcase
here), and writes the respective month.
[1]: Terms and conditions may apply: you can have a macro called \mês
if you are using an Unicode engine like XeTeX or LuaTeX, or if you create the control sequence indirectly with \csname mês\endcsname
, but it's usually better to stick to ASCII for macro names.