Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1806

Printing "full version" or "publication version" of same notebook?

From AES <siegman@stanford.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Printing "full version" or "publication version" of same notebook?
Date 2011-04-21 07:10 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iool8u$bnm$1@smc.vnet.net> (permalink)

Show all headers | View raw


Looking for a simple -- emphasis on simple -- way to print (or 
alternatively Export to PDF) a "full version" or a "publication version" 
of the same notebook(s), which one could just select at Print time.

Example:  Assume you have a large family of notebooks, all using same 
stylesheet.  At Print time for any one of these, you want to be able to 
select -- using ideally just a single menu selection or mouse click -- 
between printing the full notebook (all cells), or printing a 
"publication version" with certain cells suppressed (and maybe maybe 
other formatting changes, though that's a  secondary factor).  How to do 
this?

I suppose one might put a "print/no print" setting controlled by a "full 
version/pub version" variable and and If[ ] statement into every cell in 
every notebook --but that's a pain!

One might make the print/noprint decision based on cell Style names -- 
certain cells (like maybe Code cells) would be suppressed when you 
printed in pub form.

Or, you could use a single stylesheet containing a "FullCode" style and 
a "PubCode" style.  Cells in either style would execute identically as 
Code cells, but the FullCode cells would be printed or not printed 
depending on how a certain variable was set

Another way would be to define two stylesheets --  ReportFullPrint and 
ReportPubForm -- having the same set of Style names but different 
definitions for how these cells printed.  This would also allow 
different formatting for the two cases -- but messing with stylesheets 
is not an easy skill to learn, and having to apply the ReportPubForm 
stylesheet to  the whole notebook before pub printing (and change it 
back afterwards) would be a pain.

Other ways (simple ways!) to go at this . . . ?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Printing "full version" or "publication version" of same notebook? AES <siegman@stanford.edu> - 2011-04-21 07:10 +0000

csiph-web