On 03/10/2014 12:31 PM, Jürgen Spitzmüller wrote:
2014-03-10 17:15 GMT+01:00 Richard Heck:
Could the problem be that the author is defined only in the child?
I.e., in the child, we have:
\author -1607827248 "Stefano Franchi"
but this is not present in the master?
So maybe something similar to what Vincent did for Compare is needed here?
http://www.lyx.org/trac/changeset/77d532bd/lyxgit
See
http://www.lyx.org/trac/ticket/8769
One thing we could do, presumably, is in BufferParams::read():
} else if (token == "\\author") {
lex.eatLine();
istringstream ss(lex.getString());
Author a;
ss >> a;
author_map[a.bufferId()] = pimpl_->authorlist.record(a);
where we could also add it to the master Buffer. Though I don't know if
that messes up something
else. It seems like a general problem that we have a per-Buffer author
list, but we use the master
Buffer's list on export. See the start of TeXOnePar. I suppose it would
be enough to deal with this
bug to copy the children's author lists to the master Buffer when we
start the export process.
Richard