Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 4183461[1X5 [33X[0;0YThe [5XIntPic[105X[101X[1X package options.[133X[101X234[1X5.1 [33X[0;0YAvailable options[133X[101X56[33X[0;0YThe list of allowed options, some of which already familiar from the7examples, can be obtained as follows:[133X89[4X[32X Example [32X[104X10[4X[25Xgap>[125X [27XRecNames(IP_TikzDefaultOptionsForArraysOfIntegers);[127X[104X11[4X[28X[ "other", "colors", "highlights", "shape_only", "colsep", "rowsep", [128X[104X12[4X[28X "cell_width", "allow_adjust_cell_width", "scale", "inner_sep", [128X[104X13[4X[28X "line_width", "line_color" ][128X[104X14[4X[32X[104X1516[33X[0;0YIts meaning is as follows:[133X1718[30X [33X[0;6Y[3Xcolors[103X: any list of colors (to be used with the LaTeX package [5Xxcolor[105X)[133X1920[30X [33X[0;6Y[3Xhighlights[103X: a list of lists of integers -- the elements of the first21are colored by using the first color, etc. In cases of elements that22appear in more than one list a kind of gradient (made with 4 colors at23most) is used to fill the cell; the number may be printed with a fifth24color and a sixt color may be used for the border.[133X2526[30X [33X[0;6Y[3Xshape_only[103X: an option to be used when only the shape is important.27When [3Xtrue[103X or " " is used, all the nodes are empty; using a symbol, for28instance a [22X*[122X, this symbol is printed in all the nodes.[133X2930[30X [33X[0;6Y[3Xcolsep[103X: the [5Xtikz[105X matrix option [3Xcolumn sep[103X[133X3132[30X [33X[0;6Y[3Xrowsep[103X: the [5Xtikz[105X matrix option [3Xrow sep[103X[133X3334[30X [33X[0;6Y[3Xcell_width[103X: the [5Xtikz[105X matrix option [3Xminimum width[103X[133X3536[30X [33X[0;6Y[3Xscale[103X: the [5Xtikz[105X matrix option [3Xscale[103X[133X3738[30X [33X[0;6Y[3Xinner_sep[103X: the [5Xtikz[105X matrix option [3Xinner sep[103X[133X3940[30X [33X[0;6Y[3Xline_width[103X: the [5Xtikz[105X matrix option [3Xline width[103X[133X4142[30X [33X[0;6Y[3Xline_color[103X: the [5Xtikz[105X matrix option [3Xline color[103X: the color of the cell43borders[133X4445[30X [33X[0;6Y[3Xallow_adjust_cell_width[103X: the number of points per digit (to avoid46discrepancies between the width of the cells when there are numbers47with different number of digits to be printed). When the user sets the48option cell_width, then allow_adjust_cell_width is automatically set49to [3Xfalse[103X[133X5051[30X [33X[0;6Y[3Xother[103X: if non empty, the complete [10Xtikz[110X code has to be written (it may52be useful when several images are to be produced - otherwise, changing53the [10Xtikz[110X code would be enough)[133X5455[4X [32X Example [32X[104X56[4X[28Xother := ["\\draw[postaction={draw,line width=1pt,red}] (-80pt,-8pt) [128X[104X57[4X[28Xrectangle (16pt,40pt);","\\draw[postaction={draw,line width=1pt,blue}] [128X[104X58[4X[28X(-16pt,8pt) rectangle (80pt,-40pt);"][128X[104X59[4X[32X[104X6061[33X[0;0YAdding this option to one of the preceding examples, one obtains the62following:[133X636465[1X5.2 [33X[0;0YDefault options[133X[101X6667[33X[0;0YThe defaults for the available options are as follows[133X6869[30X [33X[0;6Y[3Xcolors[103X: ShuffledIP_colors[133X7071[30X [33X[0;6Y[3Xhighlights[103X: [[]][133X7273[30X [33X[0;6Y[3Xshape_only [103X: "false"[133X7475[30X [33X[0;6Y[3Xcolsep[103X: "2"[133X7677[30X [33X[0;6Y[3Xrowsep[103X: "2"[133X7879[30X [33X[0;6Y[3Xcell_width[103X: "30"[133X8081[30X [33X[0;6Y[3Xscale[103X: "1"[133X8283[30X [33X[0;6Y[3Xinner_sep[103X: "3"[133X8485[30X [33X[0;6Y[3Xline_width[103X: "0"[133X8687[30X [33X[0;6Y[3Xline_color[103X: "black"[133X8889[30X [33X[0;6Y[3Xallow_adjust_cell_width[103X: "10"[133X9091[30X [33X[0;6Y[3Xother[103X: [][133X9293[33X[0;0YThey may be consulted:[133X9495[4X[32X Example [32X[104X96[4X[25Xgap>[125X [27XIP_TikzDefaultOptionsForArraysOfIntegers;[127X[104X97[4X[28Xrec( allow_adjust_cell_width := "10", cell_width := "30", [128X[104X98[4X[28X colors := [ "red", "green", "blue", "-red", "-green", "-blue", "black!80", [128X[104X99[4X[28X "black!30", "red!50", "green!50", "blue!50", "-red!50", "-green!50", [128X[104X100[4X[28X "-blue!50", "black!70", "black!25", "red!20", "green!20", "blue!20", [128X[104X101[4X[28X "-red!20", "-green!20", "-blue!20", "black!60", "black!20", [128X[104X102[4X[28X "red!80!green!50", "green!80!red!50", "blue!80!red!50", [128X[104X103[4X[28X "-red!80!green!50", "-green!80!red!50", "-blue!80!red!50", "black!50", [128X[104X104[4X[28X "black!15", "red!80!blue!60", "green!80!blue!60", "blue!80!green!60", [128X[104X105[4X[28X "-red!80!blue!60", "-green!80!blue!60", "-blue!80!green!60", [128X[104X106[4X[28X "black!40", "black!10" ], colsep := "2", highlights := [ [ ] ], [128X[104X107[4X[28X inner_sep := "3", line_color := "black", line_width := "1", other := [ ], [128X[104X108[4X[28X rowsep := "2", scale := "1", shape_only := "false" )[128X[104X109[4X[28X[128X[104X110[4X[28X [128X[104X111[4X[32X[104X112113[33X[0;0YThe user may want to change the defaults by editing the file [10Xoptions.gd[110X in114the folder [10Xgap[110X. The changes are lost whenever any re-installation occurs. It115is recommended that in this case a copy is made, although it is not116guaranteed that it will work in the next release.[133X117118119120