MacOS X – Rails – RTex – Latex Installieren – Unicode – ucs.sty

In order to create PDFs with unicode (utf8) support within a Ruby on Rails app on Mac OS X, you need a fully working Latex installation including the ucs.sty extension.

The best way to install Latex on a Mac OS X is using MacPorts. The following command will install Tex, Latex and a whole bunch of extensions:

sudo port install texlive texlive_texmf-full

You should be aware that the ports texlive and tetex don’t like each other.  It might happen that you need to remove all Tex or Latex related ports before installing the environment using the command mentioned above.

Without a working unicode extension you might encouter errors like:

! LaTeX Error: File `ucs.sty' not found.

after following the RTex-Error linkin to a file in

tmp/rtex/rtex-.../document.log

Kommentarfunktion ist deaktiviert