Skip to main content

Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Shortcut for changing background color

I often highlight parts of my notebooks in different colours. I have always used the mouse to do this: Format--> Background Color--> Color. This gets tedious. Is there any way to assign a ...
andring's user avatar
  • 163
0 votes
0 answers
20 views

How do I make a formatting rule for a pattern not containing a symbol to attach a rule to

I can define a formatting rule such as Format[ex[ls_List], TeXForm] := "grgr" But when I want to define such a formatting rule for a general patter, for ...
Kvothe's user avatar
  • 4,491
1 vote
1 answer
43 views

Reverting to the default Format definitions

Is there an easy way to clear all (user made) Format definitions? E.g. made with Format[s, TeXForm]:= rhs To clarify. I don't ...
Kvothe's user avatar
  • 4,491
3 votes
1 answer
87 views

Nice output for FourierTransform

I want to demonstrate FourierTransform in a lecture. However if you give FourierTransform a differential equation it does not ...
Hugh's user avatar
  • 16.5k
0 votes
0 answers
56 views

How to use Format in TeXForm keeping expression as shown in Format?

I have expression expr = int[1 - x + x^2 - x^3 + x^4 - x^5, x] and I want to convert it to Latex. But want to replace int by <...
Nasser's user avatar
  • 145k
2 votes
1 answer
128 views

Import fails for Gaussian calculation output file

Mathematica seems to import Gaussian16 calculation output files usually without any troubles. However, with the recent 13.3.0 version, I noticed that some calculation output files are not imported, ...
bhopshang's user avatar
  • 739
0 votes
3 answers
94 views

How to separate surds or integers from mixed quadratic surds?

If I have a number of the form: $$a + \sqrt{b}$$ How can I get $$a \text{ or } \sqrt{b}$$ by itself? For example, ...
Teg Louis's user avatar
0 votes
0 answers
28 views

FontSize of fraction after TableForm is small [duplicate]

FontSize of fraction after applying TableForm is small. ...
imida k's user avatar
  • 4,295
0 votes
1 answer
43 views

Properly Format Vertical Bar with Supersubscript

I'm having trouble emulating the following (extra long) vertical bar format in a text cell: The closest I could get to in a text cell is: which doesn't look great; it's underlying code is ...
B flat's user avatar
  • 5,565
4 votes
1 answer
379 views

Copy clipboard content to mathematica notebook - line break symbol changes

There are 3 kinds of line breaks \r \n \r\n For windows, \r\n is standard. Suppose that there is a file called document.txt, using \r or \r\n as line breaks. Suppose that I open document.txt with a ...
imida k's user avatar
  • 4,295
1 vote
2 answers
228 views

How to import a (large) .CSV file maintaining its shape (defined by curly brackets)

I'm working on large tables generated with Mathematica, evaluated on different computers. I plan on join the tables on my computer and proceed with the interpolation of the data there contained. The ...
D-Brc's user avatar
  • 113
0 votes
0 answers
128 views

Cannot open Utilities 'FilterOptions'

I'm trying to run a code like this in Mathematica: ...
Linus's user avatar
  • 3
6 votes
2 answers
147 views

Mapping between lists and Mapping Formats

I've been writing a conversion 'script' between two robot description formats and thought I would try out Mathematica as I thought it sounded pretty awesome. Although by this point I should have done ...
ixil's user avatar
  • 63
2 votes
0 answers
165 views

How to recover plaintext from .MX files?

I need a function to deserialize the contents of an MX source file for reading. We can’t simply use Get because I don’t want to load or run the code, but rather to ...
user5601's user avatar
  • 3,655
2 votes
2 answers
169 views

Equivalent "format painter" for Mathematica

Does anyone know any equivalent tool like "Format Painter" (Picture) of the MS Word processor but for Mathematica ? "Format Painter" is used when you want to copy formatting from one item to another. ...
Victor's user avatar
  • 33
0 votes
1 answer
103 views

Importing a 3 dimensional list

