pdf format – 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 options). Cannot submit my work report without a PDF. Is that impossible in Mathematica for some reason? If not, can someone post a reference to a tutorial. Is Wolfram Player the only workaround (likely not feasible in my work situation)?

front end – Problem with Mathematica 12.1

I am experiencing a problem after the upgrade to Mathematica 12.1 (I am using a Windows 10 machine). Essentially the problem goes in this way: if I first access Mathematica through its icon and then I open a Mathematica file, using the “Open” icon, everything works well. However, if I try to open the same file by simply clicking on the icon of the file, all the menus on the upper band (let us say “File”, Edit”, “Insert” and so on) do not work: all the voices in the menus are grey and I cannot click on them.

Is anybody experiencing something similar?

image processing – Mathematica 12.1 trial version, very slow to evaluate a property in multiple pictures

I am a new mathematica user.

I am using the following code to measure the internal rectangle width in some images. When I run mathematica for $1$ image, it takes a short time. Also, it works and it shows the results for more than one image. However, it takes (EXTREMELY) long time to show the results, especially when the number of picture more than $5$. It took around $25$ minutes to process around $35$ pictures!

One possibility, that my requirement from mathematica is too much, and it is normal to process $35$image/$25$min.

One possibility, that I use mathematica in a wrong way to get the result; I go to Evaluation bar then Evaluate Notebook option.

enter image description here

One possibility, that the code can be modified in a way it will work faster.

One possibility, that this version of mathematica (12.1) has an issue.

PLEASE CHECK THE FOLLOWING:

ClearAll(vDilate, internalRectangles, dataSet)

vDilate = 
  ColorNegate@
    Dilation(MorphologicalBinarize@#, 
     ConstantArray(1, {ImageDimensions(#)((1)), 1})) &;

internalRectangles(w_ : 1) := 
  Rectangle @@@ 
    Values(ComponentMeasurements(
      SelectComponents(
       vDilate@#, #CaliperWidth > 
          w && #AdjacentBorders == {Bottom, Top} &), "BoundingBox")) &;

dataSet(w_ : 1) := 
  ComponentMeasurements(
    SelectComponents(
     vDilate@#, #CaliperWidth > 
        w && #AdjacentBorders == {Bottom, Top} &), {"BoundingBox", 
     "CaliperWidth"}, "Dataset") &;

{img1, img2, img3, img4, img5, img6} = 
 Import /@ {"D:\SHARGAM\167716 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) 
(61-65 C) 2 4046 08-03-12  10-06-2020.jpg", 
   "D:\SHARGAM\252929 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (75-80 
C) 2 4048 09-16-57  11-06-2020.jpg", 
   "D:\SHARGAM\232614 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (70-75 
C) 2 4051 03-15-54  11-06-2020.jpg", 
   "D:\SHARGAM\211778 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (70-75 
C) 2 4051 21-05-53  10-06-2020.jpg", 
   "D:\SHARGAM\192633 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (70-75 
C) 2 4052 15-25-53  10-06-2020.jpg", 
   "D:\SHARGAM\172707 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (65-70 
C) 2 4050 09-31-56  10-06-2020.jpg"}


ClearAll(dataSet2)
dataSet2 = 
  MaximalBy(#CaliperWidth &)@
    ComponentMeasurements(
     SelectComponents(
      vDilate@#, #AdjacentBorders == {Bottom, Top} &), {"BoundingBox",
       "CaliperWidth"}, "Dataset") &;

dataSet2 /@ {img1, img2, img3, img4, img5, img6}

Where;

“D:SHARGAM167716 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (61-65 C) 2
4046 08-03-12 10-06-2020.jpg”, “D:SHARGAM252929 6 SDGM Comp 2
HRDH B2 4200 rpm + TB) (75-80 C) 2 4048 09-16-57 11-06-2020.jpg”,
“D:SHARGAM232614 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (70-75 C) 2
4051 03-15-54 11-06-2020.jpg”, “D:SHARGAM211778 6 SDGM Comp 2
HRDH B2 4200 rpm + TB) (70-75 C) 2 4051 21-05-53 10-06-2020.jpg”,
“D:SHARGAM192633 6 SDGM Comp 2 HRDH B2 4200 rpm + TB) (70-75 C) 2
4052 15-25-53 10-06-2020.jpg”, “D:SHARGAM172707 6 SDGM Comp 2
HRDH B2 4200 rpm + TB) (65-70 C) 2 4050 09-31-56 10-06-2020.jpg”

are the path of the images to be processed, they look like this;

enter image description here

It took around $3.5-4$ minutes for those $6$ images!


If I need to find the caliperwidth of $1000$ images, it may take $1000$ life-times!


You can see my previous problem, kglr helped a lot. Many thanks to kglr.


AGAIN, I am a new mathematica user. (2 days).


Any help/suggestion to modify the code, or correcting me on how to evaluate the outputs, would be really appreciated. THANKS!

crash – Mathematica 12.1 crashes when I attempt to save an image as PDF or EPS (but not other formats)

Thanks for contributing an answer to Mathematica Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

