+2004-04-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * preamble.C: recognize \lyxdot
+ * text.C (parse_text): translate \lyxdot in graphics file names
+ * text.C (handle_ert): translate '\n' (fixes %-newline combinations
+ in \def commands)
+
2004-03-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text.C (parse_text): handle vspaces like '1cm' correctly
using lyx::support::rtrim;
using lyx::support::suffixIs;
using lyx::support::contains;
+using lyx::support::subst;
using std::cerr;
using std::endl;
return false;
const string::size_type i = len.find_first_not_of(" -+0123456789.,");
//'4,5' is a valid LaTeX length number. Change it to '4.5'
- string const length = lyx::support::subst(len, ',', '.');
+ string const length = subst(len, ',', '.');
if (i == string::npos)
return false;
if (i == 0) {
for (string::const_iterator it = s.begin(), et = s.end(); it != et; ++it) {
if (*it == '\\')
os << "\n\\backslash \n";
+ else if (*it == '\n')
+ os << "\n\\newline \n";
else
os << *it;
}
else if (t.cs() == "includegraphics") {
map<string, string> opts = split_map(p.getArg('[', ']'));
- string name = p.verbatim_item();
+ string name = subst(p.verbatim_item(), "\\lyxdot ", ".");
context.check_layout(os);
begin_inset(os, "Graphics ");