From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Johan Ekh" Subject: Re: Suport for pictures? Date: Wed, 8 Aug 2007 13:11:25 +0200 Message-ID: <417457b50708080411q31dddf7fyafdad49052ce0f5b@mail.gmail.com> References: <417457b50708080157o542380d1l87e48f40504d857@mail.gmail.com> <87tzras67o.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1015528734==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIjRo-0003az-Nk for emacs-orgmode@gnu.org; Wed, 08 Aug 2007 07:11:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIjRn-0003an-9n for emacs-orgmode@gnu.org; Wed, 08 Aug 2007 07:11:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIjRn-0003ak-4B for emacs-orgmode@gnu.org; Wed, 08 Aug 2007 07:11:27 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIjRm-00014Y-Lt for emacs-orgmode@gnu.org; Wed, 08 Aug 2007 07:11:26 -0400 Received: by ug-out-1314.google.com with SMTP id 34so221956ugf for ; Wed, 08 Aug 2007 04:11:25 -0700 (PDT) In-Reply-To: <87tzras67o.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --===============1015528734== Content-Type: multipart/alternative; boundary="----=_Part_105569_32203640.1186571485195" ------=_Part_105569_32203640.1186571485195 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for your answers Bastien! Sorry for being ignorant, but how do I use the "LaTeX exporter"? I did not know about it. Can't find it in my version of the documentation. One more question, can I use Pstricks with the latex exporter? Best regards, Johan 2007/8/8, Bastien : > > Hi Johan, > > "Johan Ekh" writes: > > > I wonder if it is possible to include graphics within LaTeX fragments? > > Have a look here: > http://staff.science.uva.nl/~dominik/Tools/org/org.html#LaTeX-fragments > > For HTML export, the \includegraphics{...} won't produce anything. > > If you embed it in a \begin{figure} environment, this environment will > be parsed by the dvipng utility, but AFAIK this program is not able to > produce png files from images. > > For LaTeX export (and i guess you mostly need eps images for this), > there are three options: > > 1. A simple image link [[file:image.eps]] will be converted as: > \includegraphics[width=10em]{images.eps} > > 2. Simple LaTeX insertion: > #+LaTeX: \includegraphics[width=5em]{~/images/image.eps} > > 3. More complex LaTeX insertion: > #+BEGIN_LaTeX > \begin{figure} > \includegraphics[width=5em]{~/images/image.eps} > \caption{Some descriptive text here} > \end{figure} > #+END_LaTeX > > PS: the LaTeX exporter still doesn't recognize \begin{...} environments > when they are not specified by #+BEGIN_LaTeX and #+END_LaTeX delimiters. > This will be fixed in the next release. > > Hope this helps, > > -- > Bastien > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ------=_Part_105569_32203640.1186571485195 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for your answers Bastien!
Sorry for being ignorant, but how do I use the "LaTeX exporter"? I did not know about it.
Can't find it in my version of the documentation.

One more question, can I use Pstricks with the latex exporter?

Best regards,
Johan

2007/8/8, Bastien <bzg@altern.org>:
Hi Johan,

"Johan Ekh" <ekh.johan@gmail.com> writes:

> I wonder if it is possible to include graphics within LaTeX fragments?

Have a look here:
http://staff.science.uva.nl/~dominik/Tools/org/org.html#LaTeX-fragments

For HTML export, the \includegraphics{...} won't produce anything.

If you embed it in a \begin{figure} environment, this environment will
be parsed by the dvipng utility, but AFAIK this program is not able to
produce png files from images.

For LaTeX export (and i guess you mostly need eps images for this),
there are three options:

1. A simple image link [[file:image.eps]] will be converted as:
   \includegraphics[width=10em]{images.eps}

2. Simple LaTeX insertion:
   #+LaTeX: \includegraphics[width=5em]{~/images/image.eps}

3. More complex LaTeX insertion:
   #+BEGIN_LaTeX
     \begin{figure}
     \includegraphics[width=5em]{~/images/image.eps}
     \caption{Some descriptive text here}
     \end{figure}
   #+END_LaTeX

PS: the LaTeX exporter still doesn't recognize \begin{...} environments
when they are not specified by #+BEGIN_LaTeX and #+END_LaTeX delimiters.
This will be fixed in the next release.

Hope this helps,

--
Bastien


_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

------=_Part_105569_32203640.1186571485195-- --===============1015528734== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1015528734==--