Re: [O] [Bug?] Smart quotes and latex environments

2015-05-01 Thread Nicolas Goaziou
Hello,

Jacob Gerlach jacobgerl...@gmail.com writes:

 I tried this instead:
 --
 #+Latex:\begin{myenvironment}
 Foo
 #+Latex:\end{myenvironment}
 --
 which exports to:
 --
 \begin{myenvironment}
 ``Foo''
 \#+Latex:\end{myenvironment}
 --
 This seems like a bug.

According to syntax, you are expected to add a space after colons, e.g.,

  #+Latex: \begin{myenvironment}
  Foo
  #+Latex: \end{myenvironment}

I commited a change to allow missing space.


Regards,

-- 
Nicolas Goaziou



[O] [Bug?] Smart quotes and latex environments

2015-04-30 Thread Jacob Gerlach
Hello,

--
#+OPTIONS: ':t
\begin{myenvironment}
Foo
\end{myenvironment}
--
Exports Foo rather than ``foo''. Is this expected?

I tried this instead:
--
#+Latex:\begin{myenvironment}
Foo
#+Latex:\end{myenvironment}
--
which exports to:
--
\begin{myenvironment}
``Foo''
\#+Latex:\end{myenvironment}
--
This seems like a bug.

Mixing the two:
--
#+Latex:\begin{myenvironment}
Foo
\end{myenvironment}
--
gives the desired result:
--
\begin{myenvironment}
``Foo''
\end{myenvironment}
--
but this seems like a hack.

Regards,
Jake


Re: [O] [Bug?] Smart quotes and latex environments

2015-04-30 Thread Rasmus
Jacob Gerlach jacobgerl...@gmail.com writes:

 --
 #+OPTIONS: ':t
 \begin{myenvironment}
 Foo
 \end{myenvironment}
 --
 Exports Foo rather than ``foo''. Is this expected?

Yes, 'cause it's a latex-environment (try running org-element-at-point on
it).  You could do

#+begin_myenvironment
Foo
#+end_myenvironment

—Rasmus

-- 
Hvor meget poesi tror De kommer ud af et glas isvand?