Questions tagged [style]
Questions about applying a consistent look or form to Mathematica output, including use of the built-in styling constructs (Style, PlotStyle, etc). For questions specific to styling in notebooks with stylesheet properties please use the [stylesheet] tag.
325
questions
4
votes
3answers
571 views
Use TraditionalForm (or something similar) in AxesLabel/PlotLegends
I use the following command to export plots to PDF which I then use in latex:
...
24
votes
2answers
3k views
Thickness of logarithmic tick marks
Bug introduced in 8 or earlier and persisting through 12.0
I'm trying to plot a graph wit a logarithmic y-axis. Since I'm exporting the graph to pdf and later printing it, I want to manually set the ...
12
votes
1answer
794 views
How to make PlotMarkers constructed from Graphics track plot style?
In this plot the Disk[] markers are not colored according to the style of the line to which they belong:
...
3
votes
1answer
1k views
How to enter chemical equations?
When I want to take chemistry notes and write down a formula such as H_2O or C_2H_5OH it enters "Math mode" which changes the font size and italicizes the letters. Is there an easy way to properly ...
4
votes
2answers
399 views
Labeling vertices by number in Graph: Getting text to display at the right size
Minor aesthetic question here. I was playing around with Graph's and decided to render a cute-looking family of directed graphs, with the vertices being the number ...
9
votes
1answer
1k views
Solarized stylesheet and other goodies. Feedback welcome!
I was inspired by this post so I've made a Solarized stylesheet after mucking around with the text options and asking stupid questions on here. I know you can change the syntax highlighting by running ...
3
votes
0answers
117 views
How to include automatic references to cells styled with DisplayFormulaNumbered
Under the Style menu, there is an entry called DisplayFormulaNumbered. It does exactly what it seems to suggest: it indexes the ...
5
votes
2answers
331 views
Syntax highlighting conflict
I'm trying to syntax highlight this expression: x=$\sqrt{\pi }$//N and from various sources I've learned that x (the assigned symbol) belongs to context Global while the Pi and N belongs to System. So ...
3
votes
1answer
691 views
Some Characters From Custom Font Do Not Show Up
I'm using version 8.0.4.0 on a Mac, and recently made my own .otf and .ttf fonts at PaintFont.com. The font can be based on pretty much anything, including handwriting, and covers everything from ...
4
votes
2answers
3k views
How to make lines in Plot Legends wider?
1.- How to put DASHED lines in the Legend?
2.- How to give Style to {20,Bold} to all "Expressions in Legend?
(I use LegendMarkSize for make lines wider than default fine style )
...
3
votes
1answer
2k views
Making single letters non-italic in Graphics/Text/Style objects
Suppose that I use Graphics, Text, and Style to type one letter in the subscript of a letter ...
1
vote
0answers
158 views
Set Standard Plot Thickness [duplicate]
All of my plots should have the same set styling, that is, for instance,
{ImageSize->460, Frame->True, PlotStyle->Thickness[0.004]}.
Of course I do not ...
2
votes
1answer
109 views
Why can I edit only one character of the output of a Dynamic expression?
Try this:
DynamicModule[{foo = \[Placeholder]}, foo]
Note how we're able to edit the placeholder in the output, e.g. replace it with 42:
...
1
vote
3answers
438 views
Is there a way to “hold” prefix / infix / postfix notation?
Is it possible to preserve a specific style of notation in $Mathematica$ output?
foo // bar
(* bar[foo] *)
Hold[foo // bar]
(* bar[foo] *)
I'm writing some code ...
2
votes
1answer
140 views
Palette to set Cell Options such as Background Editable and Initialization property?
Hello I have found examples of codes that generate palettes to format the text of a cell (or a portion of it). I have also found codes for palettes that change the style of a cell. The latter is ...
4
votes
1answer
871 views
Background in ItemStyle
Bug introduced in 6.0 and persisting through 11.0.1 or later
Grid ang ItemStyle are new in 6.0
I would expect the following to ...
5
votes
1answer
201 views
Possible to include additional styles in context menu?
I am using Mathematica 9 on Windows 8, and I regularly want to use cell styles such as Section, SubSection and so on.
If I click the + button before creating a new ...
0
votes
1answer
142 views
Can I specify the style of plot for some element in discrete plot?
I am using discrete plot to plot a 1D array. But I want to plot some points specified by a span in one style (for example, in red) and the rest points in other style (e.g. in blue).
11
votes
4answers
793 views
Set the style of a cell
I know it's possible to programmatically change options on the selection in a notebook.
I'd like to create a button that lets me change the style of a cell. It's a style that doesn't have a keyboard ...
21
votes
1answer
2k views
How to strip all formatting from a string and convert it to plain text?
The documentation on String states:
But if I try to perform some manipulations on this string, for example, take 2 words from the left, I get some shards of ...
2
votes
0answers
90 views
How can I add shortcut to StyleBox [duplicate]
How can I add shortcut to StyleBox?. We can Ctrl+B to overstrike font.
i.e. strong or **strike**.
Can I add one new shortcut ...
4
votes
0answers
93 views
How to insert expression matching the format?
I would like programmatically to insert/write an expression at the current insertion point, but matching the current format, such as font size and style, so that it looks like the user typed it. ...
11
votes
1answer
290 views
Is there a way to base one style on another?
I'm setting up a stylesheet and and finding the process of defining related styles tedious and error prone. In particular, I have several related styles that need to have synchronized settings (e.g., ...
13
votes
2answers
1k views
What is the precedence of FrameStyle, FrameTicksStyle, and LabelStyle? How to have a LabelStyle different from FrameStyle
From the documentation:
Plot[2 Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y},
PlotLabel -> 2 Sin[x], LabelStyle -> Orange]
But then add a ...
44
votes
4answers
9k views
How to change the default ColorData used in Mathematica's Plot?
This question leads on from the recent question What are the standard colors for plots in Mathematica?
There it was determined that the default color palette used by ...