2

I've been trying to add notes below a table but keep on getting error: not in outer par mode. could someone please help me?

aobal

\begin{table*}[ht]
\caption{Table 2 Top 10 Philippine Exports to ASEAN, 1991-2012} 
  \begin{threeparttable}
  \centering
    \begin{tabular}{p{0.15\linewidth}
                        p{0.45\linewidth}
                        p{0.20\linewidth}}
     \hline
     PSCC&  & Description\tnote{a} & Shares         \\
     \hline

        9310221   & Semi-conductor devices, Manuf from Mat'l on consign basis & 31.5    \\
        7764109    & Finished Elect'l \& Electronic Machinery & Parts, Manuf fr Mat'l-consign, NES & 12.7  \\
        9310229  & Wafers \& discs, electrically circuit-programmed, whether or not coated on one side with gold or aluminium | Other & 5.3\\      
        7764900  & [Other] electronic [integrated circuits and] microassemblies & 3.4   \\
        7599700  & Parts \& accessories of machines of 752 & 3.2\\
        6821201  & Cathodes \& sections of cathodes, of refined copper \\
        7764100 & Other Semiconductor devides & 2.4 \\
        7843919      & Unassembled fuel tank; engine brackets & 2.4\\
        7843409 & Unassembled gear boxes for vehicles of heading 87.01 (except subheading 8701.10 or 8701.90)(agricultural tractors) & 1.5\\
        7527000 & Optical disk drives, including CD-ROM drives, DVD drives and CD-R drives & 1.5\\

     \end{tabular}
    \begin{tablenotes}
      \small
      \item [a] Semiconductor products include:  Wafer \& discs (Pscc7 7764102, 7764109, 7764300); Smart cards (7764101); Hybrid integrated circuits (7764500); Electronic microassemblies (7764900); semiconductor devices from materials on consignment basis (9310221); and Diodes (9310222).
    \end{tablenotes}
  \end{threeparttable}
\end{table*}
  • Welcome to TeX.SX! It is easier to help you if you add a minimal working example that takes the form \documentclass{...}\usepackage{....}\begin{document}...\end{document}. If possible, it should compile and have the minimum amount of code needed to illustrate your problem. This makes it much easier for people to troubleshoot your problem - and much more likely that they will! – Andrew Jul 4 '15 at 16:08
2

Here is a code that compiles. There were a few & that should have been \&. Btw, why did you number the table by yourself? This makes two numbers for one table. I took the opportunity to improve the table, especially some vertical padding between rows, rule commands from booktabs and the S column type for the last column (from siunitx).

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
\usepackage{booktabs, caption, makecell, siunitx}
\renewcommand\theadfont{\bfseries}
\usepackage[flushleft]{threeparttable}
\setcellgapes{2pt}

\begin{document}

\begin{table*}[ht]
  \centering\makegapedcells
  \caption{Top 10 Philippine Exports to ASEAN, 1991-2012}
  \begin{threeparttable}
    \centering
    \begin{tabular}{p{0.15\linewidth}
        >{\RaggedRight}p{0.45\linewidth}
        S[table-format=2.1]}
        \toprule
        PSCC & Description\tnote{a} & {Shares} \\
        \midrule
        9310221 & Semi-conductor devices, Manuf from Mat'l on consign basis & 31.5 \\
        7764109 & Finished Elect'l \& Electronic Machinery \& Parts, Manuf fr Mat'l-consign, NES & 12.7 \\
        9310229 & Wafers \& discs, electrically circuit-programmed, whether or not coated on one side with gold or aluminium | Other & 5.3 \\
        7764900 & [Other] electronic [integrated circuits and] microassemblies & 3.4 \\
        7599700 & Parts \& accessories of machines of 752 & 3.2 \\
        6821201 & Cathodes \& sections of cathodes, of refined copper \\
        7764100 & Other Semiconductor devides & 2.4 \\
        7843919 & Unassembled fuel tank; engine brackets & 2.4 \\
        7843409 & Unassembled gear boxes for vehicles of heading 87.01 (except subheading 8701.10 or 8701.90)(agricultural tractors) & 1.5 \\
        7527000 & Optical disk drives, including CD-ROM drives, DVD drives and CD-R drives & 1.5 \\
        \bottomrule
      \end{tabular}
      \begin{tablenotes}
        \footnotesize
        \item [a] Semiconductor products include: Wafer \& discs (Pscc7 7764102, 7764109, 7764300); Smart cards (7764101); Hybrid integrated circuits (7764500); Electronic microassemblies (7764900); semiconductor devices from materials on consignment basis (9310221); and Diodes (9310222).
      \end{tablenotes}
    \end{threeparttable}
  \end{table*}

\end{document} 

enter image description here

  • Thanks so much for this, Bernard! The table looks fantastic. The table locates at the end of the article, though. Is there a way of putting this within the text where I want it to appear? – Annette Balaoing Jul 5 '15 at 16:30
  • You can replace the [!ht] (btw I forgot the exclamation mark in my code) with [H], but you have the risk to have unwanted white spaces on the page. You also can change the maximum number of floats per page. You also can completely remove the table environment (i.e. make it non-floating), and replace \caption{…} with \captionof{table}{…}\medskip. – Bernard Jul 5 '15 at 16:45
1

Putting

\usepackage{etoolbox}
\AtBeginEnvironment{tablenotes}{\small}

is preferable to setting \small each time as it ensures consistency and is easier to change if you need to do so later.

0

This seems to fix the errors.

\begin{table*}[ht]
\caption{Top 10 Philippine Exports to ASEAN, 1991-2012} 
  \begin{threeparttable}
  \centering
    \begin{tabular}{p{0.15\linewidth}
                        p{0.45\linewidth}
                        p{0.20\linewidth}}
     \hline
    PSCC & Description\tnote{a} & Shares         \\
     \hline

        9310221  & Semi-conductor devices, Manuf from Mat'l on consign basis & 31.5    \\
        7764109  & Finished Elect'l \& Electronic Machinery Parts, Manuf fr Mat'l-consign, NES & 12.7  \\
        9310229  & Wafers \& discs, electrically circuit-programmed, whether or not coated on one side with gold or aluminium | Other & 5.3\\      
        7764900  & [Other] electronic [integrated circuits and] microassemblies & 3.4   \\
        7599700  & Parts \& accessories of machines of 752 & 3.2\\
        6821201  & Cathodes \& sections of cathodes, of refined copper \\
        7764100  & Other Semiconductor devides & 2.4 \\
        7843919  & Unassembled fuel tank; engine brackets & 2.4\\
        7843409  & Unassembled gear boxes for vehicles of heading 87.01 (except subheading 8701.10 or 8701.90)(agricultural tractors) & 1.5\\
        7527000  & Optical disk drives, including CD-ROM drives, DVD drives and CD-R drives & 1.5\\

     \end{tabular}
    \begin{tablenotes}
      \small
      \item [a] Semiconductor products include:  Wafer \& discs (Pscc7 7764102, 7764109, 7764300); Smart cards (7764101); Hybrid integrated circuits (7764500); Electronic microassemblies (7764900); semiconductor devices from materials on consignment basis (9310221); and Diodes (9310222).
    \end{tablenotes}
  \end{threeparttable}
\end{table*}

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.