Currently I am using the following code to give my Section Numbers a different colour (I am using the xcolor package):  \documentclass{article}  \usepackage[dvipsnames]{xcolor} \definecolor{darkmidnightblue}{rgb}{0, 0.2, 0.4}  \makeatletter \renewcommand\@seccntformat[1]{\color{darkmidnightblue} {\csname  the#1\endcsname}\hspace{0.5em}} \makeatother  \begin{document}  \section{\textcolor{darkmidnightblue}{Section}} \subsection{\textcolor{MidnightBlue}{Subsection}}  \end{document}   However, I understand that as  it is, it also applies the same scheme to the other section levels. I am trying to make the Subsection have a different colour to the Section, but it turns out like this:    I would like the Subsection Number to be the same colour as the text. Can this code be modified to alter each section level independently, or will I need to use different commands altogether?  Elliot
I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed.   Is there a way to do this?
Long, blurry reflections in wet road How to prove that $\frac{x^2}{yz+2}+\frac{y^2}{zx+2}+\frac{z^2}{xy+2}\geq \frac{x+y+z}{3}$ holds for any $(x,y,z)\in[1,2]^3$ Prove that for $x,y,z\in [1,2]$ the following inequality holds: $$\frac{x^2}{yz+2}+\frac{y^2}{zx+2}+\frac{z^2}{xy+2}\geq \frac{x+y+z}{3}.$$ I tried to apply the Cauchy-Schwarz inequality or the power mean inequality, but my attempts were unsuccessfull, so I am asking for help. Essentially, I would like to set my phone so that all my outgoing messages to a specific friend, with whom I currently text back and forth over iMessage, are sent out over SMS, never iMessage. Additionally, I would like to block any incoming iMessage texts of his and (hopefully) they'll fail and be resent via SMS.  Let me restate that: I would like to force SMS for both parties, going both ways, for a specific individual contact.   Is this possible? Blocking any usage of iMessage between myself and this other individual, so they must either send and receive any texts to or from me via SMS (or the texts fail/never arrive). Proof that the real numbers are countable: Help with why this is wrong Tool to manage and/or make available a list of my publications on the web? Will the Garbage Collector call IDisposable.Dispose for me? Why is the installer not showing any partitions? I'm having a problem installing Ubuntu, and Kali as well. I downloaded the iso from the official site &amp; tried installing using USB. I also tried desktop installation, but the problem is same.  It shows a single drive i.e. my total Hard Disk and if I select it, it asks me to create a new partition &amp; shows total space as FREE.  It's with all Ubuntu I downloaded, 11.10 Server, 12.10 and 13.04. I also tried to install BackTrack's new version Kali Linux but again I got the same problem.  I hope I meet thier system requirements. Here's my system details for your ease:   OS: Windows 7 Ultimate Processor: Intel P4 2.80 GHz RAM: 3GB Hard Disk: 320GB No of Local Drives: 4 (1 Primary, 3 Logical) Free Space: 195GB (about) Motherboard: G31 Cache: 1MB Help me, please. Is it possible to log a program's network activity in Windows 7? Does anyone know of a program or way to log all network activity to a specific program on one's computer (program and/or service)?  I know I can see this "live" in Resource Monitor, but I'm wondering if anyone knows of a program or way to track and log all network activity to/from a specific process and/or service.  I'm finding a lot of "live"-type monitors, like Windows Resource Monitor, but nothing that can log. How to set up USB for Virtualbox? I'm using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn't detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working.  I followed , but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive). How can I script the settings made by gnome-tweak-tool? I like to be able to configure things from the command line, so that when I reinstall the OS I can just run a script and get my preferred configuration back.  Since "upgrading" to Ubuntu 17.10, I found I had to use gnome-tweak-tool to get some settings the way I want them.  Once I find a setting in the gnome-tweak-tool GUI, how can I figure out its scriptable translation?  For example the following gsettings lines match the relevant entries in the gnome-tweak-tool screen shot below...  gsettings set org.gnome.desktop.wm.preferences titlebar-font "Tahoma Bold 8" gsettings set org.gnome.desktop.interface font-name "Tahoma 8" gsettings set org.gnome.desktop.interface document-font-name "Tahoma 8" gsettings set org.gnome.desktop.interface monospace-font-name "FixedSC 10"    ...but how could anyone guess that? And how would I, for example, figure out where to get the corresponding settings for hinting and antialiasing? I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica.   I use the listings package as follows:  \documentclass{article}   \usepackage{listings}   \begin{document}   \lstset{language=Mathematica}    \begin{lstlisting}   Do[i^j,{i,1,10},{j,1,10}]   \end{lstlisting}    \end{document}   However, the output is much different to what the code looks like in the Mathematica IDE (even if I use other languages in \lstset{language=&lt;name&gt;}):    I read some questions on the site but, in some of them, the font or color of the codes were not the same. Could you please help me to display something like the picture below in LaTeX?  If it is important, I am using the BiDi package. How can I prevent URLDownloadToFile from retrieving from the cache? I am using URLDownloadToFile to retrieve a file from a website. Subsequent calls return the original file rather than an updated version.  I assume it is retrieving a cached version. Why does thermal radiation only occur at infrared and visible frequencies? The resources that I've checked out seem to say thermal radiation only occurs in the infrared and visible spectrum. For example my heat transfer textbook and the Wikipedia page on .  In my mind thermal radiation is just energy emitted as a result of internal collisions from temperature. So, since temperature can range from 0K to huge numbers, I would think you would have a similar range of emitted energies. So then thermal radiation could occur throughout the whole of the electromagnetic spectrum. "add/show comments" should dismiss notification I am not experienced in Number Theory but what I know is that some results of this filed are applicable in other areas, e.g. algebra. For sure FLT made (and makes) people be interested in Number Theory leading to the development of new methods which can be themselves applied not only for the proof of FLT (like financial problems motivated somehow development of stochastic analysis). I am interested - if there are applications or implications of FLT itself?  More precisely: if the fact "for each $n\geq3$ there are no integer solutions of $a^n+b^n=c^n$" leads to solutions of problems which are not in the field of Number Theory?   I would specify that I wonder about some problems which are already formulated: since FLT is known for more then 300 years I am pretty sure that there were formulated hypothesis which follow from FLT directly (if there are such hypothesis not in the field of Number Theory). I'm having some trouble proving that the Gaussian Integer's ring ($\mathbb{Z}[ i ]$) is an Euclidean domain. Here is what i've got so far.  To be a Euclidean domain means that there is a defined application (often called norm) that verifies this two conditions:   $\forall a, b \in \mathbb{Z}[i] \backslash {0} \hspace{2 mm} a \mid b \hspace{2 mm} \rightarrow N(a) \leq N (b)$ $\forall a, b \in \mathbb{Z}[i] \hspace{2 mm} b \neq 0 \rightarrow \exists c,r \in \mathbb{Z}[i] \hspace {2 mm}$ so that $\hspace{2 mm} a = bc + r \hspace{2 mm} \text{and} \hspace{2 mm} (r = 0 \hspace{2 mm} \text{or} \hspace{2 mm} r \neq 0 \hspace{2 mm} N(r) \lt N (b) )$   I have that the application meant to be the "norm" goes: $N(a +b i) = a^2 + b^2$, and I've managed to prove the first condition, given that N is a multiplicative function, but I can not find a way to prove the second condition.   I've search for a similar question but I have not found any so far, please redirect me if there's already a question about this and forgive me for my poor use of latex. I want to append some data to a layer in my PostGIS DB using a shapefile, but when I use the Import layer/file tool in QGIS, it doesn't allow me to choose the append option.  Why is this and how do I get it to allow me to append? I was trying to make python version 3 as a default version of Ubuntu,  I used nano ~/.bashrc and added the first line of this answer.    Then It just messed up my terminal.  Now when I am clicking on my Terminal or trying to access by ctrl+alt+t, the terminal does open/run. I can only talk to ubuntu using my terminal how could I fix this?  Please advise!  Pls, note that the terminal icon is present, but the terminal does not open when clicked on. How do I get the terminal to open and work?  Update: I deleted that line from .bashrc. However, I still have a problem opening my terminal. I also see this sign on my ubuntu as well.     saying: a problem occurred when checking for the updates ubuntu 18.04 Why are there two ticker symbols for Google — GOOGL and GOOG?  They seem to be mostly identical, but their market values are different: currently, 551.64 for  and 548.79 for . TikZ: Having circle borders only grown to the outside