Questions on typesetting and making your expressions, matrices, operators, equations or formulae look how you want them to.

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

Alternative to tables for textual data in Mathematica?

I am working on a notebook that uses the JournalArticle style sheet. I have been having difficulties editing tables added with the Insert Table/Matrix menu item. The cursor often disappears. ...
1
vote
1answer
31 views

How would I set the equation number for an EquationNumbered cell?

Regardless of how many EquationNumbered cells are above or below, every new EquationNumbered cell that I add in my notebook shows (1) as the equation number. Is there a way to correct the equation ...
0
votes
0answers
52 views

Is there a way to create a two column page layout in a notebook? [duplicate]

I am working on a white-paper that requires a two column format. Is there an existing Stylesheet that can be used or a way to create a Stylesheet that supports this Mathematica?
0
votes
0answers
20 views

Is there any way to format the results of Wolfram|Alpha

I have noticed that when getting Wolfram|Alpha results via WolframAlpha[], the output is formatted to (what appears to be) Times New Roman and Helvetica for units ...
0
votes
0answers
27 views

How can I number an equation associated with its section information automatically?

Suppose I have an equation, which is the 3rd one in section 2, I want it to be numbered (2.3) automatically, is there a way to do that? Thanks!
3
votes
2answers
78 views

How do I display function application with square brackets in traditional form?

If I type C[x, y] // TraditionalForm I get something that looks like C[x, y] But if I type ...
0
votes
1answer
51 views

Create new style where elements are arranged in a grid

I'd like to create a new style where elements are arranged in a grid. I'm taking notes and I have some definitions. I'd like to have every definition formatted like this: ...
1
vote
1answer
50 views

How to format short inline code in a paragraph of text?

If I have a paragraph of text and have some very short code inline such as a function/symbol names in the sentences, how to format them more like code? Sort of like an analogue of ...
6
votes
2answers
179 views

How do I prevent Mathematica from reformatting the expressions that I copy as LaTeX?

When I choose something that looks like $$ W_1(1)=\rho ^{5} \omega _1 \rho ^{-5}\\ W_2(2)=\rho ^{23} \omega _2 \rho ^{-23}\\ W_3(3)=\rho ^{10} \omega _3 \rho ^{-10}\\ W_4(4)=\rho ^{9} \omega _4 \rho ...
1
vote
2answers
84 views

How can I control 'TraditionalForm' substitutions and formatting in special cases?

