Re: [Orgmode] LaTeX export bugs?

2009-07-02 Thread Carsten Dominik


On Jun 26, 2009, at 3:34 PM, Sébastien Vauban wrote:


Hello,

To make things clear, I love Org-mode (yes, I voted) and its LaTeX  
export.
More than you can imagine: I now look for avoiding writing any LaTeX  
document,

and have the export do all the work for me...

BTW, any solution for exporting to a Beamer presentation?  I'd be  
very very
very interested by anything in that direction. That's the last piece  
of the

whole puzzle, IMHO.

Though, working more and more in that direction (Org-mode - LaTeX),  
I've seen
a couple of weird things that I've compiled into an ECM, for ease of  
use:


--8---cut here---start-8---
* Org

 - If you have a level 3 item under a level 1 item, the level 3  
doesn't get
   exported to LaTeX. I know this is not a normal situation, but it  
happens
   when restructuring some text, and you loose it in the exported  
view...


Yes, the parser currently requires the structure to be consistent
and does not fail gracefully if not.



* THIS SECTION WILL DISAPPEAR!!

 This text is not exported. Though, I'm not always aware of it,  
when

 sections are long (spreading over more than one screen page)...

*** Level 2 -- is there a level 3 above?

   - Table with formulas and environment /framed/ :

 The following table will be framed, but TBL formulas do not work
 anymore.

   #+ATTR_LaTeX: align=lrrr
   #+LaTeX: \begin{framed}
   | Code  | \euro{} |  \% | \euro{} |
   |---+-+-+-|
   | GSM   | | |0.00 |
   | Internet  |  168.45 | 100 |  168.45 |
   | Matériel  |  295.99 | 100 |  295.99 |
   | Publicité |  214.25 |  33 |   70.70 |
   | Autres| | |0.00 |
   |---+-+-+-|
   | Total | | |  535.14 |
   #+LaTeX: \end{framed}
   #+TBLFM: $4=$2*$3/100;%.2f::@7$4=vsum(@-...@-ii)

 Swapping these two last lines gives LaTeX errors... What's the  
solution
 for having both: an environment around the table and formulas  
that work?


This is a hard problem.  It is on my list, but will not be fixed soon.



 Why do I have to escape the sign symbol as soon as I put LaTeX  
commands

 (and not BEGIN..END_LaTeX) near it?


I do not understand what you mean here.



   - Hyperlink to other sections: see [[To be referenced]]. Looking  
in the
 produced LaTeX code, it always link to the current section  
instead!


Have not yet looked into this.  Use IDs or custom IDs to links to
sections, that is much better.



   - Quotes are sometimes exported in a weird /fashion/ : see  
Industriels,

 et commerçants. And compare with the quotes in the next sample
 (Industriels et commerçants).


Fixed.



 See as well that /fashion/ is not in italic above.


It is for me


Apparently because of
 the special non-breaking space following the second slash...


Looks like the non-breaking space did not make it through
the mailing process.  What exactly are you using?


BTW, a
 possibility would be to translate the non-breaking space to  
its LaTeX

 equivalent syntax (the tilde sign).

* To be referenced

 This should be the landing point for the hyperreference above.
--8---cut here---end---8---

Once again, thanks to all of you that provide us with those wonderful
features...

Best regards,
 Seb

--
Sébastien Vauban



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] LaTeX export bugs?

2009-06-28 Thread Sébastien Vauban
Hello,

To make things clear, I love Org-mode (yes, I voted) and its LaTeX export.
More than you can imagine: I now look for avoiding writing any LaTeX document,
and have the export do all the work for me...

BTW, any solution for exporting to a Beamer presentation?  I'd be very very
very interested by anything in that direction. That's the last piece of the
whole puzzle, IMHO.

Though, working more and more in that direction (Org-mode - LaTeX), I've seen
a couple of weird things that I've compiled into an ECM, for ease of use:

--8---cut here---start-8---
* Org

  - If you have a level 3 item under a level 1 item, the level 3 doesn't get
