Ticket #38787

Superscripts & subscripts in CJK text

오픈 날짜: 2018-12-05 01:57 마지막 업데이트: 2018-12-05 09:14

Reporter:
(Anonymous)
소유자:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

In CJK text, there is a space before superscripts and subscripts which are made by commands like \textsuperscript.

Ticket History (2/2 Histories)

2018-12-05 01:57 Updated by: None
  • New Ticket "Superscripts & subscripts in CJK text" created
2018-12-05 09:14 Updated by: h7k
댓글 올리기

A quick solution is to redefine \textsuperscript and \textsubscript as below (prepend and append \null). But I fear its side-effect.

\makeatletter \DeclareRobustCommand*\textsuperscript[1]{
\ifhmode\null\fi\@textsuperscript{\selectfont#1}\null}
\DeclareRobustCommand*\textsubscript[1]{
\ifhmode\null\fi\@textsubscript{\selectfont#1}\null}
\makeatother

cf. (u)pLaTeX seem to have the same behavior. I created an issue: https://github.com/texjporg/platex/issues/82

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login