[gnumeric] Fix LaTeX export. [#489]



commit 94890053885edac8f23bfb245d026ea7035c7726
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed May 13 01:48:59 2020 -0600

    Fix LaTeX export. [#489]
    
    2020-05-13  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * latex.c (latex_file_save): use "1*" before \ratio

 NEWS                   | 1 +
 plugins/html/ChangeLog | 4 ++++
 plugins/html/latex.c   | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index a223e0ff6..a3462ab41 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Andreas:
        * Fix line end marker roundtrip through strict ODF
        * Improve export of line markers to ODF for interoperability
        * Improve line marker handling on import
+    * Fix LaTeX export. [#489]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.47
diff --git a/plugins/html/ChangeLog b/plugins/html/ChangeLog
index 52d0f3940..55402056e 100644
--- a/plugins/html/ChangeLog
+++ b/plugins/html/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-13  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+    * latex.c (latex_file_save): use "1*" before \ratio
+
 2020-05-09  Morten Welinder <terra gnome org>
 
        * Release 1.12.47
diff --git a/plugins/html/latex.c b/plugins/html/latex.c
index d96340194..99fa58f05 100644
--- a/plugins/html/latex.c
+++ b/plugins/html/latex.c
@@ -1321,7 +1321,7 @@ latex_file_save (GOFileSaver const *fs, G_GNUC_UNUSED GOIOContext *io_context,
 "\\setlength\\gnumericTableWidthComplete{\\gnumericTableWidth+%\n"
 "         \\tabcolsep*\\gumericNumCols*2+\\arrayrulewidth*\\gumericNumCols}\n"
 "\\ifthenelse{\\lengthtest{\\gnumericTableWidthComplete > \\linewidth}}%\n"
-"         {\\def\\gnumericScale{\\ratio{\\linewidth-%\n"
+"         {\\def\\gnumericScale{1*\\ratio{\\linewidth-%\n"
 "                        \\tabcolsep*\\gumericNumCols*2-%\n"
 "                        \\arrayrulewidth*\\gumericNumCols}%\n"
 "{\\gnumericTableWidth}}}%\n"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]