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.

Filter by
Sorted by
Tagged with
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
1 vote
0 answers
43 views

Printout precision [closed]

For debugging, I print out the SessionTime. In the Notebook it looks like: ...
0 votes
1 answer
48 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 ...
  • 1,706
0 votes
0 answers
29 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 ...
  • 55
0 votes
2 answers
49 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, ...
0 votes
1 answer
51 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 ...
  • 3,823
0 votes
0 answers
42 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 ...
  • 33
3 votes
0 answers
66 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 ...
  • 5,915
0 votes
1 answer
39 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 <...
  • 163
2 votes
1 answer
141 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 ...
  • 16.6k
1 vote
0 answers
30 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 ...
  • 2,185
2 votes
0 answers
268 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 ...
  • 127k
1 vote
1 answer
108 views

Why is Alignment not honored in the first two headline columns?

Consider this example: ...
3 votes
2 answers
208 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
154 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,228
1 vote
1 answer
73 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. ...
  • 4,362
0 votes
1 answer
69 views

Output not showing in For loop

My code is ...
1 vote
0 answers
59 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
114 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
90 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 ...
  • 998
1 vote
0 answers
41 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 ...
  • 1,092
2 votes
1 answer
138 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
43 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 ...
  • 5,061
1 vote
0 answers
64 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 ...
  • 4,291
2 votes
1 answer
71 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
205 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...
  • 17k
11 votes
1 answer
342 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
150 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
83 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
136 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 ...
  • 576
0 votes
0 answers
168 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
490 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}; ...
  • 1,092
0 votes
2 answers
141 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 ...
  • 2,337
3 votes
1 answer
122 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
139 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'...
  • 61
2 votes
0 answers
112 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. ...
  • 7,597
1 vote
1 answer
56 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 ...
1 vote
1 answer
227 views

Printing Values Within a Function

Below is a function to calculate the overlap between two gaussian functions. ...
  • 11
0 votes
1 answer
90 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 ...
7 votes
2 answers
367 views

Exporting image and scale

Let us say I have a plot, for example that one: Plot[x^2,{x,0,5},AspectRatio->5] and I would like to export it as a PDF in such a way that if I print the PDF ...
5 votes
0 answers
489 views

How to export high dpi PDF graphics at a low physical dimension with small file size?

Exporting PDFs While it is seemingly obvious how to export higher resolution pdf vector graphics: https://mathematica.stackexchange.com/search?q=pdf+export+high+resolution There is nothing to be ...
4 votes
1 answer
99 views

Restore output to notebook

While playing around in settings, I believe I did something to cause all output to be printed to a pop up window. How do I restore the output to the notebook where the evaluation occurs? In options ...
  • 549
0 votes
1 answer
82 views

Modifying/optimizing a double sum with an If condition

I would like to better understand double summations where one of the sums depends on the upper limit of the previous sum. This appears frequently in representation theory (to the extent of my ...
3 votes
0 answers
115 views

How to make print messages show up immediately on console when inside a long loop?

I noticed something changed, I am not sure when this started, if it is with 12.0 or 11.3. I like to use Print inside either Do ...
  • 127k
1 vote
0 answers
24 views

GeoGraphics not appearing in pdf if GeoMarker used in function

Why does print to pdf work fine for GeoGraphics[Here] but only the GeoMarker shows up for ...
  • 1,437
3 votes
1 answer
153 views

Individualised test paper generation (and marking)

I would like to use mathematica to create individualised tests that can be printed out for students to complete(handwritten). I would also like to be able to generate individualised printed answers. ...
  • 1,308
4 votes
0 answers
283 views

How do I prevent plot range clipping errors in a pdf printout?

Bug introduced in 11.3 or earlier I am using Mathematica 11.3 on a Windows 10 computer. I plotted several data sets of mine in a ListLinePlot. While the .pdf file looks perfectly in the current Adobe ...
0 votes
1 answer
102 views

to print the result in two tables

I have this code ...
4 votes
1 answer
207 views

Export paginated table

I have a large data set which I need to export as a table to a PDF file. At the moment, I do this by exporting as CSV, applying some styling in Excel (display as table, autofit column width, etc.), ...
6 votes
1 answer
227 views

Printing a notebook without background color to save ink

I sometimes need to print hard copies of my notebooks, but I really like having a background color to make the notebooks easier on my eyes. Is it possible to automatically remove the background color ...