I have eqns = TraditionalForm[HoldForm[Subscript[W, #][#] = ρ^s[#] Subscript[ω, #] ρ^-s[#]],] & /@ Range[4] which (with ...
1
vote
3answers
93 views

How I create a 'TraditionalForm' expression in which only parts are evaluated?

I have an expression for the form Subscript[W, f[a, b]][c] = ρ^f[a,b]ω[c]ρ^-f[a,b] that I want to render in TraditionalForm ...
1
vote
2answers
80 views

How do I make a single character bold?

I have a string of characters, like "CDABOZPVRYXSWQEGNILUTHMKJF" and want to convert it to a string in which the character at position ...
4
votes
4answers
238 views

How do I pad numbers to the left so that all are the same length?

I have a list of numbers like {-6, 1, 3, 23} and want to get a list of strings, all of the same length, with zeros padding on the left as needed, like ...
2
votes
1answer
40 views

PrecedenceForm with Format

I'd like to format the output of certain operators with Infix-style formatting to have lower precedence than Times. Let's say I ...
3
votes
1answer
45 views

How can one create hanging indent within text?

Short of writing a highly specific function for particular text strings, is there a simple way to format text, as say in a bibliographic record, to produce a hanging indent (first line of full with, ...
6
votes
3answers
112 views

How can I stop Mathematica from re-arranging formulae in TraditionalForm?

Let's say I have a sample formula, for example (Abs[x]/(-(2 - \[Kappa]) - 5))/(Binomial[a, b]/4) or something like that. I can of course typeset it to a limited ...
3
votes
2answers
81 views

how can I type brackets for column vectors? [duplicate]

My goal is to type $\begin{pmatrix} a \\ b \\ c \end{pmatrix}$ in mathematica. I try {a,b,c} but i am not sure if it will be converted to the corrected output.
4
votes
1answer
474 views

How best to embed various cell groups into a latex project?

I'm an author and a coder. I want to reference various parts of my notebooks in my latex project. I've tried doing the following, using a post on the latex side of this problem. I'd like to solve it ...
-1
votes
1answer
57 views

Black Ovals appeared in my Mathematica notebook [duplicate]

I copied and pasted something from another Mathematic notebook and started getting the same black ovals seen in this question: Colored marks appearing in notebook input text? The suggestion to turn ...
1
vote
0answers
18 views

How set input font globally? [duplicate]

I'm trying to change input font in default.nb, but font font not changed, changed only font size. I'm also try set StandartForm style, but nothing happens. In preferences/Evaluation style of newly ...
3
votes
1answer
57 views

Typesetting for different powers

Suppose that I want to typeset an object such that it looks differently for different powers. The simplest example would be a three vector. For odd powers I want it to look like $$|\vec{v}|^n,$$ while ...
0
votes
1answer
45 views

Unknown Power showing up in Formula [closed]

I have the following worksheet below. (I took a screen shot because I didn't know how to type the code for the particular function). Circled in red are powers that shouldn't be there and yet ...
5
votes
0answers
120 views

How to write markdown with Mathematica?

Usually I typeset with Latex and Compute with Mathematica and then copy the outputs as Latex code and insert them in Latex, so I have to switch between Latex and Mathematica frequently. Thanks to the ...
7
votes
3answers
269 views

Interactively inspecting parts of an object

There have been times when I want to find the structure of an object in order to extract some part of it. For example, extracting the x and y coordinates from a Graphics object generated by Plot. I ...
2
votes
1answer
58 views

fields entry in ref/StreamPlot

In the ref/StreamPlot help file in Mathematica 10.0.2, we see the following image: Can someone explain how I would type this into an input cell?
2
votes
1answer
69 views

Change default output font globally

I'd like to change my default output font to "Helvetica Neue" in version 10. The following shows the only thing I have found in Option Inspector, which would ...
3
votes
1answer
40 views

How can I make the script level styles imitate TeX?

In math mode in $\TeX$, there are four styles that are used to determine what font will be used to typeset parts of a formula. In decreasing hierarchical order, they are, with default font size in ...
1
vote
1answer
42 views

MUnit unit tests for TraditionalForm formatting

I'm a strong proponent of unit tests and as such I'm using the MUnit framework from Wolfram Workbench on a regular basis. Many of the codes I'm working on also use ...
3
votes
1answer
99 views

How to prepare a Mma expression to insert it into Comsol?

Preamble Sometimes I have to solve nonlinear PDEs using Comsol. Often these equations I already have in Mma, written in a Mma notations. For this reason I would like to be able to transform them so ...
1
vote
2answers
96 views

How to turn an expression into a number

I am working with a function that computes the covariance between two variables. After computing this, I'd like to use Plot or Plot3D to see how this covariance depends on the parameters of the mean ...
1
vote
0answers
40 views

How to stop font resize of input?

How do you stop Mathematica from resizing the input font when entering formulas with fractions and such? When I enter a formula with a few fractions the text becomes microscopic. For example: ...
2
votes
1answer
130 views

How do I change the size of the font for the output of the Print[] command?

I created a Stylesheet that increased the sizes of the fonts for the styles Input, Output and Text. Still, when I use the command Print[] the output comes out tiny. In the code below I added some ...
4
votes
1answer
70 views

Why are the edge items in Grid truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
2
votes
2answers
68 views

Can I use 'ItemStyle' in 'Grid' to specify the style of individual items? [closed]

I'm confused by the documentation for ItemStyle. I can't figure out how to specify styles for individual items in a Grid. ...
0
votes
0answers
37 views

ParagraphSpacing inside Style'd Text

From ParagraphSpacing's documentation: ParagraphSpacing is an option for Cell, StyleBox, and Style that specifies how ...
1
vote
0answers
25 views

Greek symbols are all bold in MM 10 over Linux [duplicate]

I upgraded recently to Mathematica 10, on a Linux system, and I'm quite annoyed to find that all the greek symbols automatically show up in bold: I suspect the issue is some missing font somewhere ...
6
votes
5answers
570 views

What is the best way to draw a shaded table?

I'm trying to format a raster-style table with row and column headings and in which each cell is shaded according to the value in the cell, and the value of the cell is displayed in as text in a ...
3
votes
2answers
153 views

How to have shaded grid entries

Teaching a unit on log scales for a high school math class. I saw this table on the internet. I know how to colour individual grid entries, is there a nice way to incrementally colour them like ...
1
vote
0answers
34 views

How to make a real number parameter go 2 decimal precision? [duplicate]

I'm new at community and I'm starting with Mathematica. I'm now having a trouble with a very simple problem which for many of you might be really obvious. In documentation ...
6
votes
1answer
87 views

How do I format the output to include the function definition?

To explain, I do most of my probability homework in Mathematica, and use the typesetting built into Mathematica to finish answers. Often, I want to output a function as the answer to a problem, but I ...
0
votes
2answers
89 views

Open a .txt file in Mathematica [closed]

i have a .txt file written for Mathematica, but wenn I open it with Mathematica, there is just an unreadable text and no graphs and simulations like it should actually be, could you tell me how to ...
8
votes
2answers
718 views

What is special about 70.329862 and InputField and Number and Dynamic?

Is this a bug (happening in V9 and V10 Windows, Linux) or not? It only happens for certain numbers and you need Number in InputField. ...
6
votes
0answers
53 views

Foreign Keyboards and Mathematica?

I have a foreign language keyboard (French). All programs are set so that it recognizes this - EXCEPT Mathematica, which behaves as if the keyboard were English. And I can't find any way of changing ...
0
votes
1answer
95 views

Keyboard shortcut for changing style of selected text (NOT the whole cell)

For many years I have been using Alt+Shift+(number) to quickly change the style of text in a text cell. For example when I write descriptive text and want some of that text to look like input form, ...
3
votes
2answers
141 views

Convert matrix rows into variables

Can anyone show me how to set all matrix rows to variables. For example, I have matrix w={{1,2,3},{3,2,1},{0,0,0}} and I need to set each matrix row to be separate ...
-1
votes
0answers
144 views

Discrepancy between Mathematica and Fortran expressions — Fortran gives wrong output (C,C++ programmer trying to use Fortran) [closed]

I typically program in C or C++, but recently wrote some code in Fortran. I am worried that I've made a mistake in the Fortran code due to lack of knowledge of Fortran. I basically need to plot two ...
3
votes
1answer
140 views

Formatting ticks of axes to scientific format and modifying the labels [duplicate]

I was trying to plot a function, but had a problem with the tick labels staying close to each other (top plot). DiscretePlot[RmvsB[b], {b, bmin, bmax, bstep}] ...
4
votes
1answer
100 views

Casting Dataset internal type from Assoc to Struct

Using: planets = ExampleData[{"Dataset", "Planets"}]; The full form of this projection displays the internal type def: ...
7
votes
2answers
188 views

Convert units to String

Is there a way to convert compound units to string? For example, I have "Newtons"/"Meters"^2, how to I convert it to "N/m^2"? I know If I do the following ...