I know that we can use "\tableofcontents" to list all the contents of the article. However, if there are so many subsection for example, how then can I get the contents as follows:   complex nummbers....................................................................................................................3 1.1 complex numbers (3) 1.2 complex plane (5) 1.3 the modules and arguments (7) 1.4 the powers and squares (13) 1.5 conjugates (16)   Here subsection 1.1 in on the page 3, etc.
I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like  Chapter 1.XXXXXX                                                            (1-15)  1.1 Introduction 1.2 xxxxxxxx 1.3 xxxxxxxxxx 1.4 xxxxxxx ...............  Chapter 2.xxxxxxx  2.1 xxxxx ......                                                           (16-30)  because the (default) TOC appears to be very large for my book, since it arranges the section name row-by-row.
Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ is reducible over $\mathbb{Q}$? We know that $f(x)=x^4+1$ is a .  My question is:     Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ has a linear factor over $\mathbb{Q}$?   Edit: Thanks for @Jyrki Lahtonen's answer, I want to do some modifications:     Is it true that if $f(x)$ has a linear factor over $\mathbb{F}_p$ for every prime $p$, then $f(x)$ is reducible over $\mathbb{Q}$?   Thanks in advance! Minecraft crashes on launch with EXCEPTION_ACCESS_VIOLATION, Problematic frame: ig4dev32.dll or ig4dev64.dll or ig4icd32.dll or ig4icd64.dll When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this:  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C  [ig4dev32.dll+0x3e88] OR # C  [ig4dev64.dll+0x55ec] OR # C  [ig4icd32.dll+0x104a77] OR  # C  [ig4icd64.dll+0x84930a]   This happens with both Java 7 and 8.  What causes this error, and what can I do to fix the issue? In his first lesson (transcripted in "Tips on Physics"), Feynman talks about math for physicists in a very cool and practical way. And at the end of the section he talks something like "so the first thing to do is to learn to learn derivative, integral and algebra" (I don't know how much precise I'm being because I've read it in Portuguese). I would to know if there is some book that deals with math as Feynman did it in this lesson (respecting formalities, but teaching how to use the practical rules)? Also, someone have any recommendations for algebra book (college level)? Does the faction of your armor/clothes affect character interactions in Skryim? SQL not engaging parallelism for extremely large query This question is essentially the same as one of my , except the only difference is that I am using "only" to change the text at the same location (i.e., ). In other words, I am destroying my earlier text as I go, and not adding new ones underneath the previous ones.   Since the text for the first "only" is shorter than the second "only", therefore the image will shift location. I would like for the image to remain at its location.   Here is an example     it may not be obvious but the second image is higher up than the first.  The code is here, can someone find a solution?  \documentclass{beamer}  \usepackage{graphicx}  \title[Title]{Presentation} \author{Sandro Botticelli} \institute{Italy} \date{1484}  \begin{document}   \begin{frame} \begin{figure} \includegraphics[scale = 0.8]{Venus}     \caption{Nascita di Venere} \end{figure}  \only&lt;1&gt;{In the centre the newly-born goddess Venus stands nude in a giant scallop shell. Its size is purely imaginary, and is also found in classical depictions of the subject. }    \only&lt;2&gt;{Alternative identifications for the two secondary female figures involve those also found in the Primavera; the nymph held by Zephyr may be Chloris, a flower nymph he married in some versions of her story, and the figure on land may be Flora. Flora is generally the Roman equivalent of the Greek Chloris; in the Primavera Chloris is transformed into the figure of Flora next to her, following Ovid's Fasti, but it is hard to see that such a transformation is envisaged here.} \end{frame}   \end{document} Would it be possible to generate the original data from a SHA-512 checksum? So, I have a file that is XY Exabytes big. I create a SHA-512 hash from it.    Are there any theoretical chances that I can retrieve the original data just from the sha512 hash?    Also, are there any better hashes then sha512? Installing grub2 in efi-mode in usb flash drive I've two different OS, which one is ubuntu. I'm using a PC, NOT a Mac. I use Chimera bootloader that don't find Ubuntu. So, i'd like to install grub 2 in EFI-mode on flash-drive USB. In this way, i can load Ubuntu only if the usb flash-drive is connected.  I followed this guide  replacing "/dev/sda" in  sudo efibootmgr --create --gpt --disk /dev/sda --part 1 --write-signature --label "GRUB2" --loader "\\EFI\\grub\\grub.efi"   with the usb-pen directory. Then, i've copied the grub.cfg file that exists in Ubuntu partition.Result? Grub2 loads, but when i select the menu entries, grub2 doesn't find any command, or disks. How can i fix this problem?  P.S. Here, there are the photo of the error(when i select ubuntu entry in grub2), the usb-drive's contents and the grub.cfg file What happens if light/particles exceeded the speed of light for a particular medium? I read a story--the first part of one, at any rate--years ago, and haven't tracked it down since. It started with a man been sent to a planet under attack to pose as a monk--he arrived in the middle of an assault, but still had to do penance for being late. So he wore a hair shirt, that created an agonising reaction. He was captured by the attackers (who took him for the man he was posing as), who then stood off the planet in their starships and watched as a 'hell burner' weapon tumbled out of deep space and torched the planet. The attackers then explained that they weren't responsible for the hell burner, but every time they arrived at a planet, a hell burner turned up afterwards, at shorter and shorter intervals.  As the story developed, there was some kind of time travelling dimension, and a character turned out to have his organs reversed. I may have got some details wrong, but this was the shape of it.  Anyone know this story, and the author? I saw that it has been already reported that also they have earned courious badge but the badge has not been given. but their answers say that they must wait a day and the badge will be awarded.  In my case its 8/5 and it was 5/5 long time ago and I have never received a message telling that I have earned it. its just telling me that the next badge to be awarded is Curious badge.  this is my profile: Draw a vertical line over the entries of a column in an array I'd like to draw vertical/horizontal lines over the entries of a column/row in an array. I find the method to draw horizontal lines at . But when I used the same way to draw the vertical lines. It didn't look well. My codes are:  \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} \newcommand{\DrawLine}[3][]{% \begin{tikzpicture}[overlay,remember picture]     \draw [#1] ($(#2)+(0,0.6ex)$) -- ($(#3)+(0,0.6ex)$); \end{tikzpicture}% }%  \begin{displaymath} \left[ \begin{array}{cccc} \tikzmark{11}{15} &amp; 0 &amp; \tikzmark{13}{0} &amp;0\tikzmark{14} \\ 0 &amp; 50 &amp; 20 &amp; 25 \\ 35 &amp; 5 &amp; 0 &amp; 10\\ \tikzmark{41}{0} &amp; 65 &amp; \tikzmark{43}{50} &amp; 65 \end{array} \right]. \DrawLine[black,thick]{11}{14} \DrawLine[black,thick]{11}{41} \DrawLine[black,thick]{13}{43} \end{displaymath}   The result looks like     But the result I want is     Does anyone know how to fix this? Thank you. How can I prevent my parents' divorce? I am a young teenager, younger than 16. (I do not want to give my age online)    My dad told me he wants a divorce, but I don't want my parents divorced. My dad says he can't stand my mom anymore.  My dad is older than 45 and my mom is older than 40.    If it happens, I would choose to stay with my mom. My dad can cook and drive, but my mom can't. There's a school bus in high school though.    What can I do to prevent this divorce? Installing QGIS Statist plugin in Mac OS X? Using Windows 10 in a virtual machine. Can it be done? I am currently running 8.1. I'd like to try out Windows 10 and if I like it upgrade. If not, I'll keep running as I am.   I've never used a virtual machine before: can Window 10 be used from a virtual machine as a "sandbox", and if so how? Could not download all repository indexes What is cool about generics, why use them? I thought I'd offer this softball to whomever would like to hit it out of the park. What are generics, what are the advantages of generics, why, where, how should I use them? Please keep it fairly basic. Thanks. How to resolve a Java Rounding Double issue Random weighted choice Consider the class below that represents a Broker:  public class Broker {     public string Name = string.Empty;     public int Weight = 0;      public Broker(string n, int w)     {         this.Name = n;         this.Weight = w;     } }   I'd like to randomly select a Broker from an array, taking into account their weights.  What do you think of the code below?  class Program     {         private static Random _rnd = new Random();          public static Broker GetBroker(List&lt;Broker&gt; brokers, int totalWeight)         {             // totalWeight is the sum of all brokers' weight              int randomNumber = _rnd.Next(0, totalWeight);              Broker selectedBroker = null;             foreach (Broker broker in brokers)             {                 if (randomNumber &lt;= broker.Weight)                 {                     selectedBroker = broker;                     break;                 }                  randomNumber = randomNumber - broker.Weight;             }              return selectedBroker;         }           static void Main(string[] args)         {             List&lt;Broker&gt; brokers = new List&lt;Broker&gt;();             brokers.Add(new Broker("A", 10));             brokers.Add(new Broker("B", 20));             brokers.Add(new Broker("C", 20));             brokers.Add(new Broker("D", 10));              // total the weigth             int totalWeight = 0;             foreach (Broker broker in brokers)             {                 totalWeight += broker.Weight;             }              while (true)             {                 Dictionary&lt;string, int&gt; result = new Dictionary&lt;string, int&gt;();                  Broker selectedBroker = null;                  for (int i = 0; i &lt; 1000; i++)                 {                     selectedBroker = GetBroker(brokers, totalWeight);                     if (selectedBroker != null)                     {                         if (result.ContainsKey(selectedBroker.Name))                         {                             result[selectedBroker.Name] = result[selectedBroker.Name] + 1;                         }                         else                         {                             result.Add(selectedBroker.Name, 1);                         }                     }                 }                   Console.WriteLine("A\t\t" + result["A"]);                 Console.WriteLine("B\t\t" + result["B"]);                 Console.WriteLine("C\t\t" + result["C"]);                 Console.WriteLine("D\t\t" + result["D"]);                  result.Clear();                 Console.WriteLine();                 Console.ReadLine();             }         }     }   I'm not so confident. When I run this, Broker A always gets more hits than Broker D, and they have the same weight.  Is there a more accurate algorithm?  Thanks! How can I change a cell's background color based on the cell's current value? I have a column with function values of True or False:  =IF(ISNA(A1), false, true)   from row 1 to 5000+ rows. I would like to mark all the False as red background color or text as red. Is there any function available?