Questions about printing from Mathematica. Includes questions about scaling output, printing to PDF, specifying headers and footers and other layout elements, the printing environment style sheet version etc.

learn more… | top users | synonyms

32
votes
1answer
760 views

Version 10 cannot print properly?

Bug introduced in 10.0 and persisting through 10.4 or later I have two problems with printing in version 10. First, I can't print correctly with a setting of printing scale For example, I have ...
28
votes
4answers
4k views

Real Size Image Printing

I am generating a complicated graphics with Mathematica, but with objects of given sizes (e.g. a line of length 1 inch, between two points). I want to make sure that when I export the graphics, e.g. ...
20
votes
3answers
2k views

Removing In/Out Labels before printing

I know that I can close a notebook and open it again in order to remove the In/Out labels. What I would like to know is if there is another easy way of removing these labels without having to close ...
16
votes
4answers
2k views

Printing exported PDF graphics fails (version 8)

When I export even simple graphics, say, a DateListPlot to PDF under Windows, it refuses to print on any of the printers at work. Acrobat (Reader X) throws three ...
16
votes
2answers
5k views

How to print without having newline added automatically at the end?

Print["first part of the result", DateString[]] Print["addition to the result", DateString[]] will add a newline character at the end of line automatically for ...
10
votes
4answers
586 views

Typography messed up in prints

For a long time now I've had trouble printing Mathematica files. While the .nb itself displays just fine on my screen, the kerning is awful when printed. Screen: Print: And in case you ...
9
votes
3answers
329 views

Suppress Print[ ]s?

I have a complex program that prints out lots of diagnostic/tracing information. Is there some mechanism to evaluate it and suppress all printing? I know I could protect every ...
9
votes
2answers
203 views

Substituting confidential tagged cells by a “content removed” cell

When producing a notebook with both code and text, I often end up with pieces of code, or even entire chapters, that I don't want to be shown on the final output. I generally hide or close them by ...
7
votes
2answers
76 views

How to Add a PageBreak menu by MenuSetup.tr

