[O] org/info/m?

2016-08-06 Thread nasciiboy
ilegal (and false) demo at https://github.com/nasciiboy/LoL

(I don't understand english)


#+BEGIN_EXAMPLE
  * h1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam.

  ** h2

 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
 eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
 enim ad minim veniam.

  *** h3

  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
  eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
  enim ad minim veniam.


again h1, Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed eiusmod tempor incidunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam.
#+END_EXAMPLE


#+BEGIN_EXAMPLE
  * long long long long long long long long long
long long long headline
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  * headline
@ sub headline
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  - ul
  + ol
  1. num list
  1) num list
  a. alphabetic list
  a) alphabetic list
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  * h1

1. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
   eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
   enim ad minim veniam.

   a) Lorem ipsum dolor sit amet.

  - Lorem ipsum dolor sit amet, consectetur adipiscing elit.

2. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
   eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut
   enim ad minim veniam.
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  > "dialog, Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed eiusmod tempor incidunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam."
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  > character :: Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed eiusmod tempor incidunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam."
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  - definition :: Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed eiusmod tempor incidunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam.

  - definition <: Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed eiusmod tempor incidunt ut labore et
dolore magna aliqua.

  - definition :> Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua.
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  content align:

  :: == normal
  <: == align left
  :> == align rigth
  >:< == center
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  concat a description

  - A ::
B ::
C :: hexadecimal

o

  - A :: B :: C :: hexadecimal
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @x{mark}
  @x(mark)
  @x[mark]
  @x

  x = {
b :: bold
e :: emph
u :: underline
v :: verbatim
s :: strike
c :: code
C :: smalCaps
$ :: command
a :: abr
# :: direction
' :: samp
: :: definition
k :: kbd
f :: file
q :: quote
^ :: upper
_ :: sub
& :: symbol
  }
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @&{leftarrow} = ⇐
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @uisb(underlineItalicStrikeBold)

  to html

  underlineItalicStrikeBold
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  ^@[\s] comment

  @ this is a comment
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @m{\math-in-tex}
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @l{path/headline}

  to html

  path
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @l{path<>descrip}

  to html

  descrip
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @d{img:data-path}

  to html

  
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @d{img:path<>descrip}

  to html

  descrip
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  @t{target}
  @t{target<>description}
  @T{radioTarget}
  @T{radioTarget<>description}
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  ^^ element :: descrip
  >> element :: descrip
  << element :: descrip
  __ element :: descrip
  ^< element :: descrip
  >^ element :: descrip
  <_ element :: descrip
  _< element :: descrip
  ...
#+END_EXAMPLE

#+BEGIN_EXAMPLE
  << elemento

  :: description

  |--+---|
  |  | description   |
  |  |   |
  | elemento |   |
  |  |   |
  |  |   |
  |--+---|

  <^elemento >:< description

  |--+---|
  |elemento  |  description  |
  |  |   |
  |  |   |
  |  |   |
  |  |   |
  |--+---|


  ^> elemento >:< description

  |-|
  | |
  | |
  |   elemento  |
  | |
  | 

[O] Request: Move org-eww from contrib to core

2016-08-06 Thread Matt Lundin
Given that the coming release of emacs 25 ships with the eww browser, I
think it would be worthwhile to make org-eww.el a core org-mode module.
I have been using eww instead of emacs-w3m for some time now with no
problems. Since org ships with support for emacs-w3m, an external
package, it seems to makes sense also to support eww, the built-in
browser.

I noticed that Marco Wahl, the author of org-eww.el, is on the
contributors list, so, if I understand correctly, there shouldn't be
copyright issues.

Matt








Re: [O] odt macro export

2016-08-06 Thread Ken Mankoff
Hi Christian,

On 2016-08-06 at 09:20, Christian Moe  wrote:
> #+begin_example
>   #+MACRO: BEGIN_RC @@odt:@@
>   #+MACRO: END_RC @@odt:@@
>
>   {{{BEGIN_RC}}}This paragraph is specially formatted and uses bold 
> text.{{{END_RC}}}
> #+end_example
>
> This should solve your use case. It does not provide a convenient
> method if you want to affect paragraph-style properties rather than
> character-style ones, though.

Yes that does work, but as you point out, a blank line within does not work:

{{{BEGIN_RC}}}
Foo

Bar
{{{END_RC}}}

Anyway, I can work around this.

Thanks,

  -k.



Re: [O] odt macro export

2016-08-06 Thread Christian Moe


Ken Mankoff writes:

> This works:
>
> #+BEGIN_ODT
> 
> This paragraph is specially formatted and uses bold text.
> 
> #+END_ODT
>
> But this does not. Should it?
>
> #+MACRO: BEGIN_RC @@odt:@@
> #+MACRO: END_RC @@odt:@@
> {{{BEGIN_RC}}}
> This paragraph is specially formatted and uses bold text.
> {{{END_RC}}}

You can analyze the problem by examining the content.xml part of the ODT
document. (On my system, simply opening the ODT file in Emacs reveals
the unzipped files in dired; your settings may vary.)

In this case, your source is already treated as a block and wrapped in a
 element, so macro expansion results in a  illegally wrapped in a
:

#+begin_example
  
  
  This paragraph is specially formatted and uses bold text.
  
  
#+end_example

This makes it different to style a paragraph block with macros. You
could add closing and opening tags to the macros, but that would result
in empty paragraphs (double spacing) on either side.

However, following the example in the Info, you could create a bold
character style, and use the inline  instead of the block
 in your macro. Actually, my version of LibreOffice has a "Bold"
character style pre-defined, so I can just do this:

#+begin_example
  #+MACRO: BEGIN_RC @@odt:@@
  #+MACRO: END_RC @@odt:@@

  {{{BEGIN_RC}}}This paragraph is specially formatted and uses bold 
text.{{{END_RC}}}
#+end_example

This should solve your use case. It does not provide a convenient method
if you want to affect paragraph-style properties rather than
character-style ones, though.

Yours,
Christian