lyx_mirror/lib/lyx2lyx
Enrico Forestieri c668ebf611 Fix bugs #8546 and #9055, and introduce new separator inset.
The algorithm used for breaking a paragraph in LaTeX export is changed
for avoiding spurious blank lines causing too much vertical space.
This change is tied to the introduction of a new inset (with two
different specializations) helping in either outputing LaTeX paragraph
breaks or separating environments in LyX. Both of the above goals were
previously achieved by the ---Separator--- layout and can now be
accomplished by the new inset in a more natural way. As an example,
after leaving an environment by hitting the Return key for two times,
a third return automatically inserts a parbreak inset, which is
equivalent to the old separator layout, i.e., it also introduces a
blank line in the output. If this blank line is not wanted, the
parbreak separator can be changed to a plain separator by a right
click of the mouse. Of course, an environment can still be separated
by the following one by using the Alt+P+Return shortcut (or the
corresponding menu key), but now the plain separator inset is used
instead of the old separator layout, such that no blank line occurs in
the LaTeX output.

Old documents are converted such that the LaTeX output remains unchanged.
As a result of this conversion, the old separator layout is replaced by
the new parbreak inset, which may also appear in places where the old
algorithm was introducing blank lines while the new one is not.
Note that not all blank lines were actually affecting the LaTeX output,
because a blank line is simply ignored by the TeX engine when it occurs
in the so called "vertical mode" (e.g., after an alignment environment).
The old ---Separator--- layout is now gone and old layout files using it
are also automatically converted.

Round trip conversions between old and new format should leave a document
unchanged. This means that the new behavior about paragraph breaking is
not "carried back" to the old format. Indeed, this would need introducing
special LaTeX commands in ERT that would accumulate in roundtrip
conversions, horribly cluttering the document. So, when converting a
modified document to old formats, the LaTeX output may slightly differ in
vertical spacing if the document is processed by an old version of LyX.
In other words, forward compatibility is guaranteed, but not backwards.
2014-05-10 23:25:11 +02:00
..
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
CMakeLists.txt Do not py-compile also on cmake build 2012-01-22 13:05:37 +00:00
generate_encoding_info.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx2lyx lyx2lyx files: update GPL organization address and claim copyright also for the LyX team where it is necessary 2011-12-18 22:56:49 +00:00
lyx2lyx_lang.py Add "default" to language list. (fixes a crash). 2007-12-10 18:51:54 +00:00
lyx2lyx_tools.py Typo. 2014-04-21 11:52:00 -04:00
lyx2lyx_version.py.in Fix inconsistent version in .lyx files (#7951) 2013-07-13 16:02:26 +02:00
lyx_0_06.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_0_08.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_0_10.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_0_12.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_0.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_1_5.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_1_6_0.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_1_6_3.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_1.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_2.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_3.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_4.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
lyx_1_5.py Fix bug #4036 (lyx2lyx produces invalid LyX 1.4.x) 2014-02-19 21:56:00 +01:00
lyx_1_6.py lyx2lyx/lyx_1_6.py: fix a typo (port from branch) 2011-12-08 23:16:34 +00:00
lyx_2_0.py Fix bug #5029: Support \smash, \mathclap, \mathllap and \mathrlap. 2012-01-08 12:34:12 +00:00
lyx_2_1.py Beamer block conversion: consider ERT arguments with leading/trailing blanks 2014-05-08 15:14:44 +02:00
lyx_2_2.py Fix bugs #8546 and #9055, and introduce new separator inset. 2014-05-10 23:25:11 +02:00
LyX.py Fix bugs #8546 and #9055, and introduce new separator inset. 2014-05-10 23:25:11 +02:00
Makefile.am Add lyx_2_1.py to the distribution; it was added in r38570. 2011-05-09 17:58:03 +00:00
parser_tools.py Whitespace. 2014-04-21 11:52:00 -04:00
profiling.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
test_parser_tools.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00
unicode_symbols.py Update FSF address, patch from cornelisbb, #7735. 2011-08-25 23:10:36 +00:00