Skip to main content

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
31 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: ...
Tapiocaweasel's user avatar
1 vote
0 answers
44 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 ...
tupoliedro's user avatar
3 votes
1 answer
96 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 ...
Learner's user avatar
  • 219
2 votes
4 answers
388 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 ...
Jamai-Con's user avatar
  • 163
0 votes
1 answer
33 views

Print into different cell groups inside module

I have a function with the following (simplified) structure: ...
michelangelov's user avatar
0 votes
1 answer
46 views

String in a Box representation makes a subtle error

...
imida k's user avatar
  • 4,295
1 vote
0 answers
55 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 ...
Jakob's user avatar
  • 141
1 vote
1 answer
212 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....
Jakob's user avatar
  • 141
0 votes
0 answers
159 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 ...
Jakob's user avatar
  • 141
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: ...
Mari's user avatar
  • 1
1 vote
0 answers
47 views

Printout precision [closed]

For debugging, I print out the SessionTime. In the Notebook it looks like: ...
Aharon Naiman's user avatar
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 ...
Diffycue's user avatar
  • 1,844
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 ...
Pamela's user avatar
  • 55
0 votes
2 answers
58 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, ...
Granger Obliviate's user avatar
2 votes
1 answer
99 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 ...
Kvothe's user avatar
  • 4,491
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 ...
Johnny's user avatar
  • 33
3 votes
0 answers
68 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 ...
azerbajdzan's user avatar
  • 18.8k
0 votes
1 answer
56 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 <...
Neo's user avatar
  • 163
2 votes
1 answer
196 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 ...
matheorem's user avatar
  • 17.2k
1 vote
0 answers
32 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 ...
Doug Kimzey's user avatar
  • 2,279
3 votes
0 answers
490 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 ...
Nasser's user avatar
  • 145k
1 vote
1 answer
113 views

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

Consider this example: ...
Adalbert Hanßen's user avatar
3 votes
2 answers
237 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 ...
Adalbert Hanßen's user avatar
4 votes
2 answers
237 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: ...
Wisdom's user avatar
  • 1,268
1 vote
1 answer
144 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. ...
sam wolfe's user avatar
  • 4,863
0 votes
1 answer
78 views

Output not showing in For loop

My code is ...
Akut Luna's user avatar
  • 101
1 vote
0 answers
83 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: ...
podge cassidy's user avatar
3 votes
3 answers
131 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(...
Lai Yu-Hsuan's user avatar
1 vote
1 answer
126 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 ...
lineage's user avatar
  • 1,154
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 ...
Epsilon's user avatar
  • 1,122
2 votes
1 answer
186 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 ...
Ed Davis's user avatar
0 votes
0 answers
47 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 ...
Red Banana's user avatar
  • 5,369
1 vote
0 answers
84 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 ...
dionys's user avatar
  • 4,331
2 votes
1 answer
82 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 ...
user3257842's user avatar
1 vote
0 answers
281 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...
yarchik's user avatar
  • 18.7k
11 votes
1 answer
354 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 ...
Steven Thomas Hatton's user avatar
2 votes
2 answers
260 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. ...
user75507's user avatar
0 votes
0 answers
94 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 ...
imarben007's user avatar
2 votes
1 answer
190 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 ...
Irtiza's user avatar
  • 576
0 votes
0 answers
207 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 ...
PaulCommentary's user avatar
1 vote
2 answers
783 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}; ...
Epsilon's user avatar
  • 1,122
0 votes
2 answers
175 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 ...
Jules Manson's user avatar
  • 2,467
3 votes
1 answer
138 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:...
Ralf Eichhorn's user avatar
5 votes
1 answer
160 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'...
Dmitriy's user avatar
  • 61
2 votes
0 answers
128 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. ...
AsukaMinato's user avatar
  • 9,928
1 vote
1 answer
74 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 ...
Jocelyn Minini's user avatar
1 vote
1 answer
329 views

Printing Values Within a Function

Below is a function to calculate the overlap between two gaussian functions. ...
Goku's user avatar
  • 11
0 votes
1 answer
106 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 ...
Jyrki Lahtonen's user avatar
8 votes
2 answers
519 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 ...
anderstood's user avatar
  • 14.3k
5 votes
0 answers
547 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 ...
CA Trevillian's user avatar