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

"Hook run at the end of HTML export, in the new buffer."


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

  -- 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.

      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 HTML export of latex typesetting 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:

  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 \


* 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


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).