Counter manipulation within table #83
JiriSrubar
started this conversation in
Q&A
Replies: 3 comments 12 replies
|
To build a nice table, If the value of cells are related to \documentclass{article}
\usepackage{tabularray}
\begin{document}
\section{First Method}
\begin{tblr}{hlines,vlines}
\arabic{colnum} & \arabic{colnum} & \arabic{colnum}
\end{tblr}
\section{Second Method}
\ExplSyntaxOn
\tl_clear:N \mybody
\int_step_inline:nn {3} {
\int_compare:nNnTF {#1} = {3} {
\tl_put_right:Nn \mybody { #1 }
}{
\tl_put_right:Nn \mybody { #1 & }
}
}
\ExplSyntaxOff
\begin{tblr}[expand=\mybody]{hlines,vlines}
\mybody
\end{tblr}
\end{document} |
3 replies
|
I'm not totally sure it's a good idea but tabularx saves the value of all latex counters (using the mechanism set up for |
5 replies
{\small{
\begin{mytblr}[
caption={物料储存方式、储存量及储存期},
label={storage},
remark{备注:}={具体规格和储量根据生产工艺和流程调整。},
]
{width=\textwidth,
colspec={|[1.5pt]Q[c,1em]|Q[l,4em]|X|Q[c,2em]|Q[c,3em]|Q[c,3em]|Q[l,8em]|[1.5pt]},
rows={m},row{1}={c},
cell{2}{2}={r=3}{m},cell{5}{1}={r=8}{c},rowhead=1
}
序号 & 物料名称 & 储存方式及规格 & 数量(个) & 储存量(t) & 储存期(d) & 备\quad 注 \\ \hline
\xuhao[1] & 石灰石 & 堆棚:235$\times$48m & 1 & 50000 & 8.8 & 大块料 \\ \hline
\xuhao & & 圆形预均化堆场:$\Phi$90m & 1 & 43000 & 7.6 & \\ \cline{1-1} \cline{3-7}
\xuhao & & 圆库:$\Phi$12$\times$24m & 1 & 1200 & & 配料库 \\ \hline
4 & & 联合储库:235$\times$30.5$\times$7m & 1 & & & 原燃料共用 \\ \cline{2-7} 问题如下:
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
The code
results in
I would expect another numbers ...
Am I missing something?
All reactions