emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to generate subscript followed overstriking in org-mode
@ 2017-05-01 13:16 XP Chen
  0 siblings, 0 replies; 5+ messages in thread
From: XP Chen @ 2017-05-01 13:16 UTC (permalink / raw)
  To: emacs-orgmode

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

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.    

    According to https://emacs.stackexchange.com/questions/31149/superscript-or-subscript-inside-italics-in-org-buffer-does-not-change-text-app ,  " *d1*._{sub} "  or " *d1* ._{sub} " can also done except a point in the char...

   So anyone have idea?

    Thanks.

 







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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to generate subscript followed overstriking in org-mode
       [not found] <96ea98d52f4448678e0f1a9ba9687d6b@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-05-01 15:49 ` Eric S Fraga
  2017-05-02  3:19   ` XP Chen
       [not found]   ` <3623af645062449491b89ede41561e4c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-05-01 15:49 UTC (permalink / raw)
  To: emacs-orgmode

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

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: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to generate subscript followed overstriking in org-mode
  2017-05-01 15:49 ` Eric S Fraga
@ 2017-05-02  3:19   ` XP Chen
       [not found]   ` <3623af645062449491b89ede41561e4c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 5+ messages in thread
From: XP Chen @ 2017-05-02  3:19 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to generate subscript followed overstriking in org-mode
       [not found]   ` <3623af645062449491b89ede41561e4c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-05-02  7:01     ` Eric S Fraga
  2017-05-02 10:56       ` XP Chen
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2017-05-02  7:01 UTC (permalink / raw)
  To: emacs-orgmode

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

On Tuesday,  2 May 2017 at 03:19, XP Chen wrote:
> So I choose using *bold*\mbox{}_{subscripted} , then in ODT file
> replace all the \mbox{} as blank...

You could probably write an export filter for ODT export which removes
the \mbox{} bits automatically...

-- 
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to generate subscript followed overstriking in org-mode
  2017-05-02  7:01     ` Eric S Fraga
@ 2017-05-02 10:56       ` XP Chen
  0 siblings, 0 replies; 5+ messages in thread
From: XP Chen @ 2017-05-02 10:56 UTC (permalink / raw)
  To: Eric S Fraga, emacs-orgmode

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

Haha, good idea but of my knowledge...

Thanks.







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

On Tuesday,  2 May 2017 at 03:19, XP Chen wrote:
> So I choose using *bold*\mbox{}_{subscripted} , then in ODT file
> replace all the \mbox{} as blank...

You could probably write an export filter for ODT export which removes
the \mbox{} bits automatically...

--
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-02 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 13:16 How to generate subscript followed overstriking in org-mode XP Chen
     [not found] <96ea98d52f4448678e0f1a9ba9687d6b@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-01 15:49 ` Eric S Fraga
2017-05-02  3:19   ` XP Chen
     [not found]   ` <3623af645062449491b89ede41561e4c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-02  7:01     ` Eric S Fraga
2017-05-02 10:56       ` XP Chen

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