Ticket #38787

Superscripts & subscripts in CJK text

Date d'ouverture: 2018-12-05 01:57 Dernière mise à jour: 2018-12-05 09:14

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

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
Commentaire

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

Modifier

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