1

I started my thesis dissertation using "harvard-thesis.cls" template with this origninal file hosted here

https://es.sharelatex.com/templates/thesis/harvard-phd

My problem now is with the footnote table justification. The centering is not working, although I put this line in the .cls:

\usepackage[justification=centering]{caption}

You can check and edit the chapter 1

https://es.sharelatex.com/project/58455964c0ba0b593dc919de

In particular, this is not working on this example:

    \documentclass{thesis}
        \beging{document}
        \begin{table}
            \centering
            \caption{Principales hashtags del movimiento 15M}
            \label{tab:hashtags15M}
            \begin{tabular}{@{}lrr@{}}\toprule[1.5pt]
            \bf Hashtag & \bf Tweets & \bf Ratio*  \\\midrule
             acampadasol & 646.853 & 25,80\\
             spanishrevolution & 605.764 & 24,16\\
             15m & 572.047 & 22.82\\
             nolesvotes & 302.745 & 12,08\\
             democraciarealya & 242.903 & 9,69\\
             nonosvamos & 103.889 & 4,14 \\
             notenemosmiedo & 84.614 & 3,38\\
             yeswecamp & 56.938 & 2,27\\
             19j & 56.622 & 2.26 \\
             globalcamp & 37.024 & 1,48\\
             bcnsinmiedo & 37.024 & 1,48\\
             globalcamp & 35.877 & 1,43\\
             estoesreflexion & 31.220 & 1,25\\
             15mani & 28.891 & 1,15

            \bottomrule[1.25pt]
            \end {tabular}\par
            \caption*{*Porcentaje de Tweets respecto a la muestra. \\
            La relación tweet:hashtag suele ser de tipo 1:n.\\Muestra $=$ 2.507.027 tweets}
            \end{table}
\end{document}

enter image description here

Using the threeparttable package seems to be a solution. Now new questions came up:

  1. How to adjust now, automatically, the linewidht, just to adapt each cell content?
  2. How to center the table if the linewidth is less than the document column?
  3. How implement multicolumn?
  4. How to increment the toprule, midrule and bottomrule width?

Here's one example:

\documentclass{harvard-thesis}
    \captionsetup{labelfont=\rmdefault, textfont=\rmdefault }

\begin{document}
    \begin{table*}[ht]
    \toprule[1.5pt]
        \caption{Revisions}
         \begin{threeparttable}
        \centering
            \begin{tabular}{p{0.15\linewidth}
                            p{0.15\linewidth}
                            p{0.15\linewidth}
                            p{0.15\linewidth}}
            \hline
                Title 1 & Title 2 & Title 3 & Title 4          \\
            \hline
                Cell 1  & Cell 1  & Cell 3  & Cell 4 \tnote{a} \\
                Cell 1  & Cell 1  & Cell 3  & Cell 4 \tnote{b} \\
            \hline
            \end{tabular}
            \begin{tablenotes}
                \item[a] My Note.
                \item[b] My Other Note.
            \end{tablenotes}
         \end{threeparttable}
        \end{table*}
    \end{document}

closed as unclear what you're asking by user36296, Stefan Pinnow, user13907, Mike Renfro, egreg Dec 9 '16 at 23:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Maybe you should first read this: meta.tex.stackexchange.com/questions/228/… A so-called minimal working example helps the poeple here to help you. – Dr. Manuel Kuehner Dec 5 '16 at 11:43
  • Your example uses 'thesis' (of which there are several) but in the text you mention harvard-thesis.cls. Could you give us a link to where you've got the class file from? – Joseph Wright Dec 5 '16 at 11:53
  • Also, you've got two uses of \caption, the first of which works correctly and the second of which is I think meant to be a footnote. The example also doesn't compile properly if I switch to article and add booktabs and caption packages. That makes it hard to really know where the issue is: do you get any errors when compiling? – Joseph Wright Dec 5 '16 at 11:57
  • 1
    ctan.org/pkg/threeparttable?lang=en may help – Willie Wong Dec 5 '16 at 16:03
  • 2
    This site is a Q&A-site, not a forum, so each "post" should ideally be one question only. So editing your question to include new questions is not really the way to go. Also, your questions are vague (for example it is not easy to understand what you mean with "adapt to a multicolumn style"), and answers to most (or all) of them can readily be found by searching the site. – sodd Dec 6 '16 at 9:58

Browse other questions tagged or ask your own question.