I am working on my thesis, using small parts of the exisiting template of my university. There, the head line is defined like in the MWE. Since I included a table of contents, list of figures and some smaller one page chapters numbered with roman letters before the actual dissertation begins, the following problem really disappoint me.  Somehow the head and especially the number(wheter roman or arabic) are not displayed on pages starting with a new chapter, including all of the examples I mentioned above. So basically there are some pages at the beginning without any head, altough their location is stated correctly in the table of contents.  I am pretty sure that it has to do with the definition of the pagestyle, but I could not solve it on my own.   I would like to have a head everywhere, except of the front page and empty pages in between chapters, as induced by \cleardoublepage .  Here is the MWE:  \documentclass[12pt, listof=totoc,  bibliography=totoc, listof=chapterentry]  {scrbook}  \usepackage{a4wide}  \usepackage{fancyhdr} \usepackage{blindtext}  \pagestyle{fancyplain} \renewcommand{\chaptermark}[1]%          {\markboth{\thechapter.\ #1}{}} \renewcommand{\sectionmark}[1]%          {\markright{\thesection\ #1}} \lhead[\fancyplain{}{\bfseries\thepage}]%     {\fancyplain{}{\bfseries\rightmark}} \rhead[\fancyplain{}{\bfseries\leftmark}]%     {\fancyplain{}{\bfseries\thepage}} \cfoot{}   \begin{document}   \chapter{chapter without numbers}  \blindtext  \section{a section}  \Blindtext  \chapter{another chapter}  \Blindtext  \end{document}
I'm writing my final report in LaTeX for my bachelor's degree. I'm aiming at having a document similar to the .doc template used normally.   I want to have my customs headers and footers applied on pages when I'm starting a new chapter.  I'm using documentclass report with fancyhdr and lastpage packages.  My headers are defined like this:  \lhead{\myTitle} \rhead{\today} \cfoot{\thepage\ of \pageref{LastPage}}   My chapters are created using standard \chapter{title} macro.  On pages with new chapters, the only headers/footers I see is the standard page number at the bottom.  What should I do?  EDIT: I've finally gone with Peter Breitfeld's solution. I'Ve gone a step further and created my own chapter command:  \newcommand{\myChapter}[1]{     \chapter{#1}     \thispagestyle{fancy} }   Thanks for the help!
So, for my science fair I had to test the gauge of a copper wire vs electrical resistance. What I did was I set up a series circuit involving a 6v battery, a light bulb, a multimeter, and a voltmeter. I would change out three different wires with three different gauges.   For the 4-gauge wire, I got 0.004V and 0.04A. For the 8-gauge wire, I got 0.003V and 0.04A For the 12-gauge wire, I got 0.001V and 0.04A.   In this experiment, what would the independent and dependent variables?  We also have to fill out a table like this: I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with :: or leading zeros omitted from each byte pair).    Can someone suggest a regular expression that would fulfill the requirement?  I'm considering expanding each byte pair and matching the result with a simpler regex. What is a comprehensive definition of Philosophy? Alternatively, is it impossible to define Philosophy? This is a pseudo- question, but it seems like it belongs here. Add review queues to Android app How many combinations are possible in the game tic-tac-toe (Noughts and crosses)?  So for example a game which looked like: (with positions 1-9)  A1   --   B1  A2   --   B2  A3   --   --   [1][3][4][6][7] would be one combination How to divide the money based on the below conditions? Are there any guidelines for converting cooking recipes from Regular Ovens to Convection? I was looking to buy a Convection Oven and wanted to know if there are any general differences in baking methods between the two. Low current battery monitoring How to add ground to DC circuit? I'm just a dabbler in electronic circuits and I'm really still kind of a noob. I am working on a project called the "Atari Punk Console" (Originally known as the "Stepped Tone Generator") but there are some parts of the wiring schematic that I don't understand, specifically the parts with the ground symbol.  Here is the schematic:   See those two ground symbols? I don't understand how to properly connect the circuit to ground at these points. How can I do this and be sure that I did it properly. I don't understand grounding at all so any pointers or clarification is also welcome. Thanks in advance. mysql select from n last rows I have a table with index (autoincrement) and integer value. The table is millions of rows long.  How can I search if a certain number appear in the last n rows of the table most efficiently? Windows 7 SP1 Windows Update stuck checking for updates Cell reference with colour formatting Is it possible to reference a cell in Google Sheets so that cell where it gets displayed also displays it using the same text and cell colour formatting?  =A1   Will only reference cell's value. But if that particular cell has red background and white text I'd like that to be copied as well.  I'm leaning toward existing formula solutions rather than scripts. If applicable of course. Which of these two phrases has more negative undertone?      "The interview I had was not very good"    or      "The interview I had was not good" How do I intercept a method call in C#? For a given class I would like to have tracing functionality i.e. I would like to log every method call (method signature and actual parameter values) and every method exit (just the method signature).      How do I accomplish this assuming that:     I don't want to use any 3rd party AOP libraries for C#, I don't want to add duplicate code to all the methods that I want to trace,   I don't want to change the public API of the class - users of the class should be able to call all the methods in exactly the same way.     To make the question more concrete let's assume there are 3 classes:     public class Caller   {      public static void Call()       {          Traced traced = new Traced();          traced.Method1();          traced.Method2();       }  }   public class Traced   {      public void Method1(String name, Int32 value) { }       public void Method2(Object object) { }  }   public class Logger  {      public static void LogStart(MethodInfo method, Object[] parameterValues);       public static void LogEnd(MethodInfo method);  }   How do I invoke Logger.LogStart and Logger.LogEnd for every call to Method1 and Method2 without modifying the Caller.Call method and without adding the calls explicitly to Traced.Method1 and Traced.Method2?  Edit:  What would be the solution if I'm allowed to slightly change the Call method? rand() returns same values when called within a single function Does the  tag position in HTML affects performance of the webpage? Is the humanoid appearance of most alien species in the Star Trek universe ever canonically addressed? The vast majority of intelligent species in the Star Trek universe are bipedal, humanoid creatures.  From the lot I've seen of TOS, TNG, DS9, Voyager, Enterprise, and the movies, it seems that this coincidence goes largely unquestioned.  Metaknowledge grants that it is much easier to have human actors portray human-like beings, and so this was probably done due to budgetary/technological limitations.  However, I'm wondering if an in-universe reason for this was ever given or explored? How do I convert old Pages documents to Pages '13? I have a document I created with an old Pages version. When I try to open it in Pages '13, I get the message :     This document is too old. Please open and save with Pages '09   I don't have Pages '09 and I don't know where that old version of Pages is and if it will run on Mac OS 10.9.   Is there an easy way to convert the document? If there is no easy way, is there a way to at least extract the text from the document? meta_query with meta values as serialize arrays I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in such a way that the inputs in each metabox are part of an array. For instance, I'm storing longitude and latitude:  &lt;p&gt;      &lt;label for="latitude"&gt;Latitude:&lt;/label&gt;&lt;br /&gt;      &lt;input type="text" id="latitude" name="coordinates[latitude]" class="full-width" value="" /&gt;  &lt;/p&gt;  &lt;p&gt;          &lt;label for="longitude"&gt;Longitude:&lt;/label&gt;&lt;br /&gt;      &lt;input type="text" id="longitude" name="coordinates[longitude]" class="full-width" value="" /&gt;  &lt;/p&gt;   For whatever reason, I liked the idea of having a singular postmeta entry for each metabox. On the save_post hook, I save the data like so:  update_post_meta($post_id, '_coordinates', $_POST['coordinates']);   I did this because I have three metaboxes and I like just having 3 postmeta values for each post; however, I've now realized a potential issue with this. I may want to use WP_Query to only pull out certain posts based these meta values. For instance, I may want to get all posts that have latitude values above 50. If I had this data in the database individually, perhaps using the key latitude, I would do something like:  $args = array(     'post_type' =&gt; 'my-post-type',     'meta_query' =&gt; array(         array(             'key' =&gt; 'latitude',             'value' =&gt; '50',             'compare' =&gt; '&gt;'         )     )  ); $query = new WP_Query( $args );   Since I have the latitude as part of the _coordinates postmeta, this would not work.  So, my question is, is there a way to utilize meta_query to query a serialized array like I have in this scenario? The scenario:  In a bash script, I have to check if a password given by a user is a valid user password.   I.e suppose I have a user A with password PA.. In the script I asked user A to enter his password, So how to check if the string entered is really his password?...