1

I have a long table rotated of 90 degrees, in which I want to insert about tens of \footnote{a text} (they are references to the bibliography for each row of the table, and the table has a few tens of rows). The table goes onto two pages, so that at some points it is automatically interrupted to make space to the references and then continues to the second page.

I am reading a few discussion on this topic, such as this and this. However, they are not very useful in my case, probably because I am using a different class.The class I am using can be found here.

EDIT: MWE Here is a MWE that shows what kind of environment I am using. However, my real table has tens of rows.

\documentclass[twocolumn]{aastex62}\pdfoutput=1 
\usepackage{amsmath,amstext}
\usepackage[T1]{fontenc}
\usepackage{apjfonts}
\usepackage{footnote}
\usepackage{threeparttablex, tablefootnote}
\usepackage[figure,figure*]{hypcap}
\newcounter{mytempeqncnt}
\shorttitle{paper}
\shortauthors{authors}

\begin{document}
\title{paper}


\begin{ThreePartTable}
\begin{longrotatetable}
\begin{deluxetable*}{lllccccclll}
\tabletypesize{\scriptsize}
\tablecaption{Table 1\label{table1}}
\tablewidth{700pt}
\tabletypesize{\scriptsize}
\tablehead{
\colhead{Name1} & \colhead{Name2} & \colhead{Name3} & \colhead{Name4} & 
\colhead{Name5} & \colhead{Name6} & 
\colhead{Name7} & \colhead{Name8} & 
\colhead{Name9} & \colhead{Name10}  \\ 
\colhead{} & \colhead{} & \colhead{($^\circ$)} & \colhead{($^\circ$)} & 
\colhead{(days)} & \colhead{(days)} &
\colhead{(days)} & \colhead{(degrees)} & \colhead{(degrees)} &     \colhead{} } 
\startdata
 &  &  & &  &  &   &  &  &  &   \\
 &  &  &    & \textbf{\normalsize New Names} &  &   &  &  &  &   \\
 &  &  &    &  &  &   &  &  &  &   \\
Name    & data  & n1 & n2 & n3 & n4 & n5 & n6 & n7\footnote{A     Reference.}
 & $<10^{-3}$\footnote{Another reference.}
\enddata

\end{deluxetable*}
  \begin{tablenotes}
  \small
  \item[a]{Note 1. a Reference} 
  \item[b] Note2. another reference
  \end{tablenotes}
\end{longrotatetable}
\end{ThreePartTable}

\end{document}

How do I get my references as footnotes on the same line (perhaps separated by a comma) under the table? Again, consider that the table is long and rotated, so it goes on two pages. Therefore, part of the references will go under the table on the first page, while others on the second page.

Here is a picture of what I get with the MWE: enter image description here

  • 3
    The two links you provide in your posting don't appear to point to what I would say is the obvious solution candidate: the threeparttable package, to be loaded with the para option to make all table notes run together in one big long paragraph (instead of each footnote starting on a new line). Please edit your posting to provide some more information about the mysterious "references for each line of the table" are: are they, essentially, footnote markers? If not, what are they? – Mico Feb 14 '18 at 22:17
  • Yes, footnote markers which I would nomaly addess as \footnote{this text}. – Py-ser Feb 14 '18 at 22:53
  • we will more easily help you if you will provide small but complete document called minimal working example (mwe), which will show, what you try so far and what you actually like to obtain. threeparttable is good chaise for notes in table. – Zarko Feb 14 '18 at 23:07
  • threeparttablex with the reference option is a bit easier. You can even set this up so that the notes are produced using a custom enumerate environment, such as one made with enumitem's inline settings. This way, you don't have to hard-code note labels at all - it is all automatic. But, even without that, you only have to enter them manually once. Could do more with code, obviously. The code I've got might or might not work for you with a little adaption - hard to say. – cfr Feb 14 '18 at 23:26
  • 1
    Maybe \usepackage[para]{bigfoot}. See tex.stackexchange.com/questions/207975/… – Steven B. Segletes May 30 '18 at 1:42
2

