I'm using the command \pagestype{myheadings} to make sure that the page header contains nothing else that the page number. However, I can't manage to make the page number of the first page of chapter to be displayed up in the page corner. Here is a sample code of what I'm doing so far: \documentclass[12pt,a4paper]{book}  \usepackage[T1]{fontenc} \usepackage[french]{babel}  \pagestyle{myheadings}  \title{Test book} \author{Someone} \date{\today}  \usepackage{lipsum}    \begin{document}     \sloppy     \maketitle          \chapter{First chapter}     \lipsum[1-100]          \backmatter     \tableofcontents \end{document}   Best rgards!
I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right now on 1st pages of chapters, the page number is bottom-centered, on all other pages it's top-right).  I control the position of the page number with fancyhdr:  \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{} \rhead{\thepage} \lfoot{} \cfoot{} \rfoot{} \renewcommand{\headrulewidth}{0pt}   Also, I don't know if the problem is related but my chapters do not start from the top of the page. There is a white area, then comes chapter X, then a newline with the chapter line. What I also want is the chapter to start from the top of the page.  The main question here is how I can get the page number to always appear in the upper right corner, I mention the thing with the chapter title position only in case that might be related.
Do you ever need to specify 'javascript:' in an onclick? Lines appear on the texture in render I am trying to learn Blender. While trying to render a subdivided plane with an image texture applied to it, the subdivision edges are not removed in the rendered result.  Kindly, advise, why these edges appear in the render. How do I determine whether a drive is an HDD or SSD in Windows 8? I've recently received an assembled PC. I don't know if the disk is an SSD or old HDD (whether SATA or other technologies).  I can't find a way to tell if the disk is SSD or not, apart from the size of the disk. However, now that the sizes of SSDs are getting close to that of HDDs, checking the size is not a good and robust way to distinguish drive type. Is there some other way to determine if the disk is an SSD? How can I make an X-Y scatter plot with histograms next to the X-Y axes? What is the variance of the weighted mixture of two gaussians? Why doesn't `sudo cd /var/named` work? Who is the authority -- scientists, or linguists -- on the definitions of everyday words referring to types of animals? Word that means "the opposite of what you would expect" I'm looking for a word that means the opposite of what one would expect. This word might be used to express the surprise that a teenager's grandmother uses text messaging much more than he does, or that a city seems brighter at night than it does during the day.   I'm not seeking the word ironic or irony which refer to the use of something to describe its opposite experience or emotion. In the new canon what do we actually know about Darth Plagueis? I read and loved  but with all the recent changes to what is and isn't canon I'm losing track.  There's a common theory that Supreme Leader Snoke is Darth Plagueis, most are discounted because Plagueis is a Muun. But where does that information come from? What current canon information do we have about Plagueis that disproves this theory and what has been marked as Legends? How to understand what's taking up disk space? I'm looking for a linux alternative to . I would like to know what is taking up space on my hard drives.  A program that works on console and doesn't require a UI is preferred . What effect does serial downvoting have on my rep cap? Show that $n$ lines separate the plane into $\frac{n^2+n+2}{2}$ regions Does $\sum\limits_{n=1}^\infty\frac{1}{\sqrt{n}+\sqrt{n+1}}$ converge? Does the following series converge or diverge? $$ \sum\limits_{n=1}^\infty\frac{1}{\sqrt{n}+\sqrt{n+1}} $$ The methods I have at my disposal are geometric and harmonic series, comparison test, limit comparison test, and the ratio test. In English, the number 0 is treated as plural. It is then:   0 seconds 1 second    1.2 seconds   2 seconds     Shouldn't it be "nobody want to go there," instead of "nobody wants to go there"?  I also saw in TOEFL that "any __" should be used with a singular.  But I see it very common that it is a plural also.  Why is that?  (updated: example, "we don't have any apples any more" vs "If you get any apple, please let me know.") Keying node in compositor. How can I associate the alpha channel so that it works with the Alpha Over Node? (As a follow-up to  question) I'm trying to overlay a a green-screen plate over a 3D background. I create the key with a Keying node and the overlay with an Alpha Over node. I can get a clean key by enabling Convert to Premultiplied.  Whereas if I leave the Convert to Premultiplied off, the key does not work.  The reason for this, as explained on :  The Alpha over node actually assumes associated alpha and performs the correct over operation, which is FG+(1-FG.a)BG.RGB. Unassociated alpha can do none of these things. [...] it is prudent to manually associate your alpha and control the merging to prevent data loss in the RGB channels. I still stand by the advice, however; always try to maintain a consistent state of alpha, and when you deviate, do so under scrutiny.  So the question is: what is the correct way to associate the Alpha Channel crated by the keying node, so that it works with the Alpha over node without resorting to the convert to premultiply option?   green screen element can be downloaded from the mango project How can I find the cheapest prepaid SIM card for a given country? Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs? Proving that $\lim\limits_{x \to 0}\frac{e^x-1}{x} = 1$ Mysterious cord running from wall. Safe? Getting all files that have been modified on a specific date Is it possible to find all php files within a certain directory that have been modified on a certain date  I'm using   find /var/www/html/dir/ -mtime -28 | grep '\.php'    to get files modified within the last 28 days, but I only need files that have been modified on the following date: 2011-02-08 $ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  kde-workspace-bin : Depends: qdbus but it is not going to be installed  libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I don't quite understand "but it is not going to be installed". Why doesn't it install it then?  apt-get -f install does not help, it does nothing:  $ apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.