} else if (strcmp(m->key, "htmlheaderlevel") == 0) {
} else if (strcmp(m->key, "lang") == 0) {
} else if (strcmp(m->key, "latexbegin") == 0) {
+ } else if (strcmp(m->key, "latexconfig") == 0) {
} else if (strcmp(m->key, "latexfooter") == 0) {
} else if (strcmp(m->key, "latexheaderlevel") == 0) {
} else if (strcmp(m->key, "latexinput") == 0) {
m = extract_meta_from_stack(scratch, "latexleader");
if (m) {
printf("\\input{%s}\n", m->value);
+ } else {
+ m = extract_meta_from_stack(scratch, "latexconfig");
+
+ if (m) {
+ printf("\\input{mmd6-%s-leader}\n", m->value);
+ }
}
for (m = scratch->meta_hash; m != NULL; m = m->hh.next) {
} else if (strcmp(m->key, "htmlheaderlevel") == 0) {
} else if (strcmp(m->key, "lang") == 0) {
} else if (strcmp(m->key, "latexbegin") == 0) {
+ } else if (strcmp(m->key, "latexconfig") == 0) {
} else if (strcmp(m->key, "latexheader") == 0) {
print(m->value);
print_char('\n');
m = extract_meta_from_stack(scratch, "latexbegin");
if (m) {
printf("\\input{%s}\n", m->value);
+ } else {
+ m = extract_meta_from_stack(scratch, "latexconfig");
+
+ if (m) {
+ printf("\\input{mmd6-%s-begin}\n", m->value);
+ }
}
scratch->padded = 1;
if (m) {
printf("\\input{%s}\n\n", m->value);
+ } else {
+ m = extract_meta_from_stack(scratch, "latexconfig");
+
+ if (m) {
+ printf("\\input{mmd6-%s-footer}\n", m->value);
+ }
}
print("\\end{document}");