How do I download the memoir package from this page? http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/

I can see the directory tex-archive/macros/latex/contrib/memoir/ but i'm not sure how to access it. Do I use ftp from the command line terminal? I was expecting to see a .zip file on the page. I am new to CTAN. Running OS X 10.8.4 MacTeX.

  • 1
    What distribution are you running? What operating system? – Werner Aug 24 '13 at 4:03
  • 3
    You should follow the instructions in How do I update my TeX distribution? to install the package(s) you're after. – Werner Aug 24 '13 at 5:09
  • As Werner says, the best way is to use your designated package manager. LaTeX packages are intricately related- it is often not as simple as downloading one file, as there are dependencies. In most cases, the package manager will account for these :) – cmhughes Aug 24 '13 at 5:35
  • 4
    Mactex already include memoir – daleif Aug 24 '13 at 7:00

As a patch you can use the following script:


#me he ayudado de http://tex.stackexchange.com/questions/30307/how-to-install-latex-zip-package-from-ctan-using-texhash-on-a-nix-system
#listado de archivos tds disponibles: http://www.ctan.org/tex-archive/install/macros/latex/contrib

DIR_TEX=$(kpsewhich --expand-var '$TEXMFMAIN') #Devuelve el directorio donde TeX está instalado, en mi caso /usr/share/texmf
if [ $PAQUETE = "oberdiek" -o $PAQUETE = "environ" -o $PAQUETE = "footmisc" -o $PAQUETE = "hyperref" -o $PAQUETE = "titlesec" -o $PAQUETE = "tocloft" -o $PAQUETE = "enumitem" -o $PAQUETE = "fmtcount" -o $PAQUETE = "glossaries" -o $PAQUETE = "datatool"  -o $PAQUETE = "caption" -o $PAQUETE = "babel" -o "memoir" ] ; then #algunos paquetes están en /usr/share/texmf-texlive
    DIR_TEX=$(kpsewhich --expand-var '$TEXMFDIST')

if [ ! -f "$PAQUETE.tds.zip" ] ; then
    if [ $PAQUETE = "babel" ] ; then
        wget http://www.ctan.org/tex-archive/macros/latex/contrib/latex-tds/$PAQUETE.tds.zip
        wget http://mirrors.ctan.org/install/macros/latex/contrib/$PAQUETE.tds.zip

unzip -o $PAQUETE.tds.zip -d $DIR_TEX
test -e $DIR_TEX/ls-R && texhash $DIR_TEX

#echo $DIR_TEX

This was done to be used with GNU/Linux, but probably with some minor fixes (like getting wget) will work in Mac. It can be used to update and install other packages as well.

Unfortunately whether to install in TEXMFMAIN or TEXMFDIST is not automatical, although most of them, like the one you want, goes in TEXMFDIST.

That's why I would recommend you to find a proper updater with your distribution that does things automatically.

  • for the record, more-or-less standard UNIX tools like wget are there by default. – Sean Allred Aug 24 '13 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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