Fix bug in latex-printing Equivalent objects

Latex-printing an Equivalent object would only print out two
arguments, even if there are more.
Merge pull request #7601 from clsn/printfix

Fix bug in latex-printing Equivalent objects