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

The cooperation between tabu and hyperref #24

Open
maboloshi opened this issue Nov 29, 2019 · 3 comments
Open

The cooperation between tabu and hyperref #24

maboloshi opened this issue Nov 29, 2019 · 3 comments

Comments

@maboloshi
Copy link

MWE

% -*- coding: utf-8 -*-
%!TEX program = xelatex
\documentclass[12pt]{article}

\usepackage{hyperref}
\usepackage{tabu}

\begin{document}
\begin{table}[htb]
    \centering
    \begin{tabu}{*{3}{X[c]|}X[c]}
        1  & 2   & 3   & 4  \\
    \end{tabu}
\end{table}
\end{document} 

In this example, if the load order hyperref precedes tabu, an error will be reported.

! You can't use `\relax' after \the.
\tabu@elapsedtime ...optime {\the \pdfelapsedtime 
                                                  }\tabu@message {(tabu)\tab...
l.227     \end{tabu}
@mrpiggi
Copy link

mrpiggi commented Nov 29, 2019

From the hyperref manual

This package can be used with more or less any normal LATEX document by specifying in the
document preamble

\usepackage{hyperref}

Make sure it comes last of your loaded packages, to give it a fighting chance of not being
over-written, since its job is to redefine many LATEX commands.

@maboloshi
Copy link
Author

I found a patch here today that fixes this bug, so please test it out.

A non-text attachment was scrubbed...
Name: tabu.patch
Type: text/x-patch
Size: 1264 bytes
Desc: not available
URL: http://tug.org/pipermail/texhax/attachments/20110219/dbbe5f6b/attachment.bin

@jagd
Copy link

jagd commented Jun 26, 2020

I had this problem since the last time updating TeXLive.
After some debugging, it was found in my case that tabu has to be before biblatex package, as hyperref was introduced by my biblatex configurations.

\let\tabu@message@etime\relax from that link should fix the error, too.

I found a patch here today that fixes this bug, so please test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants