emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Paul Stansell <paulstansell@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: unexpected appearance of x^2 in pdf file
Date: Sun, 12 May 2013 17:19:22 +0200	[thread overview]
Message-ID: <87vc6ody4l.fsf@gmail.com> (raw)
In-Reply-To: <CAMJKaZwyPQhyNq8S5-KWr02pSGEXUgaD3eQ0JTSphTS6v2q7hA@mail.gmail.com> (Paul Stansell's message of "Sun, 12 May 2013 15:12:53 +0100")

>>> \[ x = y
>>>          +1 \]
>>>
>>> \[ x = y
>>>          + 1 \]
>>
>> This is to be expected. In the second case, the second line defines
>> a list item, which has precedence over any LaTeX snippet.
>
> Okay, I realised it was switching to the itemise environment, but I
> didn't know it took precedence over the latex environment.

Technically, this is a latex fragment, not a latex environment (which is
what I suggested to use). The difference is that the former is inline
(i.e. it is contained in a paragraph) whereas the latter isn't.
Non-inline elements always have precedence over inline ones.

>>> \[ x = \begin{array}{cc}
>>>       y & u \\
>>>       z & v
>>> \end{array} \]
>>>
>>> \[ x =
>>>    \begin{array}{cc}
>>>       y & u \\
>>>       z & v
>>>    \end{array} \]
>>
>> I think this is because of a limitation on the number of lines a LaTeX
>> snippet can span across (IIRC, 3 is the maximum).
>
> Maybe, but I see the same problem with the following two line example
>
> \[ x =
>    \begin{array}{cc} z & v  \end{array} \]

I see. This should be fixed. Thanks for insisting.

>> In both cases, I suggest to use LaTeX environments instead:
>>
>>   \begin{equation*}
>>   x = y
>>   + 1
>>   \end{equation*}
>
> Yes, I tried that, but as I understand it I need to
> \usepackage{amsmath} to access the latex equation* environment.  But
> then I get an error about "Command \iint already defined."  I tried
> the solution described at
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=alreadydef, but it
> didn't work for me.

A package is conflicting with "amsmath", probably "wasysym". Try to add
"nointegrals" option to "wasysym" in `org-latex-default-packages-alist'.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-05-12 15:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10 17:25 unexpected appearance of x^2 in pdf file Paul Stansell
2013-05-10 19:03 ` Nick Dokos
2013-05-12  7:59 ` Nicolas Goaziou
2013-05-12  9:07   ` Paul Stansell
2013-05-12 13:07     ` Nicolas Goaziou
2013-05-12 14:12       ` Paul Stansell
2013-05-12 15:19         ` Nicolas Goaziou [this message]
2013-05-13 14:33         ` Nicolas Richard

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=87vc6ody4l.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=paulstansell@gmail.com \
    /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).