2

Consider the following Minimum Working Example (MWE):

\documentclass{article}
\usepackage{tabularx,parnotes}

\begin{document}
    \begin{table}
        \begin{tabularx}{0.5\textwidth}{lcc}
            \parnoteclear
            c & c & c\parnote{This is a veeeeeeeery looooooooooooooooooong parnote and too wide}\\\hline
        \end{tabularx}
        \parnotes
    \end{table}
\end{document}

Screenshot of the result:

Screenshot of the result


Description of the issue:

As you can see, the parnote is much wider than the table itself. How can I adjust the width of the parnote to the same width as the table?

2

You could use the threeparttable package instead:

enter image description here

\documentclass{article}
\usepackage{tabularx}
\usepackage{threeparttable}
\begin{document}
    \begin{table}
    \begin{threeparttable}
        \begin{tabularx}{0.5\textwidth}{lcc}
            c & c & c\tnote{1} \\\hline
        \end{tabularx}
    \begin{tablenotes}
    \item[1] {This is a very very very long table note and automatically as wide as the table}
    \end{tablenotes}
    \end{threeparttable}
    \end{table}
\end{document}

If you want to stay with parnotes, you could use a parbox as follows:

enter image description here

\documentclass{article}
\usepackage{tabularx,parnotes}

\begin{document}
    \begin{table}
        \begin{tabularx}{0.5\textwidth}{lcc}
            \parnoteclear
            c & c & c\parnote{This is a very very very very very very very very long parnote and too wide}\\\hline
        \end{tabularx}

        \parbox{0.5\textwidth}{\parnotes}
    \end{table}
\end{document}

For your actual table you might want to keep in mind to use at least one X type column in a tabularx environment.

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.