
如何最好地更改字體大小(等)threeparttable
表註釋?
谷歌返回了這些(重複的)未答复的存根(英語和德語,但帶有圖片;)
- http://compgroups.net/comp.text.tex/changing-font-size-of-table-notes-in- Threepartt/1916286
- http://www.mrunix.de/forums/showthread.php?t=72470
- http://www.golatex.de/thirdparttable-legende-t8060.html
我嘗試過\renewcommand{\TPTnoteSettings}{\small\linespread{1}}
,並且確實如此:結果看起來像上面鏈接的屏幕截圖所示。
別處我發現了\renewcommand{\TPTnoteSettings}{\small\linespread{1}\selectfont}
,但我不確定該\selectfont
部分的作用:它有什麼作用?
編輯
加上另一個連結(我已經打開但忽略了):
回覆:triparttable:多列表註釋
發表者 Bill Kleb » 2004 年 4 月 10 日,星期六 16:37:35 GMT
阿瑟諾離線協助我。結論: \tablenotes 列表環境的整個想法被設定為“tablewidth”寬。因此,只需建立您自己的列表,繼承由 multicols 環境設定的現有 \linewidth 即可。一個蹩腳的例子:
…
\setlength{\columnsep}{0pt} \setlength{\columnseprule}{1pt} \setlength{\multicolsep}{0pt} \newcommand{\mcmakelabel}[1]{\textsuperscript#1} \newenvironment{mctablenotes}% {\begin{footnotesize}\begin{list}{}{\topsep 0pt \partopsep 0pt \setlength\itemsep{4pt plus 1pt minus 1pt} \leftmargin 0pt \parsep 0pt \itemindent 0pt \labelsep 0pt \raggedright}% \settowidth{\labelwidth}{\textsuperscript 1}% \renewcommand{\makelabel}{\mcmakelabel}}% {\end{list}\end{footnotesize}}% \begin{multicols}{2} \begin{mctablenotes} \item[1] Also known as code-n-fix. \item[2] For teams of ``code monkeys'' \end{mctablenotes} \end{multicols}
-- 在此輸入代碼Bil Kleb, Hampton, {篩選}ia
作為初學者,我仍然不明白這一切:這是否已經包含“the”答案?幫忙表示感謝!
答案1
正確的操作命令確實是\TPTnoteSettings
,但必須保留其標準定義,因為它包含排版註釋的基本資訊。最好的是添加到它並etoolbox
提供一個簡單的方法。
\documentclass{article}
\usepackage{threeparttable,booktabs}
\usepackage{etoolbox}
\appto\TPTnoteSettings{\footnotesize}
\begin{document}
\begin{table}
\begin{threeparttable}[b]
\caption{A caption}
\begin{tabular}{llll}
\toprule
42\tnote{1} & some & text & to have room\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item [1] the first note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
答案2
我使用了一種更簡單的方法足以滿足我的需求
...
\begin{tablenotes}
\footnotesize
\item [1] See \url{https://texblog.org/2012/08/29/changing-the-font-size-in-latex/}
\end{tablenotes}
...
其靈感來自於https://texblog.org/2012/08/29/change-the-font-size-in-latex/
僅供參考:我在項目註釋中新增了 URL,因為我的表格有一系列長 URL,我需要適應列寬。