emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Madhu Rao <bgm-rao@ieee.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: HTML export of latex typesetting..
Date: Sun, 28 Nov 2010 20:56:09 +0100	[thread overview]
Message-ID: <87sjylmdd2.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <loom.20101121T193305-622@post.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1090 bytes --]

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.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      reply	other threads:[~2010-11-28 19:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 17:44 Madhu Rao
2010-11-21 18:11 ` Ahmed Fasih
2010-11-21 18:36   ` Madhu Rao
2010-11-28 19:56     ` David Maus [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=87sjylmdd2.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=bgm-rao@ieee.org \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Re: HTML export of latex typesetting..' \
    /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

Code repositories for project(s) associated with this 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).