# Tag Info

10

Here is one way to do this. The interesting part is the use of pic to draw your little squares by defining a new "picture" called mysquare. These squares take two arguments: the colour and the label. The arguments MUST be given as {#1, #2} or tikz will complain with cryptic error messages. In particular, note that there needs to be a space after the comma! ...

5

According to texdef, \pstverb is \special{" #1}, meaning that the parameter #1 is written to the PostScript file, leaving the interpretation and execution of it to PostScript interpreter itself. This macro wraps a gsave-grestore environment around the content of #1, so this is effectively a PostScript group, internal changes are not known outside. \pstVerb ...

3

The [show = all] identifies all the vertices. I suppose you used the [action = writesolid] option to get the coordinates of two vertices 15 and 108 in the file "mobius-sommets.dat", then you have calculated the coordinates of 2 points on this line? Here is a way to draw the line. It is not easy! \documentclass{article} \usepackage{pst-solides3d} ...

2

use the algebraic option of coordinates in PSTricks: \documentclass[pstricks]{standalone} \usepackage{pstricks} \begin{document} \begin{pspicture}(-16,5)(8.0,7) \pgfforeach \x in {-15,...,15} {% \pgfmathsetmacro\angle{\x*\x*\x/125 * 25.01} \pgfmathsetmacro\myMix{50-50*sin(\angle)} \psline[linecolor={red!\myMix!green}, linewidth=2pt]{->}% ...

Only top voted, non community-wiki answers of a minimum length are eligible