threeparttable: multicolumn table notes

tex

Next

• 1. greek letters in math? (utf8)
How to make the Greek math characters work (below)? Thanks, Alan Isaac \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amssymb} \begin{document} Try this: uccess Try this: . \end{document}
• 2. headings with missing section in scrbook
Hi, I would like to have the chapter name in the headings of even pages and the section name in the headings of odd pages. If there is no section yet on an odd page, I would like to have the chapter name in the headings of the odd page as well. This does not work with my example: \documentclass{scrbook} \usepackage[ngerman]{babel} \usepackage{scrpage2} \pagestyle{scrheadings} \clearscrheadfoot \automark[section]{chapter} \chead{\headmark} \begin{document} \chapter{1st chapter} page 1 \newpage page 2 \newpage page 3 \newpage \section{1st section} page 4 \newpage page 5 \end{document} Do you have any idea how to accomplish this? Thanks, Hilmar
• 3. Powerdot with XeLaTeX
Hi everybody, Since i would like to use TrueType fonts in my PowerDot presentation, i decided to compile my slideshow with xelatex. After installing xetex-pstricks files, the compilation works very well. Unfortunately all the special characters like accents are missing in the document. Moreover, the document page doesn't have the slideshow size which means that the slideshow is located on the top-left corner of the page and the rest is blank. How can i solve these bugs? Thank you in advance for your help. Regards, Aurelien

threeparttable: multicolumn table notes

I am using the multicol package to set the tablenotes
in a threeparttable environment in columns.

With long table notes, however, I have to insert line
breaks by hand.  Is there a way to have the \tablenotes
list environment cope with multicols automatically, i.e.,
wrap based on the current \linewidth given by multicols?

I have tried hacking \tablenotes, but I no joy so far...

Here is my current test case:

\documentclass{article}
\usepackage{threeparttable,multicol}
\begin{document}
\begin{threeparttable}
\caption{A \texttt{threeparttable} with multicolumn notes.}
\begin{tabular}{lll}
\multicolumn{3}{c}{Process Type}            \\
None            & Defined       & Empirical \\\hline
Ad hoc\tnote{1} & CMMI\tnote{2} & Agile     \\
Ad hoc          & PMI           & Lean
\end{tabular}
\begin{multicols}{2}
\begin{tablenotes}
\item[1] Also known as code-n-fix.
\item[2] For teams of code monkeys''
\end{tablenotes}
\end{multicols}
\end{threeparttable}
\end{document}

--
Bil Kleb, Hampton, {*filter*}ia



Re: threeparttable: multicolumn table notes



Arseneau assisted me offline.  The conclusion: the whole
idea of the \tablenotes list environment is set to be
'tablewidth' wide.  Therefore, merely make your own list
that inherits the existing \linewidth set by the multicols
environment.  A lame example:

...
\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, {*filter*}ia



Hi,

I want to change the font size of table notes in a threeparttable.  I
did the following

\renewcommand{\TPTnoteSettings}{\small
\setlength\leftmargin{1.8em}%
\setlength\labelwidth{1.5em}%
\setlength\labelsep{.3em}%
}%

to get the right size, but the line leading is still too large,
appropriate for \footnotesize.  How can I make the line leading
compatible with the font?

Thanks,
Scott Waichler



I'm using Donald Arseneau's package <threeparttable> to typeset tables
that contain both a general note (without footnote superscripts in the
table) and specific footnotes (which are indexed by superscripts in
the table body). It ALMOST works, but I cannot get the specific
footnotes to begin flush left (without any identation).  Here's an
example of what I want to achieve:

Table 1: A caption (which is centered and extends across the entire
textwidth).
--------------------
--------------------
line1l     line1r*
line2l     line2r
--------------------
Note.  This general
note should wrap at
linebreaks.
*  Specific notes
should be flush left
and also wrap like
this.

Here's my closest approximation so far:

\begin{table}[htbp]
\centering
\caption{A caption (which should be centered and extend across the
entire textwidth).}
\begin{threeparttable}
\begin{tabular}{cc}\hline
line 1 left &  line 1 right\tnote{*} \\
line 2 left &  line 2 right\\ \hline
\end{tabular}%
\textsl{Note}. This is a general note which wraps across several
lines. Its width is set to the width of the table, which is nice.
%
\begin{tablenotes}
\labelwidth 1em
\labelsep   .5em
\item[*] This specific footnote wraps nicely, but is indented at the
left.
\end{tablenotes}
\end{threeparttable}
\end{table}

