Juergen Spitzmueller wrote:
> Am Donnerstag, 17. Juli 2003 20:03 schrieb Jason L W Lynn:
>> What I would like to find out is how (and where) lyx converts the lyx
>> file to a tex file. For instance, my lyx files have
>
> src/insets/inseturl.C in that case (InsetUrl::latex())
>
>> "[EMAIL PROTECTED]" but it (unfortunately) converts that in
>> the TEX file to "Jason [EMAIL PROTECTED]". I would like to change
>> that default behaviour to export
>> "[EMAIL PROTECTED]".
>
> The problem is that every html converter uses another command. html.sty
> only works with latex2html, but there are also hevea, tth and others for
> html export and hyperref for pdf hyperlink generation. LyX would have to
> switch the command depending on which converter is currently being used.
> This is not trivial.
>
> I agree, though, that an obviously senseless "generate hyperlink" checkbox
> is not a solution either.
Hmmm. But it is conceptually the same problem as gerneating different latex
files for subsequent compilation with either latex or pdflatex and we
certainly have a solution for that. It's quite clean too in current cvs.
if (runparams.flavor == LatexRunParams::LATEX) {
...
} else if (runparams.flavor == LatexRunParams::PDFLATEX) {
...
}
You could have another enum HTMLFLAVOUR or somesuch and use it to decide
what latex code to export.
--
Angus