[OS X TeX] howto do smart (double) quotes with texshop

kp gores kp.gores at web.de
Tue Jun 18 15:10:20 EDT 2002



back in time I used alpha as my tex editor. alpha has the nice 
feature of smart (double) quotes, as coded in latexsmart.tcl (I 
changed the original to get german quotes):

proc smartDQuote {} {
     global TeXmodeVars
     if { !$TeXmodeVars(smartQuotes) || [literalChar] } { typeText {"}; return }
     if {[leftQ]} {
			typeText {"`}
			#typeText {``}
     } else {
	typeText {"'}
	#typeText {''}
     }
}

proc smartQuote {} {
     global TeXmodeVars
     if { !$TeXmodeVars(smartQuotes) || [literalChar]  } { typeText 
{'}; return }
     if {[leftQ]} {
	typeText {`}
     } else {
	typeText {'}
     }
}

this has the effect that, whenever I type e.g. a " (double quote), 
alpha replaces it at the beginning/end of a word with the correct 
latex sequence for the german beginning/ending d.quote.
is it possible to have a similar feature with texshop?

and another dumb, simple tex question, to which I forgot the answer: 
in my letter i  wrote:

... "DDC 2 B, 2 Bi" and ...

which is typeset as:

... "DDC 2 B, 2 Biänd ...

how do i tell tex to not see the quotes and the a as an ä?
i helped myself by writing

... "DDC 2 B, 2 Bi"{} and ...

but the solution i onced had was surely a lot easier.

thanks in advance

  kp gores
-- 
superegos talker

-----------------------------------------------------------------
Threaded list archives can be found at:
<http://www.masda.vxu.se/~pku/MacOSX_TeX/>
-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------




More information about the MacOSX-TeX mailing list