// FIXME UNICODE encoding of name may be wrong (makeAbsPath expects
// utf8)
name = to_utf8(makeRelPath(from_utf8(makeAbsPath(name, getMasterFilePath()).absFilename()),
- from_utf8(getParentFilePath())));
+ from_utf8(getParentFilePath())));
}
check_space(p, os, context);
else if (t.character() == '[' && noweb_mode &&
- p.next_token().character() == '[') {
+ p.next_token().character() == '[') {
// These can contain underscores
p.putback();
string const s = p.getFullOpt() + ']';
eat_whitespace(p, os, context, false);
string name = p.get_token().cs();
eat_whitespace(p, os, context, false);
-
- // parameter text
+
+ // parameter text
bool simple = true;
string paramtext;
int arity = 0;
// # found
p.get_token();
paramtext += "#";
-
+
// followed by number?
if (p.next_token().cat() == catOther) {
char c = p.getChar();
simple = false;
}
}
-
+
// only output simple (i.e. compatible) macro as FormulaMacros
string ert = "\\def\\" + name + ' ' + paramtext + '{' + p.verbatim_item() + '}';
if (simple) {
}
else if (t.cs() == "i" || t.cs() == "j" || t.cs() == "l" ||
- t.cs() == "L") {
+ t.cs() == "L") {
context.check_layout(os);
os << "\\i \\" << t.cs() << "{}\n";
skip_braces(p); // eat {}
string const ert = name + '{' + command + '}' +
opt1 + opt2 +
'{' + p.verbatim_item() + '}';
-
+
if (opt2.empty()) {
context.check_layout(os);
begin_inset(os, "FormulaMacro");