Questions tagged [printing]
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.
188
questions
0
votes
0
answers
5
views
With both 14.0 and 14.1 Save as PDF (print preview) has become completely mangled
For over a decade, I have been using the same method of creating and saving notebooks as PDF. For some reason saving to PDF started to produce complete gibberish for most of the styles I use. It ...
1
vote
0
answers
36
views
How to inactivate Print when launching a notebook from another notebook? [duplicate]
I am launching a notebook from another notebook:
NotebookEvaluate[
FileNameJoin[{NotebookDirectory[], "path-to-notebook"}]]];
The latter contains ...
0
votes
0
answers
36
views
Can one force Print[] statements within a Dynamic[] to appear in the Notebook? If so, should one ever do that?
For a simple demostration of the behavior, note that the print statements in this expression appear in the Messages window: ...
1
vote
0
answers
47
views
Stop AutoScroll with PrintTemporary
I would like the workaround in this thread, but for PrintTemporary instead of Print.
In particular, I have followed the answer from @b3m2a1 (which works fine for Print) and tried to adapt it to ...
3
votes
1
answer
108
views
Print in TableForm
Hi I have this code which runs fine, however it does not print things at the end in nice TableForm. I want it to print things nicely in the form of a table with some headings. However if I use ...
2
votes
4
answers
398
views
Horizontal version of Print[]
With the following code I produce the binary digits of n=13:
n=13;
Q = Quotient[n, 2];
While[Q != 0, Print[Mod[n, 2]]; Q = Quotient[n, 2]; n = Q]
The problem is ...
0
votes
1
answer
39
views
Print into different cell groups inside module
I have a function with the following (simplified) structure:
...
0
votes
1
answer
47
views
1
vote
0
answers
59
views
Hyperlinks in plain text not preserved when saving in PDF format in Mathematica V13
I have a notebook containing hyperlinks, but when I save it in pdf format (print to PDF) the hyperlinks are not blue and not clickable.
According to Hyperlinks not preserved when saving in PDF format ...
1
vote
1
answer
239
views
Pdf export is heavily flawed for simplest possible notebook such as a=b+c
File > save As ... > pdf (or print as pdf) gives me extremely bad results even for the most basic simplest possible Mathematica notebooks.
Here a simple example where I can reproduce the problem....
0
votes
0
answers
188
views
How to publish a Mathematica notebook to a journal as supplementary material?
I've done part of a proof via Mathematica. In the appendix of the paper I've linked to this published notebook, since I misunderstood "With any paid subscription plan, all files stored in the ...
0
votes
0
answers
18
views
How to print output within an input block? [duplicate]
I would like to print data within a signle input block in a way something like this:
...
1
vote
0
answers
48
views
Printout precision [closed]
For debugging, I print out the SessionTime. In the Notebook it looks like:
...
0
votes
1
answer
54
views
Can Print no longer access certain values during evaluation? [duplicate]
This example from Power Programming in Mathematica doesn't work for me anymore: the values used for rootfinding are not printed during evaluation. What changed? Is there a new way to reproduce the old ...
0
votes
0
answers
32
views
Generate random arithmetic test with MMA
I have been trying for a long time to generate a question test where operations with 2 rationals appear printed.
Can someone help me with the code?
shows the following errors.
a) The options appear ...
0
votes
2
answers
62
views
Easiest way to print without breakline
So I have factorized a transfer function and stored the terms in a variable. I want to print the product of terms without Mathematica joining them and without a break line. I have managed the first, ...
2
votes
1
answer
100
views
Preface text output with Print
In the output of a script that calls Mathematica I would like to be able to differentiate lines printed by mathematica from lines printed by something else. I thought of prefacing lines printed by ...
0
votes
0
answers
54
views
Print Grid of Strings and LateX prettyprint?
I want to include a table (or really a Grid) object in my notebook that explains what mathematical expressions some variables in my code correspond to. For example, if I have the variable ...
4
votes
0
answers
71
views
Exporting graphics of precisely specified measurements for printing [duplicate]
None of the links bellow seem to answer the problem with printing graphics "scaled to the real world" anymore:
real size image printing
exporting pdf with a precise page dimension in metric ...
0
votes
1
answer
68
views
Print but not evaluate with dagger
I would like to print $a^\dagger$ (meaning conjugate transpose), but using Mathematica library function ConjugateTranspose[a] (displayed as $a^\dagger$ when typing <...
2
votes
1
answer
210
views
How to use same cell for printing in a loop?
I want to manually tag images.
For example, we prepare a list of images like
imgList = Table[Rasterize[i, ImageSize -> 50], {i, {a, b, c}}]
it gives
Now I made ...
1
vote
0
answers
33
views
The same figure prints on two consecutive pages
I have a Mathematica 13 notebook that includes some illustrations that repeat across pages when the document is printed. The figure is not duplicated in the notebook - there are not two figure cells ...
3
votes
0
answers
508
views
Why Mathematica 13.1 shuts down completely when printing to console but not to the notebook?
reported to WRI. ID [CASE:4950759]
I just found a very serious problem in V 13.1. Hoping someone will have a workaround.
I am able to reproduce this each time. V 13.1 on windows 10 pro. All from ...
1
vote
1
answer
117
views
Why is Alignment not honored in the first two headline columns?
Consider this example:
...
3
votes
2
answers
238
views
Is there a function similar to Print which really respects tabs and newlines?
I am looking for something which acts like Print, preferably with the same syntax, which lets me arrange things in columns of proper width (i.e. if an item in a ...
4
votes
2
answers
260
views
How to print parentheses?
I have obtained a formula in Mathematica and I want to transfer it to Microsoft Word so I did this:
...
1
vote
1
answer
154
views
Monitoring Table or Do with Print
Imagine I want to track the progress of constructing a complex Table or Do object by temporarily printing the iteration number. ...
0
votes
1
answer
80
views
Output not showing in For loop
My code is
...
1
vote
0
answers
86
views
How to tile images such that all space on an A4 page is used up?
how to tile images in a pdf A4 page such that most of the space is used up?
here is my attempt:
...
3
votes
3
answers
132
views
Apply HoldForm on only a part of an expression
This expression:
Det[Array[a, {3, 3}]]
is evaluated as:
$-a(1,3) a(2,2) a(3,1)+a(1,2) a(2,3) a(3,1)+a(1,3) a(2,1) a(3,2)-a(1,1) a(2,3)a(3,2)-a(1,2) a(2,1) a(3,3)+a(...
1
vote
1
answer
136
views
Is it possible to do grid like printing on commandline when executing scripts on Ubuntu?
I am executing scripts on command line (cli) using wolfram -script code.m. However I couldn't find a solution that can print data in a grid like or fixed-width ...
1
vote
0
answers
44
views
How to Block the Output of WriteString?
I have an external package that uses the following function internally to print messages,
PrintOutput[x__] := WriteString[$Output, x];
I want to block all the ...
2
votes
1
answer
194
views
How do I print a notebook in color?
How to print a notebook in color?
When I select File>Print from the menu the output is in black and white, except error messages and lines in plots. I need to print the actual color version of the ...
0
votes
0
answers
48
views
How to force a figure to fill the upper part of an A4 paper, when printing on Mathematica?
I have produced a figure and am trying to print it in A4 paper. How can I force the figure to fill the upper part of my page? For example, see:
I'd like to force that figure to occupy all the upper ...
1
vote
0
answers
88
views
Odd printing / print preview
Bug introduced in 12.2 or earlier and fixed in 12.3
What's is going on here with the print display in my Mathematica? Has anyone else seen this behavior? The notebook looks completely normal in the ...
2
votes
1
answer
84
views
Can I change how certain expressions are displayed/printed upon evaluation?
I'm writing some operations for Young tableaus and I would like the evaluation of an expression of type young[a_] to be printed the same as ...
1
vote
0
answers
296
views
Using printf for formatted print
My data is
data = {{1, 1, 1, 1, 0.469258}, {1, 1, 1, 2, 0.}, {1, 1, 1, 3, -0.000123615}}
On linux-like systems there is a printf...
11
votes
1
answer
358
views
Graphics not correctly produced when saving to PDF in Version 12
12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)
How do I get my graphic to look the same in PDF as it does in a Notebook?
This is what the graphic looks like in the FrontEnd:
This is how the ...
2
votes
2
answers
287
views
Print function value at specified coordinate
Below is the code to evaluate the function.
I am trying to print the function values at a specified coordinate as shown in ActCoor.
...
0
votes
0
answers
96
views
Code breaks as soon as I try to print a variable
Edit
I think I figured out what was wrong. Since I was adding in Print[m] after I ran the loop, I had to clear my variables if I wanted to run the loop again. I ...
2
votes
1
answer
194
views
Alternative to "Echo" to output intermediate steps
I want to see the intermediate steps of my Program.I have placed Echo in places where it matters such as before plugging in a relation and before simplifying the expression,so that i can see all the ...
0
votes
0
answers
214
views
How to Print or Export to PDF without truncation in Mathematica 12.1
My notebook looks fine on screen, but Dataset output is truncated in printing. I've read similar queries (as long back as 6 years ago) and experimented thoroughly with no success (including all print ...
1
vote
2
answers
836
views
Printing Array elements in the same line
Although I searched a bit on google but did not find a quick and easy answer.
So suppose we have an array with, say 3 elements
X[1]={a,b};X[2]={w,f,s};X[3]={t,y,u};
...
0
votes
2
answers
181
views
How to align TableForm entries at the decimal point and give it two-digit right-side floating point precision for monetary amounts?
My question essentially asks everything but I shall rephrase it to make certain it is well understood.
1. How to print all entries in rows of a column so that they align perfectly at the decimal ...
3
votes
1
answer
140
views
having a logo or a graphics in the header or footer or a printout
I managed to add footers and headers to my document when I print it. But there seems to be no chance to have anything other than text. How can I add a graphics like a logo or an image?
something like:...
5
votes
1
answer
165
views
Printing several A4 pages in PDF
I want to create a pdf file with several pages. Each page should contain only an image without any margins. It works fine when I'm exporting just one image as pdf, but some weird margins appear when I'...
2
votes
0
answers
132
views
Characters don't print right in WolframScript
Mathematica version: 12.1 & 11.3
Platform: Windows 10
Since windows's cmd is GBK, so my file is GBK.
...
1
vote
1
answer
78
views
Get all step values from a while-loop
I did a loop (first of my life) for an iterative calculation. Is it possible to get all step values as a matrix. That means the "xValue" variable should be like {215.108,219.688,...} and not only the ...
3
votes
1
answer
348
views
Printing Values Within a Function
Below is a function to calculate the overlap between two gaussian functions.
...
0
votes
1
answer
114
views
An extraneous line appears in the printed version of a Mathematica-image in a pdf-document
My system/workflow
Mathematica version 11
MikTeX 2.9: tex->dvi->ps->pdf->paper
I have run into the following difficulty. I cannot tell whether the problem is caused by Mathematica, MikTeX, Adobe, or ...