I am writing a document with the bookclass and a redefined \thechaptercommand. Since I have a lot of chapters, the chapter number and the chapter title overlap in the TOC. How can I change the horizontal space between them? I have only seen solutions that do not work for the bookclass.   MWE:  \documentclass{book} \begin{document} \tableofcontents \renewcommand*{\thechapter}{I.\arabic{chapter}} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \chapter{AAA} \end{document}
Following minimal document:  \documentclass{report}  \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} \chapter{Eight} \section{Eight-one} \section{Eight-two} \end{document}   yields this output (cut to size for your convenience):    Clearly, the chapter (and section) headings hang into the chapter (section) numbers. For the previous chapter numbers, this isn’t a problem since all chapter titles are aligned to the same column and the numbers I–VI are sufficiently narrow.  (The same happens regardless of document type, I’m actually using scrreprt with the same result.)  How can I prevent this?
Looking for solo (one person) RPGs - do they exist? I am looking to find out if solo RPGs exist, and which you'd recommend.  I do not mean "one-on-one" 1 player + 1 GM games. I really mean "1 person."  Update: After receiving two (fine, up-voted) answers that indicate Choose Your Own Adventure solutions (which rocks with nostalgia), I should add that I'm not looking for simple linear decision tree gaming. A counterexample: I've got my own little creative-writing mini-game where I write out a story, but once every 5 sentences a series of dice-rolls forces my written sentence into something else, and I have to adapt as writer. Not really an RPG, but also non-linear. I sometimes get files from my clients that have the wrong file extension. For example, the name is image.jpg but the file is actually a TIFF image. In many cases I can clarify it by opening the file in a text editor, looking at the first few bytes, then deducing which file type it is.  This works for me with JPEG, TIFF, GIF and PDF files. However there are many more file types out there.  Is it possible to automate identification of the correct file type by analyzing the containing data? Serializing and Deserializing Expression Trees in C# Is there a way to Deserialize Expressions in C#, I would like to store Expressions in a Database and load them at run time. How to boot from non-Ubuntu live ISO images like Fedora or CentOS? I believe that umask is something that controls , but do not fully understand it.  After running umask 0644 in a , I cannot read the files I create with the command-line text editor nano. I noticed that the permissions of that file are set to 0022 instead of the default 0755.  How does umask work? I thought I could just remove the each digit in the umask from 0777, 7 - 6 = 1 and 7 - 4 = 3, so I expect the permissions to be 0133, but apparently, this is not the case.   What is umask exactly? Explain it to me like I was a "Linux noob" How do I calculate with umask? What are use cases for umask? Expression Functions for Lightning Web Components Omitting the hypotheses of finiteness of the measure in Egorov theorem I want to prove that if I omit the fact that $\mu (X) &lt; \infty$ in Egorov theorem and place instead that our functions $|f_n| &lt;g$ and $g$ is integrable, we still get the result of Egorov's theorem.  Fix $m$ a natural number.  I took $ w_{n} = |f_n-f|$ and thus by DCT $\int |f_{n} - f|$ goes to zero.  Then I took $\bigcup_n {( w_{n} \geq 1/m)}$. I need its measure to be finite. Its measure is less than the sum of the measures of each $ w_n\geq 1/m)$ varying $n$, and by Tchebychev, this is less than $m\int|f_{n} - f|$.  But I got stuck here.  Any help is appreciated. Thanks! How to execute sp_send_dbmail while limiting permissions Is there a way to provide access to users in my database to execute  msdb.dbo.sp_send_dbmail without needing to add them to the MSDB database and the DatabaseMailUserRole?  I've tried this:  ALTER PROCEDURE [dbo].[_TestSendMail] (   @To NVARCHAR(1000),   @Subject NVARCHAR(100),   @Body NVARCHAR(MAX) ) WITH EXECUTE AS OWNER AS      BEGIN         EXEC msdb.dbo.sp_send_dbmail @profile_name = N'myProfile',             @recipients = @To, @subject = @Subject, @body = @Body     END   But I get this error:  The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.   Thanks! Maximum temperature laptop internals can handle? Cooling options? So I have a Compaq CQ50-215CA and my sister was using her laptop on her bed and I was just using it quickly to check my email. The surface of the laptop was really hot and I opened Speccy to see that the CPU and GPU temperature was 96 C. A couple months ago, my laptop was on the desk without a cooling pad and I was playing a game. Using GPU-Z back then, I had a reading of 104 C. Even with a cooling pad on a desk, running several processes/games keeps me around 88-90 C.  Is this normal for a laptop and what's the highest temperature the internals can handle? Besides a cooling pad, are there any other more effective ways of cooling a laptop? How do I stop sharing call history between two iPhones? My husband and I both just upgraded to iOS 8.3.  Now I notice that if I have a missed call it shows up on his notice screen and all my calls show up in his recent call history (and vice versa).  Both phones don't ring and they don't need to be near each other or connected by Wi-Fi.  We do share an iTunes account.  How do I stop sharing call history between the two phones? Why are my fields initialized to null or to the default value of zero when I've declared and initialized them in my class' constructor? Bind variable with dotted name not working in dynamic SOQL As mentioned in , it's possible to use bind variables in dynamic SOQL queries.  This seems like a great way to avoid SOQL-injection, and to build a query string once but use it multiple times with different values in the variables.  I'm working on a method that returns a list of objects.  It accepts a class with multiple properties as its only parameter.  The properties of this class are used to filter the results to just the required records.  It will eventually be driven by a Visualforce component, which will be configured by querystring parameters in the URL.  I just ran into an issue where the query fails when I use dotted bind variables.  If I copy the constructed dynamic SOQL into a static query, it works fine.  This may be a bug, because in doing tests I found that :foo.bar would actually try to use local variable bar.  Here's one of my queries, which uses related custom objects.  I've stripped it down to just the part that's failing (wrapped for legibility):  result = Database.query('SELECT Name, Another_Object__r.Name,      Another_Object__r.Custom_Field__c      FROM Custom_Object__c       WHERE Another_Object__r.Custom_Field__c = :filter.deviceType');   The error reported is System.QueryException: Variable does not exist: filter.deviceType.  As mentioned above, the query works fine as static SOQL, just not dynamic:  result = [SELECT Name, Another_Object__r.Name, Another_Object__r.Custom_Field__c FROM Custom_Object__c WHERE Another_Object__r.Custom_Field__c = :filter.deviceType];   It also works in this case:  String deviceType = filter.deviceType; Database.query('SELECT Name, Another_Object__r.Name, Another_Object__r.Custom_Field__c FROM Custom_Object__c WHERE Another_Object__r.Custom_Field__c = :deviceType');   I haven't read about this being a known limitation.  I don't know if I should be using some other syntax/notation in the query -- the dotted notation appears correct.  Time to report a bug?  Thoughts on workarounds other than creating local variables to stand in for each member of the class? How can I schedule timer to power on and off device? Is it possible to disable CPU throttling on a MacBook Pro with a completely dead (not recognized) battery? I have a MBP late 2011 running El Capitan, recently my battery died (x over the icon and "no battery available" in the dropdown.) I've noticed since then that CPU intensive tasks are very slow, and I read that without a battery macs will throttle the CPU to half capacity.  So now I'm looking for one of two solutions:  1) Either somehow disable the throttling, or  2) Trick the computer into thinking it has a battery.  In regard to the first one I've tried a few things such as described , removing a plist file that supposedly controlled it, but that hasn't helped. Any help would be greatly appreciated, TIA.  Edit: I've looked over the question about a 2006 MacBook, it's similar but I've tried everything outlined there and nothing has worked. I'm curious if there are any new ideas. I think the difference may be El Capitan. Can I kill the Golem pre-hardmode? redirecting openshift rhcloud domain to custom domain for SEO purposes Openshift application url: example.rhcloud.com  Custom domain: example.com  I came across this  and added the redirection rule. However, I can not access example.rhcloud.com now. My custom domain is www.example.com.  To avoid duplicate content problems, I tried this redirection.   Here is my .htaccess file:  RewriteEngine on   # Uncomment the following lines to force HTTPS #RewriteCond %{HTTP:X-Forwarded-Proto} !https  #RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]   # WordPress Defaults RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]  # Redirect Https traffic to Http RewriteEngine on  RewriteCond %{SERVER_PORT} ^443$ [OR] RewriteCond %{HTTPS} on RewriteRule  ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]   # Redirect non-www to www RewriteEngine on  RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]    # Redirect openshift rhcloud domain to custom domain RewriteEngine on  RewriteCond %{HTTP_HOST} ^example.rhcloud.com$ RewriteRule (.*)$ http://www.example.com/$1 [R=301,L]   Why is example.com not redirecting to ww.example.com? How do I fix this?  Also, I see that since I have https to http redirection and non www to www redirection, my blog has been loading slow. How can I reduce it to lesser number of rules?  Edit:  In chrome:   In Firefox:     The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete.     This problem can sometimes be caused by disabling or refusing to accept cookies. Why three-phase power? Why not a higher number of phases? Is there a reason, beyond historical reasons, that three phases has become the dominant number of phases?  I am aware of the advantages against one phase and two phase, namely the reduced amount of conductor needed, and that motors can provide torque when stalled (and less pulsation).  Is this solely due to diminishing returns, with only a small increase in smoothness of torque application, at the cost of increased complexity (increased number of wires (albeit of smaller CSA)).  To be clear, the phases are all evenly distributed, that is, five phases separated by 72 degrees. I was making this recipe: , which was from the old Lincoln Del, one of my mom's favourite places. I mistakenly doubled the sugar, putting in 1/2 a cup instead of a 1/4 of a cup. Given the 2/3 of a cup ketchup, which was Heinz, the soup turned out way, way too sweet.   Is there any way I can rescue this? Not booting from USB or CD (SYSLINUX Message) If there was a black hole on earth, what would it look like? If an answer does exist, I'd love to hear it. I'm trying to incorporate a doomed earth story in something I'm writing, and the end of the world I'm going for is a black hole.  Let's say the black hole was created in the Philippines (I chose it because it's on the equator). Here's  for reference.  If I was standing 90 degrees of that, in Kenya, or if I was standing 180 degrees of that, in Mexico; what would I see in those two separate instances? What if I was standing in Japan above it, or in Australia below it?  Let's also say I was riding a boat towards the source of the black hole. Unlike most imagined scenarios where I am orbiting the black hole and slowly falling into it, this time I'm no longer orbiting it - I'm getting sucked into it instead. I'm imagining that the black hole will "half" be inside Earth and "half" will be in the atmosphere. But as it pulls me in, what will it look like to me (if I was massless, so no tidal forces)? It's probably not going to be a black hemisphere sticking out of the ground. Light will be lensed around it in some way so as to appear like a hole in the air.  Also, if the black hole was very small, it probably won't have a strong gravitational pull, and assuming it doesn't disappear, you'd be able to look at it (or at least, its effect on the light in its surroundings). Of course, as you approach it, it would still have an event horizon, so spacetime would still be warped if you're near enough and the surroundings will still experience tidal forces.  As the black hole gains mass, it will get larger, and so its event horizon will increase. If I was standing in Kenya and the event horizon "washes over me," (as in a water wave) what will I see?  I've so far imagined that, at least when seen from outer space, there will be a hole on the ground and light will be lensed around it. When you are on the ground, though, it becomes a bit harder to imagine.  I do hope someone can lend me a hand!  Edit: Someone had previously answered this question, but I'm not sure why it's been deleted. It was pointed out to me, though, that a black hole cannot stay in place. So an additional question for me is, does that mean it is impossible to be standing still, and the event horizon "washes over you"?  Edit2: Here's a guiding thought experiment that could answer the question. Imagine that you are in outer space directly above the black hole, looking at the black hole that is on the earth's surface. Can you imagine what it would look like? It would simply be a hole with the surrounding light gravitationally lensed around it (possibly lensing the entire earth if it's big enough - but let's say it's not).  Now imagine that you are on the direct opposite of where you were above - you're right behind the black hole this time, looking directly at the black hole but unable to see it because the earth is blocking your view.  Now try to imagine, from the second image, rotate the earth into the first image. I find it a bit hard to do. Just as the black hole is appearing as you rotate the earth, how would the light be lensed?