Linked Questions

3
votes
1answer
41k views

How can I write an under dash in text without invoking italics or some weird font? [duplicate]

I would like to simply write a _ in latex. But when I compile it is makes the text afterwards italic and weird, how can I just write an under dash? For example: \indent Locate the file in /lbne/app/...
2
votes
1answer
2k views

How to disable super or subscripting in text mode [duplicate]

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? ...
1
vote
1answer
589 views

LaTeX won't compile because of use of _ in text [duplicate]

LaTeX won't let me use _ in my text, it keeps trying to compile it as math and therefore won't compile my pdf. Anyone knows how I can make it not do that? I'm using it in the following: \textit{...
1
vote
1answer
466 views

how to have underscore text get printed inside latex .tex document? [duplicate]

I have a latex document in which i have a variable whose value i am passing from different file. Following is the main latex .tex file. %Project information \newcommand*{\Title} {Build ...
1
vote
1answer
278 views

Writing text in math mode [duplicate]

I was writing an IEEE paper.I wanted to insert some texts like IMAGE_NEW and IMAGE_OLD but when I am writing it is showing me some error.How to solve this issue.
1
vote
0answers
249 views

How to display non-formatted mathematical like expression? [duplicate]

What I want to do is to display kl_div(y,x)-log(2)*y -2*x + 30 <= 0, x > 0, y > 0} in its original format, however LaTex maybe think that is a formula, and continuously warn me that Missing $ ...
1
vote
1answer
94 views

Underscore in fbox [duplicate]

How can I write the character _ in an \fbox? \fbox{PART one_Part two} Doesn't work.
0
votes
1answer
193 views

Including brackets inside text function [duplicate]

I am having a programming function with name WorkFunction_(). I am trying to highlight this function using \texttt{}, something like \texttt{WorkFunction_()}. However this ends in error. Could anyone ...
0
votes
0answers
145 views

How to solve “Missing $ inserted” error? [duplicate]

Here is my LaTeX code block.. It's combination of formula and sentences. If I run it, an error always occurs: "Missing $ inserted" in that part (code block part). \begin{itemize} \item \begin{...
0
votes
1answer
124 views

Type underline in latex [duplicate]

I was intending to type something like use_aesni = True in latex. Therefore, I type $use_aesni = True$. However, it becomes this.
1
vote
0answers
65 views

Error message: “I've inserted a begin-math/end-math symbol…” [duplicate]

In laTeX I have this line: <onEntry>do_something </onEntry> which is giving me this error: $ l.28 <onEntry>do_ something </onEntry> I've inserted a begin-math/end-math ...
0
votes
0answers
62 views

Problem with plain text [duplicate]

I would like to use something like this in my LaTeX document: P29_Ampl_1. After this I have got an error because I use _. I can solve it by insertign $ between the P29_Ampl_1 -> $P29_Ampl_1$. It cause ...
2
votes
0answers
34 views

Ignore math symbols (want underscore in regular text) [duplicate]

I want to include the following expression without any changes in my LaTeX document: RES_0.5_SE_5 If I just type like that, LaTeX wants it to be math mode because of the underscores. If I use \...
407
votes
2answers
200k views

Why should I use \usepackage[T1]{fontenc}?

As a native English speaker, I've mostly been allowed the luxury of pretending that ASCII is enough, and have been able to treat font encodings as not my problem. I've seen lots of advice that I ought ...
178
votes
6answers
304k views

When should one use \verb and when \texttt

Sometimes people here use \verb!A SHORT COMMAND! and sometimes \textt{A SHORT COMMAND}. I'm unsure when to use which. Are there any guidelines or arguments for \verbatim vs. \texttt?

15 30 50 per page