
#LATEX BRACKETS WITH SUBSCRIPT HOW TO#
This explanation would not be complete without stating how to restore the underscore to its original category code. If you need to subset text in math mode, the macro \sb can still be used in math mode for subscript.


Something else to note when using and opening and closing indicators, everything will be put on one line, so the code being put on several lines will not impact the end result. This way, you can go on about your happy life using the underscore as you normally would. Even though superscripts and subscripts are called on a regular object with the sigma operator, it is automatically aligned. For limit, you have to use subscript and superscript with Integral symbol. Theres no real reason for the outer bracket to encompass the big subscript, taking into account the big white space that would result at the top. \catcode`_=12 % alphabetic constant syntax Better choose square brackets, and decorate the closing with the limits 19. Choose one of the following syntaxes according to your preference: \catcode`\_=12 % alphabetic constant syntax Mathematical expressions Subscripts and superscripts Brackets and Parentheses. Here, we assign the underscore the same category code that most punctuation has. superscript latex - latex equation superscript an subscript both use. \usepackage givesįor those not interested the functionality of the underscore in LaTeX and just want it to function like any other character, the category code of the underscore can be changed to make it work as might be expected.\char`_ is tedious to write and looks confusing,.

The solution I like best is to put \chardef\_=`_ in the preamble and use \_ to typeset an underscore.