exported to LaTeX. I know this is not a normal situation, but it happens
when restructuring some text, and you loose it in the exported view...

* THIS SECTION WILL DISAPPEAR!!

  This text is not exported. Though, I'm not always aware of it, when
  sections are long (spreading over more than one screen page)...

*** Level 2 -- is there a level 3 above?

- Table with formulas and environment /framed/ :

  The following table will be framed, but TBL formulas do not work
  anymore.

#+ATTR_LaTeX: align=lrrr
#+LaTeX: \begin{framed}
| Code  | \euro{} |  \% | \euro{} |
|---+-+-+-|
| GSM   | | |0.00 |
| Internet  |  168.45 | 100 |  168.45 |
| Matériel  |  295.99 | 100 |  295.99 |
| Publicité |  214.25 |  33 |   70.70 |
| Autres| | |0.00 |
|---+-+-+-|
| Total | | |  535.14 |
#+LaTeX: \end{framed}
#+TBLFM: $4=$2*$3/100;%.2f::@7$4=vsum(@-...@-ii)

  Swapping these two last lines gives LaTeX errors... What's the solution
  for having both: an environment around the table and formulas that work?

  Why do I have to escape the sign symbol as soon as I put LaTeX commands
  (and not BEGIN..END_LaTeX) near it?

- Hyperlink to other sections: see [[To be referenced]]. Looking in the
  produced LaTeX code, it always link to the current section instead!

- Quotes are sometimes exported in a weird /fashion/ : see Industriels,
  et commerçants. And compare with the quotes in the next sample
  (Industriels et commerçants).

  See as well that /fashion/ is not in italic above. Apparently because of
  the special non-breaking space following the second slash... BTW, a
  possibility would be to translate the non-breaking space to its LaTeX
  equivalent syntax (the tilde sign).

* To be referenced

  This should be the landing point for the hyperreference above.
--8---cut here---end---8---

Once again, thanks to all of you that provide us with those wonderful
features...

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-22 Thread Carsten Dominik


On Mar 21, 2009, at 9:32 PM, Matthew Lundin wrote:


Hi Carsten,

Carsten Dominik domi...@science.uva.nl writes:


I have worked on this part of the LaTeX exporter. Among other things,
I now export these headers as an itemize list by default, parallel to
the HTML exporter.

You can customize org-export-latex-low-levels to specify what exactly
you want, you can get description or enumerate lists as well.

Let me know if the problems now go away.


Thanks ever so much. This is a very nice addition.

I saw a small issue in defcustom for org-export-latex-low-levels (see
below).


Thanks for catching this.  Fixed, thanks.

- Carsten




Best,
Matt

--8---cut here---start-8---
diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el
index a09aff6..f852084 100644
--- a/lisp/org-export-latex.el
+++ b/lisp/org-export-latex.el
@@ -227,8 +227,8 @@ the %s stands here for the inserted headline and  
is mandatory.

  :group 'org-export-latex
  :type '(choice (const :tag Ignore nil)
 (symbol :tag Convert as descriptive list description)
-(symbol :tag Convert as descriptive list itemize)
-(symbol :tag Convert as descriptive list enumerate)
+(symbol :tag Convert as itemized list itemize)
+(symbol :tag Convert as enumerated list enumerate)
 (string :tag Use a section string :value 
\\subparagraph{%s})))

