Skip to content

Commit

Permalink
Adjustments to accomodate siunitx updates
Browse files Browse the repository at this point in the history
  • Loading branch information
1beb committed Oct 11, 2022
1 parent 75b07ce commit d0aa0c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/codeBookLatex.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ scolumnAlign <- function(k, alignment) {
if (maxnchar > 6) {
alignment[i] <- sprintf("S[table-format=%s]", maxnchar)
} else {
alignment[i] <- c("J", "K", "d", "M", "N", "O", "L", "M", "N")[maxnchar]
alignment[i] <- c("J", "K", "d", "M", "N", "O", "L", "P", "Q")[maxnchar]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions inst/codebook_latex_wrap.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\usepackage{longtable}
\usepackage{siunitx}
\sisetup{
round-mode = places, % Rounds numbers
% round-mode = places, % Rounds numbers
round-precision = 2, % to 2 places
table-format = 3
}
Expand All @@ -36,8 +36,8 @@
\newcolumntype{N}{S[table-format=5]}
\newcolumntype{O}{S[table-format=6]}
\newcolumntype{L}{S[table-format=7]}
\newcolumntype{M}{S[table-format=8]}
\newcolumntype{N}{S[table-format=9]}
\newcolumntype{P}{S[table-format=8]}
\newcolumntype{Q}{S[table-format=9]}
% default is 3 so it's not included above
\usepackage{float}
\usepackage{marginnote}
Expand Down

0 comments on commit d0aa0c6

Please sign in to comment.