I like the separating space between the label [*] and the
corresponding tablenote, but need both the label and the text (in all
lines) to begin flush left. Having tried various combinations of
\itemindent and \leftmargin settings without success I'm grateful for
any ideas and suggestions.  Thanks,
Hans  [replace x by a in email]


In short, what is a good way to put footnotes in tables? And, are
footnotes in tables avoidable or undesirable?

In writing scientific papers, often I need to list parameters of an
instrument, often as a two-column tabular environment with
left-flushed parameter description in the left column, and centered
values in the right column.

This does not qualify as a classical table as I understand it from the
caption documentation, and often extra explanations of some entries
are required in the caption or as footnotes under the table (mostly
owing to the use of abbreviations and to lack of space in the cells).

In the majority of cases, my method now is to mark the parameter
description text with a \textsuperscript{(1)} and add \emph{Notes:}
(1) ...; (2) ... after the the caption main text. This is my attempt
to do more or less what the fnpara package does for footnotes in the
text to save space (typesetting them as a run-in paragraph).

Footnotes in tables seem to be poorly supported, and from a
typographical point of view, I find that they make the table unsightly
and difficult to parse with the eye, especially when captions are
above the table. When I can stand the sight of footnotes (and when
space allows), then I have had the best success, under these
conditions, with a combination of booktabs, caption and
threeparttable, as follows:

\begin{table}[<options>]
\centering
\begin{threeparttable}
\caption{}
\begin{tabular}[<options>]
...
...\tnote{a}
...
\end{tabular}
\begin{tablenotes}
\item[a] ...
...
\end{tablenotes}
\end{threeparttable}
\end{table}

I wonder, what is the consensus among the LaTeX experts currently
about the use of footnotes in tables (avoid at all costs, necessary
evil, etc.), and is there any Right Way to do this nowadays?

Many thanks,

Gernot

References:

UK TUG FAQ online
Documentation for booktabs and caption
Leslie Lamport's LaTeX2e guide
l2tabu(en)
1994 version of the LaTeX Companion

--
Excellent and indispensable tools are no excuse for not learning how
things really work.


please help me with the following:
I am trying to enumerate items in multicolumn tables. Earlier, I got
help and the following code works fine except that I want the item
numbers instead of bullets, and secondly I need the text to be "left
justified" as there is awkward spacing between words if I leave it
"center". I tried to change itemize with enumerate but it doesn't
work..
Best Regards,
Reez

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\setitemize{topsep=-2ex,itemsep=-
\baselineskip,partopsep=-2ex,leftmargin=*}

\def\newitem#1{%
\begin{itemize}
\item #1
\end{itemize}%

}%

\begin{tabular}{|p{0.4\linewidth}|p{0.4\linewidth}|}
\newitem{this is very neat and it may change next time} &
\newitem{this is very neat and it may change next time. this is
really a matter of safety and should not
be taken lightly.} \\[-1em]
\newitem{rae} & \newitem{rae} \\[-1em]
\newitem{me} & \newitem{me} \\[-1em]
\newitem{fa} & \newitem{fa} \\[-1em]
\newitem{so} & \newitem{here is another long line that should be
formatted as a regular paragraph} \\[-1em]
\newitem{and the left and right columns both along one another
per
item} & \newitem{la} \\[-1em]
\newitem{tee} & \newitem{tee} \\[-1em]
\newitem{\ldots} & \newitem{\ldots}
\end{tabular}

\end{document}



Dear TeXnicians,

I need to compose in LaTeX a simple 2x2 (all centered) table, having a
multicolumn forst row, and columns in the second row equally wide (i.
e. exactly 1/2 of the total width of table):

+-------------------+
| HERE IS SOME TEXT |
+-------------------+
|    A    |    B    |
+-------------------+

Here is my attempt to do this, but the output is not what I expected:

---CODE---
\documentclass[a4paper]{article}
\usepackage{array}
\begin{document}
\begin{center}

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{HERE IS SOME TEXT} \\
\hline
A & B \\
\hline
\end{tabular}

\end{center}
\end{document}
---CODE---

---OUTPUT---
+-------------------+
| HERE IS SOME TEXT |
+-------------------+
|  A  |      B      |
+-------------------+
---OUTPUT---

As you may see, the resulting table is somewhat different of that I
would like to have -- all the contents is centered indeed, but the
second row has its columns NOT equally wide!

I would greatly appreciate any help/advice concerning this problem.