emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Christian Straßer" <christian.strasser@ugent.be>
To: emacs-orgmode@gnu.org
Subject: org-preview-latex-fragment, pstricks
Date: Thu, 14 Aug 2014 19:14:55 +0200	[thread overview]
Message-ID: <CAJEGfDdG5EwxvGre2BW+Ko36rZdQN+G1yszSkMrUEK=Y1ftB7w@mail.gmail.com> (raw)

Dear all,

I have a problem producing correct preview images when using pstricks.
Here's a minimal example to illustrate the problem.
I have an org-file "test.org" with the following content:

\begin{equation}
\varphi
\end{equation}
\begin{pspicture}
\psframebox{text in box}
test outside box
\rnode{a}{a} \rnode{b}{b}
\ncline{a}{b}
\end{pspicture}

Executing "org-preview-latex-fragment" is successful for both
environments (the equation and the pspicture). So no error message is
produced and no orgtex*.log files are in /tmp. The problem is though
that for the pspicture environment the psframebox is not produced.
"Test in a box" appears without a box.

In order to see whether the same problem appears for tex-files and
preview-latex I created a corresponding tex-file:

\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}
\psframebox{text in box}
test outside box
\end{pspicture}
\end{document}

Here everything is displayed as expected/desired.

Similar problems can be produced e.g. when drawing lines with the
\ncline command and using other pstricks-commands.

Here's the relevant settings from my .emacs:
(custom-set-variables
'(org-latex-create-formula-image-program (quote dvipng))
 '(org-latex-default-packages-alist (quote (("AUTO" "inputenc" t)
("T1" "fontenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) (""
"longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "rotating"
nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t) (""
"marvosym" t) ("" "wasysym" t) ("" "amssymb" t) ("" "hyperref" nil)
"\\tolerance=1000" ("" "pstricks" t) ))))

I also tried to set the org-latex-create-formula-image-program to
imagemagick: the problem remains the same.
I also tried to remove the pstricks-entry from
org-latex-default-packages-alist and manually add it via
#+LATEX_HEADER
which did not change the result.

Finally, here's my org-mode version: 8.2.7b.

Any help is highly appreciated.

Best wishes,

Christian

             reply	other threads:[~2014-08-14 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14 17:14 Christian Straßer [this message]
2014-08-14 19:01 ` org-preview-latex-fragment, pstricks 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='CAJEGfDdG5EwxvGre2BW+Ko36rZdQN+G1yszSkMrUEK=Y1ftB7w@mail.gmail.com' \
    --to=christian.strasser@ugent.be \
    --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).