Text FormattingText becomes italic and runs off page

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
gking92
Posts: 2
Joined: Tue Mar 12, 2013 12:26 am

Text becomes italic and runs off page

Post by gking92 »

Hi there, I'm new to LaTeX and I've made what is most likely a rookie mistake... (apologies if this is really basic)

When I input the following

Code: Select all

In ACO 595, the 10th brightest galaxy has a B band magnitude of m_{B} = 15.60. In order
to detect more galaxies beyond this, this calculation uses a value 1 magnitude dimmer:
let m_{595} = 16.60.
it outputs past the number in italics and runs off the page like this Image

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Text becomes italic and runs off page

Post by mas »

gking92 wrote:Hi there, I'm new to LaTeX and I've made what is most likely a rookie mistake...
Everybody was a rookie at one time :-)
When I input the following

Code: Select all

In ACO 595, the 10th brightest galaxy has a B band magnitude of m_{B} = 15.60. In order
to detect more galaxies beyond this, this calculation uses a value 1 magnitude dimmer:
let m_{595} = 16.60.
You should post a Infominimal working example always so that people can compile that on their machines and help you with the errors. In the above code, you have used an underscore, m_{B} which is not allowed. It can be used only in math mode. Replace m_{B} = 15.60 by $m_{B} = 15.60$. You text snippet should be like this

Code: Select all

In ACO 595, the 10th brightest galaxy has a B band magnitude of $m_{B} = 15.60$. In order
to detect more galaxies beyond this, this calculation uses a value 1 magnitude dimmer:
let $m_{595} = 16.60$.
I would strongly suggest you to read some introductory LaTeX documents to get the idea.

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Text becomes italic and runs off page

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

Some introductory material, which may be helpful: LaTeX Resources for Beginners.

Stefan
LaTeX.org admin
Post Reply