Generalquote paragraphs with inconsistent spacing

LaTeX specific issues not fitting into one of the other forums of this category.
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

quote paragraphs with inconsistent spacing

Post by webhead »

I have a document with several quotes, and the last paragraph in the quote is always double-spaced. If there's only one paragraph it is also double-spaced. The problem occurs whether I use quote or quotation. The text editor I use is TextWrangler (Mac), a free version of BBEdit.

Also, on occasion a word will stick out beyond the right margin, as if it didn't know how to hyphenate it. Is there something I can tweak for that?

Thanks in advance for any help.
Keep to the Code.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

quote paragraphs with inconsistent spacing

Post by Stefan Kottwitz »

Hi webhead,

the problem should be independent of the editor used. Could you post a minimal working example that shows this unwanted behaviour? Because when I used the quote environment the spacing used to be correct, for instance in this short example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}
\blindtext
\begin{quote}
  \blindtext 
\end{quote}
\blindtext
\end{document}
If some words cannot be hyphenated you could use the \hyphenation command.

Stefan
LaTeX.org admin
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

Re: quote paragraphs with inconsistent spacing

Post by webhead »

Ok, attached is the file. I think it has something to do with using scriptsize.
Attachments
quoteprob.pdf
quote spacing problem
(10.27 KiB) Downloaded 231 times
Keep to the Code.
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

quote paragraphs with inconsistent spacing

Post by webhead »

This also produces the problem:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}
\blindtext
\begin{quote}
	\scriptsize
	{\blindtext
	
	 \blindtext}
	\normalsize
\end{quote}
\blindtext
\end{document}
Keep to the Code.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: quote paragraphs with inconsistent spacing

Post by Stefan Kottwitz »

The \normalsize command affects the spacing. You could move it to the next paragraph. But probably you could remove \normalsize, because the effect of \scriptsize is limited to the quote environment.

Stefan
LaTeX.org admin
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

Re: quote paragraphs with inconsistent spacing

Post by webhead »

Yes, moving it down fixes the problem, thanks!

The reason I was putting it in at all was because it didn't go back to normal after the ending brace, but seems to work in the one case I removed it now. So I'll start removing those and see if the problem of not ending scriptsize returns.

Also, for the hyphens, I keep getting the error "not a character" in many cases, even in ordinary words. Any ideas?
Keep to the Code.
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

quote paragraphs with inconsistent spacing

Post by webhead »

It seems that scriptsize lasts for the whole paragraph, is that right? So then I have to use normalsize for sentence fragments?

For example,

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}
\blindtext
\begin{quote}
	\scriptsize
	{\blindtext
	
	 \blindtext}
	
	\scriptsize{1,2,3}This should be normal size.
	

\end{quote}
\blindtext
\end{document}
"This should be normal size" is still scriptsize.
Last edited by webhead on Sat Jul 19, 2008 7:29 pm, edited 1 time in total.
Keep to the Code.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: quote paragraphs with inconsistent spacing

Post by Stefan Kottwitz »

Which words are causing this error message?

Stefan
LaTeX.org admin
webhead
Posts: 26
Joined: Sat Jul 19, 2008 5:29 pm

quote paragraphs with inconsistent spacing

Post by webhead »

Stefan_K wrote:Which words are causing this error message?

Stefan
Anointed is one, I'll have to look up the others.

ADDED: This causes the error too:

Code: Select all

\hyphenation{pro-jects,lang-uage}
Last edited by webhead on Sat Jul 19, 2008 7:31 pm, edited 1 time in total.
Keep to the Code.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

quote paragraphs with inconsistent spacing

Post by Stefan Kottwitz »

webhead wrote:It seems that scriptsize lasts for the whole paragraph, is that right? So then I have to use normalsize for sentence fragments?
\scriptsize lasts until the next size changing command or until the end of the environment/group. You can change the size of a single word inside a paragraph if you want.

Stefan
LaTeX.org admin
Post Reply