-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from PumasAI/jk/show-total-tests
test show_total and show_overall
- Loading branch information
Showing
9 changed files
with
1,880 additions
and
0 deletions.
There are no files selected for viewing
795 changes: 795 additions & 0 deletions
795
test/references/table_one/two_rows_one_group_show_overall_false.docx.txt
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
test/references/table_one/two_rows_one_group_show_overall_false.latex.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
\documentclass{article} | ||
\usepackage{threeparttable} | ||
\usepackage{multirow} | ||
\usepackage{booktabs} | ||
\begin{document} | ||
\begin{table}[!ht] | ||
\setlength\tabcolsep{0pt} | ||
\centering | ||
\begin{threeparttable} | ||
\begin{tabular}{@{\extracolsep{2ex}}*{3}{lcc}} | ||
\toprule | ||
& \multicolumn{2}{c}{\textbf{group1}} \\ | ||
\cmidrule{2-3} | ||
& a & b \\ | ||
\midrule | ||
\textbf{value1} & & \\ | ||
\hspace{12.0pt}Mean (SD) & 2.5 (1.29) & 6.5 (1.29) \\ | ||
\hspace{12.0pt}Median [Min, Max] & 2.5 [1, 4] & 6.5 [5, 8] \\ | ||
\textbf{value2} & & \\ | ||
\hspace{12.0pt}a & 2 (50\%) & 1 (25\%) \\ | ||
\hspace{12.0pt}b & 1 (25\%) & 2 (50\%) \\ | ||
\hspace{12.0pt}c & 1 (25\%) & 1 (25\%) \\ | ||
\bottomrule | ||
\end{tabular} | ||
\end{threeparttable} | ||
\end{table} | ||
\end{document} |
77 changes: 77 additions & 0 deletions
77
test/references/table_one/two_rows_one_group_show_overall_false.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<table class="st-1f5609c8"> | ||
<style> | ||
.st-1f5609c8 { | ||
border: none; | ||
margin: 0 auto; | ||
padding: 0.25rem; | ||
border-collapse: separate; | ||
border-spacing: 0.85em 0.2em; | ||
line-height: 1.2em; | ||
} | ||
|
||
.st-1f5609c8 tr td { | ||
vertical-align: top; | ||
padding: 0; | ||
border: none; | ||
} | ||
|
||
.st-1f5609c8 br { | ||
line-height: 0em; | ||
margin: 0; | ||
} | ||
|
||
.st-1f5609c8 sub { | ||
line-height: 0; | ||
} | ||
|
||
.st-1f5609c8 sup { | ||
line-height: 0; | ||
} | ||
</style> | ||
<tr><td colspan="3" style="border-bottom: 1.5px solid black; padding: 0"></td></tr> | ||
<tr> | ||
<td style="text-align:center;"></td> | ||
<td colspan="2" style="font-weight:bold;border-bottom:1px solid black; padding-bottom: 0.25em;text-align:center;">group1</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;">a</td> | ||
<td style="text-align:center;">b</td> | ||
</tr> | ||
<tr><td colspan="3" style="border-bottom:1px solid black;padding:0"></td></tr> <tr> | ||
<td style="font-weight:bold;text-align:left;">value1</td> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">Mean (SD)</td> | ||
<td style="text-align:center;">2.5 (1.29)</td> | ||
<td style="text-align:center;">6.5 (1.29)</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">Median [Min, Max]</td> | ||
<td style="text-align:center;">2.5 [1, 4]</td> | ||
<td style="text-align:center;">6.5 [5, 8]</td> | ||
</tr> | ||
<tr> | ||
<td style="font-weight:bold;text-align:left;">value2</td> | ||
<td style="text-align:center;"></td> | ||
<td style="text-align:center;"></td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">a</td> | ||
<td style="text-align:center;">2 (50%)</td> | ||
<td style="text-align:center;">1 (25%)</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">b</td> | ||
<td style="text-align:center;">1 (25%)</td> | ||
<td style="text-align:center;">2 (50%)</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left:12.0pt;text-align:left;">c</td> | ||
<td style="text-align:center;">1 (25%)</td> | ||
<td style="text-align:center;">1 (25%)</td> | ||
</tr> | ||
<tr><td colspan="3" style="border-bottom: 1.5px solid black; padding: 0"></td></tr> | ||
</table> |
38 changes: 38 additions & 0 deletions
38
test/references/table_one/two_rows_one_group_show_overall_false.typ.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
#table( | ||
rows: 9, | ||
columns: 3, | ||
column-gutter: 0.25em, | ||
align: (left, center, center), | ||
stroke: none, | ||
table.hline(y: 0, stroke: 1pt), | ||
[], | ||
table.cell(colspan: 2)[*group1*], | ||
table.hline(y: 1, start: 1, end: 3, stroke: 0.75pt), | ||
[], | ||
[a], | ||
[b], | ||
table.hline(y: 2, stroke: 0.75pt), | ||
[*value1*], | ||
[], | ||
[], | ||
[#h(12.0pt)Mean (SD)], | ||
[2.5 (1.29)], | ||
[6.5 (1.29)], | ||
[#h(12.0pt)Median [Min, Max]], | ||
[2.5 [1, 4]], | ||
[6.5 [5, 8]], | ||
[*value2*], | ||
[], | ||
[], | ||
[#h(12.0pt)a], | ||
[2 (50%)], | ||
[1 (25%)], | ||
[#h(12.0pt)b], | ||
[1 (25%)], | ||
[2 (50%)], | ||
[#h(12.0pt)c], | ||
[1 (25%)], | ||
[1 (25%)], | ||
table.hline(y: 9, stroke: 1pt), | ||
) |
Oops, something went wrong.