-
Notifications
You must be signed in to change notification settings - Fork 0
/
Table.tex
139 lines (128 loc) · 4.56 KB
/
Table.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
\documentclass[12pt, a4paper]{article}
% Packages to use:
\usepackage{afterpage}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}
%\usepackage{apacite} % Didn't work
\usepackage{authblk}
\usepackage{amsmath}
\usepackage[title]{appendix}
\usepackage{amsfonts}
\usepackage{booktabs} % For \toprule, \midrule, \botrule
\usepackage[citestyle = apa, bibstyle=apa, maxbibnames=20]{biblatex}
\usepackage[font=small,labelfont=bf, hypcap=false]{caption} %\caption
\usepackage{chngcntr}
\usepackage{comment} %large comment
\usepackage{csquotes} % Include csquotes
\usepackage{csvsimple} % CSV to latex
\usepackage{diagbox}
\usepackage{enumitem}
\usepackage{eqnarray}
\usepackage{float} % for customizing caption position
\usepackage[T1]{fontenc} % Font encoding
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\usepackage[none]{hyphenat} % Hyphonate
\usepackage{lineno} % Add the lineno package
\usepackage{listings}
\usepackage{lipsum}
\usepackage{longtable}
\usepackage{lscape}
\usepackage{mathrsfs}
\usepackage{multirow}
\usepackage{orcidlink}
\usepackage{pdflscape}
\usepackage[]{ragged2e}
\usepackage{subcaption}
\usepackage{setspace} % Customize line spacing
\usepackage{threeparttable} %For table footnotes
\usepackage{tabularray}
\usepackage{titlesec} % Redefine (sub)section numbering
% ---- References & citations ---
% Your reference file:
\addbibresource{refs.bib} % Your.bib file
%\bibliographystyle{apa}
% Set page size and margins
\geometry{a4paper,
top=1in,
bottom=1in,
left=1in,
right=1in,
marginparwidth=0.5in
}
%\graphicspath{./figures/}
\onehalfspacing % 1.5 line spacing
\titleformat{\section} % Redefine section numbering format
{\normalfont\Large\bfseries}{\thesection.}{1em}{}
% Define a new command for the fourth-level title.
\newcommand{\subsubsubsection}[1]{%
\vspace{\baselineskip} % Add some space
\noindent\textbf{#1\\}\quad % Adjust formatting as needed
}
% Change the position of the table caption above the table
\captionsetup[table]{position=top} % caption position for tables
% Define the unnumbered list
\makeatletter
\newenvironment{unlist}{%
\begin{list}{}{%
\setlength{\labelwidth}{0pt}%
\setlength{\labelsep}{0pt}%
\setlength{\leftmargin}{2em}%
\setlength{\itemindent}{-2em}%
\setlength{\topsep}{\medskipamount}%
\setlength{\itemsep}{3pt}%
}%
}{%
\end{list}%
}
\makeatother
%-------------------------------------------
% Paper Head
%-------------------------------------------
\title{\textbf{Title Here}}
\author[1, 2, *]{\small FirstName MiddleName LastName \orcidlink{xxxx-xxxx-xxxx-xxxx}}
\author[2]{\small FirstName MiddleName LastName}
\author[3]{\small FirstName MiddleName LastName \orcidlink{xxxx-xxxx-xxxx-xxxx}}
\affil[1]{\small{Name of the Department, Organization, City, State, Zip Code}}
\affil[2]{\small{Name of the Department, Organization, City, State, Zip Code}}
\affil[3]{\small{Name of the Department, Organization, City, State, Zip Code}}
\affil[*]{Corresponding author: \href{mailto:[email protected]}{[email protected]}; \href{mailto:[email protected]}{[email protected]}}
\date{}
\begin{document}
\newpage
\maketitle
\newpage
\begin{longtable}[c]{rcccccc}
\caption{Demographics}
\label{tab:Demog} \\
\toprule
\multicolumn{1}{c}{\textbf{Demographic Variables}} & \textbf{N} & \textbf{Mean} & \textbf{Std. Dev.} & \textbf{Median} & \textbf{Min} & \textbf{Max} \\
\midrule
\multicolumn{1}{l}{Agricultural Cropland (Acres)} & 134 & 196.47 & 513.36 & 80 & 0 & 5,500 \\
\multicolumn{1}{l}{Rangeland (Acres)} & 224 & 475.01 & 529.19 & 282.50 & 0 & 3,000 \\
\multicolumn{1}{l}{Forests (Acres)} & 200 & 209.56 & 417.49 & 100 & 0 & 3,500\\
\bottomrule
\multicolumn{7}{l}{\textbf{Notes:}}\\
\multicolumn{7}{l}{.....} \\
\end{longtable}
\begin{table*}[!ht]
\caption{Caption \label{Table: Labels}}
\tabcolsep=0pt
\begin{threeparttable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccc@{\extracolsep{\fill}}}
\toprule
\multicolumn{1}{c}{Site } & \multicolumn{1}{c}{Marginal(\$)} & \multicolumn{1}{c}{$p > |z|$} & \multicolumn{1}{c}{95\% CI} \\
\multicolumn{1}{c}{Attributes} & \multicolumn{1}{c}{(Std. Err.)} & & \multicolumn{1}{c}{Lower, Upper} \\
\midrule
ABC & -0.96 (0.81) & 0.235 & -2.53, 0.62 \\
DEF & -0.71 (0.71) & 0.317 & -2.11, 0.69 \\
\bottomrule
\end{tabular*}
\begin{tablenotes}[para, flushleft]
\item Note: Marginal WTPs, Std. Err., and CIs were rounded to two decimal points. \\
\end{tablenotes}
\end{threeparttable}
\end{table*}
\end{document}