From 9e8df486903c5e9c134230909b411a1a05cb782d Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 23 Sep 2015 23:36:16 +0000
Subject: modiagram (23sep15)

git-svn-id: svn://tug.org/texlive/trunk@38448 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/modiagram/modiagram.sty | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/modiagram/modiagram.sty')

diff --git a/Master/texmf-dist/tex/latex/modiagram/modiagram.sty b/Master/texmf-dist/tex/latex/modiagram/modiagram.sty
index 508c9410a44..b240da4c613 100644
--- a/Master/texmf-dist/tex/latex/modiagram/modiagram.sty
+++ b/Master/texmf-dist/tex/latex/modiagram/modiagram.sty
@@ -32,8 +32,8 @@
 \usetikzlibrary{calc,arrows}
 \ProvidesExplPackage
   {modiagram}
-  {2015/07/19}
-  {0.2f}
+  {2015/09/23}
+  {0.2g}
   {easy creation of molecular orbital diagrams}
 
 % --------------------------------------------------------------------------- %
@@ -210,8 +210,7 @@
 % place the right atom
 \cs_new_protected:Npn \__MOdiagram_molecule_position:n #1
   {
-    \fp_set_from_dim:Nn \l__MOdiagram_tmpa_fp { #1 }
-    \fp_set:Nn \l__MOdiagram_tmpa_fp { .5 * \l__MOdiagram_tmpa_fp }
+    \fp_set:Nn \l__MOdiagram_tmpa_fp { .5 * \dim_to_fp:n {#1} }
     \dim_set:Nn \l__MOdiagram_molecule_position_dim
       { \fp_to_dim:N \l__MOdiagram_tmpa_fp + \l__MOdiagram_left_atom_position_dim }
   }
@@ -593,7 +592,7 @@
 % place the x, y, and z orbitals
 \cs_new_protected:Npn \__MOdiagram_p_orbitals_shift:nnn #1#2#3
   {
-    \fp_set_from_dim:Nn \l__MOdiagram_tmpa_fp { \l__MOdiagram_AO_width_dim } 
+    \fp_set:Nn \l__MOdiagram_tmpa_fp { \dim_to_fp:n { \l__MOdiagram_AO_width_dim } }
     {
       \fp_set:Nn \l__MOdiagram_tmpa_fp { #1 * \l__MOdiagram_tmpa_fp }
       \dim_gset:Nn \l__MOdiagram_atom_px_shift_dim { \fp_to_dim:N \l__MOdiagram_tmpa_fp }
@@ -2081,6 +2080,7 @@ Version history
                         - change dependency from `textgreek' to `chemgreek'
 2014/06/28 version 0.2e - fix: adapt to deprecated expl3 command
 2015/07/19 version 0.2f - fix: adapt to deprecated expl3 command
+2015/09/23 version 0.2g - fix: adapt to deprecated expl3 command
 
 TODO
 - 3s, 3p , 3sMO , 3pMO , 4s , sp3
-- 
cgit v1.2.3

