From: Nick Dokos <nicholas.dokos@hp.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: Richard Stanton <stanton@haas.berkeley.edu>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
Eric Schulte <eric.schulte@gmx.com>
Subject: Re: Question on latex source block
Date: Thu, 13 Sep 2012 03:28:10 -0400 [thread overview]
Message-ID: <6910.1347521290@alphaville> (raw)
In-Reply-To: Message from Jambunathan K <kjambunathan@gmail.com> of "Thu, 13 Sep 2012 11:30:18 +0530." <87pq5q4g3x.fsf@gmail.com>
Jambunathan K <kjambunathan@gmail.com> wrote:
> Eric Schulte <eric.schulte@gmx.com> writes:
>
> > Alright,
> >
> > I've just committed a patch which gets part-way to your suggest
> > solution. While the two backend-specific functions are still separate
> > (I agree they should be combined), I have brought back the
> > `org-create-formula-image' function, which now dispatches to the backend
> > specific functions.
> >
> > Additionally there are some problems in the `org-format-latex' function.
> > It lists mandatory arguments as optional, and appears to create
> > variables which are not required or properly set.
> >
> > These function should probably be cleaned at some point up by whoever is
> > maintaining Org-mode's LaTeX interfaces.
>
> This (or one of the recent commits) is creating the following
> regression. I have not dived in to the details.
>
> Export the below snippert with C-c C-e o. You will see this.
>
Seems to be caused by 149cc04782651e74764eb3188f6a6f178fe25f64, which is
unfortunate since that fixes (at least I *think* it fixes) some problems
when no default fore/background is defined (e.g. when emacs is run in
batch mode). It would be nice if this could be fixed without reverting
that commit completely.
Nick
> Export works fine with tree at commit 8e445333.=20=20
>
> Debugger entered--Lisp error: (error "Not enough arguments for format strin=
> g")
> format("rgb %s %s %s")
> apply(format "rgb %s %s %s" nil)
> org-dvipng-color-format("Transparent")
> org-create-formula-image-with-dvipng(#("\\begin{equation*}\n x=3D\\sq=
> rt{b}\n \\end{equation*}" 0 18 (fontified t) 18 54 (fontified t)) "/hom=
> e/kjambunathan/ltxpng/regression_8ae36f2f639503b0a2290277a2d42b284db15c21.p=
> ng" (:foreground default :background default :scale 1.0 :html-foreground "B=
> lack" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1=
> " "$" "$$" "\\(" "\\[")) nil)
> org-create-formula-image(#("\\begin{equation*}\n x=3D\\sqrt{b}\n =
> \\end{equation*}" 0 18 (fontified t) 18 54 (fontified t)) "/home/kjambunath=
> an/ltxpng/regression_8ae36f2f639503b0a2290277a2d42b284db15c21.png" (:foregr=
> ound default :background default :scale 1.0 :html-foreground "Black" :html-=
> background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "=
> \\(" "\\[")) nil dvipng)
> org-format-latex("ltxpng/regression" "." nil "Creating LaTeX image %s" ni=
> l nil dvipng)
> org-export-odt-do-preprocess-latex-fragments()
> org-export-odt-preprocess-latex-fragments()
> run-hooks(org-export-preprocess-after-blockquote-hook)
> org-export-preprocess-string(#("#+TITLE: regression.org\n#+AUTHOR: =
> Jambunathan K\n#+EMAIL: kjambunathan@gmail.com\n#+DATE: 2012-09-1=
> 3 Thu\n#+DESCRIPTION:\n#+KEYWORDS:\n#+LANGUAGE: en\n#+OPTIONS: H:3 num:t=
> toc:t \\n:nil @:t ::t |:t ^:t -:t f:t *:t <:t\n#+OPTIONS: TeX:t LaTeX:dv=
> ipng skip:nil d:t todo:t pri:nil tags:t\n#+INFOJS_OPT: view:nil toc:nil lto=
> c:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js\n#+EXPORT=
> _SELECT_TAGS: export\n#+EXPORT_EXCLUDE_TAGS: noexport\n#+LINK_UP: \n#+LIN=
> K_HOME: \n#+XSLT:\n\n\n#+name: Equation:2\n \\begin{equation*}\n x=
> =3D\\sqrt{b}\n \\end{equation*}\n" 0 8 (fontified t font-lock-fontified=
> t face org-document-info-keyword) 8 13 (fontified t) 13 27 (fontified t fo=
> nt-lock-fontified t face org-document-title) 27 28 (fontified t) 28 37 (fon=
> tified t font-lock-fontified t face org-document-info-keyword) 37 41 (fonti=
> fied t) 41 54 (fontified t font-lock-fontified t face org-document-info) 54=
> 55 (fontified t) 55 63 (fontified t font-lock-fontified t face org-documen=
> t-info-keyword) 63 68 (fontified t) 68 90 (fontified t font-lock-fontified =
> t face org-document-info) 90 91 (fontified t) 91 98 (fontified t font-lock-=
> fontified t face org-document-info-keyword) 98 104 (fontified t) 104 118 (f=
> ontified t font-lock-fontified t face org-document-info) 118 119 (fontified=
> t) 119 133 (fontified t font-lock-fontified t face org-meta-line) 133 134 =
> (fontified t) 134 145 (fontified t font-lock-fontified t face org-meta-line=
> ) 145 146 (fontified t) 146 161 (fontified t font-lock-fontified t face org=
> -meta-line) 161 162 (fontified t) 162 229 (fontified t font-lock-fontified =
> t face org-meta-line) 229 230 (fontified t) 230 296 (fontified t font-lock-=
> fontified t face org-meta-line) 296 297 (fontified t) 297 366 (fontified t =
> font-lock-fontified t face org-meta-line) 366 395 (fontified t font-lock-fo=
> ntified t org-no-flyspell t mouse-face highlight face org-meta-line keymap =
> #1=3D(keymap (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) =
> (mouse-2 . org-open-at-mouse))) 395 396 (fontified t rear-nonsticky (mouse-=
> face highlight keymap invisible intangible help-echo org-linked-text) font-=
> lock-fontified t org-no-flyspell t mouse-face highlight face org-meta-line =
> keymap #1#) 396 397 (fontified t) 397 425 (fontified t font-lock-fontified =
> t face org-meta-line) 425 426 (fontified t) 426 457 (fontified t font-lock-=
> fontified t face org-meta-line) 457 458 (fontified t) 458 471 (fontified t =
> font-lock-fontified t face org-meta-line) 471 472 (fontified t) 472 485 (fo=
> ntified t font-lock-fontified t face org-meta-line) 485 486 (fontified t) 4=
> 86 493 (fontified t font-lock-fontified t face org-meta-line) 493 494 (font=
> ified t) 494 495 (fontified t) 495 496 (fontified t) 496 514 (fontified t f=
> ont-lock-fontified t face org-meta-line) 514 515 (fontified t) 515 538 (fon=
> tified t) 538 575 (fontified t)) :emph-multiline t :for-backend odt :skip-b=
> efore-1st-heading nil :drawers t :todo-keywords t :tasks t :tags t :priorit=
> y nil :footnotes t :timestamps t :archived-trees headline :select-tags ("ex=
> port") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments dvipng)
> org-do-lparse(nil hidden nil nil nil nil)
> org-lparse("odt" "odt" nil hidden)
> org-lparse-and-open("odt" "odt" nil)
> #[nil "\303\b\206=00\304\304 #\n \210\207" [org-export-odt-preferred-outpu=
> t-format arg --cleanup-xml-buffers org-lparse-and-open "odt"] 4]()
> org-export-as-odt-and-open(nil)
> call-interactively(org-export-as-odt-and-open)
> org-export(nil)
>
>
> #+TITLE: regression.org
> #+AUTHOR: Jambunathan K
> #+EMAIL: kjambunathan@gmail.com
> #+DATE: 2012-09-13 Thu
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE: en
> #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
> #+OPTIONS: TeX:t LaTeX:dvipng skip:nil d:t todo:t pri:nil tags:t
> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http:/=
> /orgmode.org/org-info.js
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+LINK_UP:=20=20=20
> #+LINK_HOME:=20
> #+XSLT:
>
>
> #+name: Equation:2
> \begin{equation*}
> x=3D\sqrt{b}
> \end{equation*}
>
>
> --=20
>
next prev parent reply other threads:[~2012-09-13 7:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-09 5:15 Question on latex source block Richard Stanton
2012-09-09 7:07 ` Nick Dokos
2012-09-09 7:17 ` Nick Dokos
2012-09-09 16:49 ` Eric Schulte
2012-09-09 17:44 ` Nick Dokos
2012-09-09 19:39 ` Eric Schulte
2012-09-09 20:31 ` Nick Dokos
2012-09-13 6:00 ` Jambunathan K
2012-09-13 7:28 ` Nick Dokos [this message]
2012-09-13 7:58 ` Nick Dokos
2012-09-13 15:07 ` Eric Schulte
2012-09-13 16:04 ` Nick Dokos
2012-09-13 17:09 ` Eric Schulte
2012-09-13 19:12 ` Abdó Roig-Maranges
2012-09-13 19:42 ` Jambunathan K
2012-09-14 7:27 ` Bastien
[not found] <mailman.113.1347292828.2054.emacs-orgmode@gnu.org>
2012-09-10 16:49 ` Richard Stanton
2012-09-10 19:07 ` Nick Dokos
2012-09-10 20:43 ` Richard Stanton
2012-09-10 20:53 ` Nick Dokos
2012-09-11 6:52 ` Giovanni Ridolfi
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=6910.1347521290@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=eric.schulte@gmx.com \
--cc=kjambunathan@gmail.com \
--cc=stanton@haas.berkeley.edu \
/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).