Text FormattingCompleting mathematical commands when I don't want it to

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mtgrace
Posts: 2
Joined: Thu Apr 09, 2015 1:37 pm

Completing mathematical commands when I don't want it to

Post by mtgrace »

Hi all, I hope this question is in the right place i've been searching everywhere to try and get something to work for me. I've only got a few days before my dissertation needs to be completed. I'm using the sharelatex website to write my project.
I'm hand writing my references list and obviously some of the references include website links, however some of the website links include underscores _ and this is causing the rest of the link to become italicized and sub scripted and the link runs off the page when compiled. I can put $ either side of the _ to stop the sub scripting but then it removes the _ giving a false link in my references. Is there anyway to make certain text immune to the general mathematical commands that latex always uses?
Many thanks in advance!

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Completing mathematical commands when I don't want it to

Post by Johannes_B »

Hi and welcome, package url provides a command that deals with that. It is called \url.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
mtgrace
Posts: 2
Joined: Thu Apr 09, 2015 1:37 pm

Re: Completing mathematical commands when I don't want it to

Post by mtgrace »

Thank you! You're a life saver :D
Post Reply