Text FormattingItalicizing more than one Paragraph

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Italicizing more than one Paragraph

Post by snowfrog »

Hi,

I have a section in a manuscript that requires that all the paragraphs be italicized. Do I have to write add \textit e.g. at the beginning of each paragraph

Code: Select all

\textit{paragraph1}
\textit{pargraph2}
\textit{and so on...}
or is there a way to have the entire section in italics with a single command?

Thank you
Last edited by snowfrog on Wed Jan 18, 2012 12:36 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Italicizing more than one Paragraph

Post by localghost »

For this purpose there are several switches to get different font styles. In this case the \itshape command should do.


Thorsten
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Italicizing more than one Paragraph

Post by snowfrog »

In this case the \itshape command should do.
I tried

Code: Select all

\itshape{paragraph1

paragraph2}

and so on...
where I want paragraph1 and paragraph2 in italics but not "and so on..." but "and so on..." is in italics. What am I doing wrong?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Italicizing more than one Paragraph

Post by localghost »

These commands are switches which don't have any argument. You have to use another switch to get back.

Code: Select all

\itshape
% Text passage to be italicized
\upshape
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Re: Italicizing more than one Paragraph

Post by snowfrog »

Perfect. Thank you for the prompt response
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Italicizing more than one Paragraph

Post by Stefan Kottwitz »

Instead of switching back by \upshape, you could use grouping to limit the scope of \itshape, such as

Code: Select all

{\itshape your italic text} other text
or

Code: Select all

\begingroup
  \itshape
  your italic text
\endgroup
other text
which could be meaningful if it's not clear if the text outside is really upshape, and stays so.

Stefan
LaTeX.org admin
Post Reply