From: W. Trevor King Date: Mon, 2 Apr 2012 17:03:00 +0000 (-0400) Subject: Use Chemical.abbrev instead of .name in LaTeX docs (to avoid long lines). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd73f306c4922fd016197e346da256645c565368;p=chemdb.git Use Chemical.abbrev instead of .name in LaTeX docs (to avoid long lines). --- diff --git a/chemdb/templates/chemdb/doc/door.tex b/chemdb/templates/chemdb/doc/door.tex index 555a412..f31fac1 100644 --- a/chemdb/templates/chemdb/doc/door.tex +++ b/chemdb/templates/chemdb/doc/door.tex @@ -28,7 +28,7 @@ \multicolumn{3}{c}{\Tstrut {{ title }} } \\ {% for chemical_instance in instance_group %} {{ chemical_instance.amount }} & {{ chemical_instance.id }} & - {{ chemical_instance.chemical.name|latex_safe|safe }} \\ + {{ chemical_instance.chemical.abbrev|latex_safe|safe }} \\ {% endfor %} {% endif %} {% endfor %} diff --git a/chemdb/templates/chemdb/doc/inventory.tex b/chemdb/templates/chemdb/doc/inventory.tex index 18c18ee..02c46a3 100644 --- a/chemdb/templates/chemdb/doc/inventory.tex +++ b/chemdb/templates/chemdb/doc/inventory.tex @@ -38,7 +38,7 @@ ID & Name & Amount & H & F & R & O & M & C & T \\ \hline \endhead{% for chemical_instance in chemical_instances %} {{ chemical_instance.id }} & - {{ chemical_instance.chemical.name|latex_safe|safe }} & + {{ chemical_instance.chemical.abbrev|latex_safe|safe }} & {{ chemical_instance.amount }} & {{ chemical_instance.chemical.health }} & {{ chemical_instance.chemical.fire }} &