edit:

  • i'm not familiar with deluxetable*, so i haven't solution how in it split table notes between pages. with longtable or ltablex this can be done as suggested Mike in his answer on my similar question.
  • to have notes in line, you only need to tablenotes add options the options para and (if you wish that notes start at left border of table) flushleft as you can see in old answer.
  • considering this options in your mwe, gives the following result:

    \documentclass[twocolumn]{aastex62}\pdfoutput=1
    \usepackage{amsmath,amstext}
    \usepackage[T1]{fontenc}
    %\usepackage{apjfonts} %i haven't this fonts
    \usepackage{footnote}
    \usepackage{threeparttablex, tablefootnote}
    \usepackage[figure,figure*]{hypcap}
    \newcounter{mytempeqncnt}
    \shorttitle{paper}
    \shortauthors{authors}
    
    \begin{document}
    \title{paper}
        \begin{ThreePartTable}
    \begin{longrotatetable}
    \begin{deluxetable*}{lllccccclll}
    % table body
    \end{deluxetable*}
      \begin{tablenotes}[flushright, para]\footnotesize
      \small
      \item[a]{Note 1. a Reference}
      \item[b] Note2. another reference
      \end{tablenotes}
    \end{longrotatetable}
        \end{ThreePartTable}
    \end{document}
    

enter image description here

  • in your table you beside table notes also use footnotes. if you like to have them on the botom of the page, their use ids fine, however, if you like to have for example below of table notes, than i suggest to write footnote as table note. for example, instead

    Name    & data  & n1 & n2 & n3 & n4 & n5 & n6 & n7\footnote{A reference.}
     & $<10^{-3}$\footnote{Another reference.}
    \enddata
    \end{deluxetable*}
      \begin{tablenotes}[flushright, para]\footnotesize
      \item[1]  reference
      \item[2]  another reference
      \end{tablenotes}
    

    write for example

    Name    & data  & n1 & n2 & n3 & n4 & n5 & n6 & n7\tnote{1}
     & $<10^{-3}$\tnote{2}
    \enddata
    \end{deluxetable*}
      \begin{tablenotes}[flushright, para]\footnotesize
      \item[1]  reference
      \item[2]  another reference
      \end{tablenotes}
    

    now the footnotes at bottom of page will be removes and your references will be (only) below of table:

  • if you like to have solution for your table with longtable where the table notes can be split between pages, let me know

  • from your mwe (which has only fragment of table headers) can be concluded, that table can fit in normal portrait orientation. if this is not real case, please add on row more to table with some dummy content from which we can see the real table size.

enter image description here

old answer:

i'm guessing, that you try to obtain the following:

enter image description here

for this table i use theeparttable, \tnote and tablenotes

\documentclass{article}%[% reprint,]{revtex4-1}

\usepackage{threeparttable}
\renewcommand{\tnote}[1]{\textsuperscript{\textbf{#1}}}

\usepackage{lipsum}

\begin{document}
\lipsum*[11]
    \begin{table}[htb]
    \centering
\begin{threeparttable}
\renewcommand{\arraystretch}{1.05}
\caption{\label{tab1}Table.}
    \begin{tabular}{cl}
\textrm{Label}  &   \textrm{Value}          \\
    \hline
1               &   Value One\tnote{a}      \\
2               &   Value Two\tnote{b}      \\
3               &   Value Three\tnote{b}    \\
    \hline
    \end{tabular}
    \begin{tablenotes}[para,flushleft]\footnotesize
    \item[a] test 1,
    \item[b] test 2,
    \item[b] test 3.
    \end{tablenotes}
\end{threeparttable}
    \end{table}
\lipsum
\end{document}
| improve this answer | |
  • Well, this is exactly what I wanted to avoid: to specify each and every note because, as I said, I have many many footnotes. – Py-ser Feb 16 '18 at 22:47
  • @Py-ser, and you believe, that with use\footnote{...} you will have less work and better overlook on your table code? maybe. than my answer is not for you. you should wait on new one ... – Zarko Feb 16 '18 at 22:51
  • Thank you @Zarko. I can't test your code right now, I will do it soon. Are you sure that it works with my class, and long rotated, deluxe* tables? – Py-ser May 30 '18 at 0:53
  • i test your code and it works with my additions/changes (images of table is generated by it). however, my offer for longtable solution is still on table :-) – Zarko May 30 '18 at 1:23
  • I am sorry, your code works well with a short table not split on two pages, which I was able to reach already. On two pages it works quite differently. – Py-ser May 30 '18 at 1:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.