From 4afaeb84f39261ce7d9211c15ed4e89f1bf95176 Mon Sep 17 00:00:00 2001 From: wl Date: Sun, 13 Jan 2013 10:11:33 +0000 Subject: [eqn] Fix display of matrices in nroff output. Problem reported by Andy Spencer . * src/preproc/eqn/pile.cpp (pile_box::compute_metrics): Fix rounding. --- src/preproc/eqn/pile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/preproc/eqn/pile.cpp b/src/preproc/eqn/pile.cpp index 239e81b3..a511ce7e 100644 --- a/src/preproc/eqn/pile.cpp +++ b/src/preproc/eqn/pile.cpp @@ -1,5 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992, 2004, 2007, 2009 +/* Copyright (C) 1989-1992, 2004, 2007, 2009, 2013 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) @@ -40,7 +40,7 @@ int pile_box::compute_metrics(int style) printf(">?(\\n[" DEPTH_FORMAT "]+\\n[" HEIGHT_FORMAT "]+%dM)", col.p[i-1]->uid, col.p[i]->uid, default_rule_thickness*5); // round it so that it's a multiple of the vertical resolution - printf("/\\n(.V+(\\n(.V/2)*\\n(.V\n"); + printf("+(\\n(.V/2)/\\n(.V*\\n(.V\n"); printf(".nr " SUP_RAISE_FORMAT " \\n[" BASELINE_SEP_FORMAT "]*%d/2" "+%dM\n", -- cgit v1.2.1