asymptote-2.00-settings-vine-vl7.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. diff -up asymptote-2.00/settings.cc.orig asymptote-2.00/settings.cc
  2. --- asymptote-2.00/settings.cc.orig 2010-06-24 02:57:58.000000000 -0400
  3. +++ asymptote-2.00/settings.cc 2010-06-28 10:07:44.747973803 -0400
  4. @@ -89,11 +89,11 @@ bool msdos=false;
  5. string HOME="HOME";
  6. string docdir=ASYMPTOTE_DOCDIR;
  7. const char pathSeparator=':';
  8. -string defaultPSViewer="gv";
  9. +string defaultPSViewer="evince";
  10. #ifdef __APPLE__
  11. string defaultPDFViewer="open";
  12. #else
  13. -string defaultPDFViewer="acroread";
  14. +string defaultPDFViewer="evince";
  15. #endif
  16. string defaultGhostscript="gs";
  17. string defaultDisplay="display";
  18. diff -up asymptote-2.10/settings.cc\~ asymptote-2.10/settings.cc
  19. --- asymptote-2.10/settings.cc~ 2011-06-04 15:35:00.435593642 +0900
  20. +++ asymptote-2.10/settings.cc 2011-06-04 15:54:16.059823589 +0900
  21. @@ -695,7 +695,8 @@ struct engineSetting : public argumentSe
  22. bool getOption() {
  23. string str=optarg;
  24. - if(str == "latex" || str == "pdflatex" || str == "xelatex" ||
  25. + if(str == "platex" ||
  26. + str == "latex" || str == "pdflatex" || str == "xelatex" ||
  27. str == "tex" || str == "pdftex" || str == "context" || str == "none") {
  28. value=str;
  29. return true;
  30. @@ -1131,7 +1132,7 @@ void initSettings() {
  31. addOption(new boolSetting("keepaux", 0,
  32. "Keep intermediate LaTeX .aux files"));
  33. addOption(new engineSetting("tex", 0, "engine",
  34. - "latex|pdflatex|xelatex|tex|pdftex|context|none",
  35. + "platex|latex|pdflatex|xelatex|tex|pdftex|context|none",
  36. "latex"));
  37. addOption(new boolSetting("twice", 0,
  38. @@ -1423,7 +1424,8 @@ bool pdf(const string& texengine) {
  39. }
  40. bool latex(const string& texengine) {
  41. - return texengine == "latex" || texengine == "pdflatex" ||
  42. + return texengine == "platex" ||
  43. + texengine == "latex" || texengine == "pdflatex" ||
  44. texengine == "xelatex";
  45. }
  46. Diff finished. Sat Jun 4 15:54:23 2011