[Orgmode] Adding latex packages
Hello, I wondered if it was possible to include custom Latex packages when processing embedded LaTeX fragments in org. This would require only a simple change in org-create-formula-image: (defun org-create-formula-image (string tofile options) (let* ((tmpdir (if (featurep 'xemacs) (temp-directory) temporary-file-directory)) (texfilebase (make-temp-name (expand-file-name "orgtex" tmpdir))) ;(texfilebase (make-temp-file "orgtex")) ; (dummy (delete-file texfilebase)) (texfile (concat texfilebase ".tex")) (dvifile (concat texfilebase ".dvi")) (pngfile (concat texfilebase ".png")) (scale (number-to-string (* 1000 (or (plist-get options :scale) 1.0 (fg (or (plist-get options :foreground) "Black")) (bg (or (plist-get options :background) "Transparent"))) (with-temp-file texfile (insert "\\documentclass{article} \\usepackage{fullpage} \\usepackage{amssymb} \\usepackage[usenames]{color} \\usepackage{amsmath} \\usepackage{latexsym} \\usepackage[mathscr]{eucal} XXX insert custom packages here \\pagestyle{empty} \\begin{document}\n" string "\n\\end{document}\n")) (let ((dir default-directory)) (condition-case nil (progn (cd tmpdir) (call-process "latex" nil nil nil texfile)) (error nil)) (cd dir)) (if (not (file-exists-p dvifile)) (progn (message "Failed to create dvi file from %s" texfile) nil) (call-process "dvipng" nil nil nil "-E" "-fg" fg "-bg" bg "-x" scale "-y" scale "-T" "tight" "-o" pngfile dvifile) (if (not (file-exists-p pngfile)) (progn (message "Failed to create png file from %s" texfile) nil) ;; Use the requested file name and clean up (copy-file pngfile tofile 'replace) (loop for e in '(".dvi" ".tex" ".aux" ".log" ".png") do (delete-file (concat texfilebase e))) pngfile This should be global or per-file options. The point is that there are plenty of good LaTeX environments that it would be useful to have in org (for instance algorithm or tikz). One of these environments is tikzpicture, and using tikzpicture in org would allow to create high-quality graphics in org documents. There is one remaining difficulty though; tikz pictures aren't extracted with dvipng. What do you think? Thanks, Matthieu Lemerre ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Release: Org-mode 4.70
Nice additions this time. Having more complex keyword setups configurable in lisp is especially valuable to me (multi-file setup sharing the same set of keywords). Thanks for all your hard work! -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one | | is the greatest of all conquerors. --- The Dhammapada| ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] BUG: org-time-stamp
Fixed, thanks. - Carsten On Apr 3, 2007, at 8:57, Jost Burkardt wrote: Hello everybody, when I'm on it, there seems to be a bug in org-time-stamp: Today is <2007-04-03 Di>, when I'm in an org-file and i do `C-c .' and just insert `4', i get a time-stamp for today (<2007-04-03 Di>). To get the desired <2007-04-04 Mi>, i have to insert `4-4'. I remember this worked in an older version of org. I'm on "GNU Emacs 22.0.94.1 (i386-pc-linux-gnu, GTK+ Version 2.6.4) of 2007-02-23 on pacem, modified by Debian" with "Org-mode version 4.69a", but I could reproduce this behaviour on windows to. Jost ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode]
Hi, I really love the integration of remember with org, especially the way how to insert the notes by moving within the headings-tree. Is it possible to use this feature also for moving portions of text via regular copy/paste an org-buffer, and have org automatically adapt the header levels? I didn't find anything in the manual. One possible workaround for me is to use remember-clipboard, which has the drawback, that the clipboard's content is indented, so I always have to remove the indentation by hand. What do you think? Jost ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode