tabularray is quite useful as I need to do these things:
- Keep the table as wide as
\textwidth - I need to insert
note{}in the caption of the table - The head of the table are two many characters, so they are divided into several lines in one cell. In this case, I need to keep short heads to be the middle of the cell of the table
- Keep the number decimal aligned
As I know:
- To achieve
1, I can usetblrortalltblrwithXformat - To achieve
2, I need usetalltblr - To achieve
4, I can usetalltblrwithXandsi={}
But, how can I achieve 3 by talltblr? If we can merge Q format into talltblr, these four functions could be achieved at the same time.
For example:
\documentclass{article}
\usepackage{tabularray}
\usepackage{siunitx}
\usepackage{romannum}
\UseTblrLibrary{booktabs, siunitx}
\begin{document}
\begin{table}[h]
\begin{talltblr}
[caption={Main component geographic information table\TblrNote{1}},
label={tab:Main component geographic information table},
note{1}={The data is obtained through satellite maps, and there are certain errors},
note{2}={The latitude and longitude of the surface is the latitude and longitude of its centroid. There is a certain error in the measurement of latitude and longitude, for reference},
note{3}={This length is the length in our study area}
]
{colspec={
X[1.5,r] X[1.3,c] X[1.3,c] X[c,si={table-format=4.2},0.8] X[c,si={table-format=4.2},0.8] X[c,si={table-format=1.2},0.8]
}
}
\toprule
name & latitude\TblrNote{2} & longitude &{gggggg\unit{\m}} & gggggg\unit{\m} \TblrNote{3} &{{{area total\unit{\km\squared}}}}\
\midrule
DongLake &\ang{30;33;29.52}N &\ang{114;22;47.55}E & & & 12.74 \\
dongtinglake &\ang{30;33;12.71}N &\ang{114;20;46.87}E & & &0.12 \\
great river &\ang{30;33;33.66}N &\ang[minimum-integer-digits=2]{114;20;09.29}E & 1682.88& & \\
bigbig lake &\ang[minimum-integer-digits=2]{30;34;06.02}N &\ang{114;19;45.86}E & & & 2.74 \\
inside the gate &\ang{30;33;54.85}N &\ang{114;18;35.99}E & & & 0.06 \\
new ditches &\ang{30;35;33.19}N &\ang[minimum-integer-digits=2]{114;23;02.77}E & 977 & & \\
west part of new gate &\ang{30;35;26.31}N &\ang{114;21;43.67}E & 5213.77 & & \\
luoai port &\ang[minimum-integer-digits=2]{30;37;08.49}N &\ang{114;21;27.93}E & 3770.58 & & \\
qingling port &\ang[minimum-integer-digits=2]{30;39;02.32}N &\ang{114;24;30.27}E & & & 0.13 \
from port to lake &\ang[minimum-integer-digits=2]{30;37;03.06}N &\ang{114;24;22.99}E & 345.15 & & \
east part of the gate &\ang[minimum-integer-digits=2]{30;38;05.41}N &\ang{114;24;27.64}E &2926.08 & & \
Yangzi river &\ang{30;37;43.29}N &\ang{114;20;58.87}E & & & \
east part of the lake &\ang{30;35;55.14}N &\ang{114;23;14.49}E & 1090.45 & & \
donghu port &\ang{30;35;37.38}N &\ang{114;23;45.81}E & 7332.3 & \num{4614.19} & \
west section of qingqing &\ang[minimum-integer-digits=2]{30;38;01.20}N &\ang{114;24;11.10}E & 3449.86 & & \
new road drainage station &\ang{30;33;55.17}N &\ang{114;18;48.14}E & & & \
nanjing drainage station &\ang{30;33;52.23}N &\ang{114;18;29.72}E & & & \
beijing pumping station &\ang{30;37;22.34}N &\ang[minimum-integer-digits=2]{114;21;01.01}E & & & \
guilin road gata &\ang{30;37;19.42}N &\ang{114;20;57.23}E & & & \
the last gate &\ang{30;39;16.08}N &\ang{114;24;31.97}E & & & \
\bottomrule
\end{talltblr}
\end{table}
\end{document}
How to make this table to achieve the four requests?

Another question: why can't I replace gggggg with Length? When I did this, there is error: Package siunitx Error: Invalid number 'e'.


https://texdoc.org/serve/tabularray/0. I didn't find a way to mergeQ,Xandsiintotalltablr. At this time, I know how to mergeXandsiintotalltablrfrom your previous answer.Qcan adjust columns and rows style. – Y. zeng Apr 13 '22 at 08:22Xcolumn is justQ[co=1]... – Paul Gaborit Apr 13 '22 at 08:31tabularray.sty, you find the definition ofX:\NewColumnRowType{X}[1][]{Q[co=1,#1] }. – Paul Gaborit Apr 13 '22 at 08:41colspec = {r Q[l,m] X[1,h,j] X[2,h,j] Q[l,m]}should works out of the box. Table will has\textwidthwidth due to usedXcolumns. For more, let me repeat myself, please provide an MWE, that we can see, what you like to have. – Zarko Apr 13 '22 at 09:32