# French equation numbering using bis, ter, etc

As a corollary to my other Question "French section numbering using bis, ter, etc", I am looking for a way to number equations by appending "bis," "ter," and other latin suffixes after the equation number.

The figure that follows illustrates the desired output. Note the italic bis and ter in the equation numbers. I am able to accomplish this with the following MWE:

\documentclass[letterpage,12pt]{book}

\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[hyphenation,parindent,lastparline]{impnattypo}
\usepackage[all]{nowidow}
\raggedbottom
\usepackage{verbatim}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[frenchb]{babel}

\begin{document}

Equation no. 1 to follow.
\begin{equation}
(\lambda + \mu) \frac{d\theta}{dx} + \mu\Delta_2u
\end{equation}

Equation no. 1 \textit{bis} to follow

\begin{equation}\tag{1 \textit{bis}}
\theta = \frac{du}{dx} + \frac{dv}{dy} + \frac{d\eta}{dz}
\end{equation}

Equation no. 2 to follow.
\begin{equation}
y = mx + b \\[0.5em]
\end{equation}

Equation no. 2 \textit{bis} to follow

\begin{equation}\tag{2 \textit{bis}}
a^2 + b^2 = c^2
\end{equation}

Equation no. 2 \textit{ter} to follow

\begin{equation}\tag{2 \textit{ter}}
E = mc^2
\end{equation}

Equation no. 3 to follow

\begin{equation}
e^{\pi i}=-1
\end{equation}

Equation no. 4 to follow

\begin{equation}
\cos^2{x} + \sin^2{x} = 1
\end{equation}

\end{document}


However, this syntax lacks the automatic equation numbering that I would like to preserve.

The MWE that follows is my non-working example that I am trying to edit to accomplish the desired output.

\documentclass[letterpage,12pt]{book}

