emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "XP Chen" <chxp_moon@163.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How to generate subscript followed overstriking in org-mode
Date: Tue, 2 May 2017 11:19:36 +0800 (CST)	[thread overview]
Message-ID: <674fa97b.bd.15bc72b9f24.Coremail.chxp_moon@163.com> (raw)
In-Reply-To: <87vapkpof8.fsf@t3610>

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

 @@latex:\textbf{@@@@html:<b>@@bold@@latex:}@@@@html:</b>@@_{subscripted} works well for latex and pdf.

But cannot bold in ODT format... I think html exporter is the same as ODT format before, but a little different...

So I choose using *bold*\mbox{}_{subscripted} , then in ODT file replace all the \mbox{} as blank...







在2017年05月01 23时49分, "Eric S Fraga"<e.fraga@ucl.ac.uk>写道:

On Monday,  1 May 2017 at 13:16, XP Chen wrote:
> Hi, everyone,
>
>     How to generate subscript followed overstriking when export to latex or pdf, I want use general org-mode method to generate html format also.
>
>     Mix latex is ok as:      \textbf{d1}_{sub}
>
>     But org method like:  " *d1*_{sub} "  or   " *d1* _{sub} " cannot achieve.

The following works for me:  This is *bold*\mbox{}_{subscripted}
although probably only for LaTeX export... possibly okay for your use
case but not a general solution.

You could put inline LaTeX and HTML codes:

This is @@latex:\textbf{@@@@html:<b>@@bold@@latex:}@@@@html:</b>@@_{subscripted}

but this is incredibly ugly and difficult to parse...  but it works.
--
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.5-444-g998576

[-- Attachment #2: Type: text/html, Size: 1671 bytes --]

  reply	other threads:[~2017-05-02  3:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <96ea98d52f4448678e0f1a9ba9687d6b@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-01 15:49 ` How to generate subscript followed overstriking in org-mode Eric S Fraga
2017-05-02  3:19   ` XP Chen [this message]
     [not found]   ` <3623af645062449491b89ede41561e4c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-02  7:01     ` Eric S Fraga
2017-05-02 10:56       ` XP Chen
2017-05-01 13:16 XP Chen

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=674fa97b.bd.15bc72b9f24.Coremail.chxp_moon@163.com \
    --to=chxp_moon@163.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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
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

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