texjporg / platex

pLaTeX community edition
BSD 3-Clause "New" or "Revised" License
49 stars 8 forks source link

電子情報通信学会のテンプレートでレイアウトが乱れる #23

Closed aminophen closed 8 years ago

aminophen commented 8 years ago

電子情報通信学会のテンプレートが、2016/09/03 の pLaTeX2e でレイアウトが乱れるという報告を頂きました。これの template.tex をコンパイルすると、SUMMARY の上に妙なスペースが入ります。

\RequirePackage[2016/09/02]{platexrelease}

を付けると直るので pLaTeX 側の問題である可能性もある。

aminophen commented 8 years ago

原因は \@footnotetext の定義を変えたこと、なのまではわかったのですが、なぜレイアウトが変わるのかよくわかりません…(ieice.cls をみると \protect\footnotetext なるコードが多数出てくるのですが、\@footnotetext が直書きされている場所は見当たりません。)

munepi commented 8 years ago

以下の例で、ieice.cls 以外の jclasses や jsclasses でもこれが再現できますね。

%#!ptex2pdf -l -u
\documentclass{ujarticle}
\begin{document}
\footnotetext{あああああ}%
\footnotetext{あああああ}%
\footnotetext{あああああ}%
\footnotetext{あああああ}%
\footnotetext{あああああ}%
\footnotetext{あああああ}%

あああああ
\end{document}
h-kitagawa commented 8 years ago

\@footnotetext の定義中の

    \color@begingroup
      \@makefntext{%
        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
    \color@endgroup}\null

で,\null が悪さをしているかもしれません.

\ifhmode\null\fi

としてはどうなるでしょうか?

aminophen commented 8 years ago

\ifhmode\null\fi

ああ、そうでした。この前の lshort.tex で \unpenalty は \ifhmode ... \fi にしないといけないという話のときにもう少しいろいろ試すべきでした… 速攻で platex / uplatex / jsclasses を修正してリリースします。

aminophen commented 8 years ago

作業完了しました。2日以内に TeX Live に入って、3日後ごろミラーに下りてくると思います。それまではお手数ですが \RequirePackage[2016/09/02]{platexrelease} で乗り切ってください。

→ 2016/09/09 朝に TeX Live に取り込まれました。完了とします。