paclets – problem with Rubi` and packages in version 12.1?

In a recently published Quora contribution to calculating an integral, the integral calculator was used, the user interface and display of which I found somewhat impressive. So I thought I would try the same calculation in Rubi to compare functionality and format.

Before I started, I checked to see if I had the latest version 4.16.1.0 installed (which prompted me to suggest automation to the developers on GitHub). I had to update, so I ran the following code:

PacletUninstall("Rubi")

PacletInstall("https://github.com/RuleBasedIntegration/Rubi/releases/download/
    4.16.1.0/Rubi-4.16.1.0.paclet")

path = First(PacletFind("Rubi"))("Location")

Get("Rubi`")

However, this immediately leads to a number of error messages of the type

LoadRules::inv: Could not load file or section:
    {/Users/paul/Library/Mathematica/Paclets/Repository/Rubi-4.16.1.0/IntegrationRules/
     9 Miscellaneous9.1 Integrand simplification rules.m}

etc. Is this a known problem?

Modify the steps above to load that Previous Paclet that I installed (4.16.0.4) seemed to work fine. And I could generate the steps in calculating the indefinite integral

Steps @ Int(Log(1-x) Log(1+x),x)

which have some advantages and some disadvantages compared to the integral computer.

However, there is a strange problem that I cannot track down: when loading Paclets (like above) I get one different Edition for Information(Steps) to what I get when I load the Paclet manually: For some reason the Paclet loaded version Removed(Int) instead of Int. And Manual Loading the current version does not work at all.

Socks5 Proxy Service Cheap Socks5

SOCKS Proxy List from Tisocks.net
If you need Socks5, please visit the service and add money via PM, BTC WMZ. Thank you all !!
Add funds: https://tisocks.net/addfund
Check socks5 online here: https://checksocks5.com
IVE | 67.213.212.16:61506 | 0.948 | SOCKS5 | Vienna | 1160 | 90-152-152-146.static.highway.a1.net | Austria | Checked at https://tisocks.net
LIVE | 115.223.179.207:38801 | 1,092 | SOCKS5 | Guizhou | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 175.174.80.35:38801 | 5,193 | SOCKS5 | Liaoning | Unknown | China Unicom Liaoning | China | Checked at https://tisocks.net
LIVE | 103.73.116.201:38801 | 1,108 | SOCKS5 | Jiangsu | Unknown | China Telecom Jiangsu Province backbone | China | Checked at https://tisocks.net
LIVE | 51.81.31.61:47513 | 0.573 | SOCKS5 | California | 94541 | c-71-198-11-194.hsd1.ca.comcast.net | United States Checked at https://tisocks.net
LIVE | 114.96.62.72:38801 | 1,928 | SOCKS5 | Jiangsu | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 153.99.5.135:38801 | 2,521 | SOCKS5 | Jiangsu | Unknown | China Unicom Liaoning | China | Checked at https://tisocks.net
LIVE | 116.255.139.230:38801 | 2,734 | SOCKS5 | Henan | Unknown | China Unicom Liaoning | China | Checked at https://tisocks.net
LIVE | 113.218.236.242:38801 | 1,593 | SOCKS5 | Beijing | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 182.114.25.15:38801 | 1,278 | SOCKS5 | Henan | Unknown | hn.kd.ny.adsl | China | Checked at https://tisocks.net
LIVE | 49.88.63.201:38801 | 3,396 | SOCKS5 | Shanghai | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 122.232.192.70:38801 | 1,739 | SOCKS5 | Zhejiang | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 122.241.57.233:38801 | 2,621 | SOCKS5 | Zhejiang | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 121.234.227.18:38801 | 2,446 | SOCKS5 | Jiangsu | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 175.173.222.50:38801 | 2,219 | SOCKS5 | Sichuan | Unknown | China Unicom Liaoning | China | Checked at https://tisocks.net
LIVE | 185.153.198.226:60157 | 0.534 | SOCKS5 | Unknown | Unknown | n3plcpnl0067.prod.ams3.secureserver.net | United States Checked at https://tisocks.net

Tisocks
Reviewed by Tisocks on
.
[Tisocks.net] – Socks5 Proxy Service Cheap Socks5
SOCKS Proxy List from Tisocks.net
If you need Socks5, please visit the service and add money via PM, BTC WMZ. Thank you all !!
Add funds: https://tisocks.net/addfund
Check socks5 online here: https://checksocks5.com
IVE | 67.213.212.16:61506 | 0.948 | SOCKS5 | Vienna | 1160 | 90-152-152-146.static.highway.a1.net | Austria | Checked at https://tisocks.net
LIVE | 115.223.179.207:38801 | 1,092 | SOCKS5 | Guizhou | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE |

Rating: 5

Font quality under 12.1 on Linux

I have a problem with MMA 12.1 on Linux, especially with xubuntu 18.04.4 and especially with font rendering.

A semi-random diagram under 12.1 that was exported to PDF and then converted to PNG (using pdftocairo) looks like
Enter the image description here

The same diagram under 12.0 looks like
Enter the image description here

Note the difference in quality for fonts under 12.1. I'm less worried about the difference in the grid as they should be repairable.

