emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Citation syntax: a revised proposal


From: Aaron Ecay
Subject: Re: [O] Citation syntax: a revised proposal
Date: Sun, 15 Feb 2015 19:38:39 +0000
User-agent: Notmuch/0.19+49~g2049205 (http://notmuchmail.org) Emacs/25.0.50.2 (x86_64-unknown-linux-gnu)

Hi Nicolas,

2015ko otsailak 15an, Nicolas Goaziou-ek idatzi zuen:
> Perhaps. But [cite: ... |latex: :cap t |html: :cap t] isn't impossible
> to write either.

It violates DRY.  It (thus) makes it annoying to export a document to a
new backend: you have to search through all the citations and copy any
:cap keys to the new backend.

Crazy idea: what if there was a “root” backend from which all other
backends were derived?  This would maintain consistency with existing
attribute syntax (and possibly new, as proposed below), but also allow
certain attributes to be passed to all backends.

> 
> Anyway, time for another proposal. In fact, it seems that it would be
> better to externalize these properties, e.g.,
> 
>   [cite: ...]{latex :prop val}{html :prop val}
> 
> or
> 
>   [cite: ...]{latex :prop val | html :prop val}
> 
> No space allowed between the citation and the attributes. The big
> advantage with this is that it can be extended to other objects while
> still being backward-compatible.
> 
> It would solve one long standing limitation:
> 
>  Text [[file:img1.png]]{html :width 50px} and
>  [[file:img2.png]]{html :width 60 px}

Nice, I like it.

Thanks,

-- 
Aaron Ecay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]