2

Writing a report with some part numbers, for example "partname_123". I want to write the underline as a underline and not as sub-scripting. How do I disable the super/sub-scripting in a regular text? is there a general command I can use or just a command for the specific word, like: \ignore-super-sub-scripting{partname_123}

-Using a sharelatex template that I found: Business report (version 1)

Stefan Pinnow
  • 29,535
Punch
  • 21
  • partname\_123 – egreg Jul 29 '16 at 13:28
  • 6
    For the superscript part, see http://tex.stackexchange.com/questions/77646/how-to-typset-the-symbol-caret-circumflex-hat If you want to see different possibilities to "prettify" the underscore, you can also see http://tex.stackexchange.com/questions/48632/underscores-in-words-text – Willie Wong Jul 29 '16 at 13:31
  • One can (but probably shouldn't) try to redefine the meaning of underscores in text mode and revert to its regular meaning in math mode. Above my pay grade. – JPi Jul 29 '16 at 13:53

1 Answers1

1

I take my comment back. There's a package for this!

\documentclass{article}


\usepackage{underscore}


\begin{document}
    This_is_probably_not a_good_idea.
\end{document}
JPi
  • 13,595
  • You should move this answer to the question linked as duplicate. – egreg Jul 29 '16 at 13:59
  • I have added it there, but I don't think it's a duplicate. The question there relates to the look of the underscore, not the procedure for obtaining it. – JPi Jul 29 '16 at 14:05
  • 1
    It says clearly how to get the underscore. Every basic guide explains that the underscore can be obtained by doing \_ and that _ is, by default, a special character. – egreg Jul 29 '16 at 14:07
  • Sorry for the ambiguity: this question is about how to get the underscore when entered as _ to produce an underscore. The other question is about how to make the underscore look prettier. – JPi Jul 29 '16 at 14:10
  • I don't agree: the OP simply didn't know how to produce the underscore. It's a well known newbie problem. – egreg Jul 29 '16 at 14:12
  • Ok, you're probably right in that's what s/he intends to ask, but that's not what the question says. – JPi Jul 29 '16 at 14:15