GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X1 [33X[0;0YThe [5XIntPic[105X[101X[1X package[133X[101X234[1X1.1 [33X[0;0YOverview and Introduction[133X[101X56[33X[0;0YThe [5XIntPic[105X package has as its main goal producing [10XTikz[110X code for arrays of7integers to be included in a LaTeX file, which can then be processed. Some8of the integers are emphasized, by using different colors for the cells.[133X910[33X[0;0Y[5XIntPic[105X grew up from my will to have a pictorial view of some sets of11integers. I wanted, in particular, get a pictorial view of the results12produced by the [5XNumericalSgps[105X package [DGSM15]. Effort has then been made to13serve a slightly more general purpose. For instance, if the user wants to14have a pictorial idea of how many primes there are between 800 and 1000, or15show it to his students and, perhaps, which among these primes are twin16primes, he will probably be happy by producing a picture like the following[133X1718[33X[0;0YIt has clearly too much information, given through the different colors. The19twin primes in the given range are in red-blue, while the remaining primes20in the same range are in red.[133X2122[33X[0;0YThis package contains relatively few lines of code. The heavier part is the23documentation, where many examples are presented.[133X2425[33X[0;0YThe design of this greatly benefits from my long experience on producing26visualization tools for [5XGAP[105X objects. The package [5Xsgpviz[105X [DM08] is the27visible part. More recently, I got involved in a more general project, the28[5XViz[105X package [DENMP12]. The experience gained there, especially through long29and fruitful discussions with J. Mitchell, influenced me a lot. This package30will probably be part of that more general project. For the moment it is31independent, but its use in conjunction with the [5XViz[105X package is recommended32since in this case an immediate visualization is provided.[133X3334[33X[0;0YThe package produces [10Xtikz[110X code that the user may then use at his wish. In35particular, he can use it in publications. But prior to obtaining results36that lead to a publication, the user may benefit of viewing thousands of37images. There is a (almost platform independent) function in [5XViz[105X that is38intended to make this task easy. It benefits from the [5XGAP[105X stuff on creating39a temporary directory where the computations occur. The cleaning task is40also left to [5XGAP[105X, which leaves the user free of the need of collecting the41garbage. In order to produce the drawings, LaTeX, as well as some LaTeX42packages, in particular [10Xtikz[110X and [10Xpgf[110X, must be installed and working. I will43assume that this is the case. All the images in [DFGSL14] have been produced44by using the [5XIntPic[105X package.[133X4546[33X[0;0YThis package consists basically of a function with many options associated.47The purpose of the manual is to illustrate the use of the options. Many48examples are presented. A file, named [11Xexamples.g[111X contains the [5XGAP[105X code,49including the one to save the [10Xtikz[110X code, to produce the examples in the50manual.[133X515253[1X1.2 [33X[0;0YInstalling [5XIntPic[105X[101X[1X[133X[101X5455[33X[0;0YIn this section we give a brief description of how to start using [5XIntPic[105X. If56you have any problems getting [5XIntPic[105X working, then you could try emailing me57at [7Xmailto:[email protected][107X.[133X5859[33X[0;0YIt is assumed that you have a working copy of [5XGAP[105X with version number 4.5 or60higher. The most up-to-date version of [5XGAP[105X and instructions on how to61install it can be obtained from the main [5XGAP[105X web page62[7Xhttp://www.gap-system.org[107X.[133X6364[33X[0;0YIf the [5XIntPic[105X package was obtained as a part of the [5XGAP[105X distribution from65the [21XDownload[121X section of the [5XGAP[105X website, you may proceed to Section [14X1.3[114X.66Alternatively, the [5XIntPic[105X package may be installed using a separate archive,67for example, for an update or an installation in a non-default location (see68[14X'Reference: GAP Root Directories'[114X).[133X6970[33X[0;0YBelow we describe the installation procedure for the [11X.tar.gz[111X archive format,71which can be obtained from [7Xhttp://cmup.fc.up.pt/cmup/mdelgado/intpic/[107X.72Installation using other archive formats or non UNIX-like systems is73performed in a similar way.[133X7475[33X[0;0YTo install the [5XIntPic[105X package, unpack the archive file, which should have a76name of the form [10X intpic-[3XXXX[103X[10X.tar.gz [110X for some version number [3XXXX[103X, by typing[133X7778[33X[0;0Y [10X gzip -dc intpic-[3XXXX[103X[10X.tar.gz | tar xpv [110X[133X7980[33X[0;0YIt may be unpacked in one of the following locations:[133X8182[30X [33X[0;6Yin the [11Xpkg[111X directory of your [5XGAP[105X installation;[133X8384[30X [33X[0;6Yor in a directory named [11X.gap/pkg[111X in your home directory (to be added85to the [5XGAP[105X root directory unless [5XGAP[105X is started with [10X-r[110X option);[133X8687[30X [33X[0;6Yor in a directory named [11Xpkg[111X in another directory of your choice88(e.g. in the directory [11Xmygap[111X in your home directory).[133X8990[33X[0;0YIn the latter case one must start [5XGAP[105X with the [10X-l[110X option, e.g. if your91private [11Xpkg[111X directory is a subdirectory of [11Xmygap[111X in your home directory you92might type:[133X9394[33X[0;0Y [10X gap -l "[3X;myhomedir[103X[10X/mygap" [110X[133X9596[33X[0;0Ywhere [3Xmyhomedir[103X is the path to your home directory, which may be replaced by97a tilde (the empty path before the semicolon is filled in by the default98path of the [5XGAP[105X home directory).[133X99100101[1X1.3 [33X[0;0YLoading [5XIntPic[105X[101X[1X[133X[101X102103[33X[0;0YTo use the [5XIntPic[105X Package you have to request it explicitly. This is done by104calling [2XLoadPackage[102X ([14XReference: LoadPackage[114X):[133X105106[4X[32X Example [32X[104X107[4X[25Xgap>[125X [27XLoadPackage("intpic");[127X[104X108[4X[32X[104X109110[33X[0;0YThe package banner, followed by [10Xtrue[110X, will be shown, if the load has been111successful.[133X112113[33X[0;0YIf you want to load the [5XIntPic[105X package by default, you can put the114[10XLoadPackage[110X command into your [11Xgaprc[111X file (see Section [14X'Reference: The115gap.ini and gaprc files'[114X).[133X116117118119