Text FormattingWhy do I get tiny text after closing \scriptsize

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
joe74
Posts: 15
Joined: Tue Mar 24, 2009 6:17 am

Why do I get tiny text after closing \scriptsize

Post by joe74 »

I've been fighting with this document I did this evening. I thought it may be some bug or an error in my TeXlive distribution, but no. It happens the same in an online latexpdf tool I found. It generates the same pdf as the one I did this evening.

I'm using this:

Code: Select all

\documentclass[letterpaper,12pt]{article}

\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{fontenc}
\usepackage{graphicx}

#...skipped...

\scriptsize{
	\begin{verbatim}
	linux:~ # gedit /etc/fstab
	\end{verbatim}
	}

Text text text text, text text. Text text text text, text text. Text, text text text, text text. Text text text text, text text. Text.
Everything comes right until I close "}", text starts to appear much more tiny in the output. I use \scriptsize{} more ahead in document and this keeps the subsequent text getting more and more tiny. I got no error in log message. Does anybody knows what is it all about? Did I miss something?

Thank you in advance.
Last edited by joe74 on Tue Mar 24, 2009 9:53 am, edited 1 time in total.
joe74
http://latexlive.wordpress.com/
TeX Live 2009/TeXmaker
Powered by Debian Squeeze

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Why do I get tiny text after closing \scriptsize

Post by sommerfee »

\scriptsize does not have an argument, so you have to write

Code: Select all

{\scriptsize ...}
instead.
User avatar
joe74
Posts: 15
Joined: Tue Mar 24, 2009 6:17 am

Re: Formatting changes...

Post by joe74 »

Oh, my... Error of mine.

Thanks for the help.
joe74
http://latexlive.wordpress.com/
TeX Live 2009/TeXmaker
Powered by Debian Squeeze
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Why do I get tiny text after closing \scriptsize

Post by Juanjo »

Just a couple of alternatives which may be more suited for long blocks of text:

Code: Select all

\scriptsize ...... \normalsize
or

Code: Select all

\begin{scriptsize} ...... \end{scriptsize}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply