straight single quote
![](https://secure.gravatar.com/avatar/c313bc70130201c69f5f563c3b491c6a.jpg?s=120&d=mm&r=g)
While I appreciate TeX's support for attractive curly quotes, when
representing console text it is important to use straight single and
double quotes. I've been googling, exploring the list archives, reading
the source, and beating my head against a nice blue pillar over by the
window. None of these approaches has resulting in a straight single
quote.
What is the best way to get a straight single quote that matches the
straight double quote of the current font?
--
Stuart Jansen
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Stuart Jansen wrote:
While I appreciate TeX's support for attractive curly quotes, when representing console text it is important to use straight single and double quotes. I've been googling, exploring the list archives, reading the source, and beating my head against a nice blue pillar over by the window. None of these approaches has resulting in a straight single quote.
What is the best way to get a straight single quote that matches the straight double quote of the current font?
\type{"} \type{'} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c313bc70130201c69f5f563c3b491c6a.jpg?s=120&d=mm&r=g)
On Wed, 2005-05-18 at 00:01 +0200, Hans Hagen wrote:
Stuart Jansen wrote:
While I appreciate TeX's support for attractive curly quotes, when representing console text it is important to use straight single and double quotes. I've been googling, exploring the list archives, reading the source, and beating my head against a nice blue pillar over by the window. None of these approaches has resulting in a straight single quote.
What is the best way to get a straight single quote that matches the straight double quote of the current font?
\type{"}
\type{'}
To expand on Hans' somewhat curt response for the next poor sap to
stumble down this road: "This is actually quite simple. Just make sure
you're using a font that includes a straight single quote. Computer
Modern doesn't have one."
Unfortunately, that doesn't actually appear to be the solution. On my
system at least, I'm getting commas with a raised baseline, not single
quotes. I've attached a PDF that demonstrates.
Is using a different font encoding worth exploring?
--
Stuart Jansen
![](https://secure.gravatar.com/avatar/c313bc70130201c69f5f563c3b491c6a.jpg?s=120&d=mm&r=g)
Well, I found the character I want in the two fonts I'm using. I'm sure
I don't understand all of the details, however.
\char129 gives the character I want, a true straight single quote. My
research seems to indicate that the position should be influenced by the
encoding of the current font, but this doesn't appear to be the case.
A cursory examination of
\usetypescript [sans] [vera] [ec]
\usetypescript [sans] [vera] [texnansi]
\usetypescript [sans] [vera] [8r]
all appear to produce the same result.
--
Stuart Jansen
participants (2)
-
Hans Hagen
-
Stuart Jansen