diff options
Diffstat (limited to 'molecule.cc')
-rw-r--r-- | molecule.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/molecule.cc b/molecule.cc index 5ab384f87d..8fca34836b 100644 --- a/molecule.cc +++ b/molecule.cc @@ -29,11 +29,12 @@ String Atom::TeXstring() const { // whugh.. Hard coded... - String s("\\raise"); - s+= print_dimen(off.y) +"\\hbox to 0pt{\\kern "; - s+= print_dimen(off.x); - s+= sym.tex + "\\hss}"; - return s; + String s("\\placebox{%}{%}{%}"); + svec<String> a; + a.add(print_dimen(off.y)); + a.add(print_dimen(off.x)); + a.add(sym.tex); + return substitute_args(s, a); } |