Text FormattingSpacing issue with quotes

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
peaches2165
Posts: 25
Joined: Wed Oct 22, 2008 5:03 pm

Spacing issue with quotes

Post by peaches2165 »

Hi,

I am typesetting an article using the phrase

``only if" and ``if"

There is an issue with the end quote if" being to close to the "f". I've already tried"

if\ \! - this separates the space between the i and the f.

I also tried ``if'' and that did nothing.

Any suggestions?

Thanks,

Peaches

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Spacing issue with quotes

Post by Stefan Kottwitz »

Hi Peaches,

with \/ as separator, which actually means italic correction, it looks ok for me.

Code: Select all

\documentclass{article}
\begin{document}
``only if\/" and ``if\/" 
\end{document}
correction.png
correction.png (3.51 KiB) Viewed 3605 times
Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Spacing issue with quotes

Post by Johannes_B »

Do you know package csquotes? It sets quotation marks automatically, based on the language used.

Code: Select all

\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[autostyle=true]{csquotes}
\usepackage[french,german,english]{babel}
\begin{document}
\begin{tabular}{c}
``only if\/" and ``if\/" \\
\enquote{only if}\\
\selectlanguage{french}
\enquote{only if}\\
\selectlanguage{german}
\enquote{only if}\\
\end{tabular}
\end{document}
Hint: You can click on »Open in witelatex« to see the output.
Try commenting package fontenc in and out and compare the differences.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply