Fonts & Character SetsCorrect »`« in verbatim Environment with custom Font

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
AliceWonder
Posts: 28
Joined: Wed Oct 31, 2012 12:04 am

Correct »`« in verbatim Environment with custom Font

Post by AliceWonder »

Ages ago, before I even started using LaTeX, I purchased Lucida Mono EF in all four standard faces. It is not the same as the mono-spaced font that comes with Lucida Bright family, but it is same designers. It actually is quite similar to the Apple font Monaco (also same designers).

When I started using LaTeX I converted the font from OTF to Type 1 and followed the berry font install instructions. Here is the result:

Code: Select all

 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lucimono}[2007/01/31 v.0.3 lucimono (Lucida Mono) package]
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\renewcommand*{\ttdefault}{2lm}
\endinput
That has served me well for years, as you can see over 6 years now. But today I encountered a problem with the »`« character in the context of typesetting shell commands in verbatim:
lucida-mono.png
lucida-mono.png (10.44 KiB) Viewed 4063 times
It uses a smart single quote. I don't know how to even see if the font has an actual »`« character and if it does, how to specify the font use it. I assume I will have to update the .sty file. It has been so long since I did anything font related.

Can someone point me in the right direction?
Last edited by localghost on Sun Aug 04, 2013 9:48 am, 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

AliceWonder
Posts: 28
Joined: Wed Oct 31, 2012 12:04 am

Correct »`« in verbatim Environment with custom Font

Post by AliceWonder »

Stumbled upon the solution while reading "The LaTeX Companion" (2nd edition) looking for something else. The solution is to use the upquote package (after declaring the mono spaced font package).
Post Reply