How to add a superscript in text modemakeindex page entries are all underlinedFeeding arguments to xstring macrosmacro for custom indexing with conditionals and text recognitionHow to Format Text AutomaticallyUsing newcommand to format numbers/strings according to a patternhow do I multiply a command argument with a constant?How do I get text above and below text?Add centered text to a figureHow to for latex automatically put long word in new lines?Rule for writing superscript in text mode
New order #4: World
Extreme, but not acceptable situation and I can't start the work tomorrow morning
Deciding between multiple birth names and dates?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How to deal with fear of taking dependencies
Unbreakable Formation vs. Cry of the Carnarium
Is every set a filtered colimit of finite sets?
How many letters suffice to construct words with no repetition?
Why is my log file so massive? 22gb. I am running log backups
Add an angle to a sphere
Need help identifying/translating a plaque in Tangier, Morocco
Is there a way to make member function NOT callable from constructor?
Can produce flame be used to grapple, or as an unarmed strike, in the right circumstances?
Why do UK politicians seemingly ignore opinion polls on Brexit?
How can I fix this gap between bookcases I made?
Is Fable (1996) connected in any way to the Fable franchise from Lionhead Studios?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Some basic questions on halt and move in Turing machines
Is domain driven design an anti-SQL pattern?
Where to refill my bottle in India?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
What do the Banks children have against barley water?
Shall I use personal or official e-mail account when registering to external websites for work purpose?
Why do we use polarized capacitors?
How to add a superscript in text mode
makeindex page entries are all underlinedFeeding arguments to xstring macrosmacro for custom indexing with conditionals and text recognitionHow to Format Text AutomaticallyUsing newcommand to format numbers/strings according to a patternhow do I multiply a command argument with a constant?How do I get text above and below text?Add centered text to a figureHow to for latex automatically put long word in new lines?Rule for writing superscript in text mode
I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this:
newcommandCstarCtextsuperscript*
While I have to invoke it as Cstar to prevent it from sticking to the next word, I have had trouble writing a command to add * to any word (such as morphism or isometry). I tried doing this:
newcommandstar[1]#1textsuperscript*
without luck.
Is this possible, and should I be doing this with LaTex, or is it something I should be doing with my editor's macros?
formatting text-manipulation
New contributor
add a comment |
I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this:
newcommandCstarCtextsuperscript*
While I have to invoke it as Cstar to prevent it from sticking to the next word, I have had trouble writing a command to add * to any word (such as morphism or isometry). I tried doing this:
newcommandstar[1]#1textsuperscript*
without luck.
Is this possible, and should I be doing this with LaTex, or is it something I should be doing with my editor's macros?
formatting text-manipulation
New contributor
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).
– Skillmon
2 hours ago
1
The commandstar
is already defined in LaTeX. You can tryStar
instead.
– Phelype Oleinik
2 hours ago
add a comment |
I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this:
newcommandCstarCtextsuperscript*
While I have to invoke it as Cstar to prevent it from sticking to the next word, I have had trouble writing a command to add * to any word (such as morphism or isometry). I tried doing this:
newcommandstar[1]#1textsuperscript*
without luck.
Is this possible, and should I be doing this with LaTex, or is it something I should be doing with my editor's macros?
formatting text-manipulation
New contributor
I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this:
newcommandCstarCtextsuperscript*
While I have to invoke it as Cstar to prevent it from sticking to the next word, I have had trouble writing a command to add * to any word (such as morphism or isometry). I tried doing this:
newcommandstar[1]#1textsuperscript*
without luck.
Is this possible, and should I be doing this with LaTex, or is it something I should be doing with my editor's macros?
formatting text-manipulation
formatting text-manipulation
New contributor
New contributor
edited 1 hour ago
David Carlisle
498k4111441893
498k4111441893
New contributor
asked 2 hours ago
user20402user20402
82
82
New contributor
New contributor
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).
– Skillmon
2 hours ago
1
The commandstar
is already defined in LaTeX. You can tryStar
instead.
– Phelype Oleinik
2 hours ago
add a comment |
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).
– Skillmon
2 hours ago
1
The commandstar
is already defined in LaTeX. You can tryStar
instead.
– Phelype Oleinik
2 hours ago
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.
documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).– Skillmon
2 hours ago
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.
documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).– Skillmon
2 hours ago
1
1
The command
star
is already defined in LaTeX. You can try Star
instead.– Phelype Oleinik
2 hours ago
The command
star
is already defined in LaTeX. You can try Star
instead.– Phelype Oleinik
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
In my opinion, the asterisk should be always in the upright font, independently of the context. Besides, textsuperscript*
would place the asterisk too high, see the last line in the image below.
Also C* should probably always appear upright, but you may decide otherwise.
Redefining star
could be safe in your context, but be aware that star
is the name of a symbol, namely ⋆, and you may want to save it under another name in case you decide to use it.
documentclassarticle
usepackageamsmath
newcommandStar[1]#1ensuremath^*kern-scriptspace
newcommandCStarStarensuremathmathrmC
begindocument
% the commands in upright text
We deal with CStar-algebras, with Starmorphisms
and Starisometries.
% the commands in italics context, such as theorems
textitWe deal with CStar-algebras, with Starmorphisms
and Starisometries.
% with textsuperscript*
textitWe deal with Ctextsuperscript*-algebras, with morphismstextsuperscript*
and isometriestextsuperscript*.
enddocument
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
user20402 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483857%2fhow-to-add-a-superscript-in-text-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In my opinion, the asterisk should be always in the upright font, independently of the context. Besides, textsuperscript*
would place the asterisk too high, see the last line in the image below.
Also C* should probably always appear upright, but you may decide otherwise.
Redefining star
could be safe in your context, but be aware that star
is the name of a symbol, namely ⋆, and you may want to save it under another name in case you decide to use it.
documentclassarticle
usepackageamsmath
newcommandStar[1]#1ensuremath^*kern-scriptspace
newcommandCStarStarensuremathmathrmC
begindocument
% the commands in upright text
We deal with CStar-algebras, with Starmorphisms
and Starisometries.
% the commands in italics context, such as theorems
textitWe deal with CStar-algebras, with Starmorphisms
and Starisometries.
% with textsuperscript*
textitWe deal with Ctextsuperscript*-algebras, with morphismstextsuperscript*
and isometriestextsuperscript*.
enddocument
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
add a comment |
In my opinion, the asterisk should be always in the upright font, independently of the context. Besides, textsuperscript*
would place the asterisk too high, see the last line in the image below.
Also C* should probably always appear upright, but you may decide otherwise.
Redefining star
could be safe in your context, but be aware that star
is the name of a symbol, namely ⋆, and you may want to save it under another name in case you decide to use it.
documentclassarticle
usepackageamsmath
newcommandStar[1]#1ensuremath^*kern-scriptspace
newcommandCStarStarensuremathmathrmC
begindocument
% the commands in upright text
We deal with CStar-algebras, with Starmorphisms
and Starisometries.
% the commands in italics context, such as theorems
textitWe deal with CStar-algebras, with Starmorphisms
and Starisometries.
% with textsuperscript*
textitWe deal with Ctextsuperscript*-algebras, with morphismstextsuperscript*
and isometriestextsuperscript*.
enddocument
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
add a comment |
In my opinion, the asterisk should be always in the upright font, independently of the context. Besides, textsuperscript*
would place the asterisk too high, see the last line in the image below.
Also C* should probably always appear upright, but you may decide otherwise.
Redefining star
could be safe in your context, but be aware that star
is the name of a symbol, namely ⋆, and you may want to save it under another name in case you decide to use it.
documentclassarticle
usepackageamsmath
newcommandStar[1]#1ensuremath^*kern-scriptspace
newcommandCStarStarensuremathmathrmC
begindocument
% the commands in upright text
We deal with CStar-algebras, with Starmorphisms
and Starisometries.
% the commands in italics context, such as theorems
textitWe deal with CStar-algebras, with Starmorphisms
and Starisometries.
% with textsuperscript*
textitWe deal with Ctextsuperscript*-algebras, with morphismstextsuperscript*
and isometriestextsuperscript*.
enddocument
In my opinion, the asterisk should be always in the upright font, independently of the context. Besides, textsuperscript*
would place the asterisk too high, see the last line in the image below.
Also C* should probably always appear upright, but you may decide otherwise.
Redefining star
could be safe in your context, but be aware that star
is the name of a symbol, namely ⋆, and you may want to save it under another name in case you decide to use it.
documentclassarticle
usepackageamsmath
newcommandStar[1]#1ensuremath^*kern-scriptspace
newcommandCStarStarensuremathmathrmC
begindocument
% the commands in upright text
We deal with CStar-algebras, with Starmorphisms
and Starisometries.
% the commands in italics context, such as theorems
textitWe deal with CStar-algebras, with Starmorphisms
and Starisometries.
% with textsuperscript*
textitWe deal with Ctextsuperscript*-algebras, with morphismstextsuperscript*
and isometriestextsuperscript*.
enddocument
answered 1 hour ago
egregegreg
732k8919303254
732k8919303254
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
add a comment |
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
Thank you, the upgright text is just what I was looking for.
– user20402
1 hour ago
add a comment |
user20402 is a new contributor. Be nice, and check out our Code of Conduct.
user20402 is a new contributor. Be nice, and check out our Code of Conduct.
user20402 is a new contributor. Be nice, and check out our Code of Conduct.
user20402 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483857%2fhow-to-add-a-superscript-in-text-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to TeX.SX! Note that it is usually best practice here to include a small example document that does only include the bare necessities to show what you're trying so far (e.g.
documentclassarticlenewcommandstar[1]#1textsuperscript*begindocumentstarFooenddocument
would suffice here).– Skillmon
2 hours ago
1
The command
star
is already defined in LaTeX. You can tryStar
instead.– Phelype Oleinik
2 hours ago