From 9c58e0cccae6ae5cca85a9b7ea2803e2cd32e8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=2E=20Thi=C3=A9ry?= Date: Wed, 15 Mar 2017 00:08:39 +0100 Subject: [PATCH] Proposal.sty: the coherencetable remains centered even if it is larger than textwidth Michael: this is probably not the best way to do that; please review! --- base/proposal.sty | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/base/proposal.sty b/base/proposal.sty index 5df614e..e32459a 100644 --- a/base/proposal.sty +++ b/base/proposal.sty @@ -985,16 +985,27 @@ joint&\multicolumn{\the@site}{l|}{\jpub $\hat=$ publication, \jpro $\hat=$ proje \jorga $\hat=$ organization, \jsoft $\hat=$ software/resource dev, \jsup $\hat=$ supervision}\\\hline \end{tabular}} + +\newskip\@bigflushglue \@bigflushglue = -100pt plus 1fil + +\def\bigcenter{\trivlist \bigcentering\item\relax} +\def\bigcentering{\let\\\@centercr\rightskip\@bigflushglue% +\leftskip\@bigflushglue +\parindent\z@\parfillskip\z@skip} +\def\endbigcenter{\endtrivlist} + \define@key{coherencetable}{swsites}[true]{\def\cht@swsites{#1}} \define@key{coherencetable}{stretch}{\def\cht@stretch{#1}} \newcommand\coherencetable[1][]{% \def\cht@swsites{false}% \def\cht@stretch{1}% \setkeys{coherencetable}{#1}% -\begin{table}[ht]\centering% +\begin{table}[ht]% \small\setlength{\tabcolsep}{.5em}% \renewcommand{\arraystretch}{\cht@stretch}% +\begin{bigcenter}% \coherencematrix% +\end{bigcenter}% \caption{\coherence@caption}\label{tab:collaboration} \end{table}} \newcommand\coherence@caption{Previous Collaboration between {\pn} members}