Same results with one of the 2D and 3D plot functions: 12.0 leads to razor-sharp vector fonts, while 12.1 leads to illegible errors.

The search on StackExchange didn't seem to provide a solution, but I would definitely appreciate it if I pointed in the right direction.

In any case, I'm back to 12.0 until such an update can be found.

Socks5 Proxy Service Cheap Socks5

SOCKS Proxy List from Tisocks.net
If you need Socks5, please visit the service and add money via PM, BTC WMZ. Thank you all !!
Add funds: https://tisocks.net/addfund
Check socks5 online here: https://checksocks5.com
LIVE | 14.18.46.125:38801 | 1,656 | SOCKS5 | Guangdong | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 98.162.25.29:31679 | 2,025 | SOCKS5 | Unknown | Unknown | Cox Communications | United States Checked at https://tisocks.net
LIVE | 218.201.124.134:38801 | 0.967 | SOCKS5 | Shandong | Unknown | China Mobile Shandong | China | Checked at https://tisocks.net
LIVE | 218.201.124.130:38801 | 0.872 | SOCKS5 | Shandong | Unknown | China Mobile Shandong | China | Checked at https://tisocks.net
LIVE | 60.169.74.103:38801 | 1,312 | SOCKS5 | Beijing | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 51.81.31.171:23593 | 0.432 | SOCKS5 | Pennsylvania | 19003 | static-72-94-199-30.phlapa.fios.verizon.net | United States Checked at https://tisocks.net
LIVE | 218.92.225.221:38801 | 1 | SOCKS5 | Hubei | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 42.180.124.108:38801 | 1,288 | SOCKS5 | Guangdong | Unknown | China Unicom Liaoning | China | Checked at https://tisocks.net
LIVE | 118.121.207.239:38801 | 2,035 | SOCKS5 | Unknown | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 119.84.148.254:38801 | 1,086 | SOCKS5 | Unknown | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 220.167.101.83:38801 | 1,231 | SOCKS5 | Unknown | Unknown | 83.101.167.220.dial.dy.sc.dynamic.163data.com.cn | China | Checked at https://tisocks.net
LIVE | 103.73.116.211:38801 | 1,064 | SOCKS5 | Jiangsu | Unknown | China Telecom Jiangsu Province backbone | China | Checked at https://tisocks.net
LIVE | 121.205.177.149:38801 | 1,182 | SOCKS5 | Guangdong | Unknown | 149.177.205.121.broad.nd.fj.dynamic.163data.com.cn | China | Checked at https://tisocks.net
LIVE | 60.174.233.139:38801 | 1,574 | SOCKS5 | Shanghai | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 51.81.31.172:54580 | 0.482 | SOCKS5 | New Jersey | 08611 | pool-108-24-189-145.cmdnnj.fios.verizon.net | United States Checked at https://tisocks.net
LIVE | 119.96.174.121:38801 | 1,835 | SOCKS5 | Hubei | Unknown | China Telecom | China | Checked at https://tisocks.net

Tisocks
Reviewed by Tisocks on
.
[Tisocks.net] – Socks5 Proxy Service Cheap Socks5
SOCKS Proxy List from Tisocks.net
If you need Socks5, please visit the service and add money via PM, BTC WMZ. Thank you all !!
Add funds: https://tisocks.net/addfund
Check socks5 online here: https://checksocks5.com
LIVE | 14.18.46.125:38801 | 1,656 | SOCKS5 | Guangdong | Unknown | China Telecom | China | Checked at https://tisocks.net
LIVE | 98.162.25.29:31679 | 2,025 | SOCKS5 | Unknown | Unknown | Cox Communications | United States Checked at https://tisocks.net
LIVE | 218.201.124.134:38801 |

Rating: 5

Moved keyboard shortcuts no longer work after the 12.1 upgrade

Since upgrading to Mathematica 12.1, the keyboard shortcuts that contain the Shift key work, such as: B. control- ^ (control-shift-6) for a superscript and control- @ (control-shift-2) for a square root – not. Instead, I only get a beep and the "Why the beep?" The menu command gives the explanation "You used a command or control key combination that is not defined for anything."

I have checked the content of $InstallationDirectory/SystemFiles/FrontEnd/TextResources/Macintosh/KeyEventTranslations.trand the links that don't work still seem to be listed. For example, the file contains:

    Item(KeyEvent("6", Modifiers -> {Control}), "Superscript"), 
    Item(KeyEvent("Keypad6", Modifiers -> {Control}), "Superscript"), 
    Item(KeyEvent("^", Modifiers -> {Control}), "Superscript"), 

and

    Item(KeyEvent("2", Modifiers -> {Control}), "Radical"), 
    Item(KeyEvent("Keypad2", Modifiers -> {Control}), "Radical"), 
    Item(KeyEvent("@", Modifiers -> {Control}), "Radical"), 

So I have no idea what could have broken.

I'm using macOS 10.15.3 (Catalina) on a Macbook Pro.

I rely on the postponed versions (Control-Shift-6 instead of Control-6, etc.) because I use Control (Number) shortcuts at the operating system level to change desktop areas.

Any suggestions?