TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a version of ubuntu that has TexLive 2009, which apparently does not come with tlmgr, so I have to install packages manually. I have done this before (extract to /usr/share/texmf/tex/latex and then run texhash /usr/share/texmf), but for this package,


I did that, but it still complains that it can't find mwe.sty. You can see in that list of files that mwe.sty is actually not there. I read that with this ins/dtx pair, I am supposed to run

latex mwe.ins

but I am getting this error:

doriad@david-lab:~/temp/mwe$ latex mwe.ins
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
! I can't find file `ydocstrip'.
l.1 \input ydocstrip

(Press Enter to retry, or Control-D to exit)
Please type another input file name:

Any thoughts on how to install this package?

share|improve this question
How about using either the TeX live 2012 backports or Vanilla TeX Live? – Silke Oct 31 '12 at 14:14
@Silex Ah, great. But I am still curious what I am doing wrong here (in case I ever come across another ins/dtx pair that I need to install. – David Doria Oct 31 '12 at 14:17
Do you have the ydoc package? – Silke Oct 31 '12 at 14:21
@Silex Awesome, I installed ydoc (tex ydoc.dtx), and then the mwe install went as expected. Thanks! If you make "install ydoc" an answer, I can accept it. – David Doria Oct 31 '12 at 14:39
Note - you have to have the files that 'tex ydoc.dtx' generates in the same folder as mwe.ins before running 'latex mwe.ins'. – David Doria Mar 13 '14 at 12:55
up vote 2 down vote accepted

It seems you're missing ydocstrip. It's included in the ydoc package.

share|improve this answer

Your Answer


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.