[plt-scheme] Help with a Font Issue

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Mon Apr 23 18:40:34 EDT 2007

Suppose you SLaTeX the following code fragment (with the ambient font
family set to Times):

(define (parse sexp)
  (cond
    [(number? sexp) (num sexp)]
    [(list? sexp)
     (case (first sexp)
       [(+) (add (parse (second sexp))
                 (parse (third sexp)))]
       [(-) (sub (parse (second sexp))
                 (parse (third sexp)))])]))

The - in the second CASE statement is set in sf.  Copying the
resulting code from the corresponding font-embedded PDF results in
something that *looks* on-screen like a "-", but does not match the
"-" you get from typing in that character on the keyboard.

Emacs does not manifest this problem.

For a test case, go to page 8 of

http://www.cs.brown.edu/~sk/Publications/Books/ProgLangs/PDF/plai-2006-01-15.pdf

and paste in the code, then the corresponding uses below.

Any thoughts or suggestions?

Shriram


Posted on the users mailing list.