emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question/bug report(?)


From: Max Nikulin
Subject: Re: A question/bug report(?)
Date: Wed, 30 Mar 2022 14:05:22 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 30/03/2022 12:14, Pedro Andres Aranda Gutierrez wrote:

Thanks for answering :-) I'm currently solving the issue with

#+BEGIN_export LaTeX
\begin{verbatim}[commandchars=\\\{\}]
student@juju:~$ \textbf{sudo bootstrap-juju.sh}
\end{verbatim}
#+END_export

What I was wondering is whether we could have something like:

#+ATTR_LATEX :raw t :attributes [commandchars=\\\{\}]
#+BEGIN_verbatim
student@juju:~$ \textbf{sudo bootstrap-juju.sh}
#+END_verbatim

I think, it is better to add :attributes parameter support to #+begin_example block. It may be added to org, for a while you can use a custom derived backend. See info "(org) Advanced Export Configuration" https://orgmode.org/manual/Advanced-Export-Configuration.html

You need to define an example-block filter, current implementation is https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-latex.el#n1853

I never tried it but perhaps it is possible to customize the listings LaTeX package for automatic highlighting of text after shell prompt. In Org #+begin_src blocks may use lstlisting environment.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]