I am having a hard time formatting fancyhdr's header and footer. I have tried \small or \fontsize{6}{6}... I can't change it.  Here is my code :  \documentclass[12pt,twoside,draft]{book} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{titlesec}   % ************************** % Taille de la page et marges % **************************  \usepackage[paperheight=240mm,paperwidth=160mm, left=22mm, right = 20mm, top = 20mm, bottom = 22mm]{geometry}   % ************************** % En-têtes et pieds de page % **************************  \renewcommand{\headrulewidth}{0.3pt} \renewcommand{\footrulewidth}{0pt}  \renewcommand{\sectionmark}[1]{\markright{#1}}  \let\Subsubsectionmark\subsubsectionmark \def\subsubsectionmark#1{\def\Subsubsectionname{#1}\Subsubsectionmark{#1}}  \fancyhead[LO]{ \textsc{\Subsubsectionname}} \fancyhead[RO]{} \fancyhead[C]{} \fancyhead[LE]{} \fancyhead[RE]{\rightmark}  \fancyfoot[LO]{} \fancyfoot[LE]{\fontsize{6}{6} \thepage} \fancyfoot[C]{} \fancyfoot[RO]{\small \thepage} \fancyfoot[RE]{}    % ************************** % Alignement du headerfooter % **************************  \newlength\FHoffset \setlength\FHoffset{0mm} \addtolength\headwidth{2\FHoffset} \fancyheadoffset{\FHoffset} \newlength\FHleft \newlength\FHright \setlength\FHright{19mm}  \newbox\FHline \setbox\FHline=\hbox{\hsize=\paperwidth% \hspace*{\FHleft}% \rule{\dimexpr\headwidth-\FHleft-\FHright\relax}{\headrulewidth}\hspace*{\FHright}% } \renewcommand\headrule{\vskip-.7\baselineskip\copy\FHline}   % Font formatting packages  \usepackage{gensymb} \usepackage{anyfontsize}   \begin{document}   \end{document}     Does anyone have an idea how to do this? Thanks in advance !
Basically, I want the header fonts to use a different (smaller) font size than the size I set using \documentclass. What should be the option I'd be using ?  \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[margin=1in, headsep=10pt]{geometry} \usepackage{fancyhdr} \pagestyle{fancy}  \fancyhead[L]{Personal Statement} % What other option should I use to get a custom font size ?
Find full path of the Python interpreter? Suppose $A$ is a 4x4 matrix such that $\det(A)=\frac{1}{64}$ My question is a little silly I know, but I'm curious to know if a particle of light can be theoretically trapped between two reflective screens.   For example once the particle of light has left it's source, and is reflected against a mirror (assuming there is no loss of energy) and you immediately replace the source of light with another mirror. Would the light beam bounce in between the sheets endlessly? What would I prefer - an over-fitted model or a less accurate model? Let's say we have two models trained. And let's say we are looking for good accuracy.  The first has an accuracy of 100% on training set and 84% on test set. Clearly over-fitted. The second has an accuracy of 83% on training set and 83% on test set.   On the one hand, model #1 is over-fitted but on the other hand it still yields better performance on an unseen test set than the good general model in #2.   Which model would you choose to use in production? The First or the Second and why? Get full name twice in Bibliography I use biblatex with style=authoryear and when there are two references of the same author in the bibliography there is just a dash. How can I get the full name in the second entry too? How do you reopen a closed question? To reopen a closed question,  must agree that the question is suitable for the site and cast votes to reopen the question. But:  How does one actually vote to reopen? Is there a reputation level that you must have before you can see this function? Or do I just leave a comment along the lines of, &quot;I vote to reopen&quot;? What happens if someone with less than 3000 reputation leaves a comment that they wish to vote to reopen? How can one draw attention to their closed questions? Is it done via a posting new question? Or do you edit the closed question?   Related:  For more information, see &quot;&quot; in the . How do I get started with 'painting with light' photography? Tunnels being naturally dark may not be the most intuitive choice for a place to take pictures. But I love the '' work that artists such as '' are putting out and they're clearly seeking out places like tunnels, caves, garages... Dark places in other words, to create their works of art. Which brings two questions to mind:   How do I go about finding places that I can accomplish this sort of 'tunnel photography.' What are some techniques that I can use to 'paint with light' in my photography once I have found some locations? Attacks of the MAC construction $\mathcal{H}(m\mathbin\|k)$ for common hashes $\mathcal{H}$? What is the difference between a static and a non-static initialization code block My question is about one particular usage of static keyword. It is possible to use static keyword to cover a code block within a class which does not belong to any function. For example following code compiles:  public class Test {     private static final int a;         static {         a = 5;         doSomething(a);     }     private static int doSomething(int x) {         return (x+5);     } }   If you remove the static keyword it complains because the variable a is final. However it is possible to remove both final and static keywords and make it compile.   It is confusing for me in both ways. How am I supposed to have a code section that does not belong to any method? How is it possible to invoke it? In general, what is the purpose of this usage? Or better, where can I find documentation about this? I'm on the hunt for a great sounding, non-in-ear set of headphones with working mic, play/pause, and volume buttons.  I have Bang &amp; Olufsen's , which are among the best sounding headphones I've ever used. And all three button work perfectly in my MacBook Air and iPhone.  Obviously they don't work perfectly in my Nexus 4, since Android devices uses a different way of reading volume up/down buttons.  So, my question is rather simple, does anyone know how to make them work with Android, or alternatively any equally good headphones to the EarSet 3i's that work on Android? And to make it extra challenging, no in-ear ones please, cause I can't stand them :(  Or maybe anyone knows of some kind of adapter cable that can be used between an Android phone and iPhone compatible headphones to translate the volume button signals so the Android device understands them? Web colors: how to compensate for differences in monitors Similar to this question posted in August 2014:       Has the fact that  (as  in The Fires of Pompeii, and  in Torchwood’s Children of Earth season) yet been addressed/explained either in, or out of universe? I agree that every page in a site should have a unique TITLE, and that every page should have one and only one H1 element, but should the text of each H1 be completely unique too?  Instinctively one would think so, but there are potentially many cases where (IMHO) mind this doesn't make sense and attempting to do so will impair the user experience &amp; presentation of the page - for example, where pages are part of a closely related cluster, e.g. a multi-step process/tool/wizard.  Surely the process name should go in the H1 (e.g. "Pregnancy Planner"), and the current step you're on should be marked up as a H2 (e.g. "Step 1 - Trying for a baby"), rather than shoehorning both into a single H1 together (e.g. "Pregnancy Planner - Step 1 - Trying for a baby")?  Not only does this make the H1 rather long and potentially impact the presentation of the page, I would argue that in combining both into one you also lose semantic goodness, as the page is surely semantically richer by keeping parent (process) and child (step) as separate, nested headings?  Furthermore, the current proposal I have read is that on the first page the H1 should be the name of the process and the first step an H2, but on subsequent pages the same text should not be a H1 at all (just text styled exactly the same as an H1) and the current step should become the H1 instead. For me this is introducing unnecessary complexity to the page authoring/production process, and inconsistency in the semantic structure of the pages within the stepped process.  So it all comes back to the basic assertion that each H1 must be completely unique, which I question. Can you convince me that this should be so and that the cost/complexity of implementing this (especially in situations such as that above) is worth it?  Your thoughts please... Integral $\int^{ \pi /2}_{0} \ln (\sin x)\ dx$ $$\int^{ \pi /2}_{0} \ln (\sin x)\  dx$$  The answer is $- \frac{\pi}{2} \ln 2$.  I have changed it into $$\frac{1}{2} \int^{1}_{0} t d \ln t^{2}$$  But I didn't get the answer with it. Show that if $fd'=f'd $ and the pairs $f, d $ and $f',d' $ are coprime, then $f=f' $ and $d=d' $. Show that if $fd'=f'd $ and the pair $f, d $ are coprime, that is gcd($d,f $)=1, as is the pair $f',d' $, then $f=f' $ and $d=d' $.  This should be simple, but I couldn't verify it. Thanks in advance! Why does sudo change the PATH? When you pick up items in Skyrim it tells you the value of each item. However when I go and sell the items the merchants are only paying 30% of this value, at best.  Discounting any perks or other effects, how high does Speechcraft have to be before merchants start paying full value for items? What is the bit size of long on 64-bit Windows? Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site) say that long are indeed 64 bits when compiling for a 64-bit CPU. I looked up what it was on 64-bit Windows and found         Windows: long and int remain 32-bit in length, and special new data types   are defined for 64-bit integers.      (from )  What should I use? Should I define something like uw, sw ((un)signed width) as a long if not on Windows, and otherwise do a check on the target CPU bitsize? how to stop firing oncomplete if save action has errors My requirement is to stop oncomplete call if save action has errors. I know I am doing some silly mistake.   Here I am unable to stop calling oncomplete function.  Requirement is, from VFP save method, data will get saved and then perform callout from oncomplete function. If there are any errors during save then stop making callouts.  Visualforce  &lt;apex:page id="hasErrorTestPage" controller="ErrorMessageFinder"  showHeader="false"&gt;     &lt;apex:pageMessages id="msgId"/&gt;     &lt;script&gt;         function performCallOutMethod()         {             var msg = document.getElementById('{!$Component.MSEForm.errorMsgInd}').value;             alert(msg);              if(msg == 'false' || typeof(msg) == 'undefined')             {                 alert('entering callout')                 performCallOut();                 return true;             }             else             {                 return false;             }         }     &lt;/script&gt;     &lt;apex:form id="MSEForm"&gt;         &lt;apex:actionFunction name="performCallOut" action="{!submit}" reRender="panelId,msgId"/&gt;          &lt;apex:outputPanel id="panelId"&gt;             &lt;apex:outputText value="{!hasError}" id="errorMsgInd"/&gt;         &lt;/apex:outputPanel&gt;         &lt;apex:inputText id="customerNm" value="{!CustomerName}"/&gt;&lt;br/&gt;         &lt;apex:commandButton value="Save" action="{!save}"                       oncomplete="return performCallOutMethod();" reRender="panelId,msgId"/&gt;     &lt;/apex:form&gt; &lt;/apex:page&gt;   Controller  public class ErrorMessageFinder {     public String CustomerName {get;set;}      public Boolean hasError {          get {              return ApexPages.hasMessages();          }            }      public PageReference save()     {            if(String.isBlank(CustomerName))         {             ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.Error, 'Name cannot be null');             ApexPages.addMessage(msg);             return null;         }         return null;      }       public PageReference submit()     {         try         {   //navigate to view page             PageReference pg = new PageReference('/'+ '0019000001UwnVS');             pg.setRedirect(true);             return pg;         }         catch (Exception ex)         {             System.debug('Error in submit ' + ex);             ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.Error, ex.getMessage());             ApexPages.addMessage(msg);              return null;         }     } }   Based on this code, if I hit save button without entering CustomerName then it is not showing error after save. It is showing error during oncomplete call and then navigating to view page, which I do not want.  Any help is appreciated. I have put a compiled code so that anyone can try with this code. What are attention mechanisms exactly? Attention mechanisms have been used in various Deep Learning papers in the last few years. Ilya Sutskever, head of research at Open AI, has enthusiastically praised them:    Eugenio Culurciello at Purdue University has claimed that RNNs and LSTMs should be abandoned in favor of purely attention-based neural networks:    This seems an exaggeration, but it's undeniable that purely attention-based models have done quite well in sequence modeling tasks: we all know about the aptly named paper from Google,   However, what exactly are attention-based models? I've yet to find a clear explanation of such models. Suppose I want to forecast the new values of a multivariate time series, given its historical values. It's quite clear how to do that with an RNN having LSTM cells. How would I do the same with an attention-based model?