I have a code that is generating some numerical data in the form of a list of trajectories. Each trajectory itself is a list of 2D coordinates. Each coord. is a list of 2 numbers.(see example data ...
lineage's user avatar
  • 1,154
4 votes
3 answers
321 views

Converting between XML and JSON?

I can't seem to find a way to convert between an XML string and RawJSON: ...
M.R.'s user avatar
  • 31.5k
3 votes
0 answers
691 views

Mathematica 12 blurry with High DPI 4k screen [closed]

Same as here. Everything very blurry. Maybe there is any new solution for Mathematica 12 under Windows 10?
vasili111's user avatar
  • 1,225
4 votes
2 answers
202 views

Change TeXForm of ArcTan

When using ArcTan, the corresponding TeXForm is tan^{-1} and not \arctan which I would ...
Kutsubato's user avatar
  • 129
11 votes
0 answers
149 views

What's the difference between these formats?

Unfortunately, the documentation does not give a substantive explanation of the differences between these formats: WDF vs WXF WLNET vs WMLF M vs WL - was answered here: What is the difference between ...
M.R.'s user avatar
  • 31.5k
0 votes
1 answer
51 views

Converting the result of Normal@ to normal table form [closed]

Consider a command which extracts the contour of RegionPlot: ...
John Taylor's user avatar
  • 5,827
4 votes
1 answer
181 views

Defining output format tutorial : i don't understand what the function Format is really usefull for

I was reading this documentation page : http://reference.wolfram.com/language/tutorial/DefiningOutputFormats.html I really don't understand the point of the Format function. Indeed, if I take the ...
StarBucK's user avatar
  • 2,164
5 votes
1 answer
2k views

How to read this dataset with .dat and .r64 files?

I stumbled upon the European Data Incubator project, and wanted to play around with some of their data. I'm trying to open this dataset, which contains a bunch of ...
Panda Coder's user avatar
3 votes
0 answers
502 views

Mathematica code got converted to postscript format. Is there a way to restore it?

I was trying to save my notebook in .pdf format, but instead of that, somehow this happened. How do I restore my notebook? Please Help.
Subhajit's user avatar
0 votes
1 answer
103 views

How to export the specify format

I have a such table table = Table[{i, 2*i}, {i, 10}]; Now I want to export it as a .txt file. If I use ...
yode's user avatar
  • 26.8k
3 votes
1 answer
180 views

Converting subscript in fortranform

i have a matrix like this: F := Table[Subscript[f, i, j], {i, 3}, {j, 3}] c=F.F my question is that how to convert the components of c to this form Subscript[f, ...
user49047's user avatar
  • 791
0 votes
1 answer
121 views

Conditionally color background of PopupMenu

I am designing a student workbook and I would like to put a PopupMenu alongside a question that will display all choices with standard gray or white background. However, after they make selection I ...
Keith D's user avatar
  • 167
1 vote
1 answer
58 views

Create a set of buttons to change background color of next cell

I came across the following snippet (sorry can't find original location to give credit). I would like pressing any of the generated buttons to automatically go to the next cell and color it the ...
Keith D's user avatar
  • 167
6 votes
1 answer
897 views

How to import an HEIC image?

As of iOS 11, iPhones save images with a new compression format HEIC. Now all my photos are all in this format and I'd like to import them to Mathematica but this is not a supported image filetype. ...
M.R.'s user avatar
  • 31.5k
5 votes
1 answer
115 views

why changing the order of `Format` causes error?

I am trying the solution given in is-it-possible-to-change-customize-some-conversions-done-by-texform which works very well except changing the order of the Format ...
Nasser's user avatar
  • 145k
1 vote
1 answer
594 views

Correct format to import vector from file

Although this question was kind of already asked, it was closed because not enough information was given. Here is my attempt. I am trying to find out the correct format to import a vector data set (...
Josh's user avatar
  • 545
12 votes
3 answers
1k views

Is it safe to Unprotect everything? What are the implications?

What is the reason for built-in symbols to be Protected? What happens if I Unprotect built-ins and add my own ...
grandrew's user avatar
  • 550
15 votes
3 answers
386 views

How to make the result of InputForm balance the bracket

I always use InputForm to check the result object,such as Dataset or Graphics or other ...
yode's user avatar
  • 26.8k
6 votes
0 answers
215 views

Export of GraphicsRow to PDF is ugly

I have a problem with exporting GraphicsRow[{Plot, Plot, Plot,...}] object to pdf. The line is like ...
MsTais's user avatar
  • 488
0 votes
2 answers
268 views

How to expand an expression into $\sum _{i=0}^{\infty } a_i e^{b_i}$?

For given an expression like $-\frac{e^{-\frac{\text{d1} t}{\text{c1}}} \left(-\text{a1} \text{a2} \text{d1}^2+\text{a1} \text{b2} \text{c1} \text{d1}+\text{a2} \text{b1} \text{c1} \text{d1}-\text{b1} ...
tanghe2014's user avatar
1 vote
0 answers
167 views

How to avoid quotes around strings in variables with a custom format in the display inside Datasets in V11? [duplicate]

I'm wondering how to deal with some unwanted behaviour of the new display format of Dataset in Mathematica 11 (I'm using version 11.0.1): I'm using a custom "type",...
mjayvizzle's user avatar
4 votes
1 answer
95 views

How to avoid RecursionLimit error when using Interpretation formatting?

I am trying to define a function that has similar behavior as Indexed. Here is the code ...
Everett You's user avatar
  • 2,277
5 votes
4 answers
942 views

Automatically use blue color for comments in input cell

Currently, when I type comments into input cell the comment has the same color or style as the function color/style as shown in figure number 1. I would like to automatically use blue color for my ...
emnha's user avatar
  • 2,111
4 votes
2 answers
355 views

ExcelLink: How to change cell properties like font family, size and borders?

I just purchased the Mathematica Link for Excel. I can't figure out how to change the cell properties in excel using ExcelLink package? Can someone please help.
user13892's user avatar
  • 9,443
1 vote
0 answers
257 views

NASA CDF Epoch format

This is a rather obscure question, but perhaps someone has the answer. I am trying to read/interpret a number stored in NASA's CDF Epoch format. That's the number of milliseconds past Jan 1, year zero....
Anthony Mannucci's user avatar
1 vote
0 answers
95 views

$μ_t$ becomes SubscriptBox[\[Mu], t]

I was using variables like $μ_t$ in my local Mathematica notebook. But when I opened that notebook in Mathematica Online everything got converted to something like SubscriptBox[[Mu], t]. How can ...
Saqib Ali's user avatar
  • 275
11 votes
1 answer
686 views

TeXForm: Adding color

Background & Question So if you're reading this you probably think Mathematica is pretty great - at least I do. The function Table by itself take someone ...
SumNeuron's user avatar
  • 5,422
3 votes
1 answer
657 views

Need help using apply @@ and @@@ functions with Grad [closed]

I need help using Apply (@@). In the following code ...
Jose Enrique Calderon's user avatar
0 votes
1 answer
550 views

Importing .AVI to mathematica and frame extraction

I'm trying to import frames from a video with the extension .avi, using this piece of Mathematica code: Import["video.AVI", {"Frames", {5, 6}}] But I get this ...
faf's user avatar
  • 91
2 votes
3 answers
312 views

How to display elements of a product in a certain order [duplicate]

I have several product states, represented by a string of variables - for example, "ABC". I'd like to multiply this state by a constant, call it J, to which I don't want to pre-assign a value. Using J ...
user38762's user avatar
  • 121
5 votes
0 answers
88 views

AppearanceRules on multipage Web Form

I'm attempting to make a web survey using FormFunction. To list the questions I am using AppearanceRules to give each page an ...
Alex Krotz's user avatar
2 votes
0 answers
72 views

How to get divider line in function/option table in Wolfram Workbench

In the tutorial pages in the documentation to my package, I have a table that contains functions and their definitions. In the sample tutorial page, I see a divider line separating the header from ...
QuantumDot's user avatar
  • 19.7k
3 votes
2 answers
2k views

Output arrays in format that can be compared with Python numpy

Is there a way to convert an array in Mathematica such that its output format resembles that of Python's numpy arrays? I want to go from: ...
Alejandro Marcos Aragon's user avatar
1 vote
0 answers
266 views

How to import and export msgpack?

MessagePack is an efficient binary serialization format, I find it much better than JSON. There is currently (as of v10.3) no support for this in Mathematica. Does anyone know of third party ...
M.R.'s user avatar
  • 31.5k
1 vote
0 answers
232 views

Export vector in .txt file with newline separator [closed]

I need to export a 1-D list (vector) in .txt format with one line corresponding to one value : v = {v1, v2, v3, ..., vn}; And the result should be, in ...
Claire's user avatar
  • 11