I have a problem using the \index command in an argument to a user-defined command. For some reason, the problem only appears when I use the @ symbol. The following example illustrates the problem:  \documentclass[a4paper]{book} \usepackage{makeidx}  \makeindex  \newcommand\myFoo[1]{#1}  \begin{document}  \chapter{The first chapter}  \index{one} \index{\texttt{two}}  \myFoo{\index{one}} \myFoo{\index{\texttt{two}}}  \printindex \end{document}   When I typeset this source code (with the pdflatex and makeindex commands), the index looks like this:   two, 1 two, 1  one, 1   So, the "two" entry is displayed twice (in typewriter font), the "one" entry is (correctly) only displayed once. The same problem occurs when I use the @ operator.  The idx file generated by LaTeX is:  \indexentry{one}{1} \indexentry{\texttt{two}}{1} \indexentry{one}{1} \indexentry{\texttt  {two}}{1}   I guess the problem is caused by these two spaces before the { character in the last index entry, but I do not understand why these spaces are there.   Can somebody explain why entries with formatting commands and entries without them give different results here, and suggest a solution?
In document class book, and package caption, creating index with makeidx. Index entries for the main text and for footnotes collate properly; but those for captions create their own entries.  Example: for the tag \index{New York!Custom House!\textit{Cartouche}}, text and footnotes collate properly; but used in a caption, a new entry is created at the third level, and is also out-of-alphabetic-sequence. Note: the top level, and first sub are correct; only the second sub is duplicated.  How to get the caption index entries under the same entry?
javac command not found I am trying to compile a java program I found on the internet and it says that I must check if javac is installed. I installed the JDK a long time ago so it should be working but I get command not found error:    how can this be resolved? Mixing and Distributing Qualifiers ($\forall x$, $\exists x$) I'd like to use epigrafica specifically for chapters and sections, but like to use times font for main texts.  \usepackage{epigrafica}          % for chapter/section \usepackage{newtxtext,newtxmath} % for main text   Is there any way to do this? I can only use pdftex. Do potion effects affect the ender dragon? I am at the ender dragon and have tons of Potions of instant damage. I never got into range, but do the effects even do anything? Increasing spacing between section number and title in the table of contents I'm using the simple ordinary \tableofcontents command to produce a table of contents, and I find that the resulting spacing between the section number and the section title is too small:    Can someone tell me how to fix this, please. My documentclass is memoir, if that matters. Unable to install Ubuntu on Lenovo Y500 I am totally unable to install any flavor of Linux on my lenovo Y500. TL;DR:  with EFI on -&gt; cannot even access installer with legacy - &gt; installer runs fine, but installed OS never boots  Long Version: It is going to be hard to recap what I did, because I tried so many things, but here is the gist of it: EFI mode (secure boot disabled): Trial #1  ubuntu 12.10 x64 &amp; Mint 14 x64 boot from usb see screen with choices pick &quot;try ubuntu&quot; get black screen  Trial #2  ubuntu 12.10 x64 &amp; Mint 14 x64 boot from usb see screen with choices press &quot;e&quot; to enter edit mode remove &quot;quiet splash&quot; replace with &quot;nomodeset&quot; end up on the command line with an error message from x server: &quot;no screen found&quot; try fiddling around with xorg.conf to no avail  Trial #3  Arch Linux Live USB EFI mode no boot  Trial #4  ubuntu 12.10 x64 &amp; Mint 14 x64 set &quot;e&quot; to enter edit mode in menu add acpi=off end up with &quot;(initramfs) unable to find a medium&quot; message  Trial #5  same as above set SATA mode to legacy (it was AHCI) error loop that says something along the lines of &quot;ata1.00: hard resetting link&quot;  Legacy Mode Trial #1  ubuntu 12.10 x64 &amp; Mint 14 x64 USB boot Everything seems to work Proceed to normal install (picks SSD drive by default) Everything seems to work reboot blank screen reboot with &quot;shift&quot; pressed see message &quot;grub loading.&quot; and nothing As per advised on Ubuntu's community EFI page, run boot-repair same results run boot-repair again same results  Trial #2  ubuntu 12.10 x64 &amp; Mint 14 x64 same as above, but pick 1T HDD as target install same results  Trial #3  create a /boot partition on the SSD install on SSD same results (&quot;grub loading.&quot;) run boot repair twice same results  Trial #4  create a GPT filesystem on HDD create a /boot partition on the HDD install on HDD same results as above  Trial #5  install ubuntu on HDD install boot on all drives (HDD &amp; SSD) same results  Trials #6  install Arch on SSD no boot loader found  Notes:  Every step has been tried with multiple USBs. All isos' MD5Sums have been verified LiveUSBs have been created both through ubuntu's embedded app and unetbootin (save for Arch's live USB which was created by DDing the iso as per advised in the Arch wiki) I have wiped out windows in my first trials, and I don't care, I am never going to use it. I don't want to dual-boot. I just want Ubuntu or Mint or Arch as far as I can remember (it gets hard after 50+ trials), I tried every option with sata mode IDE or normal. Not sure though.  I've also tried numerous other things that I can't recall right now. All in all I've been giving this 3 to 5 hours a day for a week and a half to absolutely no avail. I am extremely disappointed as this is my first Lenovo and word is Lenovo is Linux-friendly...I have never spent more than an hour installing linux on any machine. What's even more frustrating is that it seems to be working for , and I can't find any hint telling me how they managed. I wrote to one guy who posted a serie of youtube videos about how to get everything working perfectly on the Y500, and he told me he just installed mint without any problems. Might be I am a particular case because I have the SLI version of the Y500. If anyone has pointers, incomplete solutions, ideas, black magic, I'll be forever in debt. Thank you P.S: This question, afaik, is not a duplicate of an existing question. I've scoured all questions containing &quot;lenovo&quot; and &quot;install&quot;, and none applies to me. I have a question about calculating the degree of a finite field extension over $\mathbb{Q}$.  This is problem 18 in chapter 1 of Patrick Morandi's Field and Galois Theory. The problem asked to show that $$ \left[ \mathbb{Q}{ \left( \sqrt[4]{2},\sqrt{3} \right):\mathbb{Q} }\right] =8 $$ Here's my work : First, we have $$  \left[ \mathbb{Q} ( \sqrt[4]{2},\sqrt{3}):\mathbb{Q}\right] = \left[ \mathbb{Q}(\sqrt[4]{2},\sqrt{3}) : \mathbb{Q}({\sqrt[4]{2}}) \right] . \left[ \mathbb{Q}{(\sqrt[4]{2})}: \mathbb{Q} \right]$$ It's easy to show that $\left[ \mathbb{Q}{(\sqrt[4]{2})}: \mathbb{Q} \right] =4 $ because the minimal polynomial of $\sqrt[4]{2}$ over $\mathbb{Q}$ is $x^4 -2$. Next, I'm going to show that  $$ \left[ \mathbb{Q}(\sqrt[4]{2},\sqrt{3}) : \mathbb{Q}({\sqrt[4]{2}}) \right] =2$$ Consider the polynomial $f(x) = x^2 -3$. It's monic and $\sqrt{3}$ is a root of $f$, but I'm stuck in proving $\sqrt{3} \notin \mathbb{Q}(\sqrt[4]{2})$ (hence $f$ is irreducible over $\mathbb{Q}(\sqrt[4]{2}))$.  My question is: Is there any proof to show that $\sqrt{3} \notin \mathbb{Q}(\sqrt[4]{2})$ or another way to caculate the degree of this field extension?  Thank you for your help. Adjective Used as an Adverb? That cake looks good.    In formal proper grammar, may good (adjective) get used as an adverb? Or, may you read it as, That cake (noun phrase, nominal[?], argument[?]), looks (verb, predicate[?]), good (subject compliment[?].? How may I discern this, grammatically? How to show that $L^p$ spaces are nested? Suppose $1&lt;p_1&lt;p_2&lt;\infty$, then show $L^{p_1}[a,b] \supset L^{p_2}[a,b]$.  I was able to show $\|f\|_{p_1} \le \|f\|_{p_2} (b-a)^{1/p_1 - 1/p_2}$ but I'm not sure how to proceed from here. What is a valid use case for an "execute only" file permission? I was reading up on chmod and its .  I saw that 1 is execute only.  What is a valid use case for an execute only permission?  To execute a file, one typically would want read and execute permission.  $ echo 'echo foo' &gt; say_foo $ chmod 100 ./say_foo $ ./say_foo bash: ./say_foo: Permission denied $ chmod 500 ./say_foo $ ./say_foo foo I have a speed-reading program I purchased with uses dotnet2. However, dotnet2 doesn't run on 64 bit wine. How would I install dotnet2? I hear a lot of talk about apparmor, I want to know the following:    What is apparmor? How does apparmor work? For example, here are top five accounts in each site (this picture was taken when I was in Biology SE).    As you can see, all the badges are DNA, while Academia's badges should be hats, so on.  What do you think? How can I use an array modifier to create individually manipulatable objects? Is there a way to set an "Adventure Mode Boundary" in Minecraft?  I am trying to create this village where players can spawn in, and then set out to explore the world and build and do normal minecraft stuff. I don't want them to destroy this village, so I want them to be in adventure mode when they are in the village and then switch them to survival when they leave, and vice-versa. When they return to the village, they get switched back to adventure mode.  In other words, I want to set an "Adventure Mode Boundary" to protect buildings. I am working without mods. I am hoping there is an simple way using command blocks. Make Blender usable on high resolution screen The Blender UI elements are incredibly small by default on high resolution screens on Windows (15" UHD screen).  I found the Preferences -> System -> DPI setting which can be set up to 144.  This makes Blender usable, but still uncomfortable and difficult on the eyes.  Is there a way to make the UI elements even larger? When learning a new subject, I would frequently use lecture notes found somewhere in the Internet. When writing a paper (or a master thesis, as in my case, but the rules should be similar, I believe) one should give some reference for used results which are not common knowledge, if I understand correctly. This make me wonder: what do I do if I want to reference a result I found in some notes?  The natural thing to do would be to just add these notes to bibliography. What format would be preferable for this? Note that there will generally not be much publishing information, perhaps not even a definite year and place. (A BibTeX template would be .)  Secondly, is it OK to cite such materials as a reference? I'm trying to find  $$\lim_{n\to\infty}\frac{n}{\sqrt[n]{n!}} .$$   I tried couple of methods: Stolz, Squeeze, D'Alambert  Thanks!  Edit: I can't use Stirling. How to make a "reflective tape" material in cycles? How can I make a cycles material that gets very bright when a light is shown on it, yet still has normal colors? I'm talking about the "" that can be seen on road signs, the tape on big trucks (like in the image below), traffic barricades and clothing.  Image by TollGroup on    This reflective stuff has a interesting property where the colors show up perfectly well, but when exposed to a light source they seem to reflect much more light the normal.  has lots of good reference images.  I have tried different combinations of glossy and diffuse shaders, but none work as I have yet to get the super bright reflections.  How can cycles make a material that reflects so much light, and keeps the colors correct? When do I need to invoke \phantomsection?