skip to main | skip to sidebar
Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts

Friday, October 03, 2008

Texlive (Latex) in Sabayon

I'm experimenting with Sabayon Linux 3.5, and now I was trying to compile some of my papers, which of course are written in LaTeX; however I found no preinstalled binary for latex. Thus I tried to install, with equo, using the package latex-base, but again, no latex binary.

Thus, I emerged it. First, however, you need to unmerge tetex (the previous latex distribution). After that, it's just a matter of emerging texlive, and wait for some time (due to the compilation of many packages).

Pubblicato da betto a 11:40 AM 2 commenti

Etichette: , ,

Wednesday, June 06, 2007

Pdflatex and graphicx

I've always loved LaTeX as a typesetting environment and I'm still sure it's better than any WYSIWYG editor out there.

However, sometimes, you get stuck with some errors... well that's life ;-)

In particular I was struggling with a problem when including a diagram generated with MetaUML into a pdf file. Its documentation suggests this way of including the graphicx package, which is quite recurrent:

% The following is needed in order to make the code compatible
% with both latex/dvips and pdflatex.
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\else
\usepackage[pdftex]{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi

I was getting this error:
*hyperref using default driver hpdftex*
(/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def))

! LaTeX Error: Option clash for package graphicx.
Actually, this time it wasn't hard to figure out where the problem was: the package hpdftex already uses graphicx with its options, so the easy way out is simply to correct the above inclusion of the package by removing the option in case of pdf compilation:

% The following is needed in order to make the code compatible
% with both latex/dvips and pdflatex.
\ifx\pdftexversion\undefined
\usepackage[dvips]{graphicx}
\else
\usepackage{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi

Pubblicato da betto a 3:06 PM 3 commenti

Etichette:

Friday, October 20, 2006

Eclipse & LaTeX: TeXlipse

I've been using this plugin, TeXlipse, http://texlipse.sourceforge.net, for few days and already love it! It's a plugin that adds Latex support to the Eclipse IDE. It is not a WYSIWG editor (which somehow is in contrast with the pilosophy of LaTeX, I think); however it has many great features that help you a lot when writing latex documents, e.g., syntax highlighting, code completion (especially for macros and bibtex, which is great!) and also shows the dvi with xdvi highlighting the part of the document where you're at in the sources. Give it a try! :-)

Pubblicato da betto a 5:57 PM 2 commenti

Etichette: , ,

Subscribe to: Posts (Atom)
 

AltStyle によって変換されたページ (->オリジナル) /