mirror of
https://github.com/moderncv/moderncv.git
synced 2026-10-21 16:57:06 +02:00
Merge 24249dfd2e into c2374bcad4
This commit is contained in:
commit
3174157326
2 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ version next
|
|||
- Fix "Underfull \hbox (badness 10000)" warning in banking \subsection dotted
|
||||
rules by adding \hss glue as in \dotfill (#307)
|
||||
- Update "circle" option to allow for half-filled circles in skill matrix (#309)
|
||||
- Fix "Arithmetic overflow" in cvcolumns when every column sets a width (#311)
|
||||
|
||||
version 2.6.1 (24 Jun 2026)
|
||||
- Allow the customisation of the contemporary style (#297)
|
||||
|
|
|
|||
|
|
@ -676,7 +676,9 @@
|
|||
% compute the width of each cvcolumn, considering a spacing of \separatorcolumnwidth and the columns with set width
|
||||
\ifnum\thecvcolumnscounter>0%
|
||||
\setlength{\cvcolumnswidth}{\maincolumnwidth-\value{cvcolumnscounter}\separatorcolumnwidth+\separatorcolumnwidth}%
|
||||
\setlength{\cvcolumnautowidth}{\cvcolumnswidth*\ratio{\cvcolumnsautowidth}{\cvcolumnsdummywidth}/\value{cvcolumnsautowidthcounter}}\fi%
|
||||
% only share the remaining width if some columns have no explicit width, to avoid a division by zero ("Arithmetic overflow") when all have one
|
||||
\ifnum\value{cvcolumnsautowidthcounter}>0%
|
||||
\setlength{\cvcolumnautowidth}{\cvcolumnswidth*\ratio{\cvcolumnsautowidth}{\cvcolumnsdummywidth}/\value{cvcolumnsautowidthcounter}}\fi\fi%
|
||||
% pre-aggregate the tabular definition, heading and content (required before creating the tabular, as the tabular environment doesn't like loops --- probably because "&" generates a \endgroup)
|
||||
% - the tabular definition is the aggregation of the different "\cvcolumn<i>@def" (by default "p{\cvcolumnautowidth}"), separated by "@{\hspace*{\separatorcolumnwidth}}"
|
||||
% - the tabular heading is the aggregation of the different "\cvcolumn<i>@head", separated by "&"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue