With app-text/ptex-3.1.10_beta3, LaTeX documents with documentclasses jarticle, etc. from ascii are uncompilable. I bet this is due to the wrong symlinks made by the ebuild. Reproducible: Always Steps to Reproduce: 1. install ptex-3.1.10_beta3 2. compile a document with jarticle documentclass Actual Results: You will receive a message: ! LaTeX Error: This file needs format `pLaTeX2e' but this is `LaTeX2e'. and the compilation stops. Expected Results: Create a dvi file if the file is a valid TeX file. /usr/share/texmf/ptex/platex/config/platex.ini is symlinked to the directory /etc/texmf/ptex/platex/config/. By this setting, /usr/share/texmf/tex/platex/config/platex.ini from tetex distribution is used instead and it makes jarticle documents uncompilable. This is caused by the line 178 of the ebuild: dosym /etc/texmf/${cfg%/*} /usr/share/texmf/${cfg} ${cfg%/*} should be ${cfg}.
dosym is removed in new ebuilds.