In 1998 there was a discussion on comp.soft-sys.math.mathematica how to add am PageBreak menu to Mathematica. I used the recipe from there for very long time (in fact, I used Mathematica 4 till ...
7
votes
1answer
224 views

How do I re-direct FilePrint's output?

I recently wanted to use FilePrint to print the contents somewhere else but in the notebook I was using. However, the obvious-seeming solution doesn't work at all: ...
6
votes
1answer
162 views

How to let output and message be print to two separate external files?

How to let output and message be print to two separate external files? Also, I'd like the content print out to have similar look as when it's print inside the notebook, i.e. it should be in ...
6
votes
2answers
381 views

Consistent crash printing from Mathematica 10.2.0 and 10.1.0 in OS X 10.11 El Capitan

Printing from either 10.2.0 or 10.1.0, or any other print related function (Print Preview, Save as PDF) crash my Mathematica instantly. I've tried all the usual stuff like reinstalling, deleting user ...
6
votes
1answer
513 views

Problem printing what appears in my notebook

I have created a dashboard that looks fine on my screen and fits onto my screen at 100% magnification on Mathematica. When I try printing it, no matter what printing environment I use, I can not get ...
6
votes
1answer
154 views

How can I restore context menu functionality to a Manipulate that contains Locators?

Before adding a Locator to a Manipulate, I can easily print or export the result using a context menu: But after adding a ...
6
votes
0answers
113 views

How can I export a notebook as a single huge pdf page?

I have a notebook that I would like to export as a pdf file. I currently want to send this to a collaborator, but in general I'd like to keep the technique to future-proof my notebook collection ...
5
votes
2answers
534 views

How to capture Print output

How can I capture output from Print from a function which does not leave the printed object as its final output, (and which I do not wish to edit)? E.g. ...
5
votes
3answers
724 views

Printing a Dynamic variable inside Dynamic

I'm trying to Print the variable a inside the Dynamic wrapper. Seems like such a simple question, but I haven't been able to get ...
5
votes
3answers
188 views

Exporting PDF with large PaperSize

Suppose I create a new Notebook: nb = CreateDocument[{TextCell["PDF Test", "Section"], Table[PieChart@Range@5, {7}]}]; And set a big paper ...
5
votes
1answer
105 views

Why does Mathematica remember print settings?

Mathematica has a strange behavior with respect to printing and saving to PDF. It remembers the print settings, such as page range and number of copies along with the file. So if I print 50 copies ...
5
votes
1answer
227 views

Why are my images not printing at the expected size?

I understand how (in theory) to get images to be a specific size in inches, but when I follow the documentation, all of my output seems to be scaled down by a factor of a bit less than 70% (e.g., ...
5
votes
1answer
495 views

How to export large matrix from .nb file into .pdf

I have one technical problem with printing large matrix 50x50 with lot of data. Always when I want to export .nb to .pdf, I can see just part of matrix, never all. Is there solution for this? I need ...
4
votes
2answers
126 views

Is there a way to accelerate buffering to the screen

I have an application that does a bunch of small computations, mostly Table management, and logic around loops. It takes seconds to execute. However, when I turn on debug (a variable I set for ...
4
votes
1answer
116 views

Defining a function that prints both the name and value of a variable defined locally within the calling function

To save time when debugging with Print statements, I'd like to define a function -- call it PrintVal -- that prints both the name and value of a variable defined locally within the calling function. ...
4
votes
1answer
41 views

CForm not getting exp(), pow, log() functions

I'm performing derivatives in Mathematica and I want to use them in a C code. For that, I'm using CForm as for example in this expression: ...
4
votes
1answer
414 views

Page breaks within input cells

I am trying to print a notebook that begins with a lengthy piece of code that takes up almost an entire page. Because of my heading, it doesn't quite fit on Page 1, so Mathematica inserts a line break ...
4
votes
0answers
54 views

Usage information garbled when printed to pdf or printer

In Mathematica v10.2 running in the notebook Information ?Integrate yields the following But, when printed to printer or ...
3
votes
1answer
180 views

Run Command Not Executing Node

How do I make the following command work in Mathematia? Import["!\"C:\\Program Files\\nodejs\\node.exe\" -p console.log('test')", "Text"] I don't get any output ...
3
votes
2answers
51 views

Is it possible to retrieve a previous un-evaluated, un-normalized input?

For example, if I do this: In[42]:= {{2}, {3}} // MatrixForm where In[42]:= is the notebook prompt, I am looking for some way ...
3
votes
1answer
237 views

Ugly plots when printing notebook to pdf

One image is worth one thousand words, so: Question: At what options should I be looking, so that what I see in my notebook is what I get in my printed pdf ? Here is the code I'm using: ...
3
votes
1answer
91 views

Want actual cell data from CellEvaluationFunction

Let's say I print a cell like so. CellPrint@Cell[ BoxData[" "], "Input", Evaluatable -> True, CellEvaluationFunction -> Function[Print[#];] ] Now I ...
3
votes
1answer
119 views

How can I get NotebookPrint to pass through the system print dialog?

As near as I can tell, NotebookPrint goes directly to the default printer, without employing the system standard process of opening a print dialog first. ...
3
votes
1answer
157 views

Conditional printed output [duplicate]

I would like to use a Mathematica notebook as a printable document with conditional output. If the condition is true, some parts of the notebook should be printed; otherwise they should not be ...
3
votes
3answers
551 views

Temporarily redirect the output of Print[ ] to a second file

I have started using Mathematica to automate file backup operations. The logistics I need make Mathematica a good choice. I am testing and developing the Notebook manually, and ...
3
votes
2answers
234 views

Include Headers on first page

I know it is possible to check the box "Include headers on first page" in the "Headers and Footers" dialog box of the Print Settings menu item, but is it also possible to check this using commands in ...
3
votes
2answers
85 views

Frame with round corners does not look the same in Working and Printout environments

I want to generate some graphics that contain framed texts with rounded corners that display correctly in the Working and ...
3
votes
3answers
236 views

Preventing notebook cells from being broken across two pages when printing

Sometimes I create a number of plots together, e.g. by GraphicsGrid[]. If it happens that I have to print the notebook, very often the cell is broken, half on one ...
3
votes
1answer
190 views

Is it possible to change the fontsize when printing a notebook in the working environment?

I want to print a notebook that owns syntax color,I use the Szabolcs's method SetOptions[$FrontEndSession, PrintingStyleEnvironment -> "Working"] Then I can ...
3
votes
1answer
171 views

With limited memory, how can I export very long Print results into a PDF or a notebook file?

I have a script with a long loop and very long formatted outputs like the following example code: ...
3
votes
0answers
88 views

Duplex Printing from button inside DialogNotebook on Mac

All, I have the following code which generates a window containing the variable PrintOut and a Print button. When the print button is pressed the contents of the window are sent to the printer and ...
3
votes
0answers
492 views

With comma as decimal separator, how do you insert a period in the header/footer?

I have enabled comma as my decimal separator, which means that comma still acts normally and when pressing period it will be converted to a comma. In the header I would like to make a period, so I ...
2
votes
5answers
232 views

Making loop based off what I can say in words

I have a list of values a: {1,4,11,14} I want to print out values that satisfy b(1+a) = 0 mod 15 where b are the values from 0 to 14. The output I am wanting is ...
2
votes
2answers
406 views

How to specify units for ImageSize Option? [duplicate]

I'm trying out making a CDF and I want it to print within the margins of Letter paper. There is an ImageSize option that I would like to set; some plots will be in ...
2
votes
1answer
496 views

How do I change the size of the font for the output of the Print[] command?

I created a Stylesheet that increased the sizes of the fonts for the styles Input, Output and Text. Still, when I use the command Print[] the output comes out tiny. In the code below I added some ...
2
votes
1answer
158 views

How to break graph to fill in the gap in pdf

I've printed my notebook into a pdf. There is a huge gap in the left page, due to the fact that the graph in the right page isn't divided to fill in the gap. Is there a way to fix it, preferably ...
2
votes
1answer
35 views

Expanding/printing function with constrained arguments [duplicate]

Let's say you have a function $ f(t) = t, \text{ for } t > 0,$ declared in Mathematica as f[t_?(# > 0 &)] := t; How do you print that function? I ...
2
votes
1answer
45 views

Print to console bis

In the answer to this question, one explains how to use a function PrintToConsole[...] to print output to the console. My question: can you make a global definition that will automatically ...
2
votes
1answer
107 views

Print notebook with all cells opened

I have a long Mathematica notebook where some cells on multiple levels are closed for clarity. When I export the notebook as a PDF via Print or ...
2
votes
1answer
71 views

Followup question from "Temporarily redirect output of Print[ ] to a second file

I'm implementing the first answer to my earlier question about redirecting the output of Print[ ]. Opening a file with OpenWrite[] and assigning the stream to ...
2
votes
1answer
63 views

Adding headers and/or footers to a stylesheet

I would like to push a common header(file name and page number) across multiple notebooks using one Stylesheet. I know I can use the header/footer dialog on each notebook individually but this is ...
2
votes
2answers
77 views

How to change the default printing options using commmand?

I am looking for something like this: SetOptions[EvaluationNotebook[], "PaperSize" -> "A3"] The options are listed, but where do I find the arguments? Say ...