"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/latexgenerator.cpp" between
ansifilter-2.17.tar.bz2 and ansifilter-2.18.tar.bz2

About: Ansifilter parses common ANSI codes to remove them or to convert them to another colored text file format (HTML, TeX, LaTeX, RTF, Pango or BBCode).

latexgenerator.cpp  (ansifilter-2.17.tar.bz2):latexgenerator.cpp  (ansifilter-2.18.tar.bz2)
skipping to change at line 74 skipping to change at line 74
} }
return "{" + fmtStream.str(); return "{" + fmtStream.str();
} }
string LaTeXGenerator::getCloseTag() string LaTeXGenerator::getCloseTag()
{ {
return "}"; return "}";
} }
string LaTeXGenerator::getHyperlink(string uri, string txt){
ostringstream os;
os <<"\\href{"<<uri<<"}{"<<txt<<"}";
return os.str();
}
string LaTeXGenerator::getGeneratorComment() string LaTeXGenerator::getGeneratorComment()
{ {
ostringstream s; ostringstream s;
s <<"% LaTeX generated by ansifilter " s <<"% LaTeX generated by ansifilter "
<< ANSIFILTER_VERSION << ", " << ANSIFILTER_URL <<"\n"; << ANSIFILTER_VERSION << ", " << ANSIFILTER_URL <<"\n";
return s.str(); return s.str();
} }
string LaTeXGenerator::getHeader() string LaTeXGenerator::getHeader()
{ {
ostringstream os; ostringstream os;
os << "\\documentclass{article}\n"; os << "\\documentclass{article}\n";
os << "\\usepackage{color}\n"; os << "\\usepackage{color}\n";
os << "\\usepackage{hyperref}\n";
os << "\\newcommand{\\ws}[1]{\\textcolor[rgb]{0,0,0}{#1}}\n"; os << "\\newcommand{\\ws}[1]{\\textcolor[rgb]{0,0,0}{#1}}\n";
if (encodingDefined()) { if (encodingDefined()) {
os << "%\\usepackage[" << encoding << "]{inputenc}\n"; os << "%\\usepackage[" << encoding << "]{inputenc}\n";
} }
if (!styleSheetPath.empty()) { if (!styleSheetPath.empty()) {
os << "\\input {"<<styleSheetPath<<"}\n"; os << "\\input {"<<styleSheetPath<<"}\n";
} }
os << "\\begin{document}\n"; os << "\\begin{document}\n";
os << "\\section*{" << docTitle << "}\n"; os << "\\section*{" << docTitle << "}\n";
os << "\\ttfamily%\n"; os << "\\ttfamily%\n";
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)