Skip to content
Snippets Groups Projects
Commit c7de3e54 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfixes

Rev: tutorial/Wmml.pmod:1.41
Rev: tutorial/latex.pike:1.14
Rev: tutorial/pdflatex.pike:1.6
parent 4a3a598b
Branches
Tags
No related merge requests found
...@@ -787,12 +787,14 @@ SGML low_make_concrete_wmml(SGML data) ...@@ -787,12 +787,14 @@ SGML low_make_concrete_wmml(SGML data)
{ {
title="see also"; title="see also";
SGML tmp=({}); SGML tmp=({});
string *tmp=(replace(get_text(args), string *tmp2=(replace(get_text(args),
({" ","\n"}),({"",""}))/",")-({""}); ({" ","\n"}),({"",""}))/",")-({""});
if(!sizeof(tmp)) if(!sizeof(tmp2))
continue; continue;
foreach(tmp,string name) array(string) tmp=({});
foreach(tmp2,string name)
{ {
tmp+=({ tmp+=({
Tag("link",(["to": Tag("link",(["to":
......
...@@ -29,6 +29,8 @@ string packages = ...@@ -29,6 +29,8 @@ string packages =
\\usepackage{colortbl} \\usepackage{colortbl}
"; ";
string latex = "latex";
object wcache=.Cache("latex_wcache"); object wcache=.Cache("latex_wcache");
...@@ -64,7 +66,7 @@ array(float) find_line_width(array(SGML) data) ...@@ -64,7 +66,7 @@ array(float) find_line_width(array(SGML) data)
rm("___tmp.tex"); rm("___tmp.tex");
Stdio.write_file("___tmp.tex",x); Stdio.write_file("___tmp.tex",x);
string tmp=Process.popen("latex '\\scrollmode\\input ___tmp.tex'"); string tmp=Process.popen(latex+" '\\scrollmode\\input ___tmp.tex'");
sscanf(tmp,"%{%*slength=%f%}",array lengths); sscanf(tmp,"%{%*slength=%f%}",array lengths);
// werror("%O\n",lengths); // werror("%O\n",lengths);
...@@ -503,6 +505,12 @@ string convert_table(TAG table) ...@@ -503,6 +505,12 @@ string convert_table(TAG table)
( columns - sizeof(table[row])); ( columns - sizeof(table[row]));
} }
werror("Converting table %02dx%02d %s.\n",columns,sizeof(table),
String.implode_nicely(( nicer? ({ "nicer" }) : ({}) ) +
( framed? ({ "framed" }) : ({}) ) +
( border? ({ "border" }) : ({}) ) +
( spaced? ({ "spaced" }) : ({})) ));
array(SGML) tmp=(table * ({}))->tag->data; array(SGML) tmp=(table * ({}))->tag->data;
......
...@@ -22,6 +22,8 @@ string packages= ...@@ -22,6 +22,8 @@ string packages=
\\usepackage{colortbl} \\usepackage{colortbl}
"; ";
string latex="pdflatex";
string convert_gfx(TAG tag) string convert_gfx(TAG tag)
{ {
string file; string file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment