Georg Baum wrote: > getChar(i) == 0x20ac Many thanks, Georg. Here's the patch. Still missing is chkconfig.ltx and LaTeXConfig.lyx stuff. I'll add those.
OK to commit? Jürgen
Index: src/LaTeXFeatures.C =================================================================== --- src/LaTeXFeatures.C (Revision 16185) +++ src/LaTeXFeatures.C (Arbeitskopie) @@ -247,6 +247,7 @@ char const * simplefeatures[] = { "nicefrac", "tipa", "framed", + "textcomp", }; int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *); Index: src/paragraph_pimpl.C =================================================================== --- src/paragraph_pimpl.C (Revision 16185) +++ src/paragraph_pimpl.C (Arbeitskopie) @@ -651,6 +651,21 @@ void Paragraph::Pimpl::simpleTeXSpecialC } break; + case 0x20ac: // EURO SIGN + if ((bparams.inputenc == "latin9" || + bparams.inputenc == "cp1251") || + (bparams.inputenc == "auto" && + (font.language()->encoding()->latexName() + == "latin9" || + font.language()->encoding()->latexName() + == "cp1251"))) { + os << "\\texteuro{}"; + column += 11; + } else { + os.put(c); + } + break; + case '$': case '&': case '%': case '#': case '{': case '}': case '_': @@ -801,6 +816,9 @@ void Paragraph::Pimpl::validate(LaTeXFea break; } } + // the euro sign requires the textcomp package + if (getChar(i) == 0x20ac) + features.require("textcomp"); } }