]> git.lyx.org Git - features.git/commitdiff
Center longtable explicitly (#10690)
authorScott Kostyshak <skostysh@lyx.org>
Tue, 8 May 2018 15:18:07 +0000 (11:18 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 8 May 2018 21:42:43 +0000 (17:42 -0400)
"Center" is the default of longtable, but some situations require it
to be centered explicitly, such as when using floatrow:

https://tex.stackexchange.com/questions/320592/floatrow-package-conflicting-with-centering-longtable

(cherry picked from commit bde1834f7e81727545e014c24e27e148f6ba7d65)

src/insets/InsetTabular.cpp
status.23x

index 26397ea62af150075c66fb4aefa5544314e38123..7ca111c9d4d7bbac574c716290c7074ecde7ec9e 100644 (file)
@@ -2745,6 +2745,7 @@ void Tabular::latex(otexstream & os, OutputParams const & runparams) const
                        os << "[l]";
                        break;
                case LYX_LONGTABULAR_ALIGN_CENTER:
+                       os << "[c]";
                        break;
                case LYX_LONGTABULAR_ALIGN_RIGHT:
                        os << "[r]";
index 48a1330be0b8f520af6e9034ce60fe233c6d9f7f..49f5458b030fa0b6991ae11a66d50c2e5de10f78 100644 (file)
@@ -27,6 +27,8 @@ What's new
 
 - Needauth is not needed for exporting R code (only when executing the code).
 
+- Center longtable explicitly for compatibility with some packages (bug 10690).
+
 
 * TEX2LYX IMPROVEMENTS