GeneralHow to wrap a word containing a slash character?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
perl0101
Posts: 8
Joined: Sat Aug 29, 2009 3:59 am

How to wrap a word containing a slash character?

Post by perl0101 »

Hello everyone,

How can I wrap a word in an abstract containing a slash character, for example, cat/dog? Now this kind of word can not be wrapped around. They are too long for a line.

Thanks in advance

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: How to wrap a word containing a slash character?

Post by frabjous »

How exactly do you want it to look?

Like

.... cat/
dog ...

or

... cat/-
dog ...

If the latter, then cat/\-dog should work. (Put in \- anywhere else in the word where it is OK to break too.)
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

How to wrap a word containing a slash character?

Post by phi »

Code: Select all

cat\slash doc
Post Reply