Playing with Colors

12142013, 09:48 AM
(This post was last modified: 12292013 11:42 PM by Katie Wasserman.)
Post: #1




Playing with Colors
It's possible to add color to LaTex expressions by including the color extensions with "\require{color}" at the start of an equation.
\[ \require{color} \left( \color{red} \begin{array}{cc} a & \color{green} \left( \begin{array}{cc} \color{blue} \colorbox{yellow}{1} \color{green} & 2 \\ 3 & 4 \end{array} \right) \\ c & d \end{array} \right) \] katie 

12142013, 06:52 PM
(This post was last modified: 12142013 06:52 PM by Han.)
Post: #2




RE: Playing with Colors
Is it possible to request a list of supported packages? (It appears the \require{} command is similar to \usepackage{}.) Let's try:
\[ \require{pstplot} \psset{xunit=8mm,yunit=8mm} \begin{pspicture}(1.5,2.5)(4,6) \psaxes[labels=none,ticks=none](0,0)(1.5,2.5)(4,5.5) \psplot[linecolor=red, linewidth=1pt]% {1.5}{3.5}{x x mul 2 x mul sub} \psdot(1,3) \uput[r](1,3){$P=(1,\hspace{5mm})$} \psdot(1,1) \uput[r](1,1){$Q=(\hspace{5mm},1)$} \uput[u](2,2.5){$f(x)=x^22x$} \end{pspicture} \] Oh well, was worth the shot Graph 3D  QPI  SolveSys 

12142013, 11:15 PM
Post: #3




RE: Playing with Colors
Take a look at the MathJax extension page. Some of these work, but not all of the ones I've tested so far. Also right click on any formatted expressions below (or eleswhere) and you'll see a bunch of useful display options. The MathJax package is pretty cool.
enclose seems to work, for example: \[ \require{enclose} \enclose{circle}[mathcolor="red"]{x} \enclose{circle}[mathcolor="red"]{\color{black}{x}} \enclose{circle,box}{x} \enclose{circle}{\enclose{box}{x}} \] cancel seem to work, for example: \[ \require{cancel} \cancel{lower left to upper right} \bcancel{upper left to lower right} \] html seems to work, for example: \[ \require{html} calculator ^ \href{http://www.wass.net/manuals}{manuals} \] katie 

01062023, 10:09 PM
Post: #4




RE: Playing with Colors
Black
Gray Silver White Yellow Lime Aqua Fuchsia Red Green Blue Purple Maroon Olive Navy Teal More, by groups: https://www.w3schools.com/colors/colors_groups.asp 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)