文件 config.asy 的环境变量

文件 config.asy 的环境变量

当然,我知道这个问题不在本论坛的主题范围内,但尽管如此,关于这个话题也有人问,而且他们甚至得到了这些问题的答案。所以我会问。请看,这是问题。如果有人知道关于这个问题的任何信息,请写信。

答案1

将问题重新表述为

可以在文件中指定其值的环境变量的完整列表在哪里config.asy

最有可能的是,可以在源文件中找到整个列表settings.cc,其中版本 2.59 的对应行Asymptote是:

addOption(new envSetting("config","config."+suffix));
addOption(new envSetting("htmlviewer", defaultHTMLViewer));
addOption(new envSetting("pdfviewer", defaultPDFViewer));
addOption(new envSetting("psviewer", defaultPSViewer));
addOption(new envSetting("gs", defaultGhostscript));
addOption(new envSetting("libgs", defaultGhostscriptLibrary));
addOption(new envSetting("epsdriver", defaultEPSdriver));
addOption(new envSetting("asygl", defaultAsyGL));
addOption(new envSetting("texpath", ""));
addOption(new envSetting("texcommand", ""));
addOption(new envSetting("dvips", "dvips"));
addOption(new envSetting("dvisvgm", "dvisvgm"));
addOption(new envSetting("convert", "convert"));
addOption(new envSetting("display", defaultDisplay));
addOption(new envSetting("animate", defaultAnimate));
addOption(new envSetting("papertype", "letter"));
addOption(new envSetting("dir", ""));
addOption(new envSetting("sysdir", systemDir));
addOption(new envSetting("textcommand","groff"));
addOption(new envSetting("textcommandOptions","-e -P -b16"));
addOption(new envSetting("textextension", "roff"));
addOption(new envSetting("textoutformat", "ps"));
addOption(new envSetting("textprologue", ".EQ\ndelim $$\n.EN"));
addOption(new envSetting("textinitialfont", ".fam T\n.ps 12"));
addOption(new envSetting("textepilogue", ".bp"));

另外,正如主要渐近线文档所述,函数

list("settings");

将列出模块中定义的所有全局变量settings,对于同一版本

int historylines;
bool animating;
real zoomstep;
bool wait;
bool pdfreload;
string command;
bool safe;
bool globalwrite;
int pdfreloaddelay;
string pdfreloadOptions;
bool autobillboard;
int level;
string gs;
int inpipe;
bool xasy;
string texcommand;
bool tabcompletion;
real resizestep;
string htmlviewer;
string asygl;
real vibrateTime;
string htmlviewerOptions;
string textcommand;
int antialias;
string libgs;
int scroll;
bool fitscreen;
string dvisvgm;
string textcommandOptions;
string outname;
string dvisvgmOptions;
bool where;
string textoutformat;
string align;
bool autoplay;
bool autoplain;
pair aligndir;
pair maxtile;
string outformat;
bool compact;
string textprologue;
string textepilogue;
string textextension;
string tex;
int digits;
bool threads;
bool bw;
bool svgemulation;
bool twosided;
bool inlinetex;
pair position;
string config;
string prompt;
bool inlineimage;
string prompt2;
string sysdir;
string convert;
bool thin;
bool parseonly;
string pdfviewer;
bool prc;
bool autorotate;
int outpipe;
string convertOptions;
string pdfviewerOptions;
string[] middlebutton;
bool envmap;
bool batchView;
bool exitonEOF;
string display;
bool keepaux;
bool batchMask;
bool debug;
string user;
string papertype;
real paperwidth;
real paperheight;
bool localhistory;
int verbose;
string dvips;
bool embed;
bool listvariables;
real spinstep;
bool multiline;
string dvipsOptions;
int multisample;
bool absolute;
bool multipleView;
bool reverse;
bool quiet;
bool toolbar;
bool thick;
string autoimport;
bool interrupt;
string hyperrefOptions;
bool interactiveView;
bool interactiveWrite;
string glOptions;
bool interactiveMask;
string[] rightbutton;
bool keep;
real framerate;
real render;
real framedelay;
string textinitialfont;
bool iconify;
pair viewportmargin;
bool auto3D;
bool offscreen;
string psviewer;
bool axes3;
bool loop;
string gsOptions;
string psviewerOptions;
bool gray;
real shiftWaitTime;
bool translate;
real zoomfactor;
string[] wheelup;
real shiftHoldDistance;
string[] wheeldown;
string[] suppress;
string[] leftbutton;
real zoomPinchCap;
string texpath;
pair maxviewport;
real zoomPinchFactor;
bool offline;
bool rgb;
string epsdriver;
bool cmyk;
string dir;
string animate;
bool twice;
pair offset;

相关内容