emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* A question/bug report(?)
@ 2022-03-26  7:58 Pedro Andres Aranda Gutierrez
  2022-03-29 13:12 ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2022-03-26  7:58 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

I'm using org-mode mainly to generate LaTEX (both documents and
presentations). I'd like to know if there is any way to flag that the
contents of an EXAMPLE block should be passed RAW to LaTEX.
I need this to be able to include my colouring commands in some listings,
which otherwise break because some things like '...' are translated to
\ldots, etc.

An example:

#+ATTR_LATEX: :options [fontsize=\small,frame=single,commandchars=\\!|]
#+BEGIN_verbatim
\GreenLst!student@juju|:~$ sudo usermod -aG lxd $(whoami)
student@juju:~$ newgrp lxd
student@juju:~$ lxd init --auto
student@juju:~$ lxc network set lxdbr0 ipv6.address none
#+END_verbatim

Translates into:

\begin{verbatim}[fontsize=\small,frame=single,commandchars=\\!|]
\GreenLst!student@juju|:\textasciitilde{}\$ sudo usermod -aG lxd \((whoami)
student@juju:~\) newgrp lxd
student@juju:\textasciitilde{}\$ lxd init --auto
student@juju:\textasciitilde{}\$ lxc network set lxdbr0 ipv6.address none
\end{verbatim}

Where
\((whoami)
is obviously wrong.

Emacs 28.0.92 built yesterday.

GNU Emacs 28.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
cairo version 1.16.0) of 2022-03-23

Thanks a ton, /PA

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

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

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

end of thread, other threads:[~2022-03-30  7:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-26  7:58 A question/bug report(?) Pedro Andres Aranda Gutierrez
2022-03-29 13:12 ` Eric S Fraga
2022-03-29 14:44   ` Max Nikulin
2022-03-29 15:04     ` Eric S Fraga
2022-03-30  5:14   ` Pedro Andres Aranda Gutierrez
2022-03-30  7:05     ` Max Nikulin

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).