@@ -156,8 +156,8 @@ transformPicMath opts (Image attr@(id', cls, _) lab (src,t)) = catchError
156156 let dims =
157157 case (getDim Width, getDim Height) of
158158 (Just w, Just h) -> [("width", show w), ("height", show h)]
159− (Just w@(Percent _), Nothing) -> [("width", show w), ("style:rel-height", "scale")]
160− (Nothing, Just h@(Percent _)) -> [("style:rel-width", "scale"), ("height", show h)]
159+ (Just w@(Percent p), Nothing) -> [("width", show w), ("height", show (p / ratio) ++ "%")]
160+ (Nothing, Just h@(Percent p)) -> [("width", show (p * ratio) ++ "%"), ("height", show h)]
161161 (Just w@(Inch i), Nothing) -> [("width", show w), ("height", show (i / ratio) ++ "in")]
162162 (Nothing, Just h@(Inch i)) -> [("width", show (i * ratio) ++ "in"), ("height", show h)]
163163 _ -> [("width", show ptX ++ "pt"), ("height", show ptY ++ "pt")]