2 tex-lookup.cc -- implement Tex_lookup
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
7 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "tex-lookup.hh"
12 #include "symtable.hh"
13 #include "dimension.hh"
16 #include "paper-def.hh"
17 #include "string-convert.hh"
20 Tex_lookup::Tex_lookup ()
25 Tex_lookup::Tex_lookup (Lookup const& s)
30 Tex_lookup::Tex_lookup (Symtables const& s)
35 Tex_lookup::~Tex_lookup()
40 Tex_lookup::afm_find (String s) const
42 return Lookup::afm_find (s, String ("\\char%d"));
46 Tex_lookup::dashed_slur (Array<Offset> controls, Real thick, Real dash) const
48 return embed (Ps_lookup::dashed_slur (controls, thick, dash));
52 Tex_lookup::embed (Atom a) const
54 a.str_ = "\\embeddedps{\n" + a.str_ + "}";
59 Tex_lookup::hairpin (Real width, bool decresc, bool continued) const
61 return embed (Ps_lookup::hairpin (width, decresc, continued));
65 Tex_lookup::plet (Real dy , Real dx, Direction dir) const
67 return embed (Ps_lookup::plet (dy, dx, dir));
71 Tex_lookup::ps_beam (Real slope, Real width, Real thick) const
73 return embed (Ps_lookup::ps_beam (slope, width, thick));
77 Tex_lookup::slur (Array<Offset> controls) const
79 return embed (Ps_lookup::slur (controls));
83 Tex_lookup::stem (Real y1, Real y2) const
85 return Lookup::stem (y1, y2, "\\kern %\\vrule width % height % depth %");
89 Tex_lookup::vbracket (Real &y) const
91 return embed (Ps_lookup::vbracket (y));