\usepackage{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[hyphenation,parindent,lastparline]{impnattypo}
\usepackage[all]{nowidow}
\raggedbottom
\usepackage{verbatim}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[frenchb]{babel}

\begin{document}

Equation no. 1 to follow.
\begin{equation}
(\lambda + \mu) \frac{d\theta}{dx} + \mu\Delta_2u
\end{equation}

Equation no. 1 \textit{bis} to follow

\begin{equation}
\theta = \frac{du}{dx} + \frac{dv}{dy} + \frac{d\eta}{dz}
\end{equation}

Equation no. 2 to follow.
\begin{equation}
y = mx + b \\[0.5em]
\end{equation}

Equation no. 2 \textit{bis} to follow

\begin{equation}
a^2 + b^2 = c^2
\end{equation}

Equation no. 2 \textit{ter} to follow

\begin{equation}
E = mc^2
\end{equation}

Equation no. 3 to follow

\begin{equation}
e^{\pi i}=-1
\end{equation}

Equation no. 4 to follow

\begin{equation}
\cos^2{x} + \sin^2{x} = 1
\end{equation}

\end{document}


This syntax numbers the second equation as (2) and in ascending order afterward, as one would expect.

I will want to be able to cross-reference these equation numbers as well. How can I go about accomplishing my desired output?

Without expl3, you can convert integers to whatever you want with:

\ifcase#1\or\or bis\or ter\or quater\or quinquies\or
sexies\or septies\or octies\or novies\or decies\fi


By substituting #1 by the number you want. In this case, we can create a macro, and pass \value{equation} as argument.

In any case, I don't know what's the way the arabic numbers in front of bis and such is incremented. So I create a macro, \latintags to be used inside of a group, that saves the current equation counter and starts using bis, etc.

\documentclass{book}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{mathtools,amsthm,amssymb}
\usepackage[frenchb]{babel}

\newcommand*\dif{\mathop{}\!d}
\newcommand*\latinnumeral
{\ifcase#1\unskip\or\unskip\or bis\or ter\or quater\or quinquies\or
sexies\or septies\or octies\or novies\or decies\fi}
\newcommand*\latintags
{\xdef\startingequationnumber{\the\numexpr\value{equation}+1\relax}%
\setcounter{equation}{0}%
\aftergroup\resetarabicequations
\def\theequation
{\startingequationnumber~\textit{\latinnumeral{\value{equation}}}}}
\newcommand*\resetarabicequations
{\setcounter{equation}{\numexpr\startingequationnumber\relax}}

\begin{document}
\latintags

Equation no. \eqref{abc} to follow.
\begin{equation}
(\lambda + \mu) \frac{\dif \theta}{\dif x} + \mu\Delta_2u \label{abc}
\end{equation}

\bigskip

Equation no. \eqref{def} to follow
\begin{equation}
\theta = \frac{\dif u}{\dif x} + \frac{\dif v}{\dif y} + \frac{\dif \eta}{\dif z} \label{def}
\end{equation}

\end{document} If (as I imagine) you want this to happen only inside a certain environment, like, e.g., corollary, you can use etoolbox

\usepackage{etoolbox}
\AtBeginEnvironment{corollary}{\latintags}
..
\begin{corollary}
Equation no. \eqref{abc} to follow.
\begin{equation}
(\lambda + \mu) \frac{\dif \theta}{\dif x} + \mu\Delta_2u \label{abc}
\end{equation}

\bigskip

Equation no. \eqref{def} to follow
\begin{equation}
\theta = \frac{\dif u}{\dif x} + \frac{\dif v}{\dif y} + \frac{\dif \eta}{\dif z} \label{def}
\end{equation}
\end{corollary}


Or may be not necessarily inside a theorem like environment, but just a few equations, you can use the {latintags} environment to group them:

\begin{equation}
A
\end{equation}

\begin{equation}
A
\end{equation}

\begin{equation}
A
\end{equation}

\begin{latintags}
Equation no. \eqref{abc} to follow.
\begin{equation}
A \label{abc}
\end{equation}

Equation no. \eqref{def} to follow
\begin{equation}
A \label{def}
\end{equation}

Equation no. \eqref{ghi} to follow
\begin{equation}
A \label{ghi}
\end{equation}

Equation no. \eqref{jkl} to follow
\begin{equation}
A \label{jkl}
\end{equation}

Equation no. \eqref{mno} to follow
\begin{equation}
A \label{mno}
\end{equation}

Equation no. \eqref{pqr} to follow
\begin{equation}
A \label{pqr}
\end{equation}

Equation no. \eqref{stu} to follow
\begin{equation}
A \label{stu}
\end{equation}
\end{latintags}

\begin{equation}
A
\end{equation}

\begin{equation}
A
\end{equation}

\begin{equation}
A
\end{equation}

\begin{equation}
A
\end{equation} • Hi Manuel, the only thing missing from this Answer is italicizing the latin suffix, which I achieved by changing the following line: \def\theequation{\startingequationnumber~\textit{\latinnumeral{\value{equation}}}}}. For completion, if you could tweak that part of your Answer, I'll mark it as complete. Thanks for your help! – grfrazee Jul 22 '15 at 2:34
• Done! In case you want to add more “steps” to the latin numbers, just add more \or eleven\or twelve\or etc. before \fi. And also, the two \unskip I added inside are not part of the numbers, it's just to remove the last space in case nothing is added (when equation number is 0 or 1) so there's no spurious space there. – Manuel Jul 22 '15 at 9:28

Perhaps the following set of commands might be something you're interested in: \documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{mathtools,refcount,xparse}

% http://tex.stackexchange.com/a/254255/5764
\ExplSyntaxOn
\seq_new:N \bislist
\seq_set_split:Nnn \bislist {;} {bis;ter;quater;quinquies;sexies;septies;octies;novies;decies}
\NewDocumentCommand {\bisprint} {m}
{
\seq_item:Nn \bislist {#1}
}
\ExplSyntaxOff

\newcommand{\feqref}{\textup{(\ref{#1}~\textit{\bisprint{\getrefnumber{#1}}})}}
\newcommand{\eqnumfmt}{#1~\textit{\bisprint{\value{equation}}}}
\newtagform{freqnum}[\eqnumfmt]{(}{)}
\usetagform{freqnum}
\newenvironment{frequation}
{\usetagform{freqnum}
\begin{equation}}
{\end{equation}}

\begin{document}

Equation~\feqref{abc} to follow.
\begin{frequation}
(\lambda + \mu) \frac{d\theta}{dx} + \mu\Delta_2u \label{abc}
\end{frequation}

Equation \feqref{def} to follow
\begin{frequation}
\theta = \frac{du}{dx} + \frac{dv}{dy} + \frac{d\eta}{dz} \label{def}
\end{frequation}

\end{document}


frequation uses a new "tag form" (supplied using mathtools) that adds a "number string". \freqref is the equivalent numbered reference, similar to using \eqref.

• Unless I'm missing something, this numbers the equations, in order, as "1 bis," "2 ter," "3 quater," "4 quinquies," etc., until the counter ends at "decies." Please see the edited Question - I have tried to clarify the intent of my aim with this numbering. – grfrazee Jul 22 '15 at 2:30