swarm-modeling
[Top][All Lists]
Advanced

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

Re: Presenting Results


From: jalex
Subject: Re: Presenting Results
Date: Tue, 12 Oct 1999 07:58:38 -0700 (PDT)

On Mon, 11 Oct 1999, M. Lang / S. Railsback wrote:

> I'll add to it: Who has experience, positive or negative, with pasting
> images from their Swarm windows into a journal article? We just changed
> our raster so it shows shades of grey instead of colors, to see if it
> would look better in print than colors converted to greyscale by the
> printer (probably not).

I grab window snapshots using xv and save the image in two separate
eps files, one color, one grayscale.  I've never found a serious
difference in image quality between this method and that produced by
later conversion of the color eps to grayscale (via ghostscript).

One advantage of having the two separate eps files is that it can make
final document preparation easier, if you use TeX/LaTeX.  Suppose you
have each image saved as two separate eps files: foo.eps and
gray-foo.eps.  The following macros will include the correct image
(color or grayscale) based on a single flag you can set at the
beginning of your document.

% Declare a new boolean variable 
\newif\ifcolor

% Change the next line to \colortrue if you want color, and to 
% \colorfalse if you want grayscale
\colortrue

% Put a simple wrapper around \includegraphics
\newcommand{\graphic}[2][]{%
  \ifcolor
    \includegraphics[#1]{#2}%
  \else
    \includegraphics[#1]{gray-#2}%
  \fi}

Instead of using \includegraphics, use \graphic to include images.
When preparing the manuscript, you can get color graphics by simply
setting \ifcolor to the correct value.  When you are ready to submit
the manuscript, simply change \colortrue to \colorfalse and you will
everywhere include grayscale images.

The advantage, of course, is that you can easily prepare a grayscale
version for submitting to a journal, and a color version for download
from your web-site.  Including the url of the color version in the
published manuscript will allow anyone interested in seeing the
"right" images to download it.


Cheers,

Jason



                  ==================================
   Swarm-Modelling is for discussion of Simulation and Modelling techniques
   esp. using Swarm.  For list administration needs (esp. [un]subscribing),
   please send a message to <address@hidden> with "help" in the
   body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]