(defcustom org-export-latex-list-parameters
--8---cut here---end---8---


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-21 Thread Matthew Lundin

Matthew Lundin m...@imapmail.org writes:

 Hi Carsten,

 2. Headlines greater than n when H:n (e.g., level three headlines
 when H
 is set to 2) are exported as description lists.

 Is this the intended behavior?

 This is how Bastien designed it, and it is similar to the HTML way,
 turning these into lists.  It works fine if there is any text before
 the plain list bullets.


 When I use a paragraph of text instead of plain list bullets, the
 subsequent paragraph becomes the definition of the headline, which
 becomes the list label. Is this correct?

 I am confused, could you make a detailed example, please?

I'm a bit chagrined to admit that there is already a variable that does
what I want. So sorry for the false alarm. I set the variable
org-export-latex-low-levels to a string--\subparagraph{%s}--and then
redefined the formatting of the subparagraph macro in the article
preamble org-export-latex-classes. So everything is fine.

I suppose it would be nice to add an itemize possibility to the variable
org-export-latex-low-levels, but by no means urgent. This is a wishlist
item and nothing more

Thanks,
Matt



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-21 Thread Carsten Dominik

Hi Matthew,

I have worked on this part of the LaTeX exporter.  Among other things,  
I now export
these headers as an itemize list by default, parallel to the HTML  
exporter.


You can customize org-export-latex-low-levels to specify what exactly  
you want, you can get description or enumerate lists as well.


Let me know if the problems now go away.

- Carsten

On Mar 20, 2009, at 3:43 AM, Matthew Lundin wrote:



Hi Carsten,


2. Headlines greater than n when H:n (e.g., level three headlines
when H
is set to 2) are exported as description lists.

Is this the intended behavior?


This is how Bastien designed it, and it is similar to the HTML way,
turning these into lists.  It works fine if there is any text  
before

the plain list bullets.



When I use a paragraph of text instead of plain list bullets, the
subsequent paragraph becomes the definition of the headline, which
becomes the list label. Is this correct?


I am confused, could you make a detailed example, please?


Sorry for being unclear. Take, for instance, the following source  
file:


--8---cut here---start-8---
#+OPTIONS: H:2

* This is the first heading

Here is some text after the first heading.

** This is the second heading

Here is some text after the second heading.

*** This is the third heading

Here is some text after the third heading.
--8---cut here---end---8---

This outputs to tex as follows (preamble excluded):

--8---cut here---start-8---
\section{This is the first heading}
\label{sec-1}


Here is some text after the first heading.

\subsection{This is the second heading}
\label{sec-1.1}


Here is some text after the second heading.

\begin{description}

\item[This is the third heading]\label{sec-1.1.1}



Here is some text after the third heading.
\end{description}
--8---cut here---end---8---

When latex is run, the output looks like this. Note how the text after
the third heading is folded into the same line:

--8---cut here---start-8---
1 This is the first heading

Here is some text after the first heading.

1.1 This is the second heading

Here is some text after the second heading.

This is the third heading Here is some text after the third heading.
--8---cut here---end---8---

- Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-21 Thread Matthew Lundin
Hi Carsten,

Carsten Dominik domi...@science.uva.nl writes:

 I have worked on this part of the LaTeX exporter. Among other things,
 I now export these headers as an itemize list by default, parallel to
 the HTML exporter.

 You can customize org-export-latex-low-levels to specify what exactly
 you want, you can get description or enumerate lists as well.

 Let me know if the problems now go away.

Thanks ever so much. This is a very nice addition. 

I saw a small issue in defcustom for org-export-latex-low-levels (see
below).

Best,
Matt

--8---cut here---start-8---
diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el
index a09aff6..f852084 100644
--- a/lisp/org-export-latex.el
+++ b/lisp/org-export-latex.el
@@ -227,8 +227,8 @@ the %s stands here for the inserted headline and is 
mandatory.
   :group 'org-export-latex
   :type '(choice (const :tag Ignore nil)
 (symbol :tag Convert as descriptive list description)
-(symbol :tag Convert as descriptive list itemize)
-(symbol :tag Convert as descriptive list enumerate)
+(symbol :tag Convert as itemized list itemize)
+(symbol :tag Convert as enumerated list enumerate)
 (string :tag Use a section string :value 
\\subparagraph{%s})))
 
 (defcustom org-export-latex-list-parameters
--8---cut here---end---8---


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-19 Thread Carsten Dominik


On Mar 18, 2009, at 5:33 PM, Matthew Lundin wrote:


Hi Carsten,

Carsten Dominik domi...@science.uva.nl writes:



Strange, I am getting {lll}, with no vertical lines on either  
outside.

Ah, you have org-export-latex-tables-column-borders turned on.
Yes, there was a bug, fixed now.  Thanks!



Thanks! Works beautifully now.



2. Headlines greater than n when H:n (e.g., level three headlines
when H
is set to 2) are exported as description lists.

Is this the intended behavior?


This is how Bastien designed it, and it is similar to the HTML way,
turning these into lists.  It works fine if there is any text before
the plain list bullets.



When I use a paragraph of text instead of plain list bullets, the
subsequent paragraph becomes the definition of the headline, which
becomes the list label. Is this correct?


I am confused, could you make a detailed example, please?




Do you have a better proposal?


I suppose I was expecting the headings to become itemized lists if
num:nil or enumerated lists if num:t. But I realize that's probably  
not

the most straightforward behavior. I think it's easier for me to use
bullet lists in the org source than to request a change. :)


