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
18 views

How to Expand an expression joining variables [on hold]

How can I obtain, starting with ax (a - x)^2, the expression ax^3-2a^2x^2+a^3x? If I try ...
1
vote
0answers
45 views

Typesetting a formula

I want to input a formula like the one below: but occasionally when I use classroom assistant in Palettes the formula I am still typing will become something ...
1
vote
0answers
33 views

Formatting the output of SubstitutionSystem to create a Cantor set [closed]

I want to create a Cantor set using SubstitutionSystem, and plot it appropriately. This is the best I've been able to do so far: ...
3
votes
0answers
74 views

Change the background color of matched strings when doing find-and-replace

This is not a fundamental question, but it puzzles me. In doing a Find & Replace for some string in a notebook, the matched string is highlighted temporarily with some background color (green for ...
0
votes
0answers
23 views

Different display results: convert a input cell to a text cell Vs. inline cell in a text cell

I want to input a formula with some text, the formula can be listed separately or inside the text. Now I just realize that the effects are different. If I started with a plain text cell (cell style: ...
1
vote
1answer
51 views

Using Get function to return a specific expression

I am trying to use Getto import data saved as a .nb document. The problem is Getevaluates all expressions but only returns the ...
-5
votes
2answers
107 views

How to create and format a table via menu [closed]

I created a 3x3 table via menu Insert > Table/Matrix > New..., but afterwards I cannot add a new line or column. The tool doesn't add a row of 3 columns, but a row of one column at the end; when ...
0
votes
0answers
4 views

How to write this Google docs, percentage calculation function? [migrated]

I track my diet (macros) in Google docs. For 1 day my protein is 114.63 carbs 194.75 and fat ...
1
vote
0answers
22 views

How to disable OperatorSubstitution in a style sheet without losing syntax highlighting for local variables

I'm trying to define a custom style sheet that has "OperatorSubstitution" set to false in order to keep fonts consistent. However, whenever I disable this, I lose ...
5
votes
1answer
49 views

Control line wrapping within a Grid cell

I'm trying to display a number tables of data in my document which have column headings that are longer than the cell width for those columns so they need to wrap within the grid cell. I have no ...
18
votes
2answers
264 views

Dataset seems to break Information

Bug present in version 10.2 My little function, from pre-10.2 ,to turn a headed table into a Dataset. ...
3
votes
1answer
129 views

What role to sub/superscripts play in Mathematica?

I'm not sure I understand the role of subscripts and superscripts in the Mathematica language. For me, the expression: ...
3
votes
0answers
32 views

How to create permanent intra-notebook links

I'm trying to create a documentation notebook for a package and have entries which reference other entries. I'd like to include the hyperlinks in text formatted cells so that when a reader clicks on ...
-1
votes
1answer
67 views

How to set the derivative of a function to zero? [duplicate]

Maybe this is very basic, but I'm not getting it. I've googled around and searched here for an answer but I can't find it. I need to set D[h[r], r] equal to zero, ...
-3
votes
1answer
63 views

How to type a certain expression? [duplicate]

and this: I need to use this as my axes label in a plot. So I need to type this expression in Mathematica.
3
votes
0answers
16 views

Declare new “Form” wrapper and avoid this wrapper being recorded in Out[…] [duplicate]

When I input {{1,0},{0,1}} // MatrixForm and then m = %;, the value that m takes is the ...
10
votes
5answers
217 views

Tidy form of numbers with errors using ScientificForm

Say I've computed something and got a number 0.02112398 with a computed error: 0.000331 Formatting it with ScientificForm[0.02112398 \[PlusMinus] 0.000331] gives ...
3
votes
4answers
297 views

How to Find “n” for n-th Triangular Number

For example, the 7th triangular number is 28. How do I create something that will tell me that 28 is the 7th triangular number? This is what I have created. ...
7
votes
3answers
267 views

Copy/Pasting a Grid of Numbers from Project Euler

On Project Euler Problem 11 (link: https://projecteuler.net/problem=11), there is a 20x20 grid of numbers. However, when I pasted it into Mathematica, I got this strange result where the times symbol ...
2
votes
1answer
61 views

How to define a custom template for entering a partial derivative?

I want to define a custom template for entering a partial derivative. For example, When I press ctrl + shift+', I want to get To make my template, I followed a previous solution that made a ...
5
votes
1answer
116 views

How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
4
votes
1answer
90 views

Collect without grouping terms

The built-in function Collect, when applied to more than one variable, will group expressions by the first variable, as here: ...
6
votes
2answers
188 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
2
votes
0answers
38 views

How to format the background color of page footers and headers

I have created a StyleSheet by modifying a copy of Default.nb. The StyleSheet applies a dark grey background at the Notebook level. However, when I export to PDF and exam Print Preview (although PDF ...
5
votes
1answer
93 views

Why does the degree symbol disrupt this FrameLabel?

This plot Plot[x, {x, 0, 1}, FrameLabel -> {"x", "temperature / \[Degree]C"}, Frame -> True] displays beautifully, but exporting to PDF ...
1
vote
1answer
27 views

Removing vertical/horizontal edges from some cell frames

I recently asked a question regarding adjusting adjacent cells' margins to make their background color appear continuous. With these settings in place, I'd like to put a single frame around the ...
2
votes
0answers
48 views

Transferring analytic expressions from Mathematica to R

I have a series of large-ish algebraic expressions I would like to move from MM to R. I've no doubt the way I'm doing it is rather stupid, but so far the best way i've found is to use CForm and then ...
4
votes
1answer
71 views

Continuous background color of adjacent cells

I'm trying to make continuous blocks of cells so that their background colors are the same, but without breaks of white space between them. E.g. After some recent digging, I found the option "Show ...
-2
votes
1answer
41 views

Doing calculation on an imported data file [closed]

I have a data file which has been calculated from mathematica code and saved in test.txt, I need to import the data and do new calculation on it, here is the simple ...
3
votes
1answer
50 views

Splitting formatted output to multiple lines in a controlled fashion

Let's consider a slightly complicated expression in TraditionalForm: ...
0
votes
1answer
38 views

Testing Conditions in For Loops

I am attempting to create a set of coefficients that satisfy a set of conditions using the Do function and If statements. I did this successfully with a basic set of conditions: ...
0
votes
0answers
64 views

Interpreting Mathematica output or producing cleaner output

Could someone please explain what the following would look like in standard math notation (or explain to me what this means): ...
2
votes
1answer
42 views

Cannot normally underline slash characters and hyperlinks

Really, if you evaluate Style["/", Underlined] or type / and set the font of the character to be underlined through Format|Font..., you get $/$, not ...
10
votes
1answer
88 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
0
votes
0answers
45 views

DisplayFormula badly rendered if style is set before writing

If I have to write a display formula, I go to the cell after the text cell I'm currently into, select the DisplayFormula from the Style menu and then write. The ...
4
votes
1answer
119 views

Converting a sum into $\Sigma$ notation

I have a simple expression of the form $\quad \quad t^5+t^4+t^3+t^2+t+1$ and I want Mathematica to convert this to the form $\quad \quad \sum _{i=0}^5 t^i$ Is there a way to do this?
1
vote
1answer
81 views

Bug with DateListPlot with ToolTip with NumberForm?

Is anyone able to confirm if this is a bug in version 10.1 on Windows 7 Pro? I am attempting to produce a DateListPlot with ...
1
vote
1answer
86 views

Why does Mathematica remove some formatting?

I'm trying to save a file as PDF. Using SetOptions[$FrontEnd, PrintingStyleEnvironment -> "Printout"] so it looks nice. There are a bunch of formulas, and every ...
4
votes
1answer
55 views

How to make a style for paragraphs with hanging indents

I am making slides with text. I created a style template, but I cannot see how to make a style for a hanging paragraph. Is there a way to do this?
1
vote
2answers
63 views

Trouble with ToString and StringForm

The command ToString[StringForm["SomeText=`` as well as OtherText=``.", "textA", "textB"], FormatType -> InputForm] produces the output ...
0
votes
0answers
58 views

Turning Latex into Mathematica code [duplicate]

It is possible to get Mathematica code to Latex alright, but is it possible the other way too, i.e., auto translate Latex back to Mathematica code? If available it could help many users active both ...
1
vote
2answers
60 views

Transforming functions

I am not familiar with Mathematica but have the following question: I am trying to write Mathematica code that transforms $x^a+y^a$ to $(x+y)^a$ for any $x$ and $y$ and integer $a$. I also need to ...
0
votes
0answers
18 views

Creating Group Open/Close Button [duplicate]

So I have a mathematica file with calculations and explanations seperated by groups into different sections. I want to know how I can add that open/close traingle button for Each group. This is the ...
1
vote
1answer
61 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
53 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
40 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
33 views

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

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!
4
votes
2answers
134 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
79 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: ...