From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Org + Images -> Tex -> PDF Date: Sun, 19 Oct 2008 01:03:22 +0530 Message-ID: References: <20081018163501.GM1080@thinkpad.adamsinfoserv.com> <48FA339F.5020506@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrHYF-000056-3K for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 15:33:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrHYD-0008V7-Jh for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 15:33:26 -0400 Received: from [199.232.76.173] (port=46747 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrHYD-0008Ug-Ak for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 15:33:25 -0400 Received: from ti-out-0910.google.com ([209.85.142.191]:12622) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrHYC-0004ds-Eb for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 15:33:24 -0400 Received: by ti-out-0910.google.com with SMTP id u5so568587tia.10 for ; Sat, 18 Oct 2008 12:33:22 -0700 (PDT) In-Reply-To: <48FA339F.5020506@gmx.de> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: sebastian_rose@gmx.de Cc: emacs-orgmode@gnu.org On Sun, Oct 19, 2008 at 12:36 AM, Sebastian Rose wrote: > Hi Manish, > > > I guess the reason to not include images was, that it would (have) > require(d) the inclusion of special packages: > > \usepackage[dvips]{graphicx} > > which might not be installed (correct me if I'm wrong). > But nowadays I feel this package is installed in each and every > LaTeX installation!? Even Debian switched to texlive. > > Anyway, if graphicx is missing, the compilation will fail. > > > Russell Adams wrote: >> >> On Sat, Oct 18, 2008 at 07:20:53PM +0530, Manish wrote: >>> >>> Hello, >>> >>> I wonder how to add an image (PNG) to an Org file so that it can be >>> exported to latex and compiled using pdflatex? I tried adding a link >>> using "[[./load.png][Server Load]]" but it only shows a link (which >>> also doesn't seem to work.) >>> >>> I currently add images to Tex documents like so: >>> >>> ,---- >>> | \begin{figure}[H] >>> | \centering \includegraphics[scale=0.75]{load.png} >>> | \caption{Server Load \scriptsize{(Source: RRD)}\label{fig:load}} >>> | \end{figure} >>> `---- >>> >> >> Thats how I'm doing it currently. >> Thanks Russel and Sebastian. I do have graphicx installed but I had two issues: 1. image that I included in org file did not use \includegraphics in the tex file. 2. preamble of tex file did not include \usepackage{graphicx}. So for 1, I am enclosing the image (the whole \includegraphics etc.) in a BEGIN_LaTeX and END_LaTeX. And for 2, I am trying to define a custom class using "org-export-latex-classes" that will include graphicx and other packages that I use. I guess the setup will take some work but then it should be one time setup and I hope not to edit the tex files much after that and go from org to PDF in one fell swoop. I do not enjoy editing tex files. Another thing I noticed is that a table in org file appears fine in produced but does not appear in the \listoftables unless wrapped in a \begin{table}..\end{table}. Is there an automated/simple way to do this? Thanks again, -- Manish