diff --git a/R/writeLatex.R b/R/writeLatex.R index b7bad44..52d49fc 100644 --- a/R/writeLatex.R +++ b/R/writeLatex.R @@ -315,7 +315,7 @@ latexDocHead <- function(theme, title, subtitle, banner = NULL) { "includeheadfoot" ), usepackage("array"), - usepackage("babel", "english"), + usepackage("babel"), # , "english" "\\newcolumntype{B}[2]{>{#1\\hspace{0pt}\\arraybackslash}b{#2}}", "\\setlength{\\parindent}{0pt}", usepackage("color", "dvipsnames"), diff --git a/inst/codebook_latex_wrap.tex b/inst/codebook_latex_wrap.tex index 6c6a5c9..b7cdd0d 100644 --- a/inst/codebook_latex_wrap.tex +++ b/inst/codebook_latex_wrap.tex @@ -20,7 +20,7 @@ } \usepackage[top=0.6in, bottom=0.6in, left=1in, right=1in, includeheadfoot]{geometry} \usepackage{array} -\usepackage[english]{babel} +\usepackage{babel} \newcolumntype{B}[2]{>{#1\hspace{0pt}\arraybackslash}b{#2}} \setlength{\parindent}{0pt} \usepackage[dvipsnames]{color} diff --git a/tests/testthat/ref/tabbook1.tex b/tests/testthat/ref/tabbook1.tex index 1075641..b8e3a25 100644 --- a/tests/testthat/ref/tabbook1.tex +++ b/tests/testthat/ref/tabbook1.tex @@ -11,7 +11,7 @@ \usepackage{booktabs, dcolumn, longtable} \usepackage[top=0.6in, bottom=0.6in, left=0.5in, right=0.5in, includeheadfoot]{geometry} \usepackage{array} -\usepackage[english]{babel} +\usepackage{babel} \newcolumntype{B}[2]{>{#1\hspace{0pt}\arraybackslash}b{#2}} \setlength{\parindent}{0pt} \usepackage[dvipsnames]{color} diff --git a/tests/testthat/ref/topline1.tex b/tests/testthat/ref/topline1.tex index 1e54e02..9f3d4da 100644 --- a/tests/testthat/ref/topline1.tex +++ b/tests/testthat/ref/topline1.tex @@ -11,7 +11,7 @@ \usepackage{booktabs, dcolumn, longtable} \usepackage[top=0.6in, bottom=0.6in, left=1in, right=1in, includeheadfoot]{geometry} \usepackage{array} -\usepackage[english]{babel} +\usepackage{babel} \newcolumntype{B}[2]{>{#1\hspace{0pt}\arraybackslash}b{#2}} \setlength{\parindent}{0pt} \usepackage[dvipsnames]{color} diff --git a/vignettes/Edgar-Anderson-s-Iris-Data.tex b/vignettes/Edgar-Anderson-s-Iris-Data.tex index 54f79ed..c7f56b1 100644 --- a/vignettes/Edgar-Anderson-s-Iris-Data.tex +++ b/vignettes/Edgar-Anderson-s-Iris-Data.tex @@ -19,7 +19,7 @@ } \usepackage[top=0.6in, bottom=0.6in, left=1in, right=1in, includeheadfoot]{geometry} \usepackage{array} -\usepackage[english]{babel} +\usepackage{babel} \newcolumntype{B}[2]{>{#1\hspace{0pt}\arraybackslash}b{#2}} \setlength{\parindent}{0pt} \usepackage[dvipsnames]{color} @@ -77,8 +77,8 @@ \vspace{.25in} \begin{longtable}[l]{ll} -Sample & The irises of the Gaspe Peninsula \\ -Conducted & 1935 \\ +Sample & The irises of the Gaspe Peninsula \\ +Conducted & 1935 \\ \end{longtable} This famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica. @@ -96,7 +96,7 @@ \vskip 0.10in The length of the flower's sepal \addcontentsline{lot}{table}{\parbox{1.8in}{\ttfamily{Sepal.Length}} Sepal Length} -\vskip 0.10in\end{absolutelynopagebreak} +\vskip 0.10in\end{absolutelynopagebreak} \begin{longtable}[l]{cccccc} \toprule {Mean} & {SD} & {Min} & {Max} & {n} & {Missing}\\ @@ -115,7 +115,7 @@ \vskip 0.10in The iris species \addcontentsline{lot}{table}{\parbox{1.8in}{\ttfamily{Species}} Iris Species} -\vskip 0.10in\end{absolutelynopagebreak} +\vskip 0.10in\end{absolutelynopagebreak} \begin{longtable}[l]{JlK} \toprule {Code} & {Label} & {Count}\\ diff --git a/vignettes/Example-dataset.tex b/vignettes/Example-dataset.tex index df0ebd3..fa41e90 100644 --- a/vignettes/Example-dataset.tex +++ b/vignettes/Example-dataset.tex @@ -19,7 +19,7 @@ } \usepackage[top=0.6in, bottom=0.6in, left=1in, right=1in, includeheadfoot]{geometry} \usepackage{array} -\usepackage[english]{babel} +\usepackage{babel} \newcolumntype{B}[2]{>{#1\hspace{0pt}\arraybackslash}b{#2}} \setlength{\parindent}{0pt} \usepackage[dvipsnames]{color} @@ -77,10 +77,10 @@ \vspace{.25in} \begin{longtable}[l]{ll} -Sample & US Voting Adults \\ -Conducted & Feb 2021 - Mar 2021 \\ +Sample & US Voting Adults \\ +Conducted & Feb 2021 - Mar 2021 \\ \end{longtable} -You can enter arbitrary \textbf{\emph{tex}} in the preamble, but it must be double escaped. +You can enter arbitrary \textbf{\emph{tex}} in the preamble, but it must be double escaped. \renewcommand{\listtablename}{Table of Contents} @@ -97,7 +97,7 @@ \addcontentsline{lot}{table}{\parbox{1.8in}{\ttfamily{allpets}} All pets owned} \vskip 0.10in \emph{This is a note, usually describing a sub-sample} -\vskip 0.10in\end{absolutelynopagebreak} +\vskip 0.10in\end{absolutelynopagebreak} \begin{longtable}[l]{>{}ll} \toprule \multicolumn{2}{c}{Rows} \\ @@ -105,9 +105,9 @@ {Variable} & {Label}\\ \midrule \ttfamily{allpets\_1} & Cat\\ - + \ttfamily{allpets\_2} & Dog\\ - + \ttfamily{allpets\_3} & Bird\\ \bottomrule \end{longtable}\end{absolutelynopagebreak} @@ -120,11 +120,11 @@ {Code} & {Label}\\ \midrule 1 & selected\\ - + 2 & not selected\\ - + 8 & skipped\\ - + 9 & not asked\\ \bottomrule \end{longtable}\end{absolutelynopagebreak} @@ -137,9 +137,9 @@ {Variable} & {1} & {2} & {8} & {9}\\ \midrule \ttfamily{allpets\_1} & 1 & 2 & 3 & 4\\ - + \ttfamily{allpets\_2} & 4 & 1 & 3 & 2\\ - + \ttfamily{allpets\_3} & 4 & 4 & 1 & 1\\ \bottomrule \end{longtable}\end{absolutelynopagebreak}