Elaborating on a solution obtained from the accepted answer of my earlier question, I would like to rotate upside-down labels on the righthand side of the rosetta using modulus.
\documentclass[dvipsnames,pstricks]{standalone}
\usepackage{multido}
\usepackage{arrayjobx}
\begin{document}
\begin{pspicture}(-3.5,-3.5)(3.5,3.5)
\newarray\Names
\readarray{Names}{Tankegang&Problembehandling&Modellering&Ræsonnement&Hjælpemiddel&Kommunikation&Symbol- og formalisme&Repræsentation}
\multido{\iA=1+1,\rA=112+45}{8}{%
\rput{!\rA\space 180 sub}(2;\rA){\Names(\iA)}}
\end{pspicture}
\end{document}
The output is
What I mean is that I want to calculate label rotation angles modulo 180, but contrary to my expectation, \rput{!\rA\space 180 sub 180 mod}(... produces multiple copies of the terse error message:
MiKTeX GPL Ghostscript
9.19: Unrecoverable error, exit code 1
I compile on a Win10 PC using TexMaker 4.5, calling XeLaTeX.
I read the following discussions, but do not seem to get to a solution:
- No visible images in PDF: MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1 and the questions referenced there.


!\rA\space cvi 180 sub 180 mod– Jun 27 '17 at 06:04\rAyou can also use\iBthen you do not need the conversion into an integer. In your first example you startet with a real angle value. However, I have no idea about your error message because I do not have any problem. – Jun 27 '17 at 07:18modprovoking the mentioned error. Both arguments tomodmust be integers. – Morten Engelsmann Jun 27 '17 at 07:26!\iB\space 90 add 180 mod 90 subdoes the trick of correctly rotating the labels as wished. – Morten Engelsmann Jun 28 '17 at 10:30modaltogether – Morten Engelsmann Jun 28 '17 at 14:19