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.

I have TeXLive 2011 distribution on my Windows 7. I haven't updated it before. I downloaded it as an iso file. Anyway, I tried to use the mdframed package in an example document like below:

\documentclass{article}

\usepackage{mdframed}
\usepackage{xcolor}
\surroundwithmdframed[
    hidealllines=true,
    backgroundcolor=black!20,
    skipbelow=\baselineskip,
    skipabove=\baselineskip
]{equation}

\begin{document}
Text
\begin{equation}
1+1=2
\end{equation}
Text
\end{document}

But I got the message:

! Undefined control sequence. 

As I've asked it means possibly my mdframed package is not updated.
What should I do? I need to use the mdframed package.

share|improve this question
1  
May be tex.stackexchange.com/a/55493/11232 is useful! –  Harish Kumar Nov 27 '12 at 14:51
    
I have even tried this program but I don't think I need to update all the packages, do I? –  Milad O. Nov 27 '12 at 14:56
1  
I don't think so. May be it is possible to update only one package (I am not sure as I don't use texlive). But it is better to update every thing as an insurance policy :-) –  Harish Kumar Nov 27 '12 at 15:04
1  
Or you can just download the TeXLive 2012 iso if re-installation is an option –  hpesoj626 Nov 27 '12 at 15:11

2 Answers 2

You cannot update TeX Live 2011 since all mirrors are set to update the 2012 version of TeX Live. There is unfortunately not enough man power to support more than one TeX Live.

I suggest you install TeX Live 2012 but be aware that there is also no upgrade routine from the 2011 edition to TeX Live 2012.

Alternatively you might manually update the mdframed package but as it might require other packages to be updated installing TeX Live 2012 might be the easier solution.

share|improve this answer

To update just one package (mdframed in your case) of the TeX Live, use the following command:

tlmgr update mdframed
share|improve this answer

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.