mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix tex2lyx include output for roundtrip
In roundtrip mode, tex2lyx produces documents with extension lyx.lyx, so that the original files are not overwritten on re-export. This was not done for included documents which were converted, and this broke 'make dist'.
This commit is contained in:
parent
83a6107392
commit
3ebf1c9bac
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
@ -142,7 +142,7 @@ has_inner_box 1
|
|||||||
inner_pos "c"
|
inner_pos "c"
|
||||||
use_parbox 0
|
use_parbox 0
|
||||||
use_makebox 1
|
use_makebox 1
|
||||||
width "-999col%"
|
width ""
|
||||||
special "none"
|
special "none"
|
||||||
height "1in"
|
height "1in"
|
||||||
height_special "totalheight"
|
height_special "totalheight"
|
||||||
@ -663,7 +663,7 @@ has_inner_box 0
|
|||||||
inner_pos "c"
|
inner_pos "c"
|
||||||
use_parbox 0
|
use_parbox 0
|
||||||
use_makebox 0
|
use_makebox 0
|
||||||
width "-999col%"
|
width ""
|
||||||
special "none"
|
special "none"
|
||||||
height "1in"
|
height "1in"
|
||||||
height_special "totalheight"
|
height_special "totalheight"
|
||||||
@ -688,7 +688,7 @@ has_inner_box 0
|
|||||||
inner_pos "c"
|
inner_pos "c"
|
||||||
use_parbox 0
|
use_parbox 0
|
||||||
use_makebox 0
|
use_makebox 0
|
||||||
width "-999col%"
|
width ""
|
||||||
special "none"
|
special "none"
|
||||||
height "1in"
|
height "1in"
|
||||||
height_special "totalheight"
|
height_special "totalheight"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
@ -734,7 +734,7 @@ We can input files too, like this
|
|||||||
\begin_inset CommandInset include
|
\begin_inset CommandInset include
|
||||||
LatexCommand input
|
LatexCommand input
|
||||||
preview false
|
preview false
|
||||||
filename "DummyDocument.lyx"
|
filename "DummyDocument.lyx.lyx"
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -742,7 +742,7 @@ filename "DummyDocument.lyx"
|
|||||||
\begin_inset CommandInset include
|
\begin_inset CommandInset include
|
||||||
LatexCommand include
|
LatexCommand include
|
||||||
preview false
|
preview false
|
||||||
filename "Dummy Document.lyx"
|
filename "Dummy Document.lyx.lyx"
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -750,7 +750,7 @@ filename "Dummy Document.lyx"
|
|||||||
\begin_inset CommandInset include
|
\begin_inset CommandInset include
|
||||||
LatexCommand include
|
LatexCommand include
|
||||||
preview false
|
preview false
|
||||||
filename "Dummy Document.lyx"
|
filename "Dummy Document.lyx.lyx"
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ filename "Dummy Document.lyx"
|
|||||||
\begin_inset CommandInset include
|
\begin_inset CommandInset include
|
||||||
LatexCommand include
|
LatexCommand include
|
||||||
preview false
|
preview false
|
||||||
filename "Dummy~Document.lyx"
|
filename "Dummy~Document.lyx.lyx"
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -766,7 +766,7 @@ filename "Dummy~Document.lyx"
|
|||||||
\begin_inset CommandInset include
|
\begin_inset CommandInset include
|
||||||
LatexCommand include
|
LatexCommand include
|
||||||
preview false
|
preview false
|
||||||
filename "Dummy~Document.lyx"
|
filename "Dummy~Document.lyx.lyx"
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass amsart
|
\textclass amsart
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass book
|
\textclass book
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX file created by tex2lyx 2.1.0dev
|
#LyX file created by tex2lyx 2.1.0dev
|
||||||
\lyxformat 471
|
\lyxformat 472
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
|
@ -818,6 +818,12 @@ bool skipChildren()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool roundtripMode()
|
||||||
|
{
|
||||||
|
return roundtrip;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -193,6 +193,8 @@ extern bool overwriteFiles();
|
|||||||
extern bool copyFiles();
|
extern bool copyFiles();
|
||||||
/// Shall we skip child documents and keep them as TeX?
|
/// Shall we skip child documents and keep them as TeX?
|
||||||
extern bool skipChildren();
|
extern bool skipChildren();
|
||||||
|
/// Does tex2lyx run in roundtrip mode?
|
||||||
|
extern bool roundtripMode();
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -3929,8 +3929,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
string const absfigname =
|
string const absfigname =
|
||||||
changeExtension(abstexname, ".fig");
|
changeExtension(abstexname, ".fig");
|
||||||
fix_child_filename(filename);
|
fix_child_filename(filename);
|
||||||
string const lyxname =
|
string const lyxname = changeExtension(filename,
|
||||||
changeExtension(filename, ".lyx");
|
roundtripMode() ? ".lyx.lyx" : ".lyx");
|
||||||
string const abslyxname = makeAbsPath(
|
string const abslyxname = makeAbsPath(
|
||||||
lyxname, getParentFilePath(false)).absFileName();
|
lyxname, getParentFilePath(false)).absFileName();
|
||||||
bool xfig = false;
|
bool xfig = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user