* How to modify org-export-latex-emphasis-alist
@ 2010-10-03 20:30 Thomas S. Dye
2010-10-03 21:32 ` Sebastian Rose
0 siblings, 1 reply; 2+ messages in thread
From: Thomas S. Dye @ 2010-10-03 20:30 UTC (permalink / raw)
To: emacs-orgmode mailing list
Aloha all,
I use this patch locally to let the LaTeX url package typeset and
break lines in long path names. Is there a way to make this change
from my .emacs, so I can continue to use the Org-mode master branch
and not my url branch? Or, is there a better way to implement this
without changing the Org-mode core?
Changes from master to url
Modified lisp/org-latex.el
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 9a62457..920591a 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -230,7 +230,7 @@ are written as utf8 files."
("/" "\\emph{%s}" nil)
("_" "\\underline{%s}" nil)
("+" "\\st{%s}" nil)
- ("=" "\\verb" t)
+ ("=" "\\url{%s}" nil)
("~" "\\verb" t))
"Alist of LaTeX expressions to convert emphasis fontifiers.
Each element of the list is a list of three elements.
All the best,
Tom
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: How to modify org-export-latex-emphasis-alist
2010-10-03 20:30 How to modify org-export-latex-emphasis-alist Thomas S. Dye
@ 2010-10-03 21:32 ` Sebastian Rose
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Rose @ 2010-10-03 21:32 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode mailing list
"Thomas S. Dye" <tsd@tsdye.com> writes:
> Aloha all,
>
> I use this patch locally to let the LaTeX url package typeset and break lines in
> long path names. Is there a way to make this change from my .emacs, so I can
> continue to use the Org-mode master branch and not my url branch? Or, is there
> a better way to implement this without changing the Org-mode core?
Put this in your configuration file (.emacs probably):
(setq org-export-latex-emphasis-alist
'(("*" "\\textbf{%s}" nil)
("/" "\\emph{%s}" nil)
("_" "\\underline{%s}" nil)
("+" "\\st{%s}" nil)
("=" "\\url{%s}" nil)
("~" "\\verb" t)))
HTH
Sebastian
> Changes from master to url
> Modified lisp/org-latex.el
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 9a62457..920591a 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -230,7 +230,7 @@ are written as utf8 files."
> ("/" "\\emph{%s}" nil)
> ("_" "\\underline{%s}" nil)
> ("+" "\\st{%s}" nil)
> - ("=" "\\verb" t)
> + ("=" "\\url{%s}" nil)
> ("~" "\\verb" t))
> "Alist of LaTeX expressions to convert emphasis fontifiers.
> Each element of the list is a list of three elements.
>
> All the best,
> Tom
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-03 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-03 20:30 How to modify org-export-latex-emphasis-alist Thomas S. Dye
2010-10-03 21:32 ` Sebastian Rose
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).