commit eca2b139ff8def73dceee68d254c8183a163db48
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Aug 10 11:56:50 2025 +0200
tex2lyx: recognize geometry option aliases (e.g. right for rmargin)
---
src/tex2lyx/Preamble.cpp | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index 4e6fa6e4e1..17b8b04ea4 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -173,12 +173,19 @@ const char * const known_latex_paper_sizes[] = {
"a0paper", "b0paper", "c0paper"
"c5paper", "a6paper", "b6paper", "c6paper", "executivepaper", "legalpaper",
"letterpaper", "b0j", "b1j", "b2j", "b3j", "b4j", "b5j", "b6j", 0};
-const char * const known_paper_margins[] = { "lmargin", "tmargin", "rmargin",
-"bmargin", "headheight", "headsep", "footskip", "columnsep", 0};
-
-const char * const known_coded_paper_margins[] = { "leftmargin", "topmargin",
-"rightmargin", "bottommargin", "headheight", "headsep", "footskip",
-"columnsep", 0};
+const char * const known_paper_margins[] = {
+"lmargin", "left", "inner",
+"tmargin", "top",
+"rmargin", "right", "outer",
+"bmargin", "bottom",
+"headheight", "headsep", "footskip", "columnsep", 0};
+
+const char * const known_coded_paper_margins[] = {
+"leftmargin", "leftmargin", "leftmargin",
+"topmargin", "topmargin",
+"rightmargin", "rightmargin", "rightmargin",
+"bottommargin", "bottommargin",
+"headheight", "headsep", "footskip", "columnsep", 0};
/// commands that can start an \if...\else...\endif sequence
const char * const known_if_commands[] = {"if", "ifarydshln", "ifbraket",
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs