asymptote-2.00-settings-vine-vl6.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 == "eplatex" || 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. + "eplatex|platex|latex|pdflatex|xelatex|tex|pdftex|context|none",
  36. "latex"));
  37. addOption(new boolSetting("twice", 0,
  38. @@ -1269,7 +1270,7 @@ void initSettings() {
  39. addOption(new envSetting("gs", defaultGhostscript));
  40. addOption(new envSetting("texpath", ""));
  41. addOption(new envSetting("texcommand", ""));
  42. - addOption(new envSetting("dvips", "dvips"));
  43. + addOption(new envSetting("dvips", "pdvips"));
  44. addOption(new envSetting("dvisvgm", "dvisvgm"));
  45. addOption(new envSetting("convert", "convert"));
  46. addOption(new envSetting("display", defaultDisplay));
  47. @@ -1423,7 +1424,8 @@ bool pdf(const string& texengine) {
  48. }
  49. bool latex(const string& texengine) {
  50. - return texengine == "latex" || texengine == "pdflatex" ||
  51. + return texengine == "eplatex" || texengine == "platex" ||
  52. + texengine == "latex" || texengine == "pdflatex" ||
  53. texengine == "xelatex";
  54. }
  55. Diff finished. Sat Jun 4 15:54:23 2011