* use of org-export-latex-verbatim-wrap
@ 2010-05-26 16:20 Juan Pechiar
2010-05-28 6:55 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Juan Pechiar @ 2010-05-26 16:20 UTC (permalink / raw)
To: Emacs-orgmode
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.
Saludos,
.j.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: use of org-export-latex-verbatim-wrap
2010-05-26 16:20 use of org-export-latex-verbatim-wrap Juan Pechiar
@ 2010-05-28 6:55 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-05-28 6:55 UTC (permalink / raw)
To: Juan Pechiar; +Cc: Emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-28 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 16:20 use of org-export-latex-verbatim-wrap Juan Pechiar
2010-05-28 6:55 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.