Would it be possible to have the latex exporter ignore markup
designated as html?


I am unable to reproduce this, works fine for me.


You are right. I cannot reproduce this. I'm afraid it may have been  
due

to a typo. Sorry for the false alarm.


OK, we have now #+begin_center



Again, thanks so much! This works beautifully and I've already used it
in a syllabus.



A related thought (and sorry for the very long email), is there any
way
to define these types of macros globally, rather than in-buffer? It
would be really nice to be able to set commonly used macros  
globally.

Even nicer would be the ability to define macros that are context
sensitive: i.e., one substitution for for LaTeX export, another
substitution for HTML export. This might make it easier to export  
the

same source file to different outputs. Just a wishlist item


Yes,  guess we could have global macros, and also macros that expand
depending on exporter type.  I have not though much about it, maybe
you'd like to draw up a syntax?


Thanks for considering this. I'll do some brainstorming and get back  
to you.


Best,
Matt




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-19 Thread Matthew Lundin

Hi Carsten,

 2. Headlines greater than n when H:n (e.g., level three headlines
 when H
 is set to 2) are exported as description lists.

 Is this the intended behavior?

 This is how Bastien designed it, and it is similar to the HTML way,
 turning these into lists.  It works fine if there is any text before
 the plain list bullets.


 When I use a paragraph of text instead of plain list bullets, the
 subsequent paragraph becomes the definition of the headline, which
 becomes the list label. Is this correct?

 I am confused, could you make a detailed example, please?

Sorry for being unclear. Take, for instance, the following source file:

--8---cut here---start-8---
#+OPTIONS: H:2

* This is the first heading

Here is some text after the first heading.

** This is the second heading

Here is some text after the second heading.

*** This is the third heading

Here is some text after the third heading.
--8---cut here---end---8---

This outputs to tex as follows (preamble excluded):

--8---cut here---start-8---
\section{This is the first heading}
\label{sec-1}


Here is some text after the first heading.

\subsection{This is the second heading}
\label{sec-1.1}


Here is some text after the second heading.

\begin{description}

\item[This is the third heading]\label{sec-1.1.1}



Here is some text after the third heading.
\end{description}
--8---cut here---end---8---

When latex is run, the output looks like this. Note how the text after
the third heading is folded into the same line:

--8---cut here---start-8---
1 This is the first heading 

Here is some text after the first heading. 

1.1 This is the second heading 

Here is some text after the second heading. 

This is the third heading Here is some text after the third heading. 
--8---cut here---end---8---

- Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-18 Thread Matthew Lundin
Hi Carsten,

Carsten Dominik domi...@science.uva.nl writes:


 Strange, I am getting {lll}, with no vertical lines on either outside.
 Ah, you have org-export-latex-tables-column-borders turned on.
 Yes, there was a bug, fixed now.  Thanks!


Thanks! Works beautifully now.


 2. Headlines greater than n when H:n (e.g., level three headlines
 when H
 is set to 2) are exported as description lists.

 Is this the intended behavior?

 This is how Bastien designed it, and it is similar to the HTML way,
 turning these into lists.  It works fine if there is any text before
 the plain list bullets.


When I use a paragraph of text instead of plain list bullets, the
subsequent paragraph becomes the definition of the headline, which
becomes the list label. Is this correct?

 Do you have a better proposal?

