From mboxrd@z Thu Jan 1 00:00:00 1970 From: waterloo Subject: Re: org-mode can not precess some LATEX environment Date: Tue, 11 Aug 2009 22:50:17 +0800 Message-ID: <907065090908110750m701407et7cb56adbf839feea@mail.gmail.com> References: <907065090908110137t16325cdfwe8c272a457f8c555@mail.gmail.com> <907065090908110148g3971f725lcd3567cc4e3dad94@mail.gmail.com> <9B1E3F18-DE1B-4511-A378-12A6B8183AD7@gmail.com> <907065090908110229x21c85d39lf58a6ccc86ca9a01@mail.gmail.com> <29964.1249998096@gamaville.dokosmarshall.org> <3672515B-C73E-4BF6-855A-1BB22EE0B47C@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0888913581==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MasgB-0005jc-TZ for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 10:50:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Masg7-0005hE-BW for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 10:50:23 -0400 Received: from [199.232.76.173] (port=44184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Masg7-0005h5-0f for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 10:50:19 -0400 Received: from mail-yw0-f202.google.com ([209.85.211.202]:33609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Masg6-0007Vq-Fp for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 10:50:18 -0400 Received: by ywh40 with SMTP id 40so5475194ywh.14 for ; Tue, 11 Aug 2009 07:50:17 -0700 (PDT) In-Reply-To: <3672515B-C73E-4BF6-855A-1BB22EE0B47C@gmail.com> 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: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============0888913581== Content-Type: multipart/alternative; boundary=00032557525226d99a0470ded28b --00032557525226d99a0470ded28b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The manual says math environment need not be in \[ \]. \[ \begin{matrix} 1&d\\ d&d\\ \end{matrix} \] When I put mouse point on `begin' , I can get preview image through C-c C-x C-l. When I put mouse point on `matrix' , I get two identical matrix with a square between them. When I put mouse point on `1&d' , I get a square and \[ at above \] at below . Thanks 2009/8/11 Carsten Dominik > > On Aug 11, 2009, at 3:41 PM, Nick Dokos wrote: > > waterloo wrote: >> >> Excuse me . >>> I put the following latex code in an org file , and put point in it ,C-c >>> C-x C-l. It don't produce the correct image. There is only an square >>> appearing . The latex environment is include in amsmath package, which is >>> include in Org Format Latex Header defautly. >>> >>> >>> \begin{matrix} >>> 1&d\\ >>> d&d\\ >>> \end{matrix} >>> >>> >> I cannot be sure whether "waterloo" sees the same problem (from his >> description, it seems that he gets just an empty square which indicates >> additional/different problems - maybe missing the dvipng program?), >> > > Yes, this seems to be a different problem. Maybe the problem is thatthe > matrix environment must be inside a math environment? > > > but >> I do see a problem. Here is the org file: >> >> ,---- >> | #+LaTeX_HEADER: \usepackage{amsmath} >> > > This is actually not necessary, I was mistaken here. > > | >> | * foo >> | >> | \[ >> | \begin{matrix} >> | 1&d\\ >> | d&d\\ >> | \end{matrix} >> | \] >> | >> `---- >> >> I can export this to LaTeX just fine (and I need the additional header, >> at least in that case - I have not tried without it). But when I try the >> preview C-c C-x C-l on the fragment, I get the preview of the matrix >> twice with an empty square separating the two instances. I attach a PNG >> image of the result. I checked the image that is produced in the ltxpng >> subdirectory: it's just the image of the matrix, no problem there. >> > > Hmm, another fun and interesting bug! > > Fixed now. Thanks. > > - Carsten > > --00032557525226d99a0470ded28b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The manual says math environment need not be in \[ \].
\[
\begin{matr= ix}
1&d\\
d&d\\
\end{matrix}
\]
When I put mouse poi= nt on `begin' , I can get preview image through C-c C-x C-l.
When I = put mouse point on `matrix' , I get two identical matrix with a square = between them.
When I put mouse point on `1&d' , I get a square and \[ at above \]= at below .

Thanks



2009/8/= 11 Carsten Dominik <carsten.dominik@gmail.com>

On Aug 11, 2009, at 3:41 PM, Nick Dokos wrote:

waterloo <wa= terloo2005@gmail.com> wrote:

Excuse me .
I put the following latex code in an org file , and put point in it ,C-c C-x =A0C-l. =A0It don't produce the correct image. There is only an squ= are
appearing . The latex environment is include in amsmath package, which is include in Org Format Latex Header defautly.


\begin{matrix}
1&d\\
d&d\\
\end{matrix}


I cannot be sure whether "waterloo" sees the same problem (from h= is
description, it seems that he gets just an empty square which indicates
additional/different problems - maybe missing the dvipng program?),

Yes, this seems to be a different problem. =A0Maybe the problem is thatthe = matrix environment must be inside a math environment?



but
I do see a problem. =A0Here is the org file:

,----
| #+LaTeX_HEADER: \usepackage{amsmath}

This is actually not necessary, I was mistaken here.


|
| * foo
|
| \[
| \begin{matrix}
| 1&d\\
| d&d\\
| \end{matrix}
| \]
|
`----

I can export this to LaTeX just fine (and I need the additional header,
at least in that case - I have not tried without it). But when I try the preview C-c C-x C-l on the fragment, I get the preview of the matrix
twice with an empty square separating the two instances. =A0I attach a PNG<= br> image of the result. I checked the image that is produced in the ltxpng
subdirectory: it's just the image of the matrix, no problem there.

Hmm, another fun and interesting bug!

Fixed now. =A0Thanks.

- Carsten


--00032557525226d99a0470ded28b-- --===============0888913581== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0888913581==--