Re: Rupee symbol for LaTeX on Mac OS X

"Sridhar M.A." <[email protected]>
Newsgroups gmane.comp.tex.tugindia
Message-ID <[email protected]>
On Tue, Jan 4, 2011 at 8:15 AM, Kannan Moudgalya <kannan-dOeZK83GKW6f0DUV/[email protected]> wrote:
>
> Unfortunately, it does not work on LaTeX.  Thanks.
>
What I did to get the INR symbol was the following :

  Converted the ttf font to mf.
  Removed all the characters except ` which maps to the symbol in the font.
  Used that mf file in my local tree.
  Define a newcommand for the symbol as
      \newcommand{\inr}{{\font\x=inrr8\x `}\relax}

Might not be the best way or elegant, but it works :-) I am including
the mf file which I think can be used on any system that has LaTeX.

Regards,

The mf file is given below, if you want to try it :
==============
mode_setup;

u#:=1pt#;
define_pixels(u);
currenttransform:=currenttransform scaled u;

primarydef v picxor w =
 begingroup
  picture q; q=v+w; cull q keeping (1,1); q
 endgroup
enddef;


picture pom;
def neg expr p = pom:=nullpicture;
%        if turningnumber p=0:
          turningcheck:=0;
          addto pom contour p.t_;
          cull pom keeping (1,100);
          currentpicture:=currentpicture picxor pom;
          pom:=nullpicture;
          addto pom contour reverse p.t_;
          cull pom keeping (1,100);
          turningcheck:=2;
%        else: addto pom contour p.t_; fi
        currentpicture:=currentpicture picxor pom; enddef;
def c(expr a,b,c,d) = .. controls (a,b) and (c,d) .. enddef;

beginchar(96,5.0000u#,7.4316u#,-0.1416u#);
 neg (0.3760,7.4316)c(0.3760,7.4316,5.0732,7.4316)
(5.0732,7.4316)c(5.0732,7.4316,5.0732,7.4219)
(5.0732,7.4219)c(4.6582,6.7822,4.6045,6.7383)
(4.6045,6.7383)c(4.6045,6.7383,3.3496,6.7383)
(3.3496,6.7383)c(3.6084,6.4355,3.7012,6.0010)
(3.7012,6.0010)c(3.7012,6.0010,5.0391,6.0010)
(5.0391,6.0010)c(5.0635,5.9961,5.0635,5.9814)
(5.0635,5.9814)c(4.6143,5.3076,4.6045,5.3076)
(4.6045,5.3076)c(4.6045,5.3076,3.7354,5.3076)
(3.7354,5.3076)c(3.7061,4.9609,3.4033,4.4727)
(3.4033,4.4727)c(3.0029,3.9795,2.6367,3.8330)
(2.6367,3.8330)c(1.9531,3.5059,1.3281,3.5059)
(1.3281,3.5059)c(1.3281,3.5059,1.3281,3.4961)
(1.3281,3.4961)c(1.3281,3.4473,1.6357,3.0908)
(1.6357,3.0908)c(1.6357,3.0908,3.9551,0.2930)
(3.9551,0.2930)c(3.9551,0.2930,3.9551,0.1611)
(3.9551,0.1611)c(3.9551,0.1416,3.9307,0.1416)
(3.9307,0.1416)c(3.9307,0.1416,2.9102,0.1416)
(2.9102,0.1416)c(0.1563,3.3496,0.1563,3.3643)
(0.1563,3.3643)c(0.1563,3.3643,0.1563,4.0137)
(0.1563,4.0137)c(0.1563,4.0137,0.1660,4.0381)
(0.1660,4.0381)c(0.4102,4.0039,0.7373,4.0039)
(0.7373,4.0039)c(2.2803,4.0039,2.6562,5.0049)
(2.6562,5.0049)c(2.7148,5.1514,2.7148,5.3076)
(2.7148,5.3076)c(2.7148,5.3076,-0.0781,5.3076)
(-0.0781,5.3076)c(-0.0977,5.3076,-0.0977,5.3271)
(-0.0977,5.3271)c(0.3662,6.0010,0.3760,6.0010)
(0.3760,6.0010)c(0.3760,6.0010,2.5928,6.0010)
(2.5928,6.0010)c(2.5928,6.0010,2.5928,6.0107)
(2.5928,6.0107)c(2.4023,6.3965,1.8555,6.6113)
(1.8555,6.6113)c(1.4648,6.7383,1.1523,6.7383)
(1.1523,6.7383)c(1.1523,6.7383,-0.0879,6.7383)
(-0.0879,6.7383)c(-0.0879,6.7383,-0.0879,6.7627)
(-0.0879,6.7627)c(0.3613,7.4316,0.3760,7.4316)
(0.3760,7.4316)..cycle;
endchar;

font_size 10.0000u#;
font_normal_space 5.0000u#;
font_normal_stretch 2.9940u#;
font_normal_shrink 2.0000u#;
font_quad 5.0000u#;
font_extra_space 2.0000u#;
end;
=================


Regards,

-- 
Sridhar M.A.

_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.