I suppose I was expecting the headings to become itemized lists if
num:nil or enumerated lists if num:t. But I realize that's probably not
the most straightforward behavior. I think it's easier for me to use
bullet lists in the org source than to request a change. :)

 Would it be possible to have the latex exporter ignore markup
 designated as html?

 I am unable to reproduce this, works fine for me.

You are right. I cannot reproduce this. I'm afraid it may have been due
to a typo. Sorry for the false alarm.

 OK, we have now #+begin_center


Again, thanks so much! This works beautifully and I've already used it
in a syllabus.


 A related thought (and sorry for the very long email), is there any
 way
 to define these types of macros globally, rather than in-buffer? It
 would be really nice to be able to set commonly used macros globally.
 Even nicer would be the ability to define macros that are context
 sensitive: i.e., one substitution for for LaTeX export, another
 substitution for HTML export. This might make it easier to export the
 same source file to different outputs. Just a wishlist item

 Yes,  guess we could have global macros, and also macros that expand
 depending on exporter type.  I have not though much about it, maybe
 you'd like to draw up a syntax?

Thanks for considering this. I'll do some brainstorming and get back to you.

Best,
Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Latex export bugs and a request

2009-03-16 Thread Matthew Lundin

Hi Carsten,

I have a three minor LaTeX export bugs to report and a request.

1. I a table group begins in the first column of a table, the boundary
is missing in the latex export. 

--8---cut here---start-8---
|---+--++-|
| / | |||
|   | Here | is | a table |
|---+--++-|
--8---cut here---end---8---

produces

,
| \begin{center}
| \begin{tabular}{lll|}
| \hline
|  Hereisa table  \\
| \hline
| \end{tabular}
| \end{center}
`

Note the {lll|} rather than {|lll}.

2. Headlines greater than n when H:n (e.g., level three headlines when H
is set to 2) are exported as description lists.

Is this the intended behavior?

The problem is that the next paragraph (or, worse, the next item in a
list if the headline is followed by a plain list) is folded inside of
the description list.

E.g.,

,
| \begin{description}
| 
| \item[Here is the subsubheading]\label{sec-2.1.1}
| 
| 
| 
| \begin{itemize}
| \item And here are some bullet points.
| \item Another bullet point.
| \end{itemize}
| As you can see in the export, this interferes with the itemize.
| \end{description}
`

Here's the full source file:

--8---cut here---start-8---

#+TITLE: Sample LaTeX export
#+OPTIONS: num:nil H:2

* Table group bug

When using table groups, the first verticle line on the left is
missing in the latex export.

|---+--++-|
| / | |||
|   | Here | is | a table |
|---+--++-|

* Headline export

Headlines  n for option H:n get exported as descriptions

** Here is the subheading

*** Here is the subsubheading

  - And here are some bullet points.

  - Another bullet point.

As you can see in the export, this interferes with the itemize.
--8---cut here---end---8---

