From 5247de506c47fc6167f8e1cb3beee22109204313 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 23 Oct 2011 11:16:11 +0000 Subject: [PATCH] Import \textvisiblespace, \negmedspace and \negthickspace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39942 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/TODO.txt | 2 -- src/tex2lyx/test/box-color-size-space-align.tex | 2 ++ src/tex2lyx/text.cpp | 13 ++++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt index 201b5285d8..6f235e1f03 100644 --- a/src/tex2lyx/TODO.txt +++ b/src/tex2lyx/TODO.txt @@ -92,9 +92,7 @@ Format LaTeX feature LyX feature 409 XeTeX \use_non_tex_fonts 411 babel etc. \language_package 412 tabular* InsetTabular -414 \textvisiblespace InsetSpace 415 undertilde.sty fonts -416 \negmedspace, \negthinspace InsetSpace 416 \hfill, \enspace, \hspace*, InsetMathSpace \hspace*{\fill} diff --git a/src/tex2lyx/test/box-color-size-space-align.tex b/src/tex2lyx/test/box-color-size-space-align.tex index 6c529326b9..8c83d58768 100644 --- a/src/tex2lyx/test/box-color-size-space-align.tex +++ b/src/tex2lyx/test/box-color-size-space-align.tex @@ -313,6 +313,8 @@ We also handle defined spaces: Interword\ a +Visible\textvisiblespace{}a + Thin\,a Medium\:a diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 9665816486..d59081a10b 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -210,15 +210,18 @@ char const * const known_pdftex_graphics_formats[] = {"png", "pdf", "jpg", char const * const known_tex_extensions[] = {"tex", 0}; /// spaces known by InsetSpace -char const * const known_spaces[] = { " ", "space", ",", "thinspace", "quad", -"qquad", "enspace", "enskip", "negthinspace", "hfill", "dotfill", "hrulefill", -"leftarrowfill", "rightarrowfill", "upbracefill", "downbracefill", 0}; +char const * const known_spaces[] = { " ", "space", ",", +"thinspace", "quad", "qquad", "enspace", "enskip", +"negthinspace", "negmedspace", "negthickspace", "textvisiblespace", +"hfill", "dotfill", "hrulefill", "leftarrowfill", "rightarrowfill", +"upbracefill", "downbracefill", 0}; /// the same as known_spaces with .lyx names char const * const known_coded_spaces[] = { "space{}", "space{}", "thinspace{}", "thinspace{}", "quad{}", "qquad{}", "enspace{}", "enskip{}", -"negthinspace{}", "hfill{}", "dotfill{}", "hrulefill{}", "leftarrowfill{}", -"rightarrowfill{}", "upbracefill{}", "downbracefill{}", 0}; +"negthinspace{}", "negmedspace{}", "negthickspace{}", "textvisiblespace{}", +"hfill{}", "dotfill{}", "hrulefill{}", "leftarrowfill{}", "rightarrowfill{}", +"upbracefill{}", "downbracefill{}", 0}; /// These are translated by LyX to commands like "\\LyX{}", so we have to put /// them in ERT. "LaTeXe" must come before "LaTeX"! -- 2.39.2