File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1271
1271
\fi\fi
1272
1272
}%
1273
1273
% auxiliary paragraph dissector to get max and min widths
1274
+ % but minwidth must not take into account the last line
1274
1275
\newbox\spx @scratchbox
1275
1276
\def\spx @verb@getwidths {%
1277
+ \unskip\unpenalty
1278
+ \setbox\spx@scratchbox\lastbox
1279
+ \ifvoid \spx@scratchbox
1280
+ \else
1281
+ \setbox\spx@scratchbox\hbox {\unhbox\spx@scratchbox }%
1282
+ \ifdim \spx@verb@maxwidth <\wd\spx@scratchbox
1283
+ \xdef\spx@verb@maxwidth {\number\wd\spx@scratchbox sp}%
1284
+ \fi
1285
+ \expandafter\spx@verb@getwidths@loop
1286
+ \fi
1287
+ }%
1288
+ \def\spx @verb@getwidths@loop {%
1276
1289
\unskip\unpenalty
1277
1290
\setbox\spx@scratchbox\lastbox
1278
1291
\ifvoid \spx@scratchbox
1284
1297
\ifdim \spx@verb@minwidth >\wd\spx@scratchbox
1285
1298
\xdef\spx@verb@minwidth {\number\wd\spx@scratchbox sp}%
1286
1299
\fi
1287
- \expandafter\spx@verb@getwidths
1300
+ \expandafter\spx@verb@getwidths@loop
1288
1301
\fi
1289
1302
}%
1290
1303
% auxiliary macros to implement "cut long line even in middle of word"
You can’t perform that action at this time.
0 commit comments