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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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: 10348
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