JMarc> Angus> I know that people are proposing to redo the Import/Export
JMarc> Angus> functions. In the meantime, however, the following tiny patch
JMarc> Angus> allows tth to use LaTeX auxiliary files correctly (and so
JMarc> Angus> insert references etc)
JMarc>
JMarc> Are you sure that it is not possible to play tricks with the basename
JMarc> command directly? It would be better than adding ad-hoc $$ variables
JMarc> in the code...
Good. I didn't do that because I was being thick! Something like this perhaps:
// the tex file name has to be correct for
// latex, but the html file name can be
// anything.
+ string tth = "tth -L"
+ tth += ChangeExtension(file, "", false);
string result = ChangeExtension(file, ".html", false);
string infile = buffer->getLatexName(false);
string tmp = lyxrc.html_command;
+ tmp = subst(tmp, "tth", tth);
tmp = subst(tmp, "$$FName", infile);
tmp = subst(tmp, "$$OutName", result);
Systemcalls one;
int res = one.startscript(Systemcalls::System, tmp);
Anyway, I'll have a go.
I currently have a problem with dec cxx. My previous patch was created my
compiling with
cxx --D__USE_STD_IOSTREAM -std ansi
Now I'm trying to compile
cxx -std strict_ansi
And come across the following error:
cxx: Error: insetbib.C, line 393: identifier "getline" is undefined
while (getline(ifs, linebuf)) {
My question is:
should I correct this with
while (std::getline(ifs, linebuf)) {
or with
using std::getline
while (getline(ifs, linebuf)) {
?
Ie, which way will be accepted and which rejected??
Angus