Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threeparttable incompatible with tabu #9

Open
bonanza123 opened this issue Jan 31, 2019 · 1 comment
Open

threeparttable incompatible with tabu #9

bonanza123 opened this issue Jan 31, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@bonanza123
Copy link

I am not sure whether this is a problem on tabu or threeparttable side, but I could not find a way to contact the author of the latter, I am hoping that the fix can be applied on the tabu side.

I am just linking to this post, which is not mine but which has exactyl the same problem (I have no clue why it is marked as duplicate).

https://tex.stackexchange.com/questions/383142/using-threeparttable-with-tabu?noredirect=1&lq=1

@assignUser
Copy link

Threeparttable does not recognize tabu as a tabular environment. This code I lightly modified from SE fixes this. I keep it in a file with several other patches and only want it to be executed if tpt is used.

\makeatletter
\@ifpackageloaded{threepartable}{%
    \@ifpackageloaded{xpatch}{}{\usepackage{xpatch}}
    \chardef\TPT@@@asteriskcatcode=\catcode`*
    \catcode`*=11
    \xpatchcmd{\threeparttable}
    {\TPT@hookin{tabular}}
    {\TPT@hookin{tabular}\TPT@hookin{tabu}}
    {}{}
    \catcode`*=\TPT@@@asteriskcatcode}{}
\makeatother

@FrankMittelbach FrankMittelbach added the enhancement New feature or request label Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants