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've been working on this for the last three hours and found no clue. This morning I found the blog Certificates with LaTeX and downloaded the tex file certificate.tex. When I compile this in my emacs I run into the following error report:

ERROR: LaTeX Error: File `nowidow.sty' not found

I followed the instruction on this post:

Where do I place my own .sty files, to make them available to all my .tex files?

and put the nowidow.sty into the directory: /usr/local/share/texmf/nowidow

But the error report still pops up. Did I put the file in the wrong directory or am I missing other important steps? Could anyone help me? My system is Ubuntu 12.04.

share|improve this question

closed as too localized by lockstep, Claudio Fiandrino, Kurt, Martin Schröder, Jubobs Apr 11 '13 at 13:24

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

5  
you will need to run texhash to rebuild the search database –  David Carlisle Apr 11 '13 at 11:17
2  
Welcome to TeX.sx! –  Peter Jansson Apr 11 '13 at 11:30
add comment

1 Answer

up vote 1 down vote accepted

There is a TeX directory structure below .../texmf/. In your case the .sty file should go into

/usr/local/share/texmf/tex/latex/nowidow/nowidow.sty

The subdirectory tex means "TeX files" and the subdirectory latex stands for the TeX format "LaTeX" (format file latex). Documentation: A Directory Structure for TeX files.

Usually you also need to refresh the file name database for TEXMFLOCAL by running texhash or mktexlsr (as root because of /usr).

share|improve this answer
add comment

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