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
1
vote
1answer
93 views

Printing Values Within a Function

Below is a function to calculate the overlap between two gaussian functions. ...
1
vote
0answers
67 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...
7
votes
2answers
186 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 ...
11
votes
1answer
323 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
2answers
62 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
0answers
60 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 ...
0
votes
0answers
32 views

xAct: Print Box operator instead of two partial derivatives

I'm fairly new to Mathematica and xAct and am starting with some calculation verfication on it. At the moment I'm struggling with the output due to partial derivatives which are the d'Alembert ...
2
votes
1answer
77 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
0answers
79 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
2answers
182 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}; ...
8
votes
2answers
1k 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: ...
4
votes
1answer
82 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'...
0
votes
2answers
60 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
1answer
76 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:...
2
votes
0answers
68 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
1answer
36 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 ...
5
votes
0answers
290 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 ...
21
votes
5answers
1k views

Is it possible to Print expressions in reverse order?

Let's say I'm debugging a program step by step and want to Print some expressions (using ShowIt, for example). Is there a way to output the result of ...
6
votes
3answers
340 views

Looking for PostScriptForm or ForthForm to print expressions as RPN code

Mathematica has very useful functions CForm and FortranForm. I want the same for a different language: ...
4
votes
0answers
62 views

Am I using the cell option setting PageBreakWithinGroup->False correctly?

I had expected that this option would prevent a page break occurring within a group of cells of which this cell is the "group leader". In my case it is a ...
5
votes
2answers
526 views

Decrease magnification for printing

I would like to decrease the magnification to a value of my choosing for printing purposes. How can I do this? Screen magnification, set at the bottom right of the window, doesn't carry to print ...
2
votes
3answers
441 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-...
0
votes
1answer
55 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 ...
4
votes
3answers
208 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 ...
1
vote
1answer
49 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 ...
0
votes
1answer
54 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
0answers
76 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 ...
1
vote
2answers
65 views

Checking that a certain function is equal to zero for all $|i-j|>1$

Suppose s[i] and e[i] are $m\times m$ matrices, where $i=1,\ldots, n$. I would like to check for all $|i-j|>1$, ...
3
votes
1answer
131 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
vote
0answers
18 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 ...
0
votes
2answers
474 views

Print expressions using local variables in Module without Dollar sign: is that possible

In a Module, I want to print the result of some data fit. I use something like this: ...
1
vote
1answer
339 views

Printing problem: PDF output has a plot error

In my Mathematica file I have several plots that I put together in a grid. One of the plots is coded with the following code: ...
4
votes
0answers
240 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
1answer
44 views

to print the result in two tables

I have this code ...
6
votes
1answer
389 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: ...
4
votes
1answer
120 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.), ...
4
votes
1answer
77 views

Styling CurrentValues in Stylesheet

I've succeeded in putting the notebook title into page headers (thanks to @Kuba), but I failed at styling the label. ...
6
votes
1answer
204 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 ...
4
votes
0answers
156 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 ...
2
votes
4answers
186 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 ...
3
votes
0answers
142 views
1
vote
2answers
102 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 ...
2
votes
1answer
285 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 ...
6
votes
3answers
763 views

Exporting PDF with large PaperSize

Bug present in 10.2 and fixed in 11.2 Exporting to eps still produces a crash, but that is another bug. Suppose I create a new Notebook: ...
8
votes
3answers
685 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: ...
1
vote
1answer
54 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 <...
35
votes
0answers
944 views

Changing FrontEnd automatic scrolling in version 8

In Mathematica versions < 8, the FrontEnd has a very intelligent behavior: On evaluation, it by default automatically scrolls down the Notebook window to the last printed Output cell but also ...
1
vote
1answer
1k views

How to suppress printing statments in function call

I defined a function in Mathematica using Module similar to ...
33
votes
1answer
1k views

Version 11 cannot print properly?

Bug introduced in 10.0 and persisting through 11.2 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 some ...
-1
votes
1answer
106 views

Is it possible to split the last cell in a group of cells, such that the split-off part remains grouped with the old group? How can one achieve this?

I have a notebook with several groups of cells grouped with their respective headlines (Title ... down to Subsubsection). I grouped them all manually. It often becomes necessary, to add something to ...