Uwe Stöhr
9960709fc2
tex2lyx/Preamble.cpp: handle \LyX
...
The definition for \LyX is re-added if the file contains \LyX
2015-05-25 02:02:10 +02:00
Uwe Stöhr
111df7b600
tex2lyx/Preamble.cpp: handle \lyxline
2015-05-25 01:48:28 +02:00
Uwe Stöhr
a7db473445
tex2lyx/Preamble.cpp: handle \lyxarrow
...
this fixes error 20 in bug #9565
2015-05-25 01:40:59 +02:00
Uwe Stöhr
77c8599658
tex2lyx/test/test-insets.tex: remove the \lyxline stuff
...
the \lyxline hack has gone from LyX long time ago. Therefore only one reference is enough
2015-05-25 01:38:52 +02:00
Uwe Stöhr
429f4669b0
test-insets-basic.tex: remove (in my opinion) wrong parser test
...
for more info see bug #9563
2015-05-25 01:07:35 +02:00
Uwe Stöhr
32cc0d2b2f
tex2lyx/test/test-insets.tex: don't say that this is a LyX file
...
With the now removed command we said that this is a file created by LyX but this is not the case
- also replace a comment to avoid LaTeX warnings about mixing title and non-title stuff
2015-05-25 00:53:59 +02:00
Uwe Stöhr
1a8b74f5e1
tex2lyx: use correct LaTeX code for a table
...
before LyX 2.1 was released the dcolumn support was dropped and another method was used to align at the decimal point. Nevertheless the old LaTeX table was even wrong in terms of dcolumn
Now a table is used that uses the decimal alignment as it is supported by LyX
2015-05-25 00:17:18 +02:00
Kornel Benko
701a100d0b
Adapt tex2lyx tests to Uwe's changes
2015-05-24 19:39:16 +02:00
Uwe Stöhr
e69124ab76
test-insets-basic.tex: add new testfile
...
The idea is to get a compilable file that does not require programs that are only available on certain platforms.
For example on Windows there is no Gnumeric available (only a very outdated and unsupported version with bugs).
2015-05-24 18:42:46 +02:00
Uwe Stöhr
410918400c
tex2lyx/test/test-insets.tex: avoid 2 error messages
2015-05-24 18:38:40 +02:00
Uwe Stöhr
82c7669381
Dummy Document.tex: this file was missing but input in our test file
2015-05-24 18:06:02 +02:00
Uwe Stöhr
eb90d531be
tex2lyx/test/test-insets.tex: input an existing file to avoid errors ad warnings
2015-05-24 18:05:16 +02:00
Uwe Stöhr
e1c04e56e1
delete test file verbatim.tex
...
because we already check for verbatim in test-structure.tex
2015-05-24 17:20:55 +02:00
Uwe Stöhr
041a3add6c
tex2lyx/Preamble.cpp: fix bug #9561
...
there were 2 issues:
- the body was not output to the Preamble
- the theorem module already defines a theorem. It must not be output to the preamble to avoid a redefinition error of LaTeX
update the test files accordingly
2015-05-24 17:03:13 +02:00
Juergen Spitzmueller
19b6248498
Update tex2lyx test after dbe0096c126f9
2015-05-24 14:23:20 +02:00
Juergen Spitzmueller
ee41b0f193
Forgotten tex2lyx change in dbe0096c126f9
2015-05-24 14:21:36 +02:00
Juergen Spitzmueller
dbe0096c12
Rename ref prefix "sub:" to "subsec:"
...
This solves a macro conflict between subfloat's \subref and our own
\subref definition (bug #7550 )
File format change.
2015-05-24 13:50:21 +02:00
Uwe Stöhr
175568b797
tex2lyx/test/test-insets.lyx.lyx: update according the the recent text2lyx fixes
2015-05-22 22:03:02 +02:00
Jean-Marc Lasgouttes
c444fddc0b
Use macro LYX_USE_CXX11 in one more location
...
This is a follow-up to commit 329eae56.
2015-05-22 12:41:30 +02:00
Uwe Stöhr
96874489f4
tex2lyx/text.cpp: avoid a tex2lyx error message
2015-05-20 22:26:42 +02:00
Uwe Stöhr
437d0d2b10
tex2lyx/text.cpp: a fix for \fboxcolor around \parbox and minipage
2015-05-20 21:37:14 +02:00
Uwe Stöhr
896d0e00ca
box-color-size-space-align.lyx.lyx: update file
2015-05-20 00:15:03 +02:00
Uwe Stöhr
bf532908b6
tex2lyx/text.cpp: remove an unintended addition
2015-05-20 00:05:12 +02:00
Uwe Stöhr
013eb54270
tex2lyx/text.cpp: fixes for \mbox{}
...
now all box constructs should be fully supported by tex2lyx
2015-05-19 23:35:56 +02:00
Uwe Stöhr
8f3ed42294
tex2lyx/text.cpp: remove a now unnecessary hack
...
\framebox{} is equal to \fbox{} and \makebox{} is equal to \mbox{}
When I once wrote this code LyX did not support \fbbox and \mbox and therefore had to use a workaround.
2015-05-19 23:25:36 +02:00
Uwe Stöhr
f996cf74b8
tex2lyx/text.cpp: set correct alignment for \makebox{test}
...
also fix an indentation error
2015-05-19 03:25:55 +02:00
Uwe Stöhr
c3178903d4
tex2lyx/text.cpp: coding style improvements and code simplification
2015-05-19 03:03:35 +02:00
Uwe Stöhr
290e7a9e09
tex2lyx/text.cpp: fix a bug I introduced with [c7a11c1d/lyxgit]
2015-05-19 02:29:16 +02:00
Uwe Stöhr
1ace9f5ac2
tex2lyx/text.cpp: add support for box alignment
...
the nasty hack with the FIXME is due to bug #9552
2015-05-19 02:19:24 +02:00
Uwe Stöhr
78aeccc19a
tex2lyx/text.cpp: code simplification
2015-05-19 00:24:13 +02:00
Uwe Stöhr
6ae2a8bcbe
tex2lyx/Preamble.cpp: forgot a package in previous commit
2015-05-19 00:21:12 +02:00
Uwe Stöhr
0471fe366a
tex2lyx: register required packages for boxes
2015-05-19 00:17:08 +02:00
Uwe Stöhr
bcc423c7ea
tex2lyx/text.cpp: support for \fcolorbox
...
and a fix also for \colorbox
2015-05-19 00:04:45 +02:00
Uwe Stöhr
c7a11c1da5
tex2lyx/text.cpp: fix handling of \fbox
...
since a while now lyX supports inner boxes in \fbox, tex2lyx was outdated in this case
2015-05-18 23:45:27 +02:00
Uwe Stöhr
496dba4532
tex2lyx/text.cpp: support for lengths like "2.5\width" in boxes
...
LyX supports these length in boxes for a while now; tex2lyx was not up to date
2015-05-18 01:37:59 +02:00
Uwe Stöhr
7eaae7b7ff
tex2lyx/TODO.txt: add a feature that is not yet supported
2015-05-18 01:00:25 +02:00
Uwe Stöhr
5449a5b837
tex2lyx/text.cpp: support for the commands \fboxsep etc.
...
It is impossible handle all cases because the closing brace of an \fboxsep block can be everywhere. Therefore the braces remain in ERT.
2015-05-18 00:56:23 +02:00
Uwe Stöhr
f1832074f0
tex2lyx/text.cpp: set correct default horizontal position for \framebox
2015-05-17 21:59:29 +02:00
Uwe Stöhr
76b579ed37
tex2lyx/text.cpp: a fix for the horizontal box position
...
- if nothing is specified, the box content is left aligned, except for \makebox where it is centered
2015-05-17 18:12:20 +02:00
Uwe Stöhr
55417b50da
tex2lyx/text.cpp: fix an indentation mistake
2015-05-17 17:45:56 +02:00
Georg Baum
84cca2dd94
Fix indentation
2015-05-17 17:27:27 +02:00
Uwe Stöhr
92b7ee46ed
tex2lyx: support the command \colorbox
...
support for \fcolorbox will follow soon
2015-05-17 17:26:51 +02:00
Kornel Benko
3cd36977c9
Updated remaining tex2lyx test cases after commit 12ae7140c26258425b17c8386144e10560eb8af0
2015-05-17 15:53:58 +02:00
Kornel Benko
e2d4197068
Cmake build: Added target updatetex2lyxtests to update lyx2lyx test files
2015-05-17 15:51:28 +02:00
Uwe Stöhr
12ae7140c2
tex2lyx/text.cpp: add default value for 2 box features
...
- also add a comment
2015-05-17 15:00:51 +02:00
Georg Baum
39329935f3
Parse \multicolumn in math (bug 396)
...
The math parser could not handle multicolumn grids. This is a problem because
there is no true ERT in math (everything is parsed).
Now multicolumn cells are parsed correctly. The display is also somewhat OK,
but apart from that any multicolumn related UI is missing. Since the file
format change is now done the UI can be added at any later point. The most
important part of bug 396 is now fixed: tex2lyx does not create invalid .lyx
files anymore for formulas containing \multicolumn.
I updated the tex2lyx test cases that produce correct output. tex2lyx does
still produce invalid output for the test cases which are not updated because
of the previous format change.
2015-05-17 13:43:37 +02:00
Uwe Stöhr
88593e0ec6
support for colored boxes
...
adds support to set colors for some box types (support for the LaTeX commands \fcolorbox and \colorbox)
fileformat change
2015-05-16 03:22:37 +02:00
Georg Baum
ef456e9607
Update tex2lyx test references correctly
...
This was produced by
make updatetests
2015-05-15 21:27:47 +02:00
Georg Baum
b2b68969ab
Revert broken tex2lyx test reference update
...
Revert "tex2lyx testfiles: update to latest fileformat"
This reverts commit afdfc3cf43501a0728cef79385b31afe6f4cf877.
The tex2lyx test vrefernces must be produced by tex2lyx, otherwise the tests
would still fail.
2015-05-15 21:23:29 +02:00
Uwe Stöhr
afdfc3cf43
tex2lyx testfiles: update to latest fileformat
2015-05-14 23:13:14 +02:00