I am writing a presentation with Beamer, where I show the benchmarks of a program I wrote. This involve comparing a lot of number coming from different sources. These numbers can differ only in the last two or three decimal digits. What I would like to do, is to color only the digits that differes from one numbe to another. The problem is that these numbers are normally contained in a command \num or \SI of the siunitx package.  Is there any way of coloring only the last decimal digits of a number contained in the commands \num or \SI?
I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from . Of course I can do it manually as in the MWE below, but was hoping that there might be an easy way to use the commented out syntax to accomplish this:  Code: \documentclass{article} \usepackage{xcolor} \usepackage{siunitx}  \newcommand*{\Color}[2][red]{\textcolor{#1}{#2}}%  \begin{document}  \num{99 976}  88\,9\Color{76} %\num{88 9\Color{76}}  77\,\Color{976} %\num{77 \Color{976}}  \end{document}
Using "of" or apostrophe, which is more common? Equivalent of "both" when referring to three or more items? What would be the correct word to use when referring to three or more items, in the same manner as the word both?  For example, using two words, with the word both:     "There are several recommendations I   have to further improve the sites —   both to improve their profit, and   decrease their cost."   Using three words, with a blank space in place of the correct word:     "There are several recommendations I   have to further improve the sites —   _ to improve their profit, decrease their cost and improve their   usability."   So, what would be the correct word to use in place of the __? How do I define solar irradiance in the context of a solar cell? This is homework. I've tried my best to find the best answer that I could understand and could be accepted by my lecturer.   I've searched my lecture notes, wiki and google to find some good explanation defining solar irradiance. But somehow I still don't understand how I should 'define solar irradiance'. Can someone give me a few good sentences explaining solar irradiance. What are the changes, if any, in a photovoltaic cell (in terms of short-circuit current and open-circuit voltage) if the irradiance is reduced by 50%? When and what cause Voldemort to look the way he does, vs how we've seen him as a teen? As the title says, when and what made Voldemort look the way he does (pale, snake-like etc) as opposed to how we've seen him in his earlier years as Tom Riddle? Is it just a side effect of his unnatural resurrection? Before he died attacking Harry as a baby did he look like a normal guy? Interpreting exp(B) in multinomial logistic regression This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model?  1) is it 6.012-1.0 = 5.012 = 5012% increase in risk?  or  2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk?  In case both alternatives are incorrect, can someone please mention the correct way?  Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct. When you're driving and you open 1 car window, say the front one, there comes a horrible noise, but when you open another window just the slightest bit, this noise goes away (I'm sure most people know what I'm talking about then I mention this 'noise').   Why does this noise occur? Why does it go away when another window is slightly opened?   (Not sure about the tag). Why is \[ ... \] preferable to $$ ... $$? I've heard that you should use \[ ... \] for displayed equations instead of  $$ ... $$, but why is that?  I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols.  Is there any reason for this suggestion? What happens if you miss a connecting flight? How do I automatically remap buttons on my mouse at startup? How to prove that exponential grows faster than polynomial? In other words, how to prove:  For all real constants $a$ and $b$ such that $a &gt; 1$, $$\lim_{n\to\infty}\frac{n^b}{a^n} = 0$$  I know the definition of limit but I feel that it's not enough to prove this theorem. Why did Zobrist leave the trail to the virus in the first place? What is this electronics symbol (four triangles?) Proof that $V = \sum_k U_k$ and $\dim V=\sum_k \dim U_k$ implies $V=\oplus_k U_k$ I use my computer for scientific programming. It has a healthy 8GB of RAM and 12GB of swap space. Often, as my problems have gotten larger, I exceed all of the available RAM. Rather than crashing (which would be preferred), it seems Ubuntu starts loading everything into swap, including Unity and any open terminals. If I don't catch a run-away program in time, there is nothing I can do but wait - it takes 4-5 minutes to switch to a command prompt eg. Ctrl-Alt-F2 where I can kill the offending process.  Since my own stupidity is out of scope of this forum, how can I prevent Ubuntu from crashing via thrashing when I use up all of the available memory from a single offending program?  At-home experiment*!  Open a terminal, launch python and if you have numpy installed try this:  &gt;&gt;&gt; import numpy &gt;&gt;&gt; [numpy.zeros((10**4, 10**4)) for _ in xrange(50)]   * Warning: may have adverse effects, monitor the process via iotop or top to kill it in time. If not, I'll see you after your reboot. Parsing date/time string with timezone abbreviated name in Python? Prevent Photos app on OSX from launching when plugging in device The Photos app opens whenever I plug in my phone.    How can this be prevented?  I have seen many solutions for the old iPhoto app that involve changing the "Connecting camera opens" option, but the new app has no such option. How can I get Firefox to open torrent files with Transmission? Every time I download a torrent file (.torrent), Firefox thinks I should open it with a text editor. How can I get it to open with Transmission? In Edit -> Preferences -> Applications, there's no setting for torrent files, and no apparent way to add a new filetype. R: Trouble using SMOTE package "invalid 'labels'" Using SMOTE package from DMwR library. After loading the data frame, I try to perform sampling as follows :   crime_bal$target &lt;- as.factor(crime_bal$target) crime_bal &lt;- SMOTE(target ~ .,crime_bal,perc.under = 200, perc.over = 100)   But it always ends up to this error :   Error in factor(newCases[, a], levels = 1:nlevels(data[, a]), labels = levels(data[,  :    invalid 'labels'; length 0 should be 1 or 2 In addition: Warning messages: 1: NAs introduced by coercion  2: NAs introduced by coercion    Details of my dataset :   &gt; summary(crime_bal)      text               url            target    Length:6326        Length:6326        0:5994    Class :character   Class :character   1: 332    Mode  :character   Mode  :character   Why do I always end up with the error? What is dependency injection? What does 'synchronized' mean?