Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

On a fresh MiKTeX 2.9 install, previously working piece of code

\begin{tabular}{>{}p{9em}p{\linewidth-12em}}

is not working anymore — -12em is being outputted in table row fields instead of being calculated. What have I missed?

share|improve this question
    
For that to work the calc package is necessary. It may have happened that a package used to load it and doesn't now in a more recent version. –  egreg Feb 15 '12 at 10:27
1  
expl3 has removed the loading of calc recently. –  Ulrike Fischer Feb 15 '12 at 10:29
    
@Ulrike Thank you, that's it. –  ipavlic Feb 15 '12 at 10:32
add comment

1 Answer 1

up vote 7 down vote accepted

You forgot

\usepackage{calc}

, which supports infix arithmetic in LaTeX.

Package description

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.