emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Bug?] Smart quotes and latex environments
@ 2015-04-30 15:02 Jacob Gerlach
  2015-04-30 15:38 ` Rasmus
  2015-05-01  7:28 ` Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Jacob Gerlach @ 2015-04-30 15:02 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1606 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bug?] Smart quotes and latex environments
  2015-04-30 15:02 [Bug?] Smart quotes and latex environments Jacob Gerlach
@ 2015-04-30 15:38 ` Rasmus
  2015-05-01  7:28 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2015-04-30 15:38 UTC (permalink / raw)
  To: emacs-orgmode

Jacob Gerlach <jacobgerlach@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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bug?] Smart quotes and latex environments
  2015-04-30 15:02 [Bug?] Smart quotes and latex environments Jacob Gerlach
  2015-04-30 15:38 ` Rasmus
@ 2015-05-01  7:28 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2015-05-01  7:28 UTC (permalink / raw)
  To: Jacob Gerlach; +Cc: Org-mode

Hello,

Jacob Gerlach <jacobgerlach@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-01  7:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 15:02 [Bug?] Smart quotes and latex environments Jacob Gerlach
2015-04-30 15:38 ` Rasmus
2015-05-01  7:28 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).