Is there a way to load macros from another file?
The "include" command doesn't seeem to work. For example, the following does
*not* work.
macro.org:
#+MACRO: hello Hello world
and include.org:
#+INCLUDE: "./macro.org"
{{{hello}}}
I'm using org-mode 7.01g.
--Thanks!
Uriel Avalos
__
I just want to keep tag names consistent across files and I want to know what
tags are in use in all files as I add a tag. However, it's too tedious to
manually maintain org-tag-alist because I use a large and arbitrary number of
tags at any given time.
It would also be great if there was a way
The following latex options produce the right format (an article scaled up to
20pts using the "arev" font):
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [12pt]
#+LATEX_HEADER: \usepackage{amsmath,amsthm,amssymb} \usepackage[T1]{fontenc}
\usepackage[20pt]{extsizes} \usepackage{arev} \usepackage[
Thanks very much for the tip.
The relevant variables I needed to change were
org-export-latex-default-packages-alist and org-format-latex-header. It's
working fine now.
BTW, where did you find the latex fragment? I'm assuming in the tmp directory
of the file?
On Wed, 30 Jun 2010 02:58:41 -04
Is there a way to control the resolution of PNG LaTeX formulas when you export
to HTML?
You can control the font size directly in the header but there doesn't seem to
be a way to use org-mode to control the resolution...
BTW, I'm not exporting to LaTeX directly because I'm using PrinceXML to co
Thanks for the reply.
What version of org-mode is that defined in? I'm using 7.01g.
When I bring up org-format-latex-options, it doesn't define that variable in
the documentation. Setting the variable doesn't seem to do anything. The PNG
files are always 72 x 72 ppi.
I tried setting it to th
Carsten, we are trying to increase the resolution of the images for *print*
(ppi or dpi) while keeping the image the size on the web page. (As I wrote in
the first email, I'm generating an HTML file with LaTeX pngs and then
converting that to a PDF.)
Unfortunately, the html-scale and scale opti
I just tripped over myself :-) After reading this excellent discussion of dpi
(http://www.danheller.com/tech-dpi.html ), I think the problem might just be
dvipng. The "problem" is that while the PNGs look good on the screen, they look
horrible in the printer. I tried creating some PNGs with with
Sample code:
Using /a/’s and /b/’s, write add /x/ + 2.
^ ^^ ^
Right single quotation markNon-breaking space
Expected HTML export:
Using a’s and b’s, write x + 2.
Actual HTML export:
Using /a/’s and /b/’s, write add /x/ + 2.
If it's not clear, t
Sample code:
-
#+MACRO: start #+BEGIN_HTML\n \n#+END_HTML
#+MACRO: end #+BEGIN_HTML\n \n#+END_HTML
* Hello world
{{{start}}}
1. Item 1
{{{end}}}
---
Expected HTML export (valid HTML):
--
Item 1
---
Is there a way to apply text transformations to arguments in macros?
For example, say that you want to change the first argument to capital letters?
or transpose the letters of the second argument?
How would you do that? I imagine you would have to run elisp code, perhaps
babel is the answer?
Sample ORG file:
#+MACRO: test src_emacs-lisp[:results raw]{(let (mRef) (progn (if (string=
"$2" "1") (setq mRef "A") (if (string= "$2" "2") (setq mRef "B") (setq mRef
"C"))) (concat "Test $1" mRef ": ")))}
* *Hello World*
{{{test(1,1)}}}
Desired HTML export:
Test 1.A
Actual HTML e
How can I get org-mode to stop inserting the default CSS in the HTML export?
By default, exporting to HTML gives me this CSS defined in the header. I'd like
to...well, *not* have it included in the HTML.