Skip to content

Commit

Permalink
repair problem in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweichiang committed Jan 30, 2025
1 parent ade183a commit c78fb77
Showing 1 changed file with 13 additions and 43 deletions.
56 changes: 13 additions & 43 deletions tex/gregoriotex-main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -374,51 +374,21 @@
\global\gre@dimen@initialwidth=\gre@space@dimen@minimalinitialwidth\relax%
\fi%
\endgre@style@initial%
\gre@debugmsg{ifdim}{ wd(gre@box@annotation) > initialwidth}%
\ifdim\wd\gre@box@annotation>\gre@dimen@initialwidth\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@annotation%
\fi%
\gre@debugmsg{annotation}{Width check completed.}%
\setbox\gre@box@initial=\hbox to \gre@dimen@initialwidth {\hss\raise \gre@dimen@temp@five\box\gre@box@initial\hss}%
\gre@debugmsg{annotation}{Initial set.}%
\gre@style@initial%
\global\gre@dimen@temp@four = \gre@space@dimen@beforeinitialshift\relax%
\endgre@style@initial%
\else %
\advance\gre@dimen@temp@five by \dimexpr(-\gre@dimen@additionalbottomspace %
- \gre@space@dimen@spacebeneathtext %
- \gre@space@dimen@spacelinestext %
- 4\gre@dimen@interstafflinespace %
- 4\gre@dimen@stafflineheight %
- \gre@dimen@currenttranslationheight %
- \f@size pt %
+ \gre@space@dimen@initialraise)\relax%
\ifvoid\gre@box@initial%
\gre@debugmsg{initial}{fill big initial box}%
\setbox\gre@box@initial=\hbox{\gre@style@initial\gre@fixedtextformat{#1}\endgre@style@initial}%
\fi%
\gre@debugmsg{ifdim}{ manualinitialwidth = 0pt}%
\ifdim\gre@space@dimen@manualinitialwidth=0 pt\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@initial %
\gre@style@initial%
\ifdim\gre@dimen@initialwidth<\gre@space@dimen@minimalinitialwidth\relax%
\global\gre@dimen@initialwidth=\gre@space@dimen@minimalinitialwidth\relax%
\fi%
\endgre@style@initial%
\else%
\gre@style@initial%
\global\gre@dimen@initialwidth=\gre@space@dimen@manualinitialwidth\relax%
\endgre@style@initial%
\fi%
\gre@debugmsg{ifdim}{ wd(GreAboveinitialfirstbox) > initialwidth}%
\ifdim\wd\gre@box@annotation>\gre@dimen@initialwidth\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@annotation%
\fi%
\setbox\gre@box@initial=\hbox{\vtop to 0pt{\hbox to \gre@dimen@initialwidth {\hss\raise \gre@dimen@temp@five\box\gre@box@initial\hss}\vss}}%
\else
\gre@style@initial%
\global\gre@dimen@temp@four = \gre@space@dimen@beforeinitialshift\relax%
\global\gre@dimen@initialwidth=\gre@space@dimen@manualinitialwidth\relax%
\endgre@style@initial%
\fi %
\fi
\gre@debugmsg{ifdim}{ wd(gre@box@annotation) > initialwidth}%
\ifdim\wd\gre@box@annotation>\gre@dimen@initialwidth\relax%
\global\gre@dimen@initialwidth=\wd\gre@box@annotation%
\fi%
\gre@debugmsg{annotation}{Width check completed.}%
\setbox\gre@box@initial=\hbox to \gre@dimen@initialwidth {\hss\raise \gre@dimen@temp@five\box\gre@box@initial\hss}%
\gre@debugmsg{annotation}{Initial set.}%
\gre@style@initial%
\global\gre@dimen@temp@four = \gre@space@dimen@beforeinitialshift\relax%
\endgre@style@initial%
\setbox\gre@box@temp@width=\hbox attr \gre@attrid@initial=1 {%
\gre@hskip\gre@dimen@temp@four %
\global\advance\gre@dimen@initialwidth by \gre@dimen@temp@four %
Expand Down

0 comments on commit c78fb77

Please sign in to comment.