emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: another example
Date: Wed, 08 May 2013 12:42:29 +0200	[thread overview]
Message-ID: <87ppx1oiqy.fsf@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: 87fvxz9fqo.fsf@pank.eu

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

>> "rasmus" == rasmus  <Rasmus> writes:

   > Uwe Brauer <oub@mat.ucm.es> writes:
   >> Look the following examples 
   >> 
>> \begin{displaymath}
>> Xs,δ:=Hs,δ× Hs,δ+1× Hs,δ+1×
>> Hs+1,δ+2
>> \end{displaymath}
   >> org-preview-latex-fragment does not work, change displaymath for
   >> equation, again org-preview-latex-fragment does not work, but 
   >> \[ \]
   >> does work, this is odd


   > 1. The example you posted contains utf8 symbols and you'd likely need
   >    unicodemath (the package) to display it.  For this you'd need
   >    xelatex or lualatex.  But probably you wrote it as plain LaTeX code
   >    in your document.

Hm it seems that the coding was changed when sending the formula, since
I wrote \delta in the original mail not δ.

In any case: *why* does \[ \] work, if it is question of a missing package? 

   > 2. displaymath is from amsmath.  This works on my system:
   >    #+BEGIN_SRC org
   >    #+LATEX_HEADER: \usepackage{amsmath}
   >    \begin{displaymath}
   >    x=1
   >    \end{displaymath}
   >    #+END_SRC

Really?

Here is a minimal example 
of a LaTeX file, which is not using amsmath, but the file is compiled as
it should be:


\documentclass{article}

\begin{document}
\begin{displaymath}
  \int dx
\end{displaymath}
\end{document}



I also extended the corresponding configuration in org.el



(defcustom org-format-latex-header "\\documentclass[12pt]{article}
\\usepackage[usenames]{color}
\\usepackage{amsmath}
\\usepackage{plain}
\\usepackage[mathscr]{eucal}


Uwe 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

      reply	other threads:[~2013-05-08 10:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-05 17:45 org-preview-latex-fragment is very picky Uwe Brauer
2013-05-05 19:07 ` Rasmus
2013-05-05 20:01   ` Marcin Borkowski
2013-05-06  7:52   ` Uwe Brauer
2013-05-07 11:06   ` another example (was: org-preview-latex-fragment is very picky) Uwe Brauer
2013-05-07 11:44     ` another example Rasmus
2013-05-08 10:42       ` Uwe Brauer [this message]

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=87ppx1oiqy.fsf@gilgamesch.quim.ucm.es \
    --to=oub@mat.ucm.es \
    --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).