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
No related branches found
No related tags found
No related merge requests found
......@@ -787,12 +787,14 @@ SGML low_make_concrete_wmml(SGML data)
{
title="see also";
SGML tmp=({});
string *tmp=(replace(get_text(args),
string *tmp2=(replace(get_text(args),
({" ","\n"}),({"",""}))/",")-({""});
if(!sizeof(tmp))
if(!sizeof(tmp2))
continue;
foreach(tmp,string name)
array(string) tmp=({});
foreach(tmp2,string name)
{
tmp+=({
Tag("link",(["to":
......
......@@ -29,6 +29,8 @@ string packages =
\\usepackage{colortbl}
";
string latex = "latex";
object wcache=.Cache("latex_wcache");
......@@ -64,7 +66,7 @@ array(float) find_line_width(array(SGML) data)
rm("___tmp.tex");
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);
// werror("%O\n",lengths);
......@@ -502,6 +504,12 @@ string convert_table(TAG table)
table[row]+=({Cell(Sgml.Tag("td",0,0,({})),1)})*
( 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;
......
......@@ -22,6 +22,8 @@ string packages=
\\usepackage{colortbl}
";
string latex="pdflatex";
string convert_gfx(TAG tag)
{
string file;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment