emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Juan Pechiar <pechiar@computer.org>
Cc: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: use of org-export-latex-verbatim-wrap
Date: Fri, 28 May 2010 08:55:32 +0200	[thread overview]
Message-ID: <6B09059B-4D06-4688-9775-294FCD5422F8@gmail.com> (raw)
In-Reply-To: <20100526162001.GA32657@soloJazz.com>


On May 26, 2010, at 6:20 PM, Juan Pechiar wrote:

> Trying to adjust the style for fixed-width sections in LaTeX export
> (drawers in particular), I found org-latex.el defines a customizable
> wrapper for verbatim sections:
>
>   (defcustom org-export-latex-verbatim-wrap
>     '("\\begin{verbatim}\n" . "\\end{verbatim}\n")
>     "Environment to be wrapped around a fixed-width section in LaTeX
>     export.
>   This is a cons with two strings, to be added before and after the
>   fixed-with text.
>
> But this variable is _only_ used in org-exp.el in function
> org-export-format-source-code-or-example
>
> All other fixed-width latex generation uses explicit "\verbatim" text
> instead of the wrapper variables.
>
> Is this the only intended use for org-export-latex-verbatim-wrap?
>
> If not, then I can look into this and provide a patch for using the
> wrapper variable in all appropriate places.

Hi Juan,

I would not want to use this also for drawers - it is really meant for  
example sections.

For formatting drawers, please take a look at the variable org-export- 
format-drawer-function.  You can set it to a function which does the  
formatting of the drawer any way you like.  An example of how such a  
function has to be written is the function org-export-format-drawer.

Greetings

- Carsten

>
> Saludos,
> .j.
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      reply	other threads:[~2010-05-28  7:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26 16:20 use of org-export-latex-verbatim-wrap Juan Pechiar
2010-05-28  6:55 ` Carsten Dominik [this message]

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=6B09059B-4D06-4688-9775-294FCD5422F8@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pechiar@computer.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).