And here's the export file:
,
| 
| % Created 2009-03-16 Mon 13:58
| \documentclass[11pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{graphicx}
| \usepackage{charter}
| \frenchspacing
| \usepackage{longtable}
| \usepackage{hyperref}
| 
| 
| \title{Sample LaTeX export}
| \author{Matthew Lundin}
| \date{March 16, 2009}
| 
| \begin{document}
| 
| \maketitle
| 
| 
| \section*{Table group bug}
| \label{sec-1}
| 
| 
| When using table groups, the first verticle line on the left is
| missing in the latex export.
| 
| 
| \begin{center}
| \begin{tabular}{lll|}
| \hline
|  Hereisa table  \\
| \hline
| \end{tabular}
| \end{center}
| 
| 
| 
| \section*{Headline export}
| \label{sec-2}
| 
| 
| Headlines  n for option H:n get exported as descriptions
| 
| \subsection*{Here is the subheading}
| \label{sec-2.1}
| 
| 
| \begin{description}
| 
| \item[Here is the subsubheading]\label{sec-2.1.1}
| 
| 
| 
| \begin{itemize}
| \item And here are some bullet points.
| \item Another bullet point.
| \end{itemize}
| As you can see in the export, this interferes with the itemize.
| \end{description}
| 
| \end{document}
`

3. A different issue: html export seems ignores anything inside of
#+begin_latex ... #+end_latex, but the LaTeX exporter does not ignore
the #+begin_html, #+end_html, and #+html directives.

Would it be possible to have the latex exporter ignore markup
designated as html?

4. Finally, a request

Would it be possible to add markup for centered text to org-mode? I've
begun to create documents in org mode for export both to html and LaTeX.
For now, my workaround is to create macros for centered text that I
comment out depend on how the document is to be exported. But it would
be great if there was something like #+begin_center ... #+end_center.

,
| #+MACRO: begincenter #+latex: \begin{center}
| #+MACRO: endcenter #+latex: \end{center}
| # #+MACRO: begincenter #+html: div style=text-align: center;
| # #+MACRO: endcenter #+html: /div
`

A related thought (and sorry for the very long email), is there any way
to define these types of macros globally, rather than in-buffer? It
would be really nice to be able to set commonly used macros globally.
Even nicer would be the ability to define macros that are context
sensitive: i.e., one substitution for for LaTeX export, another
substitution for HTML export. This might make it easier to export the
same source file to different outputs. Just a wishlist item

Thanks,
Matt



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex export bugs and a request

2009-03-16 Thread Carsten Dominik

Hi Matt,

On Mar 16, 2009, at 8:16 PM, Matthew Lundin wrote:



Hi Carsten,

I have a three minor LaTeX export bugs to report and a request.

1. I a table group begins in the first column of a table, the boundary
is missing in the latex export.

--8---cut here---start-8---
|---+--++-|
| / | |||
|   | Here | is | a table |
|---+--++-|
--8---cut here---end---8---

produces

,
| \begin{center}
| \begin{tabular}{lll|}
| \hline
|  Hereisa table  \\
| \hline
| \end{tabular}
| \end{center}
`

Note the {lll|} rather than {|lll}.


Strange, I am getting {lll}, with no vertical lines on either outside.
Ah, you have org-export-latex-tables-column-borders turned on.
Yes, there was a bug, fixed now.  Thanks!




2. Headlines greater than n when H:n (e.g., level three headlines  
when H

is set to 2) are exported as description lists.

Is this the intended behavior?


This is how Bastien designed it, and it is similar to the HTML way,  
turning these into lists.  It works fine if there is any text before  
the plain list bullets.


Do you have a better proposal?



3. A different issue: html export seems ignores anything inside of
#+begin_latex ... #+end_latex, but the LaTeX exporter does not ignore
the #+begin_html, #+end_html, and #+html directives.

Would it be possible to have the latex exporter ignore markup
designated as html?


I am unable to reproduce this, works fine for me.



4. Finally, a request

Would it be possible to add markup for centered text to org-mode? I've
begun to create documents in org mode for export both to html and  
LaTeX.

For now, my workaround is to create macros for centered text that I
comment out depend on how the document is to be exported. But it would
be great if there was something like #+begin_center ... #+end_center.


OK, we have now #+begin_center



,
| #+MACRO: begincenter #+latex: \begin{center}
| #+MACRO: endcenter #+latex: \end{center}
| # #+MACRO: begincenter #+html: div style=text-align: center;
| # #+MACRO: endcenter #+html: /div
`

A related thought (and sorry for the very long email), is there any  
way

to define these types of macros globally, rather than in-buffer? It
would be really nice to be able to set commonly used macros globally.
Even nicer would be the ability to define macros that are context
sensitive: i.e., one substitution for for LaTeX export, another
substitution for HTML export. This might make it easier to export the
same source file to different outputs. Just a wishlist item


Yes,  guess we could have global macros, and also macros that expand  
depending on exporter type.  I have not though much about it, maybe  
you'd like to draw up a syntax?


- Carsten


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode