答案1
siunitx
以下通过 和的组合实现的 MWErotating
可以makecell
作为起点:
\documentclass{memoir}
\usepackage{makecell}
\usepackage{rotating}
\usepackage{siunitx}
\sisetup{table-align-text-post = false}
\begin{document}
\settowidth\rotheadsize{\theadfont Some Text}
\begin{tabular}{|S[table-format=2]||
S[table-format=2]|
S[table-format=3, table-space-text-post = \textsuperscript{11}]|}
\hline
\rothead{Some text} & \rothead{other text}& \rothead{more text more text more text} \\
\hline
1 & 2 & 3 \\
11 & 12 & 133\\
11 & 12 & 133\footnotemark\\
\hline
\end{tabular}
\footnotetext{Some footnote text}
\end{document}
答案2
您甚至可以使用以下方式排版此表格卡路里。但是,脚注需要特殊处理。我定义了一个新命令,将右对齐的单元格内容推到左侧,为两位数的脚注标记留出空间。如果您需要“真正的”脚注,您可以使用脚注来自的包工具捆绑,将脚注与其他脚注一起放在页面底部。但是,正如您所注意到的,您的脚注是垂直编号的,因此我认为您必须使用 来伪造它们\textsuperscript
。
我已经使用了Minion专业版包中要有旧式(文本)图形,就像您原来的表格一样。您也可以在其他字体中找到旧式图形。如果您使用普通(衬线)图形,则应使用\vfill
而不是\vfil
,将单元格内容对齐到底部。如果不是,带有脚注标记的单元格不会对齐。请参阅代码中的其他注释。
\documentclass[DIV=12, british]{scrartcl}
\usepackage[footnotefigures]{MinionPro}
\input{glyphtounicode}
\pdfgentounicode=1
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
\usepackage[letterspace=100,%
babel=true,%
tracking=true,%
kerning=true]%
{microtype}
\usepackage{babel}
\usepackage{cals}
\usepackage{rotating}
\let\nc=\nullcell % CALS shortcuts
\let\sc=\spancontent
\addtokomafont{caption}{\sffamily\bfseries\small}
\setkomafont{captionlabel}{\normalfont}
\newcommand{\roth}[1]{\begin{sideways}\parbox{2.2cm}{\raggedright #1}\end{sideways}}
% The macro rotates and right aligns the cell content
\newcommand{\croth}[1]{\begin{sideways}\parbox{2.2cm}{\centering #1}\end{sideways}}
% The macro rotates and centres the cell content
\newcommand{\rlb}[1]{\makebox[6.5pt][l]{\kern0.05em#1}}
% Move cell content to the left. Right aligns figures and leave toom for left aligned footnotemarks
\begin{document}
\thispagestyle{empty}
\enlargethispage{3\baselineskip}
\begin{calstable}[c] % Centred calstable
% Defining columns relative to each other and relative to the margins
\colwidths{{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123\relax} % A very narrow column to fake double vertical line
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
{\dimexpr(\columnwidth)/123*10\relax}
}
% The tabular fills the text area if sum of all multiplicators are 123
% Set up the tabular
\makeatletter
\def\cals@framers@width{0.4pt} % Outside horizontal rules, reduce if the rule is too heavy
\def\cals@framecs@width{0.4pt} % Outside vertical rules
\def\cals@bodyrs@width{0.4pt} % Rule between header and body
\def\cals@cs@width{0.4pt} % Inside vertical rules, reduce if the rule is too heavy
\def\cals@rs@width{0pt} % Inside horizontal rules
\def\cals@bgcolor{} % May be removed since we do not use colour
\def\cals@AtBeginCell{\vfil{}} % Cell content aligned at bottom, necessary to align cells with
% footnotes. If you do not use oldstyle (text) figures, change to `\vfill`
% to align cell content to bottom
%\setlength{\cals@paddingT}{3pt} % If you prefer a more vertically compact tabular, you may
% % change top and bottom (row) padding
%\setlength{\cals@paddingB}{3pt}
%R1H1
\thead{%
\brow
\alignC\cell{\croth{\vfil According to Jaláluddin.}}
\cell{\croth{\vfil According to Noêldeke.}}
\cell{\croth{\vfil According to Muir.}}
\cell{} % A narrow cell fakes double vertical rules
\cell{\roth{\vfil Jaláluddin.}}
\cell{\roth{\vfil Noêldeke.}}
\cell{\roth{\vfil Muir.}}
\cell{}
\cell{\roth{\vfil Jaláluddin.}}
\cell{\roth{\vfil Noêldeke.}}
\cell{\roth{\vfil Muir.}}
\cell{}
\cell{\roth{\vfil Jaláluddin.}}
\cell{\roth{\vfil Noêldeke.}}
\cell{\roth{\vfil Muir.}}
\erow
}
%R2B1
\brow
\alignR\cell{96\rlb{}} % Start all rows with alignment command to avoid surprises at page breaks
\cell{96\rlb{}}
\cell{103\rlb{\textsuperscript{1}}}
\cell{}
\cell{75\rlb{}}
\cell{100\rlb{}}
\cell{110\rlb{}}
\cell{}
\cell{40\rlb{}}
\cell{38\rlb{}}
\cell{37\rlb{}}
\cell{}
\cell{3\rlb{}}
\cell{46\rlb{}}
\cell{16\rlb{}}
\erow
%R3B2
\brow
\alignR\cell{68\rlb{}}
\cell{74\rlb{}}
\cell{100\rlb{}}
\cell{}
\cell{104\rlb{}}
\cell{79\rlb{}}
\cell{85\rlb{}}
\cell{}
\cell{41\rlb{}}
\cell{36\rlb{}}
\cell{30\rlb{}}
\cell{}
\cell{33\rlb{}}
\cell{6\rlb{}}
\cell{13\rlb{}}
\erow
%R4B3
\brow
\alignR\cell{73\rlb{}}
\cell{111\rlb{}}
\cell{99\rlb{}}
\cell{}
\cell{77\rlb{}}
\cell{77\rlb{}}
\cell{83\rlb{}}
\cell{}
\cell{42\rlb{}}
\cell{43\rlb{}}
\cell{26\rlb{}}
\cell{}
\cell{60\rlb{}}
\cell{13\rlb{}}
\cell{29\rlb{}}
\erow
%R5B4
\brow
\alignR\cell{74\rlb{}}
\cell{106\rlb{}}
\cell{91\rlb{}}
\cell{}
\cell{50\rlb{}}
\cell{78\rlb{}}
\cell{78\rlb{}}
\cell{}
\cell{43\rlb{}}
\cell{72\rlb{}}
\cell{15\rlb{}}
\cell{}
\cell{4\rlb{}}
\cell{2\rlb{\textsuperscript{12}}}
\cell{7\rlb{}}
\erow
%R6B5
\brow
\alignR\cell{111\rlb{}}
\cell{108\rlb{}}
\cell{106\rlb{}}
\cell{}
\cell{90\rlb{}}
\cell{88\rlb{}}
\cell{77\rlb{}}
\cell{}
\cell{44\rlb{}}
\cell{67\rlb{}}
\cell{51\rlb{}}
\cell{}
\cell{99\rlb{}}
\cell{98\rlb{}}
\cell{113\rlb{}}
\erow
%R7B6
\brow
\alignR\cell{81\rlb{}}
\cell{104\rlb{}}
\cell{1\rlb{}}
\cell{}
\cell{86\rlb{}}
\cell{89\rlb{}}
\cell{76\rlb{}}
\cell{}
\cell{45\rlb{}}
\cell{23\rlb{}}
\cell{46\rlb{\textsuperscript{9}}}
\cell{}
\cell{57\rlb{}}
\cell{64\rlb{}}
\cell{114\rlb{}}
\erow
%R8B7
\brow
\alignR\cell{87\rlb{}}
\cell{107\rlb{}}
\cell{101\rlb{}}
\cell{}
\cell{54\rlb{}}
\cell{75\rlb{}}
\cell{75\rlb{}}
\cell{}
\cell{46\rlb{}}
\cell{21\rlb{}}
\cell{72\rlb{}}
\cell{}
\cell{47\rlb{}}
\cell{62\rlb{}}
\cell{98\rlb{\textsuperscript{13}}}
\erow
%R9B8
\brow
\alignR\cell{92\rlb{}}
\cell{102\rlb{}}
\cell{95\rlb{}}
\cell{}
\cell{38\rlb{}}
\cell{83\rlb{}}
\cell{70\rlb{}}
\cell{}
\cell{51\rlb{}}
\cell{25\rlb{}}
\cell{35\rlb{}}
\cell{}
\cell{62\rlb{}}
\cell{8\rlb{}}
\cell{2\rlb{}}
\erow
%R10B9
\brow
\alignR\cell{89\rlb{}}
\cell{105\rlb{}}
\cell{102\rlb{}}
\cell{}
\cell{7\rlb{}}
\cell{69\rlb{}}
\cell{109\rlb{}}
\cell{}
\cell{88\rlb{}}
\cell{17\rlb{}}
\cell{36\rlb{}}
\cell{}
\cell{55\rlb{}}
\cell{47\rlb{}}
\cell{3\rlb{}}
\erow
%R11B10
\brow
\alignR\cell{93\rlb{}}
\cell{92\rlb{}}
\cell{104\rlb{}}
\cell{}
\cell{72\rlb{}}
\cell{51\rlb{}}
\cell{107\rlb{}}
\cell{}
\cell{18\rlb{}}
\cell{27\rlb{}}
\cell{19\rlb{}}
\cell{}
\cell{76\rlb{}}
\cell{3\rlb{}}
\cell{8\rlb{}}
\erow
%R12B11
\brow
\alignR\cell{94\rlb{}}
\cell{90\rlb{}}
\cell{82\rlb{}}
\cell{}
\cell{36\rlb{}}
\cell{52\rlb{}}
\cell{55\rlb{}}
\cell{}
\cell{16\rlb{}}
\cell{18\rlb{}}
\cell{18\rlb{}}
\cell{}
\cell{13\rlb{}}
\cell{61\rlb{}}
\cell{47\rlb{}}
\erow
%R13B12
\brow
\alignR\cell{103\rlb{}}
\cell{94\rlb{}}
\cell{92\rlb{}}
\cell{}
\cell{25\rlb{}}
\cell{56\rlb{}}
\cell{56\rlb{}}
\cell{}
\cell{71\rlb{}}
\cell{32\rlb{\textsuperscript{8}}}
\cell{27\rlb{}}
\cell{}
\cell{98\rlb{}}
\cell{57\rlb{}}
\cell{62\rlb{}}
\erow
%R14B13
\brow
\alignR\cell{100\rlb{}}
\cell{93\rlb{}}
\cell{105\rlb{}}
\cell{}
\cell{35\rlb{}}
\cell{70\rlb{}}
\cell{67\rlb{\textsuperscript{7}}}
\cell{}
\cell{14\rlb{}}
\cell{41\rlb{}}
\cell{42\rlb{}}
\cell{}
\cell{59\rlb{}}
\cell{4\rlb{}}
\cell{5\rlb{}}
\erow
%R15B14
\brow
\alignR\cell{108\rlb{}}
\cell{97\rlb{}}
\cell{89\rlb{}}
\cell{}
\cell{19\rlb{}}
\cell{55\rlb{}}
\cell{53\rlb{}}
\cell{}
\cell{21\rlb{}}
\cell{45\rlb{}}
\cell{40\rlb{}}
\cell{}
\cell{110\rlb{}}
\cell{65\rlb{}}
\cell{59\rlb{}}
\erow
%R16B15
\brow
\alignR\cell{102\rlb{}}
\cell{86\rlb{}}
\cell{90\rlb{}}
\cell{}
\cell{20\rlb{}}
\cell{112\rlb{}}
\cell{32\rlb{}}
\cell{}
\cell{23\rlb{}}
\cell{16\rlb{}}
\cell{38\rlb{}}
\cell{}
\cell{24\rlb{}}
\cell{59\rlb{}}
\cell{4\rlb{}}
\erow
%R17B16
\brow
\alignR\cell{107\rlb{}}
\cell{91\rlb{}}
\cell{93\rlb{}}
\cell{}
\cell{56\rlb{}}
\cell{109\rlb{}}
\cell{39\rlb{}}
\cell{}
\cell{32\rlb{}}
\cell{30\rlb{}}
\cell{25\rlb{}}
\cell{}
\cell{22\rlb{}}
\cell{33\rlb{}}
\cell{58\rlb{}}
\erow
%R18B17
\brow
\alignR\cell{109\rlb{}}
\cell{80\rlb{}}
\cell{94\rlb{}}
\cell{}
\cell{26\rlb{}}
\cell{113\rlb{\textsuperscript{4}}}
\cell{73\rlb{}}
\cell{}
\cell{52\rlb{}}
\cell{11\rlb{}}
\cell{20\rlb{}}
\cell{}
\cell{63\rlb{}}
\cell{63\rlb{}}
\cell{65\rlb{}}
\erow
%R19B17
\brow
\alignR\cell{105\rlb{}}
\cell{68\rlb{}}
\cell{108\rlb{}}
\cell{}
\cell{27\rlb{}}
\cell{114\rlb{\textsuperscript{5}}}
\cell{79\rlb{}}
\cell{}
\cell{67\rlb{}}
\cell{14\rlb{}}
\cell{43\rlb{}}
\cell{}
\cell{58\rlb{}}
\cell{24\rlb{}}
\cell{63\rlb{}}
\erow
%R20B19
\brow
\alignR\cell{113\rlb{}}
\cell{87\rlb{}}
\cell{96\rlb{\textsuperscript{2}}}
\cell{}
\cell{28\rlb{}}
\cell{1\rlb{}}
\cell{54\rlb{}}
\cell{}
\cell{69\rlb{}}
\cell{12\rlb{}}
\cell{12\rlb{}}
\cell{}
\cell{49\rlb{}}
\cell{58\rlb{}}
\cell{24\rlb{}}
\erow
%R21B20
\brow
\alignR\cell{114\rlb{}}
\cell{95\rlb{}}
\cell{113\rlb{}}
\cell{}
\cell{17\rlb{}}
\cell{54\rlb{\textsuperscript{6}}}
\cell{34\rlb{}}
\cell{}
\cell{70\rlb{}}
\cell{40\rlb{}}
\cell{11\rlb{}}
\cell{}
\cell{66\rlb{}}
\cell{22\rlb{}}
\cell{33\rlb{}}
\erow
%R22B21
\brow
\alignR\cell{112\rlb{}}
\cell{103\rlb{}}
\cell{74\rlb{}}
\cell{}
\cell{10\rlb{}}
\cell{27\rlb{}}
\cell{31\rlb{}}
\cell{}
\cell{27\rlb{}}
\cell{28\rlb{}}
\cell{10\rlb{}}
\cell{}
\cell{65\rlb{}}
\cell{48\rlb{}}
\cell{57\rlb{}}
\erow
%R23B22
\brow
\alignR\cell{53\rlb{}}
\cell{85\rlb{}}
\cell{111\rlb{}}
\cell{}
\cell{11\rlb{}}
\cell{71\rlb{}}
\cell{69\rlb{}}
\cell{}
\cell{79\rlb{}}
\cell{39\rlb{}}
\cell{14\rlb{}}
\cell{}
\cell{64\rlb{}}
\cell{66\rlb{}}
\cell{61\rlb{}}
\erow
%R24B23
\brow
\alignR\cell{80\rlb{}}
\cell{73\rlb{}}
\cell{87\rlb{\textsuperscript{3}}}
\cell{}
\cell{12\rlb{}}
\cell{76\rlb{}}
\cell{68\rlb{}}
\cell{}
\cell{82\rlb{}}
\cell{29\rlb{}}
\cell{6\rlb{}}
\cell{}
\cell{61\rlb{}}
\cell{60\rlb{}}
\cell{48\rlb{}}
\erow
%R25B24
\brow
\alignR\cell{97\rlb{}}
\cell{101\rlb{}}
\cell{97\rlb{}}
\cell{}
\cell{15\rlb{}}
\cell{44\rlb{}}
\cell{41\rlb{}}
\cell{}
\cell{84\rlb{}}
\cell{31\rlb{}}
\cell{64\rlb{}}
\cell{}
\cell{48\rlb{}}
\cell{110\rlb{}}
\cell{60\rlb{}}
\erow
%R26B25
\brow
\alignR\cell{91\rlb{}}
\cell{99\rlb{}}
\cell{88\rlb{}}
\cell{}
\cell{6\rlb{}}
\cell{50\rlb{}}
\cell{71\rlb{}}
\cell{}
\cell{30\rlb{}}
\cell{42\rlb{}}
\cell{28\rlb{}}
\cell{}
\cell{5\rlb{}}
\cell{49\rlb{}}
\cell{66\rlb{}}
\erow
%R27B26
\brow
\alignR\cell{85\rlb{}}
\cell{82\rlb{}}
\cell{80\rlb{}}
\cell{}
\cell{37\rlb{}}
\cell{20\rlb{}}
\cell{52\rlb{}}
\cell{}
\cell{29\rlb{}}
\cell{10\rlb{}}
\cell{23\rlb{}}
\cell{}
\cell{9\rlb{\textsuperscript{10}}}
\cell{9\rlb{}}
\cell{49\rlb{}}
\erow
%R28B27
\brow
\cell{95\rlb{}}
\cell{81\rlb{}}
\cell{81\rlb{}}
\cell{}
\cell{31\rlb{}}
\cell{26\rlb{}}
\cell{50\rlb{}}
\cell{}
\cell{83\rlb{}}
\cell{34\rlb{}}
\cell{22\rlb{}}
\cell{}
\cell{1\rlb{\textsuperscript{11}}}
\cell{5\rlb{}}
\cell{9\rlb{}}
\erow
%R29B28
\brow
\cell{106\rlb{}}
\cell{53\rlb{}}
\cell{84\rlb{}}
\cell{}
\cell{34\rlb{}}
\cell{15\rlb{}}
\cell{45\rlb{}}
\cell{}
\cell{2\rlb{}}
\cell{35\rlb{}}
\cell{21\rlb{}}
\cell{}
\cell{...\rlb{}}
\cell{...\rlb{}}
\cell{...\rlb{}}
\erow
%R30B29
\brow
\cell{101\rlb{}}
\cell{84\rlb{}}
\cell{86\rlb{}}
\cell{}
\cell{39\rlb{}}
\cell{19\rlb{}}
\cell{44\rlb{}}
\cell{}
\cell{8\rlb{}}
\cell{7\rlb{}}
\cell{17\rlb{}}
\cell{}
\cell{...\rlb{}}
\cell{...\rlb{}}
\cell{...\rlb{}}
\erow
\makeatletter
\end{calstable}\par
\end{document}
答案3
这相当复杂。对于整个表格,我们可以使用来\foreach
缩短 TikZ 代码。
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{table}
\centering
\begin{tikzpicture}[xscale=1,yscale=.5]
\path[every node/.style={left=-11pt}]
(0,0) node{196}
(0,-1) node{8}
(0,-2) node{73}
(1,0) node{6}
(1,-1) node{74}
(1,-2) node{111}
(2,0) node[left=-5pt]{103\footnotemark}
(2,-1) node{100}
(2,-2) node{99}
(3,0) node{75}
(3,-1) node{104}
(3,-2) node{77};
\def\c{2}
\path[every node/.style={rotate=90,align=center,scale=.8}]
(0,\c+.5) node{According to\\Jalaluddin}
(1,\c+.5) node{According to\\Noeldcke}
(2,\c+.5) node{According to\\Muir}
(3,\c+.5) node{Jalaluddin};
\draw[shift={(-.5,.5)}]
(1,0)--+(-90:3)--+(90:2*\c)
(2,0)--+(-90:3)--+(90:2*\c)
(3,0)--+(-90:3)--+(90:2*\c)
(4,0)--+(-90:3)--+(90:2*\c)
(4,-3) rectangle (0,0) rectangle (4,2*\c);
\end{tikzpicture}
\caption{Table of things.}
\end{table}
\footnotetext{This is the first footnote inside the table.}
This is the second footnote \footnote{This is second footnote!}.
\end{document}