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
3 votes
2 answers
156 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 ...
user avatar
4 votes
2 answers
103 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: ...
user avatar
  • 1,047
1 vote
1 answer
65 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. ...
user avatar
  • 4,138
0 votes
1 answer
62 views

Output not showing in For loop

My code is ...
user avatar
1 vote
0 answers
41 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: ...
user avatar
3 votes
3 answers
106 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(...
user avatar
1 vote
1 answer
77 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 ...
user avatar
  • 902
1 vote
0 answers
39 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 ...
user avatar
  • 1,018
2 votes
1 answer
90 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 ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
  • 4,801
1 vote
0 answers
56 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 ...
user avatar
  • 4,241
2 votes
1 answer
61 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 ...
user avatar
1 vote
0 answers
142 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...
user avatar
  • 15.7k
11 votes
1 answer
336 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 ...
user avatar
2 votes
2 answers
102 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. ...
user avatar
0 votes
0 answers
71 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 ...
user avatar
2 votes
1 answer
90 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 ...
user avatar
  • 556
0 votes
0 answers
146 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 ...
user avatar
1 vote
2 answers
381 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}; ...
user avatar
  • 1,018
0 votes
2 answers
106 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 ...
user avatar
  • 1,787
3 votes
1 answer
110 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:...
user avatar
4 votes
1 answer
105 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'...
user avatar
  • 51
2 votes
0 answers
87 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. ...
user avatar
  • 6,607
1 vote
1 answer
42 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 ...
user avatar
1 vote
1 answer
131 views

Printing Values Within a Function

Below is a function to calculate the overlap between two gaussian functions. ...
user avatar
  • 11
0 votes
1 answer
74 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 ...
user avatar
7 votes
2 answers
254 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 ...
user avatar
  • 13.6k
5 votes
0 answers
425 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 ...
user avatar
3 votes
1 answer
70 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 ...
user avatar
  • 539
0 votes
1 answer
75 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 ...
user avatar
  • 4,113
3 votes
0 answers
98 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 ...
user avatar
  • 108k
1 vote
0 answers
19 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 ...
user avatar
  • 1,417
3 votes
1 answer
137 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. ...
user avatar
  • 1,288
4 votes
0 answers
267 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 ...
user avatar
0 votes
1 answer
65 views

to print the result in two tables

I have this code ...
user avatar
4 votes
1 answer
161 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.), ...
user avatar
6 votes
1 answer
216 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 ...
user avatar
2 votes
4 answers
229 views

What is better coding for turning list into sequence without curly brackets?

There are less satisfying Q/A for what I am asking but none that actually answer the question. Suppose one has a=1; b={2,3}; And one wants to print a sequence ...
user avatar
  • 621
3 votes
0 answers
168 views

Print to PDF from Acrobat PDF printer (in Windows )

...
user avatar
4 votes
0 answers
183 views

When print or save as PDF the font size is too large

When I print or save as pdf the font size is too large I have printed the whole notebook to pdf or saved it to pdf, but the font size was too large, and I have set the ...
user avatar
  • 575
1 vote
2 answers
126 views

Redirecting All Prints (including those in subkernel) to file

How do I redirect all printed text to a file instead of the FrontEnd? This question was answered in Temporarily redirect the output of Print[ ] to a second file, except that this does not capture text ...
user avatar
  • 3,553
2 votes
1 answer
321 views

How to view the print/PDF printable page edge in a Notebook?

Motivation: I don't normally print or save as PDF notebooks, but when I do, it's annoying to see that some plots exceded the page width as defined in the print configurations. It would be nice to see ...
user avatar
  • 28.9k
8 votes
2 answers
2k views

wolframscript — How to print in color

I want to print to the console in color from a wolframscript. I tried just using a Style: ...
user avatar
  • 1,019
1 vote
1 answer
58 views

Setting the style of the output in a text file

My problem is related to FormatType of the Output of Print[]. Look at this example code <...
user avatar
  • 1,578
2 votes
3 answers
541 views

Stop notebook from auto-scrolling upon printing

Bug fixed in 12.0 I've long been peeved that the front end scrolls automatically during evaluations, and I've finally sat down to pin down the exact behavior. It seems that the front end auto-...
user avatar
  • 3,383
4 votes
1 answer
2k views

How to suppress printing statments in function call

I defined a function in Mathematica using Module similar to ...
user avatar
  • 143
1 vote
1 answer
649 views

How to print strings and numbers inside a While? [duplicate]

I'm trying to print the dimensions of some Vector spaces, but I want to print strings with it so I can read the results more easily. I tried this ...
user avatar
0 votes
1 answer
1k views

How do you print a function's content?

Sorry if this is a newbie question, but I could not find a solution. Say I have two functions, like: ...
user avatar
0 votes
1 answer
50 views

Is there a way to use CellPrint on dataset objects?

I am trying to assign a cell tag onto my cell with contents in the form of a dataset. However, I am receiving the following error: The wrong number of arguments (12) was given to a box ("BoxData") ...
user avatar
  • 339
2 votes
1 answer
96 views

How to print a collapsed cell group?

I would like to print a group of cells exactly like what I get from this: ...
user avatar