Enrico Forestieri
a2336c489e
Fix an off-by-one error in the reversion of beamer documents.
...
(cherry picked from commit dbd4d781dcbe73d347a76fed9ca51faf2841e133)
2014-05-29 11:29:05 -04:00
Juergen Spitzmueller
54f11f5fb9
Fix nesting in some beamer reversion methods.
...
Patch by Enrico
2014-05-21 15:46:00 +02:00
Juergen Spitzmueller
aa8227b61f
Fix reversion of beamer overprint when a nested paragraph has an argument
2014-05-21 15:45:40 +02:00
Georg Baum
bb876f85ae
Fix table rotate conversion to 2.0 format
...
The old code did create invalid documents, since the space between the rotate
flag dn the previous flag was removed.
(cherry picked from commit b0664e0c98b92b23442e9e344b2c6ad124c88ac9)
2014-05-02 17:51:10 -04:00
Georg Baum
41dcd49980
Fix lyx2lyx math package defaults (bug #9069 )
...
lyx2lyx sets all new math packages to off when converting from old formats.
This is correct if any command which would cause an automatic package loading
exists in the document. However, it is wrong if no command exists: This leads
to problems if later a command is added (bug #9069 ), which is especially
annoying for templates.
The fix consists of two parts:
1) convert_use_package() considers now the used commands like
revert_use_package(), and uses them to decide whether to set the package to
auto or off.
2) convert_undertilde() and revert_undertilde() use a slightly adjusted copy of
convert_use_package() and revert_use_package(), so that the bug is also
fixed for undertilde. We cannot use the latter functions directly, because
of "\usepackage undertilde" vs. "\use_undertilde".
(cherry picked from commit b73a59932ea32977797c558661a10fe722727dc6)
Conflicts:
status.21x
2014-04-28 10:00:24 -04:00
Georg Baum
493dab6881
Fix math package conversion to 2.0 format
...
When doing the lyx2lyx round trip of the 2.0.8 user guide from format
413 -> 474 -> 413 you get an invalid document, because the math packages
mhchem and undertilde are incorrectly converted.
It turned out that the old reversion code did only work for particular
package oderings. The new one works for abitrary sorted packages.
(cherry picked from commit d47a556b46c2dde1a245e9ffa4918111e63fa70e)
Conflicts:
status.21x
2014-04-28 09:59:57 -04:00
Georg Baum
602a37af48
Fix data loss in user guide conversion to 2.0.x
...
When doing the lyx2lyx round trip of the 2.0.8 user guide from format
413 -> 474 -> 413 you do not get a zero diff. The most important problem is
caused by the conversion of the argument insets to the old syntax: This
conversion adds an additional empty line (harmless), and it destroys the
document structure if the first inset in e.g. a subsection is not an argument
inset, but e.g. an index or label inset.
The fix is quite easy: Ensure that the paragraph begin is set to the first
argument inset.
(cherry picked from commit 28bde98d7624d0450f7f38169d73464d8bd59d66)
Conflicts:
status.21x
2014-04-28 09:59:33 -04:00
Georg Baum
a87c56b5ad
Fix warning in lyx2lyx 2.0<->2.1 round trip
...
revert_justification() issues a warning if the \justification parameter does
not exist, and LyX itself always writes it unconditionally as well, so add it
also in lyx2lyx when converting old documents.
Currently this does not have any user visible effect, but it decouples the
default value of BufferParams::justification from the conversion of old
documents: Now it is possible to set the default to false in LyX, and old
documents will still be converted correctly.
(cherry picked from commit e754d00faa71a8950de8582fb0f38f6fb270ac38)
Conflicts:
status.21x
2014-04-28 09:59:11 -04:00
Juergen Spitzmueller
774ffef941
Fix conversion of beamer block titles that end with a non-ERT inset.(cherry picked from commit 8b7d5276b8e5f08659221c03be10d3d60d39775a)
...
Conflicts:
status.21x
2014-04-28 09:58:27 -04:00
Richard Heck
997eefc81f
Fix problem with verbatim reversion.
2014-04-11 14:00:44 -04:00
Richard Heck
c599ed749d
Remove file I accidentally committed.
2014-04-11 12:54:00 -04:00
Richard Heck
7cdfa9b29a
Better idea: Let's allow export of 2.1.x files. Someone might want to
...
do that. But let's not put it on the export menu.
2014-04-11 12:10:31 -04:00
Richard Heck
8c3d6f7178
Allow 2.0.8 to read and write 2.1.x files. Also incorporates some
...
bugfixes in lyx2lyx that made it into 2.1.0.
2014-04-11 11:41:56 -04:00
Georg Baum
a53dd33474
Fix lyx2lyx for layout files with umlauts
...
lyx2lyx died with UnicodeDecodeError: 'ascii' codec can't decode byte if a
layout with a non-ASCII character in the file name was used, since the
textclass member of the LyX class was of type str, and not unicode.
2013-02-23 14:54:57 +01:00
Lars Gullik Bjønnes
862060f041
Setup .gitignore for generated files, now for branch.
2012-03-23 14:14:34 -04:00
Uwe Stöhr
394dfcc35b
lyx2lyx files: update GPL organization address and claim copyright also for the LyX team where it is necessary
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40523 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-18 22:46:27 +00:00
Uwe Stöhr
a24aeac5fd
lyx2lyx: correct the address in the GPL test (backport from trunk)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40448 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-08 23:06:38 +00:00
Uwe Stöhr
b847c110b1
lyx2lyx/lyx_1_6.py: backport some fixes from trunk
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40446 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-08 23:00:35 +00:00
Richard Heck
fed247aa1c
Backport fix for infinite loops to branch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39531 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-26 23:12:42 +00:00
Uwe Stöhr
6487aeb026
lyx2lyx/lyx_2_0.py: backport r39383 to branch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39392 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-31 02:07:16 +00:00
Uwe Stöhr
d7e88ea7e0
revert r38758 as discussed in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169087.html
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38767 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-15 17:14:31 +00:00
Uwe Stöhr
9eb6b3b8ac
backport CMake efforts to branch to be able to compile LyX 2.0.x the same way as trunk
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38758 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-14 21:35:36 +00:00
Richard Heck
5c3aa35c41
On Jose's advice, add these changes to branch, as well.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38594 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-05 19:47:04 +00:00
Richard Heck
c322afe346
We no longer write such detailed information to the header.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38489 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-25 01:58:25 +00:00
Richard Heck
d87ee9fbba
User Guide will not export to 1.6.x. This ID can be negative!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38486 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-25 01:47:10 +00:00
Richard Heck
74245321ca
Change the passthru conversion routine again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37833 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-02 21:46:47 +00:00
Richard Heck
6127141d4b
Introduce BufferParam to control whether CSS is output in the header of
...
the XHTML file or to a separate style file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37682 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-15 17:44:17 +00:00
Richard Heck
5b9b74572b
Remove debugging code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37588 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-10 22:19:50 +00:00
Jürgen Spitzmüller
099394c230
* lyx_2_0.py: fix revert_xetex method.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37570 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-09 09:26:33 +00:00
Jürgen Spitzmüller
839213e389
fix lyx2lyx after r37471.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37477 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-04 07:35:12 +00:00
Edwin Leuven
119ea9cd24
support for tabular*
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37471 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 23:11:26 +00:00
Jürgen Spitzmüller
345a14ef09
d'oh!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37460 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 15:38:22 +00:00
Jürgen Spitzmüller
f27d5aa9ae
* Allow to set language package on a per-document basis (fixes bug 2909).
...
File format change. Commit approved by Pavel on trac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:17:31 +00:00
Richard Heck
5123774bd1
Fix lyx2lyx problem with sweave files and ParBreakIsNewline.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37353 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 19:48:03 +00:00
Pavel Sanda
1246a70abd
Update years
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37284 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 13:24:23 +00:00
Richard Heck
06ee6bde14
Fix bug #7214 as best we can. The point here is that we only
...
want to add the \clearpage if the class has chapters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37266 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-20 16:38:41 +00:00
Georg Baum
96bcf145d9
Fix conversion of nested box insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37264 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 22:04:45 +00:00
Georg Baum
cff0f635cc
fix endless loop
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36695 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 19:27:35 +00:00
Jürgen Spitzmüller
f1b586d445
* lyx2lyx/lyx_2_0.py:
...
- remove wrong warning (bug 7100).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36574 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-29 07:09:58 +00:00
Richard Heck
7f8b868f4a
Fix bug #2607 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36520 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 17:21:17 +00:00
Richard Heck
d83c9f3fe3
Minor style.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36509 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 16:07:17 +00:00
Jürgen Spitzmüller
2dc2e4770b
Implement GUI for LuaTeX. File format change due to the renaming of the \use_xetex buffer param.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 09:42:03 +00:00
Georg Baum
f3ad535dbd
Fix conversion of 1.5.x documents that conflict with mchchem
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36437 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-22 21:07:20 +00:00
Georg Baum
dea050cb93
fix bug 3008: Add subscript/superscript inset for text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36424 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 17:00:12 +00:00
Richard Heck
05df2a7cc6
Fix python 3 deprecation warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36267 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 15:42:50 +00:00
Richard Heck
00e6cfee4a
Same changes for revert_multirowOffset as for revert_multirow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36233 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 14:00:54 +00:00
Richard Heck
a1589fb091
Thinko.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36232 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 13:46:50 +00:00
Richard Heck
22c7c7b144
Another try at multirow reversion. What makes this so hard is that we
...
have to account for the possibility of tables within tables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36230 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 13:41:43 +00:00
Uwe Stöhr
07176c1a45
lyx_2_0.py: correct reversion of multirows with offsets the same ways as for "standard" multirows
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36221 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 05:35:51 +00:00
Uwe Stöhr
fd25c82378
lyx_2_0.py: correct reversion of multirows
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36220 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 04:58:46 +00:00