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: 418346<?xml version="1.0" encoding="UTF-8"?>12<Chapter Label="options">3<Heading>4The <Package>IntPic</Package> package options.5</Heading>6<Section>7<Heading>Available options</Heading>8The list of allowed options, some of which already familiar from the examples, can be obtained as follows:9<Example><![CDATA[10gap> RecNames(IP_TikzDefaultOptionsForArraysOfIntegers);11[ "other", "colors", "highlights", "shape_only", "colsep", "rowsep",12"cell_width", "allow_adjust_cell_width", "scale", "inner_sep",13"line_width", "line_color" ]14]]></Example>15Its meaning is as follows:16<List>17<Item>18<A>colors</A>: any list of colors (to be used with the &LaTeX; package <Package>xcolor</Package>)19</Item>20<Item>21<A>highlights</A>: a list of lists of integers -- the elements of the first are colored by using the first color, etc. In cases of elements that appear in more than one list a kind of gradient (made with 4 colors at most) is used to fill the cell; the number may be printed with a fifth color and a sixt color may be used for the border.22</Item>23<Item>24<A>shape_only</A>: an option to be used when only the shape is important. When <A>true</A> or " " is used, all the nodes are empty; using a symbol, for instance a <M>*</M>, this symbol is printed in all the nodes.25</Item>26<Item>27<A>colsep</A>: the <Package>tikz</Package> matrix option <A>column sep</A>28</Item>29<Item>30<A>rowsep</A>: the <Package>tikz</Package> matrix option <A>row sep</A>31</Item>32<Item>33<A>cell_width</A>: the <Package>tikz</Package> matrix option <A>minimum width</A>34</Item>35<Item>36<A>scale</A>: the <Package>tikz</Package> matrix option <A>scale</A>37</Item>38<Item>39<A>inner_sep</A>: the <Package>tikz</Package> matrix option <A>inner sep</A>40</Item>41<Item>42<A>line_width</A>: the <Package>tikz</Package> matrix option <A>line width</A>43</Item>44<Item>45<A>line_color</A>: the <Package>tikz</Package> matrix option <A>line color</A>: the color of the cell borders46</Item>47<Item>48<A>allow_adjust_cell_width</A>: the number of points per digit (to avoid discrepancies between the width of the cells when there are numbers with different number of digits to be printed). When the user sets the option cell_width, then allow_adjust_cell_width is automatically set to <A>false</A>49</Item>50<Item>51<A>other</A>: if non empty, the complete <C>tikz</C> code has to be written (it may be useful when several images are to be produced - otherwise, changing the <C>tikz</C> code would be enough)52<Example><![CDATA[53other := ["\\draw[postaction={draw,line width=1pt,red}] (-80pt,-8pt)54rectangle (16pt,40pt);","\\draw[postaction={draw,line width=1pt,blue}]55(-16pt,8pt) rectangle (80pt,-40pt);"]]]></Example>56</Item>57</List>58Adding this option to one of the preceding examples, one obtains the following:59<Alt Only="LaTeX">60\begin{center}61\includegraphics[width=0.80\textwidth]{../images/table_axis_ground_shape_other_option}62\end{center}63</Alt>64<Alt Only="HTML">65<br><center><img src="../images/table_axis_ground_shape_other_option.jpg"></center><br>66</Alt>6768</Section>69<Section><Heading>Default options</Heading>70The defaults for the available options are as follows71<List>72<Item> <A>colors</A>: <![CDATA[ShuffledIP_colors]]></Item>73<Item>74<A>highlights</A>: <![CDATA[ [[]] ]]>75</Item>76<Item>77<A>shape_only </A>: <![CDATA["false"]]>78</Item>79<Item>80<A>colsep</A>: <![CDATA["2"]]>81</Item>82<Item>83<A>rowsep</A>: <![CDATA["2"]]>84</Item>85<Item>86<A>cell_width</A>: <![CDATA["30"]]>87</Item>88<Item>89<A>scale</A>: <![CDATA["1"]]>90</Item>91<Item>92<A>inner_sep</A>: <![CDATA["3"]]>93</Item>94<Item>95<A>line_width</A>: <![CDATA["0"]]>96</Item>97<Item>98<A>line_color</A>: <![CDATA["black"]]>99</Item>100<Item>101<A>allow_adjust_cell_width</A>: <![CDATA["10"]]>102</Item>103<Item>104<A>other</A>: <![CDATA[[]]]></Item>105</List>106107They may be consulted:108<Example><![CDATA[109gap> IP_TikzDefaultOptionsForArraysOfIntegers;110rec( allow_adjust_cell_width := "10", cell_width := "30",111colors := [ "red", "green", "blue", "-red", "-green", "-blue", "black!80",112"black!30", "red!50", "green!50", "blue!50", "-red!50", "-green!50",113"-blue!50", "black!70", "black!25", "red!20", "green!20", "blue!20",114"-red!20", "-green!20", "-blue!20", "black!60", "black!20",115"red!80!green!50", "green!80!red!50", "blue!80!red!50",116"-red!80!green!50", "-green!80!red!50", "-blue!80!red!50", "black!50",117"black!15", "red!80!blue!60", "green!80!blue!60", "blue!80!green!60",118"-red!80!blue!60", "-green!80!blue!60", "-blue!80!green!60",119"black!40", "black!10" ], colsep := "2", highlights := [ [ ] ],120inner_sep := "3", line_color := "black", line_width := "1", other := [ ],121rowsep := "2", scale := "1", shape_only := "false" )122]]>123</Example>124125The user may want to change the defaults by editing the file <C>options.gd</C> in the folder <C>gap</C>. The changes are lost whenever any re-installation occurs. It is recommended that in this case a copy is made, although it is not guaranteed that it will work in the next release.126</Section>127</Chapter>128129130