MathJax 3: Is bold \text{} possible? - mathjax

\boldsymbol{} works well for math expressions, but it doesn't work for text:
\boldsymbol{A_{\text{Circle}}}
Is there a way to make the Circle bold, too?

Use \textbf instead of \text:
\boldsymbol{A_{\textbf{Circle}}}

Related

Python Matplotlib string-formatting in plots with bold and Italic font

I have a little problem with bold and italic fonts in a plot at the same time.
I tried:
plt.text(0.5,0.5,r'\it{italic} + \bf{bold}' = \it{\bf{both}}')
this gives: italic and bold = both
and with:
plt.text(0.5,0.5,r'\it{italic} + \bf{bold}' = \bf{\it{both}}')
I get: italic and bold = both
But what I want to get is both
I also tried to use the latex version with \textbf{...} and \textit{...} and the commands \mathit{...} and \mathbf{...}.
They work as they should but not if they are used combined. The combination of different "technologies" like \mathbf{\textbf{...}} does not help. It is alway only the last style that stays.
I saw a few different questions on that topic but no correct answer, so I hope that asking espacially for this contextless case helps to find an answer. I am looking for a generall solution, not for a workaround for a special case, e.g. using a special font that already looks bold.
I have found the answer. Yoi have to use a different font. The work around I mentioned is the answer. If you use:
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
you will get the desired result. The default font in matplotlib seems to not support the bold and italic edits at the same time. Maybe this helps in many other situations you will have with other edits in case you are looking for different combinations.

Displaying binomials and matrices using asciimath with mathjax

I'm trying to display different math problems using asciimath and mathjax. However some things does not seem to be supported in asciimath. For instance I'm trying to display a binomial/matrix and I can't really figure out how to do it. Would I have to use latex or mathml to do this, or is there a way to use asciimath for this?
update: I found a kinda cheeky way to show binomials in asciimath: (""_1^2) This works, but it is kinda hacky.
You can use
([1],[3])
to get a matrix with two rows of one element each surrounded by parentheses. That may be what you want, though it may be too tall for use with in-line expressions.

Advanced CSS Circles

I'm trying to make 3 different circles to my website. I don't want to insert it as a graphic/image file. So I've been trying to achieve it using CSS3, but I can't really work my fingers around it.
What will it look like?
I have uploaded a picture of what I'm trying to achieve at: www.sp34k.com/etc/circles.jpg
I can't really show the code I've been trying to use to achieve this, as it all looks totally weird and nothing floats currectly.
What I've tried
What I've tried is to make 3 circles with position absolute and then use % (percentage) to determine the width of the colored parts, but I can't twist my mind around how it should be set up.
Any suggestions is appreciated,
Mike
Here is a simple try of me to achieve the effect you want:
DEMO
edit: css-only solution
It can be easily animated with javascript or keyframes. Arbitrary content would go into the inner div. To change the percentage, simply adjust the angle of the pseudo-elements.
With a little more effort this could be easily refined I guess;)
Note: the transform has the webkit-prefix, so it works only in chrome/safari - to see it in firefox or other browsers, you need to change the prefix.
P.S. I will animate it when I'm home from work.
Good one by Christoph but he is using SASS/SCSS which are comparatively slow then normal CSS because they have to be converted to CSS before browser render it so I have have a different Solution for you
try this fiddle

Photoshop alter colors in blue white

I'm trying to make an header in Photoshop but I want the image I use to only have two base colors.
Just like:
How do I make this happen? And is it possible to just adjust one layer?
Basics is use hue/saturation in Image>Adjustment>hue/saturation tick the colorise in the bottom and enjoy colouring

hl-line-mode emacs color change

Emacs' hl-line-mode is just what i need but i would like to change it's horrible yellow color, anyone know how can i do that?
I use (set-face-background hl-line-face "gray13").
here's what it looks like with a black background.
Very subtle. Mostly I notice it when moving the cursor, which is what I wanted.
If you want to see a display of all the various colors, try (list-colors-display). It will show a list of colors in a new buffer.
EDIT: heh heh, since I am getting upvoted for pretty pictures,
here it is "live":
(ps: that animated gif was produced with the Cropper tool and the AnimatedGif plugin.)
M-x customize-group RET hl-line RET
and modify "Hl Line face".
Alternatively, you could use (for example):
(set-face-background 'hl-line "#333333")
edit: cheeso's answer would be the more robust approach for that second version.
On top of all the nice answers, you can also do it with use-package as follows:
(use-package hl-line
:custom-face
(hl-line ((t (:background "#aaaaaa")))))
hl-line is the customizible face added in Emacs 22 according to the author of hl-line+.

Resources