I am seeing this in the body of the latex format for a journal I want to publish with. But it's prompting an error.

What does this mean CO\textsubscript and which package do I have to include to be able to use it?


This command was not part of LaTeX until 2015, so if you (or your publisher) are using an older version the command may not be defined by default.

In that case you need the subscript package: \usepackage{subscript}.

Another more comprehensive solution for pre-2015 distribution is the fixltx2e package (the elements of which are now incorporated into LaTeX itself).

Once the command is defined (by either package, or by an updated LaTeX core), you write CO\textsubscript{2} for carbon dioxide.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.