emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manish <mailtomanish.sharma@gmail.com>
To: sebastian_rose@gmx.de
Cc: emacs-orgmode@gnu.org
Subject: Re: Org + Images -> Tex -> PDF
Date: Sun, 19 Oct 2008 01:03:22 +0530	[thread overview]
Message-ID: <e7cdbe30810181233g16b96764q881adf0c925f6e2c@mail.gmail.com> (raw)
In-Reply-To: <48FA339F.5020506@gmx.de>

  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

Thanks again,

  parent reply	other threads:[~2008-10-18 19:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-18 13:50 Org + Images -> Tex -> PDF Manish
2008-10-18 16:35 ` Russell Adams
2008-10-18 19:06   ` Sebastian Rose
2008-10-18 19:20     ` Sebastian Rose
2008-10-18 19:33     ` Manish [this message]
     [not found]       ` <48FA4BA2.4030307@gmx.de>
2008-10-18 21:08         ` Manish
2008-12-12 14:37 ` Carsten Dominik
2008-12-12 14:41   ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7cdbe30810181233g16b96764q881adf0c925f6e2c@mail.gmail.com \
    --to=mailtomanish.sharma@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).