From 86e7a29d4777bda26c3d4e499ed40f3e1639090c Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Mon, 7 Nov 2016 11:01:02 +0900 Subject: [PATCH] lltjcore.sty: add patch for \@gnewline --- src/patches/lltjcore.sty | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/patches/lltjcore.sty b/src/patches/lltjcore.sty index a075947..f06d1fe 100644 --- a/src/patches/lltjcore.sty +++ b/src/patches/lltjcore.sty @@ -231,6 +231,19 @@ \ifmmode\@@underline{#1}% \else \leavevmode\null$\@@underline{\hbox{#1}}\m@th$\null\relax\fi} +\def\@gnewline #1{% + \ifvmode + \@nolnerr + \else + \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \null + % pLaTeX のように \break \break としても,行頭禁則由来のペナルティは + % 2つのペナリティとも増加されるだけである. + % LuaTeX でのハイフネーション方法は TeX82 と異なるので, + % \null のままにしても不都合は生じない. + \ignorespaces + \fi} + + %%% AtBeginDvi \def \AtBeginDvi #1{% \global \setbox \@begindvibox -- 2.11.0