emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: HTML export of latex typesetting..


From: David Maus
Subject: Re: [Orgmode] Re: HTML export of latex typesetting..
Date: Sun, 28 Nov 2010 20:56:09 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Sun, 21 Nov 2010 18:36:27 +0000 (UTC),
Madhu Rao wrote:
>
> Ahmed Fasih <fasih.1 <at> osu.edu> writes:
>
> >
> > > I have a few latex fragments - textbf{some text} in an org-mode file.
> > > When I export to HTML, I see them as \textbf{some text}. Is there a way to
> > > get them bold faced in the HTML export?
> >
> > I use the org mode markup, *some text* which gets exported correctly
> > to both Latex and HTML. Hope this helps.
>
> Thanks Ahmed. Actually, I need to do the following:
> bold-face only a letter of a word. Ex: \textbf{E}macs. orgmode markup
> does not work for this: *E*macs.

You might try to use a lisp functions that is run in

`org-export-html-final-hook'
"Hook run at the end of HTML export, in the new buffer."

E.g.

(defun my/replace-latex-markup ()
  "Replace LaTeX markup like textbf with html tags."
  (interactive)
  (replace-regexp "\\\\textbf{\\([^}]+\\)}" "<strong>\\1</strong>"))
(add-hook 'org-export-html-final-hook 'my/replace-latex-markup)

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden

Attachment: pgpu4yTkfmGNp.pgp
Description: PGP signature


reply via email to

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