Prev | Current Page 162 | Next

David Berube

"Practical Reporting with Ruby and Rails"

An example of using PDF::Writer along with
Gruff to create PDF graphs is presented in Chapter 10.
Installing Hpricot and LaTeX
For this example, you??™ll need both Hpricot and a LaTeX distribution installed. The LaTeX
distribution you use depends on your operating system:
Windows: You can obtain MiKTeX, a TeX/LaTeX distribution for Windows, from
http://miktex.org.
Mac OS X: You can obtain a TeX/LaTeX distribution for OS X at http://tug.org/
mactex/. If you have a preferred ports manager for OS X, such as Fink or MacPorts,
you can probably install LaTeX using that as well.
Linux: If you??™re running Linux, LaTeX may already be installed. If not, you should be
able to install it easily using your system??™s package manager.
??? The command for Debian Linux and related distributions (Ubuntu, for
example) is apt-get install texlive.
??? For Red Hat??“based distributions, you should be able to use the command sudo
yum install tetex-latex.
You??™ll also need to install Hpricot. You can install it using the following command:
gem install hpricot
You??™ll find that Hpricot is very easy to use.


Pages:
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
baseny ogrodowe Grażyna Łobaszewska Moody Blues The Mission Manfred Mann