I am writing a paper for an IEEJ journal, and they require that after the equation, there should be dots before the equation number.
It should look something like this
The publisher provided a custom class in their website(http://denki.iee.jp/?page_id=5962) and using their class, the equation looks fine, as shown in the following example
\documentclass[english]{ieej-e}
%\documentclass[english,letter]{ieej-e}
\usepackage{graphicx}
%\usepackage[fleqn]{amsmath}
\usepackage[varg]{txfonts}
\begin{document}
\begin{equation}
a=1
\end{equation}
\end{document}
But, when the amsmath package is loaded, the dots are not produced anymore, as shown below,
\documentclass[english]{ieej-e}
%\documentclass[english,letter]{ieej-e}
\usepackage{graphicx}
\usepackage[fleqn]{amsmath}
\usepackage[varg]{txfonts}
\begin{document}
\begin{equation}
a=1
\end{equation}
\end{document}
In the readme.pdf from the download custom class file, they provided a solution, adding \rlap{\hbox to 10mm{\ \EqnDots}} to the equation, but one has to manually adjust the length of width to get a satisfactory result for different equations, for example
\begin{document}
\begin{equation}
a=1 \rlap{\hbox to 64mm{\ \EqnDots}}
\end{equation}
\begin{equation}
a=1234\rlap{\hbox to 58.5mm{\ \EqnDots}}
\end{equation}
\end{document}
How to add the dots automacally?




dotseqn.stywhich is in texlive/miktex) – David Carlisle Jun 15 '19 at 14:55.so it is on the baseline, your image shows\cdotso replace\hbox{ . }by\hbox{ $\cdot$ }in that answer. – David Carlisle Jun 15 '19 at 15:04amsmathpackage ? I mean, doesn't the original class supportequationenvironments ? – BambOo Jun 15 '19 at 23:14alignenvironment from theamsmathpackage. – Dunzhi Jun 16 '19 at 09:39