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

Problem with varwidth & pmatrix/array #2

Open
chrisiweb opened this issue Jan 20, 2019 · 6 comments
Open

Problem with varwidth & pmatrix/array #2

chrisiweb opened this issue Jan 20, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@chrisiweb
Copy link

chrisiweb commented Jan 20, 2019

Since the last update of tabu.sty I get the following error:

! Improper \prevdepth. \tabu@verticalspacing ... tempdimc \t

Here is a MWE

\documentclass[a4paper,12pt]{report}
\usepackage{tabu}
\usepackage{amsmath}
\usepackage{xcolor}  
\newcolumntype{L}{>{\begin{varwidth}{0.91\linewidth}}l<{\end{varwidth}}}

\begin{document}    
\begin{tabu}{Lcc}
$\begin{pmatrix}
1 \\2\\3    
\end{pmatrix}$& 2& 3\\
\end{tabu}

\end{document}

The error occurs, when including pmatrix (or array) in a tabu-environment with a predefined column (using varwidth) AND strangely when including any other of a list of packages (like: color.sty, xcolor.sty, pstricks-add.sty, colortbl.sty, ...)

The exact same problem occurs, when including a table (e.g tabular) in a tabu environment.

It all worked fine before the last update!

@davidcarlisle
Copy link
Member

Thanks for reporting this, as noted here https://tex.stackexchange.com/questions/471000/tabu-error-since-update I think this is fixed by e6b05c2

@wiseryfendy
Copy link

My installation also having the same issue. Hope to find solution immediately. I'm writing my thesis

@davidcarlisle
Copy link
Member

@wiseryfendy Tabu has been unmaintained for many years and its author appears to be out of contact.

We are picking up some open issues and resolving them where possible but saying that you would like an immediate solution won't necessarily make it happen sooner, sorry. The test case posted to this issue should work with the version of tabu.sty in this repository, I halted its posting to ctan as a similar issue with nested tabular was posted to stackexchange, currently unfixed.

If previous versions of tabu worked on your document, they are all available at

https://github.com/tabu-fixed/tabu/commits/master/tabu.sty

It should be enough to download one of those versions and save in the same directory as your document.

@BubuLK
Copy link

BubuLK commented Feb 18, 2019

Same (simmilar) error with "standard tabu X-type-column" & pgfplotstableset/makecell combo:

MWE:

\documentclass{article}
\usepackage{pgfplotstable, filecontents, makecell, longtable, tabu}
\begin{document}
\begin{filecontents*}{tabu-test-data.csv}
colA; 	colB
1AAA;	1BBB
2AAA;	2BBB
\end{filecontents*}
\pgfplotstabletypeset[
	col sep=semicolon,
	string type,
	skip coltypes=true,
	create on use/mixCol/.style={
		create col/assign/.code={
			\edef\entry{\thisrow{colA}~/~\thisrow{colB}}%
			\pgfkeyslet{/pgfplots/table/create col/next content}\entry},
	},
	columns/colA/.style={
		column name={\makecell{colA\\Full Name}}},
	begin table=\begin{tabu} to \linewidth {Xl}, % <--- {ll} works here
	end table=\end{tabu},
	columns={colA, mixCol}
]{tabu-test-data.csv}
\end{document}

BTW: original example is much more complicated, but everything worked before last TeX update.

Hopefully this helps...
Thank you very much for fixing tabu package compatibility (it's really important for us)!!

Best regards,
Lubos

@DigNative
Copy link

@chrisiweb @BubuLK I tested both your MWE and can reproduce the problem on a TeX Live installation with latest packages. I can confirm that downgrading the tabu and tools package on TeX Live and MiKTeX as described here solves the problem and compilation runs again without any issue.

This issue is thus related to #1.

@FrankMittelbach
Copy link
Contributor

@chrisiweb, @BubuLK, @DigNative downgrading tools is really just an emergency measure as that means that you reintroduce bugs that already got fixed in core. Better, try the updated patch from here (even if that isn't yet final)

The problem should be fixed with the patch (even though there is some more work to be done for other problems before it can be released).

@FrankMittelbach FrankMittelbach added the bug Something isn't working label Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants