[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: docbook export-special
From: |
Baoqiu Cui |
Subject: |
[Orgmode] Re: docbook export-special |
Date: |
Wed, 27 May 2009 11:46:10 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) |
Rustom Mody <address@hidden> writes:
> Baoqiu wrote:
>> What do you mean by export-special?
>
> Well the latest org comes with a contributed org-special-blocks.el
> [sorry I misnamed it]
>
>> Do you mean exporting blocks that look like the following lines?
>
>> #+begin_xyz
>> ...
>> #+end_xyz
>
> Yes I guess that would be what I want.
Thanks for the confirmation, Rustom. Carsten and I had several email
exchanges on this topic last month, and we decided to not support such
special blocks in DocBook exporter (see the following email).
Can you use #+BEGIN_DOCBOOK ... #+END_DOCBOOK instead to achieve what
you want?
Thanks,
Baoqiu
> From: Carsten Dominik <address@hidden>
> To: Baoqiu Cui <address@hidden>
> Cc: Carsten Dominik <address@hidden>
> Subject: Re: [Orgmode] Re: markup in environments in latex export
> Date: Wed, 29 Apr 2009 21:24:27 +0200
>
> Hi Baoqiu,
>
> thank you very much for your input. I largely agree with
> your assessment.
>
> - Carsten
>
> On Apr 27, 2009, at 7:37 PM, Baoqiu Cui wrote:
>
> > Hi Carsten,
> >
> > I thought about this during the weekend, and it seemed to me that it
> > is
> > better to let DocBook exporter ignore such arbitrary ``#+begin_xyz
> > ... #+end_xyz'' blocks. There are several reasons:
> >
> > 1. LaTeX and DocBook use very different tag/element names. Even if
> > we
> > can find equivalent elements in DocBook for ``xyz'', supporting
> > such LaTeX specific markups can confuse users.
> >
> > 2. For many ``xyz''s that are supported in LaTeX, we may not be able
> > to find equivalent elements in DocBook. There is not similar
> > thing
> > in DocBook to do what <div class="xyz"> ... </div> does in HTML,
> > AFAIK.
> >
> > 3. Supporting these blocks may open a big door for making exported
> > DocBook XML files invalid.
> >
> > Personally I don't think it is even a good idea to support this LaTeX
> > feature in Org mode. This feature may benefit a small number of
> > Org+LaTeX users, in some uncommon use cases, but in general it hurts
> > Org-mode's simplicity and cleanness.
> >
> > If I were Chris, I would not mind using real LaTeX syntax in
> >
> > \begin{xyz}
> > ...
> > \end{xyz}
> >
> > Thanks,
> > Baoqiu