emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: waterloo <waterloo2005@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode can not precess some LATEX environment
Date: Tue, 11 Aug 2009 22:50:17 +0800	[thread overview]
Message-ID: <907065090908110750m701407et7cb56adbf839feea@mail.gmail.com> (raw)
In-Reply-To: <3672515B-C73E-4BF6-855A-1BB22EE0B47C@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2057 bytes --]

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 <carsten.dominik@gmail.com>

>
> On Aug 11, 2009, at 3:41 PM, Nick Dokos wrote:
>
>  waterloo <waterloo2005@gmail.com> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 3291 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2009-08-11 14:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11  8:37 org-mode can not precess some LATEX environment waterloo
2009-08-11  8:44 ` Carsten Dominik
2009-08-11  8:48   ` waterloo
2009-08-11  9:01     ` Carsten Dominik
2009-08-11  9:29       ` waterloo
2009-08-11  9:34         ` Scot Becker
2009-08-11 13:41         ` Nick Dokos
2009-08-11 14:34           ` Carsten Dominik
2009-08-11 14:50             ` waterloo [this message]
2009-08-11 16:42               ` Carsten Dominik
2009-08-11 14:53             ` Nick Dokos

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=907065090908110750m701407et7cb56adbf839feea@mail.gmail.com \
    --to=waterloo2005@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).