Commit 0cda0a5b6d92123e97a8c60ddfcaa55bd78de303
1 parent
5fd2217b
*** empty log message ***
Showing
2 changed files
with
20 additions
and
14 deletions
Show diff stats
anubis_dev/library/tools/latex.anubis
| ... | ... | @@ -266,7 +266,7 @@ define String |
| 266 | 266 | + "\\usepackage{textcomp}\n" |
| 267 | 267 | + "\\usepackage{color}\n" |
| 268 | 268 | + "\\usepackage{graphics}\n" |
| 269 | - + "\usepackage{longtable}\n" | |
| 269 | + //+ "\usepackage{longtable}\n" | |
| 270 | 270 | + "\\usepackage{fancyhdr}\n" |
| 271 | 271 | + "\\fancyhead{}\n" |
| 272 | 272 | + "\\fancyhead[LE]{\\thepage \\hfill \\textsl{Section \\leftmark}}\n" |
| ... | ... | @@ -274,7 +274,7 @@ define String |
| 274 | 274 | + "\\fancyfoot{}\n" |
| 275 | 275 | + "\\pagestyle{fancy}\n" |
| 276 | 276 | + "\\renewcommand{\\headrulewidth}{0.4pt}\n\n" |
| 277 | - + "\\raggedbottom \n" | |
| 277 | + + "\\raggedbottom\n" | |
| 278 | 278 | + more_ahead |
| 279 | 279 | + "\n\n". |
| 280 | 280 | |
| ... | ... | @@ -338,16 +338,18 @@ define Bool |
| 338 | 338 | ) = |
| 339 | 339 | checking every 2000 milliseconds, |
| 340 | 340 | wait for true |
| 341 | - then if read(process_stdout(ec),1000,10) is | |
| 341 | + then if read(process_stdout(ec),1000,120) is | |
| 342 | 342 | { |
| 343 | 343 | failure then print("SO=failure \n"), |
| 344 | 344 | success(s) then print("SO=["+to_string(s)+"]\n") |
| 345 | 345 | }; |
| 346 | - if read(process_stderr(ec),1000,10) is | |
| 346 | + | |
| 347 | + if read(process_stderr(ec),1000,120) is | |
| 347 | 348 | { |
| 348 | 349 | failure then print("SE=failure \n"), |
| 349 | 350 | success(s) then print("SE=["+to_string(s)+"]\n") |
| 350 | 351 | }; |
| 352 | + | |
| 351 | 353 | if check_execute_status(ec) is |
| 352 | 354 | { |
| 353 | 355 | still_running then |
| ... | ... | @@ -451,7 +453,7 @@ define ResultMakePdf |
| 451 | 453 | --------------- |
| 452 | 454 | |
| 453 | 455 | |
| 454 | -define One | |
| 456 | + define One | |
| 455 | 457 | make_pdf_file |
| 456 | 458 | ( |
| 457 | 459 | String file_name, |
| ... | ... | @@ -513,7 +515,7 @@ define One |
| 513 | 515 | |
| 514 | 516 | - Compilation par un 'execute produisant un Maybe(Int8)) |
| 515 | 517 | -------------------------------------------------------- |
| 516 | - define One | |
| 518 | +define One | |
| 517 | 519 | make_pdf_file |
| 518 | 520 | ( |
| 519 | 521 | String file_name, | ... | ... |
anubis_dev/library/tools/maml.anubis
| ... | ... | @@ -743,7 +743,7 @@ define String |
| 743 | 743 | itemize_end |
| 744 | 744 | ( |
| 745 | 745 | List(Environment) lenv |
| 746 | - ) = | |
| 746 | + ) ="". | |
| 747 | 747 | if member(lenv,textcolor) then "" else "\\vspace{5mm}\n". |
| 748 | 748 | |
| 749 | 749 | |
| ... | ... | @@ -884,10 +884,11 @@ define Text |
| 884 | 884 | site_name,public_dir) else |
| 885 | 885 | |
| 886 | 886 | if name = "code" then |
| 887 | - t-("\\vspace{2mm}\n {\\tt \\setlongtables " | |
| 888 | - +"\\begin{longtable}["+(if member(lenv,center)then "c" else "l")+"]{l}\n") | |
| 887 | + //t-("\\vspace{2mm}\n{\\tt" | |
| 888 | + t-("\\\\{\\tt" | |
| 889 | + +"\\begin{tabular}{"+(if member(lenv,center)then "c" else "l")+"}\n") | |
| 889 | 890 | -code_to_LaTeX(m1,sub_environment,site_name,public_dir,lenv) |
| 890 | - -" \\end{longtable}}\n\n \\vspace{3mm}" else | |
| 891 | + -" \\end{tabular}}\\\\ \n" else | |
| 891 | 892 | |
| 892 | 893 | if name = "center" then |
| 893 | 894 | t-"\\begin{center} " |
| ... | ... | @@ -1004,10 +1005,11 @@ public define Text |
| 1004 | 1005 | else |
| 1005 | 1006 | |
| 1006 | 1007 | if name = "code" then |
| 1007 | - t-(s_en(unique)+"\n {\\tt \\setlongtables " | |
| 1008 | - + "\\begin{longtable}["+(if member(lenv,center) then "c" else "l")+"]{l}\n") | |
| 1008 | + t-((if member(lenv,center) then "" else "\n")+s_en(unique)+"\n{\\tt" | |
| 1009 | + + "\\begin{tabular}{"+(if member(lenv,center) then "c" else "l")+"}\n") | |
| 1009 | 1010 | -code_to_LaTeX(a1,failure,site_name,public_dir,[]) |
| 1010 | - -(" \\end{longtable}} \n"+us_en(unique)+" \n\n ") else | |
| 1011 | + -("\\end{tabular}}\\vspace{0.4cm}"+us_en(unique)+ | |
| 1012 | + "\n\n") else | |
| 1011 | 1013 | |
| 1012 | 1014 | if name = "center" then |
| 1013 | 1015 | t-"\\begin{center} " |
| ... | ... | @@ -1029,7 +1031,9 @@ public define Text |
| 1029 | 1031 | t-"\\mbox{\\textsuperscript{"-to_LaTeX(a1,site_name,public_dir,lenv,s_en,us_en)-"}}" else |
| 1030 | 1032 | |
| 1031 | 1033 | if name = "tt" then |
| 1032 | - t-"{\\tt "-to_LaTeX(a1,site_name,public_dir,lenv,s_en,us_en)-"}" else | |
| 1034 | + t-"{\\tt\\textcolor{code_color}{" | |
| 1035 | + -to_LaTeX(a1,site_name,public_dir,lenv,s_en,us_en) | |
| 1036 | + -"}}" else | |
| 1033 | 1037 | |
| 1034 | 1038 | alert, |
| 1035 | 1039 | ... | ... |