Tex-mh - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    version 0

      View the most recent changes for the tex-mh port at: tex-mh.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for tex-mh.
      The raw portfile for tex-mh 0 is located here:
      http://tex-mh.darwinports.com/dports/tex/tex-mh/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/tex-mh


      The tex-mh Portfile 56184 2009-08-25 06:11:10Z ryandesign macports.org $

      PortSystem 1.0

      Name: tex-mh
      Version: 0
      Category: tex print
      Maintainers: nomaintainer
      Description: The mh bundle
      Long Description: mh is a TeX package collection by Morten Hoegholm. It contains Michael J. Downes' breqn, flexisym, mathstyle, and mhsetup, mathtools, empheq, empheq07.
      Platform: darwin
      Homepage: http://www.ctan.org/get/macros/latex/contrib/mh
      Master Sites: http://www.ctan.org/get/macros/latex/contrib
      distname mh
      use_zip yes
      Checksums: md5 b04ca2eb6f4429467cadae4cd52144e6 sha1 ea55b996bbfd10d75b8d3e17484046a74344504d rmd160 1d6bb18d7a25c537c86ae94981b10449cc97c8bd

      depends_lib bin:mktexlsr:texlive

      pre-configure {
      if {[file exists ${prefix}/share/texmf-local/tex/latex/breqn/breqn.sty]} {
      return -code error "Before installing ${name}, please uninstall (or deactivate) breqn."
      }
      }

      use_configure no

      build {
      system "cd ${worksrcpath} && find . -name \"*.dtx\" | xargs -L1 tex"
      }

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/tex/latex/mh
      xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/doc/latex/mh
      xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local/source/latex/mh

      foreach {f} {*.sty *.sym} {
      eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/tex/latex/mh
      }
      foreach {f} {*.pdf breqn-technotes.tex eqlayouts.tex README} {
      eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/doc/latex/mh
      }
      foreach {f} {*.dtx} {
      eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/texmf-local/source/latex/mh
      }
      }

      post-activate {
      system "mktexlsr"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/tex-mh
      % sudo port install tex-mh
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching tex-mh
      ---> Verifying checksum for tex-mh
      ---> Extracting tex-mh
      ---> Configuring tex-mh
      ---> Building tex-mh with target all
      ---> Staging tex-mh into destroot
      ---> Installing tex-mh
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using tex-mh with these commands:
      %  man tex-mh
      % apropos tex-mh
      % which tex-mh
      % locate tex-mh

     Where to find more information:

    Darwin Ports



    Lightbox this page.