[texhax] Producing text and math in a 'spiral shape'

Iraj Kalantari I-Kalantari at wiu.edu
Fri Sep 14 18:28:53 CEST 2012


To Heiko:
Thank you very much!
Iraj.

=======================

To Herbert:
This is exactly what I had tried but did not work:
%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{pst-plot}
\usepackage{pst-text}
\usepackage{pstricks-add}

\begin{document}
\makeatletter
\hspace*{4cm}
\begin{pspicture}(2,2)(2,2)
% A \DoPerCharacter macro adapted from Juergen Schlegelmilch
% (posted on comp.text.tex - January 1998)
\def\DoPerCharacter#1#2#3\@nil{%
#1#2%
\edef\@tempa{#3}%
\ifx\@tempa\empty
\else
\DoPerCharacter#1#3\@nil
\fi}

\def\PerCharacter#1#2{\DoPerCharacter#1#2\@nil}

\pst at dimh=0.4pt

\def\CharacterAction#1{%
\psscalebox{1 \pst at number{\pst at dimh}}{#1}
\advance\pst at dimh by 0.01pt}

\pstextpath{\psplot
[linestyle=none,polarplot=true,plotpoints=300,unit=5]
{500}{-500}{1 2.7182818 x 200 div exp 1 add div}}% Spiral
{\PerCharacter{\CharacterAction}{%
$a^2 + b^2=c^2$ 3.141592653589793238462643383279502884197169399375%
10582097494459230781640}}

\end{pspicture}

\end{document}
%%%%%%%%%%%%%%%%%%%%






••••••••••••••••

On Sep 14, 2012, at 3:52 AM, Herbert Voss wrote:

> Am 13.09.2012 17:47, schrieb Iraj Kalantari:
>> In an exchange between Minsu Kim and Ulrike Fischer
>> 
>> (see
>> http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-07/msg00425.html
>> )
>> 
>> the focus is on how to create *text* in the shape of a spiral.  (See
>> source below.)  They use the digits of Pi for text in a successful example.
>> 
>> I tried to insert a mathematical formula bookended by $s (say $a^2 + b^2
>> =c^2$) but the source does not deliver and stops with an (odd) error
>> message.
> 
> show exactly what you tried
> 
> Herbert
> 
> 
>> 
>> Is there a remedy?  Is there a way to get mathematical formulas in the
>> shape of a spiral?
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org




More information about the texhax mailing list