[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [seul-edu] Hello from Crosswords for Linux maintainer



On Sun, 9 Apr 2000, Manuel Gutierrez Algaba wrote:
>On Sun, 9 Apr 2000 rnd@sampo.karelia.ru wrote:

Probably this is not proper for seul-edu list, but it serves as
educational example of quick hacking using Linux and how easy
it is to make things done thru scripts vs. GUI.

Some idea how to generate GIFs with letters:
(Linux is real easy, isn't it?)

------------>( -------

#!/bin/bash

for i in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
do
  # %  \def\lett{á}
  (echo "\\def\\lett{$i}"; cat let.tex ) > alet.tex
  latex alet
  dvips alet.dvi -o alet.ps
  #  gv alet.ps
  pstopnm alet.ps          # *.pbm
  pnmcut 110 150 16 16 alet001.ppm > aletc.pbm
  ppmtogif aletc.pbm > $i.gif
done
rm alet*.*
echo 'now we have  ?.gif for all latin letters'

------------>( -------

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% let.tex
%  \def\lett{á}
% this was copied from one of my tex docs

\documentclass[12pt]{report}
\usepackage[koi8-r]{inputenc}            % - put your lang here
\usepackage[english,russian]{babel}      % /
\usepackage[T2A,T1]{fontenc}             %

\paperwidth = 14mm             % are these needed?
\paperheight = 21mm            %
\textwidth = 14mm              %
\textheight = 21mm             %
\marginparwidth = 0.0in
\marginparsep = 0.0in
\topmargin = 0.0in
\evensidemargin = 0.0in
\oddsidemargin = 0.0in

\begin{document}
\pagestyle{empty}
\begin{center}
\lett
\end{center}
\end{document}

------------>( -------

Sincerely yours, Roman Suzi
--
Russia * Karelia * Petrozavodsk * rnd@rsuzi.pgu.karelia.ru
* Sunday, April 09, 2000 * Powered by Linux RedHat 6.0
* "Last week I forgot how to ride a bicycle."