emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jacob Gerlach <jacobgerlach@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: org-latex-custom-lang-environments
Date: Tue, 19 May 2015 15:16:08 +0000	[thread overview]
Message-ID: <CAA6UvuG=WEPGryWz4DWTH-xTCOj4rJ0=03sgh6+vNGwZyW79cg@mail.gmail.com> (raw)

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

Hello,

I thought I had successfully used this variable, but after restarting
emacs, I can no longer reproduce the documented behavior.

Given the following org file:
----------
#+BEGIN_SRC sh :exports code
echo "Hello"
#+END_SRC

# Local Variables:
# org-latex-listings: t
# org-latex-custom-lang-environments: (quote ((sh "myverbatim")))
# END:
----------

I expect to export
----------
\begin{myverbatim}
echo "Hello"
\end{myverbatim}
----------
(and I thought I had observed this behavior the first time I tried it).
Instead, I get
----------
\lstset{language=sh,label= ,caption= ,captionpos=b,numbers=none}
\begin{lstlisting}
echo "Hello"
\end{lstlisting}
----------

Am I missing something?

Regards,
Jake

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

             reply	other threads:[~2015-05-19 15:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 15:16 Jacob Gerlach [this message]
2015-05-19 15:29 ` org-latex-custom-lang-environments Rasmus
2015-05-19 15:55   ` org-latex-custom-lang-environments Jacob Gerlach
2015-05-19 16:09     ` org-latex-custom-lang-environments Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA6UvuG=WEPGryWz4DWTH-xTCOj4rJ0=03sgh6+vNGwZyW79cg@mail.gmail.com' \
    --to=jacobgerlach@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).