From: Uwe Stöhr Date: Tue, 25 Oct 2011 16:47:31 +0000 (+0000) Subject: tex2lyx: nothing to do for the new math spaces as shown by the updated TeX testfile X-Git-Tag: 2.1.0beta1~2500 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c5f5d559fbab0027674fa1c60c17eedd2900cc85;p=features.git tex2lyx: nothing to do for the new math spaces as shown by the updated TeX testfile git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39966 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt index f97bbf3416..fc30aadc33 100644 --- a/src/tex2lyx/TODO.txt +++ b/src/tex2lyx/TODO.txt @@ -82,6 +82,4 @@ Format LaTeX feature LyX feature 411 babel etc. \language_package 412 tabular* InsetTabular 415 undertilde.sty fonts -416 \hfill, \enspace, \hspace*, InsetMathSpace - \hspace*{\fill} diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 1dd90ad3e7..efaf11f5df 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -133,24 +133,6 @@ An URL: \url{http://www.lyx.org} \listoftables -\section{Phantoms} - -test\hphantom{Wow}test - -test\phantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test - -test\vphantom{Wow\textbackslash{}\&\%}test - -$test\hphantom{Wow}test$ - -\[ -test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test -\] - - -$test\vphantom{Wow\&\%}test$ - - \section{Graphics\index{Graphics}} There is also some basic support for graphics, in the form @@ -326,6 +308,76 @@ test \textcolor{red}{\rule[-4ex]{5in}{1cm}} +\subsection{Spaces} + +simple: a\ b + +simple, protected: a~b + +thin: a\,b + +medium: a\negthinspace{}b + +thick: a\negmedspace{}b + +negative thin: a\negthinspace{}b + +negative meduim: a\negmedspace{}b + +negative thick: a\negthickspace{}b + +half quad: a\enskip{}b + +half quad, protected: a\enspace{}b + +a\quad{}b + +a\qquad{}b + +hfill: a\hfill{}b + +hfill, protected: a\hspace*{\fill}b + +custom,: a\hspace{1cm}b + +custom, protected: a\hspace*{1cm}b + +visible: a\textvisiblespace{}b + + +\subsubsection*{now some math examples:} + +$a\hfill b$ + +$a\hspace*{2cm}b$ + +$a\hspace{1cm}b$ + +$a\hspace*{\fill} b$ + +$a\enskip b$ + +$a\enspace b$ + + +\subsection{Phantoms} + +test\phantom{Wow}test + +test\phantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test + +test\phantom{Wow\textbackslash{}\&\%}test + +$test\hphantom{Wow}test$ + +\[ +test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test +\] + + +$test\vphantom{Wow\&\%}test$ + + \subsection{Line breaks} They can also or be broken by a newline\\