Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

Filter by
Sorted by
Tagged with
1
vote
0answers
67 views

Mysterious message posted when I move the cursor in a custom function

I wrote a function called CPlot for complex plotting which is supposed to act a lot like Plot in its input format, but ever ...
4
votes
1answer
126 views

Is the use of StringTemplate with a styled string documented behavior?

I was pleasantly surprised to find out that StringTemplate appears to work with styled (formatted) strings, with the style of the slots applied to the inserted ...
4
votes
2answers
198 views

Headings, subheadings, text cells etc and Alt+n

This is a minor point but annoying. I have just upgraded to version 10.0.2.0 and discovered that you must select a bracket before doing Alt+1, or Alt +7 to make a cell a heading or text cell. This was ...
4
votes
0answers
110 views

Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? <...
4
votes
3answers
170 views

How we can make a simple pallette to change the Font characteristics?

I am trying to make a new Palette with some buttons on it called, for example, "Arial", "Bookman" etc. plus some other buttons specifying sizes(12,14,..) and some prefered Colors for the fonts. I ...
2
votes
2answers
94 views

How to programatically set options for a selected word?

I want to create a palette with buttons and have it apply to the selected word. No matter what combination I try it always applies it to the entire cell. Imagine that in the sentence: ...
3
votes
1answer
584 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 ...
10
votes
1answer
1k views

How to print $\odot$ without it being cropped? (\[CircleDot] symbol)

Preamble: In some applications (astronomy, cosmology, etc), it is useful to measure things in solar quantities, say distances in $R_\odot$ or masses in $M_\odot$, and so on. Now and then I see ...
23
votes
1answer
914 views

How to write Morse code into Plot Dashing?

How can we define a dashing pattern in a plot such that it reads arbitrary text in Morse code? For instance Graphics[{DotDashed, Line[{{0, 0}, {5, 0}}]}] ...
2
votes
2answers
82 views

How do I extract the value of a 'Style'?

I have a Style displaying an underlying Real value. For example I might have ...
3
votes
2answers
101 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
1
vote
0answers
137 views

Fill histogram with pattern [duplicate]

Is there a way to fill a histogram with a pattern such as hatched lines? I'm imagining something along the lines of ...
2
votes
2answers
258 views

Controlling PointSize in a RegionPlot

I have a "named" point in Mathematica 10 and am plotting it like this using RegionPlot: ...
4
votes
3answers
510 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: ...
3
votes
1answer
960 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 ...
5
votes
2answers
303 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
0answers
111 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 ...
2
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 ) ...
1
vote
0answers
118 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
105 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:     ...
2
votes
1answer
128 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 ...
0
votes
1answer
127 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).