I am new to latex and I am using memoir package to generate the TOC. I need to remove the highlighted part in the below TOC image. I just want it as CHAPTER and want to remove the dots and the page number.  This is the code in my .sty file ---   %%%% Do the ToC \let\oldtoc\tableofcontents \renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}   \renewcommand{\contentsname}{TABLE OF CONTENTS}  \renewcommand{\listfigurename}{LIST OF FIGURES}  \renewcommand{\listtablename}{LIST OF TABLES}  \renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}}  \renewcommand*{\aftertoctitle}{\thispagestyle{plain}%  \par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak}  \renewcommand*{\cftchapterfont}{\normalfont}  \renewcommand*{\cftchapterpagefont}{\normalfont}  \renewcommand*{\cftchapterleader}{  % \cftchapterfont\cftdotfill{\cftchapterdotsep}}  \renewcommand*{\cftchapterdotsep}{\cftdotsep}  %\renewcommand*{\cftchaptername}{CHAPTER~}  %%% no extra space before the entry  \setlength{\cftbeforechapterskip}{0pt plus 0pt}  %% no extra 'chapter' space in LoF/LoT  \renewcommand*{\insertchapterspace}{}   Can you please help me out with this?
I have seen similar posts but none seem to work. I simply need to remove the dots in the ToC between the chapter titles and the page numbers. I think the page numbers should line up (as if there were dots). This is using the memoir class. Here is my ToC info:  %%%% Do the ToC \let\oldtoc\tableofcontents \renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}  \renewcommand{\contentsname}{TABLE OF CONTENTS} \renewcommand{\listfigurename}{LIST OF FIGURES} \renewcommand{\listtablename}{LIST OF TABLES} \renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}} \renewcommand*{\aftertoctitle}{\thispagestyle{plain}%   \par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak} \renewcommand*{\cftchapterfont}{\normalfont} \renewcommand*{\cftchapterpagefont}{\normalfont} \renewcommand*{\cftchapterleader}{%   \cftchapterfont\cftdotfill{\cftchapterdotsep}} \renewcommand*{\cftchapterdotsep}{\cftdotsep} %\renewcommand*{\cftchaptername}{CHAPTER~} %%% no extra space before the entry \setlength{\cftbeforechapterskip}{0pt plus 0pt} %% no extra 'chapter' space in LoF/LoT \renewcommand*{\insertchapterspace}{}   I tried everything that was suggested. Nothing seemed to make any difference. I am stuck with this format. Any suggestions would be greately appreciated!
Solve for $x$ in $6x^2-25x+12+\frac{25}{x}+\frac{6}{x^2}=0$ I simplified to get $6x^4-25x^3+12x^2+25x+6=0$  Or $6 (x^2+1)^2+25x(1-x^2)=0$  Then I substituted $z=x^2+1$, to get $6z^2+25\sqrt{(z-1)}(2-z)=0$  I can't find a way to proceed further. Unable to install any updates through update manager/apt-get upgrade How did Lucius Malfoy know Sirius's Animagus form? In Order of the Phoenix, Snape eggs on Sirius at Grimmauld Place:  ‘Tell me, how is Lucius Malfoy these days? I expect he’s delighted his lapdog’s working at Hogwarts, isn’t he?’ [Sirius] ‘Speaking of dogs,’ said Snape softly, ‘did you know that Lucius Malfoy recognised you last time you risked a little jaunt outside? Clever idea, Black, getting yourself seen on a safe station platform ... gave you a cast-iron excuse not to leave your hidey-hole in future, didn’t it?’ Order of the Phoenix - Chapter twenty-four, Occlumency - Page 460 - Bloomsbury  How did Lucius Malfoy know that Sirius was a dog Animagus? How did he know it was Sirius in the train station? Some facts to consider: According to the 's timeline, the characters who are considered to be of the Marauders era (born 1959) were only five years younger than Lucius Malfoy (born 1954), so Sirius and Snape, and the other Marauders-era students, and Lucius Malfoy, would have been at Hogwarts together for two years. Prisoner of Azkaban demonstrates it took Sirius, James, and Peter four to five years to master the Animagus transformation, which would have been at least two years after Lucius Malfoy would have left Hogwarts (Although we don't know when Lucius became a school governor.). A canon-based answer would be great; barring one, a speculative answer in the spirit of canon is welcome. Proving $\sum_{k=1}^n{k^2}=\frac{n(n+1)(2n+1)}{6}$ without induction I was looking at: $$\sum_{k=1}^n{k^2}=\frac{n(n+1)(2n+1)}{6}$$  It's pretty easy proving the above using induction, but I was wondering what is the actual way of getting this equation? How does Lucio's aura work vertically? If I play Lucio, can I heal the teammates located at a different height? (roof, upstairs, hovering Pharah... )  In other word is that aura strictly horizontal? Or does it work more like a bubble like Winston's barrier?  If it's horizontal, does it require Line Of Sight or not? (will I heal a nearby ally right behind a wall?) Is cross-posting wrong (to an external site)? I made a question at Stack Overflow long ago and also posted the same question in a non-Stack Exchange website (Xtreme VB Talk). The question .  According to the answer, I shouldn't have cross-posted between Stack&nbsp;Overflow and XtremeVBTalk, because     it increases the probability that wires will get crossed and everyone will waste time.   But I'm not sure why is that wrong. You see, I simply see Stack&nbsp;Overflow and XtremeVBTalk as two different communities with different users. So posting the question in both sites would just give me more answers. And if I got the answer in one of them, I would report back to the other site and let everyone know (and perhaps someone else would be benefited as well). I really doubt it is a waste of time - the more input, the better. The fact that someone was a user in both websites is simply a coincidence.  I realize that Meta&nbsp;Stack&nbsp;Exchange question  exists, but apparently it involves cross-posting within Stack Exchange sites, but this is about external websites instead.  I also realize that I was told that as "advice" (since my question was not flagged or anything), but well, I am now curious: Why would anyone consider this a bad practice? Visa for European countries for US passport holder I'm a US passport holder. What documents do I need when I fly from the U.S. to Germany?  Assume I'm going for a few weeks of vacation.  Obviously I need my passport.  What about a "visa"?  Anything else? Replace non-numeric with empty string In the discussion from a question I asked several days ago (), someone suggested that I use general.runalg() instead of processing.runalg() for running QGIS algorithms.    I've now used both, and haven't noticed a difference in either performance or syntax between them.  I'm just wondering what sort of differences there are between these two methods, and which one I should be using. Creating Layer in GeoServer using REST As part of a possible solution to   I want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. I think i would  and publish it. I need to do this all in REST. Does anyone have any code examples? The man page for GNU find states:    -exec command ;     [...] The  string `{}'  is  replaced  by the current      file name being processed everywhere it occurs in the      arguments to the command, not just in arguments where      it is alone, as in some  versions  of  find.     Both  of  these  constructions might need to be escaped      (with a `\') or quoted to protect them from expansion      by the shell.     That's from the man to find (GNU findutils) 4.4.2.   Now I tested this with bash and dash, and both don't need to have the {} being masked. Here is a simple test:  find /etc -name "hosts" -exec md5sum {} \;    Is there a shell, for which I really need to mask the braces? Note, that it doesn't depend upon whether the file found contains a blank (invoked from bash):   find ~ -maxdepth 1 -type d -name "U*" -exec ls -d {} \;  /home/stefan/Ubuntu One   This changes if the found file is passed to a subshell:  find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d {}' \;  ls: cannot access /home/stefan/Ubuntu: No such file or directory ls: cannot access One: No such file or directory   which can be solved by:  find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d "$0"' {} \;   in contrast to:   find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d "{}"' \;  /home/stefan/Ubuntu One   but that's not what the man page is talking about, is it? So which shell treats {} in a different way? How much should a "button of Cure Light Wounds" cost (should it be available at all?) I understand that once a game is in the library it cannot be removed, only hidden.  My question is, can I gift an uninstalled copy of a game to a friend?  I understand that this may be impossible due to legal issues, and that once a game is in the library it stays. How can I initialise a static Map? How would you initialise a static Map in Java?  Method one: static initialiser  Method two: instance initialiser (anonymous subclass) or some other method?  What are the pros and cons of each?  Here is an example illustrating the two methods:  import java.util.HashMap; import java.util.Map;  public class Test {     private static final Map&lt;Integer, String&gt; myMap = new HashMap&lt;&gt;();     static {         myMap.put(1, "one");         myMap.put(2, "two");     }      private static final Map&lt;Integer, String&gt; myMap2 = new HashMap&lt;&gt;(){         {             put(1, "one");             put(2, "two");         }     }; } The value of $\lim_{n \to \infty}\int_{0}^{1}nx^ne^{x^2}dx$ Can the Eclipse Java formatter be used stand-alone Is there a way to use the formatter that comes with eclipse, outside of eclipse?  I would like to format some java files using my formatter.xml file that I have configured using eclipse.  Does anyone have any code examples that would allow me to do this?  I would also like to use this standalone, so the specific jars that are used would be nice. Is a Schengen visa/transit visa required for a transit flight through two Schengen airports? I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries.  Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport.  I asked this question as an addendum to my  but was advised to make a new post.  I hold Indian passport and valid US visa. Using thematic layer for segmentation in eCognition? I have a thematic layer, i want to perform segmentation and classification only within the thematic layer,not in a whole image. how can i do it? I tried to segment the image after viewing the thematic layer in view setting and the thematic layer usage was enabled, but it was segmenting the whole image. how to play wav file in python? Trying to attach a file from SD Card to email I am trying to launch an Intent to send an email. All of that works, but when I try to actually send the email a couple 'weird' things happen.  here is code   Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("image/jpeg"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Photo"); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://sdcard/dcim/Camera/filename.jpg")); sendIntent.putExtra(Intent.EXTRA_TEXT, "Enjoy the photo"); startActivity(Intent.createChooser(sendIntent, "Email:"));   So if I launch using the Gmail menu context It shows the attachment, lets me type who the email is to, and edit the body &amp; subject. No big deal. I hit send, and it sends. The only thing is the attachment does NOT get sent.  So. I figured, why not try it w/ the Email menu context (for my backup email account on my phone). It shows the attachment, but no text at all in the body or subject. When I send it, the attachment sends correctly. That would lead me to believe something is quite wrong. Do I need a new permission in the Manifest launch an intent to send email w/ attachment? What am I doing wrong?