X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1643" "Tue" "16" "September" "1997" "17:49:04" "+0100" "David Carlisle" "david@DCARLISLE.DEMON.CO.UK" nil "54" "Re: Need help for Romanian characters" "^Date:" nil nil "9" nil "Need help for Romanian characters" nil nil nil] nil) Received: from listserv.gmd.de (listserv.gmd.de [192.88.97.1]) by mail.Uni-Mainz.DE (8.8.5/8.8.5) with ESMTP id VAA05667; Tue, 16 Sep 1997 21:49:21 +0200 (MET DST) Received: from lsv1.listserv.gmd.de by listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <9.99CC7E3C@listserv.gmd.de>; Tue, 16 Sep 1997 21:47:32 +0200 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 199841 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Tue, 16 Sep 1997 21:48:35 +0200 Received: from punt-1.mail.demon.net (punt-1a.mail.demon.net [194.217.242.134]) by relay.urz.uni-heidelberg.de (8.7.6/8.7.4) with SMTP id VAA04326 for ; Tue, 16 Sep 1997 21:48:29 +0200 (MET DST) Received: from dcarlisle.demon.co.uk ([194.222.187.145]) by punt-1.mail.demon.net id aa1126122; 16 Sep 97 20:27 BST Received: by dcarlisle.demon.co.uk id m0xB0oC-000OW7C (Debian Smail-3.2 1996-Jul-4 #2); Tue, 16 Sep 1997 17:49:04 +0100 (BST) Message-ID: Reply-To: Mailing list for the LaTeX3 project In-Reply-To: <341E951E.CFB5BF34@dnt.ro> (message from Adrian Liviu LUDOSAN on Tue, 16 Sep 1997 17:18:06 +0300) Date: Tue, 16 Sep 1997 17:49:04 +0100 From: David Carlisle Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: Re: Need help for Romanian characters Status: R X-Status: X-Keywords: X-UID: 2318 > Because I want to do something portable I don't want to change the > fonts. I've tried something like (thanks to Ed Sznyter ews@Babel.Com): > ... > but this is not working all the fonts and for all the styles. That solution always pulls the `,' from math mode, so it comes from the same (roman) font, even if the current font is sans serif or whatever. > Is there a way to take the current font (without naming it explicitly) > and to scale it (decreasing)? yes, you just go \fontsize{something}{0pt}\selectfont. The question is what value to put for `something'. The suggestion below (\commaB) uses the value \ssf@size which is the internal comand NFSS uses to store the scriptscriptfont size for the current font. This value is not initialised until the first time math mode is used at a current size, so there is an empty math list first. Apart from the change in font the code is identical to the original, which centers the comma under the letter, I can not judge whether that is a good position, not knowing Romanian... As J"org mentioned in his reply, any such constructions will break hyphenation. To get hyphenation correct then you need to construct a (real or virtual) font. David \documentclass{article} \makeatletter \begin{document} \def\commaA#1{#1\vbox to 0pt{\vskip .15ex\hbox to 0pt{\setbox0=\hbox{#1}\kern -\wd0\hss$\scriptscriptstyle ,$\hss}\vss}} \def\commaB#1{#1\vbox to 0pt{\vskip .15ex\hbox to 0pt{\setbox0=\hbox{#1}\kern -\wd0\hss $\m@th$\fontsize\ssf@size\z@\selectfont,\hss}\vss}} \commaA{t} \commaB{t} \sffamily \commaA{t} \commaB{t} \ttfamily \commaA{t} \commaB{t} \end{document}