I am writing my thesis, in french. I also use fancyhdr. In the head of the page I have the chapter title. I had no problems for the first chapters, but the third include accentuation. I then had error messages telling me to increase headheight. The package fancyhdr is supposed to figure out that size, but it overlooks accentuated letters. To fix it, I tried to set a relative headheight by different means but so far I failed.   A MWE:  \documentclass[a4paper, 12pt, twoside]{report} % start fancyhdr tunning \usepackage{fancyhdr}   \pagestyle{fancy}   \fancyhead[RO, LE] {}   % head too small. Local fix, setting bigger fixed value:   %\setlength{\headheight}{16pt}    %commented out to get the headheight too small warning % end fancyhdr tunning \begin{document}   \chapter{nothing, just setting a weird title: l\`ik\'e s\^o}     \newpage     what do you mean, this thesis null? \end{document}   Any suggestions? I'm thinking a box that doesn't print, or a command which suppress printing, something like widthof from calc...?
120962
I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height automatically with reference to the content?  I know LaTeX is telling me the head height is too small and I should change it to xx pt, but I would like to not have to do it manually.  A little excerpt of the beginning of one of my documents:  \documentclass[pdftex,12pt,oneside]{report}  \usepackage[pdftex]{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{color}  \usepackage[paper = a4paper, tmargin = 2cm, bmargin = 2cm, lmargin = 2.5cm, rmargin = 2cm]{geometry}  \usepackage{fancyhdr} \fancypagestyle{titlepage} {     \fancyhf{}     \fancyhead[L]{~\\[0.5cm]\includegraphics[height=2cm]{./dhbw_logo}}     \fancyhead[R]{~\\[0.5cm]\includegraphics[width=2cm]{./cz_logo}}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt} }
86146
I need font size = 14 in article document, but when I change  \documentclass[a4paper,11pt]{article}   to  \documentclass[a4paper,14pt]{article}   font becomes even smaller. How to change font size?
11633
The standard titlepage is quite simple. I am looking for a very  and need help customizing my title page.  It should match the  classicthesis doctoral thesis template  Below a minimal working example:   \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook} \XeTeXinputencoding iso-8859-1 \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}  \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}    \frontmatter  \begin{document}     \pagestyle{scrheadings}        %this is the place to set up my cover sheet.       %*******************************************************      % Abstract     %*******************************************************    %\renewcommand{\abstractname}{Abstract}    \pdfbookmark[1]{Résumé}{Résumé}   \begingroup    \let\clearpage\relax    \let\cleardoublepage\relax    \let\cleardoublepage\relax       \chapter{Résumé}     Résumé de la thèse en français\dots      \vfill      \chapter*{Summary}   Résumé de la thèse en anglais\dots    \endgroup             \vfill     \end{document}
116083
I tried to use a header and footer layout I found here on this website. But I have some problems with changing the code to what I want. I want the pagenumbering to be like page x of y in the footer. It would be nice with this layout (just with page x of y instead of just page x):  \cfoot{\parbox{\textwidth}{\hrulefill\kern-0.6ex\raisebox{-0.5ex}{$\Bigl[$\makebox[2em][c]{\thepage}$\Bigr]$}\kern-0.5ex\hrulefill}}   But the pagenumbering is in the header and there aren't a space between the letters and the numbers as you can see in my minimal work example:  \documentclass[12pt,a4paper]{book}%generelt \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear all headers and footers \renewcommand{\headrulewidth}{0pt} % remove rule between header and text \fancyhead[LE, RO]{\thepage of \pageref{LastPage}} % put page number in left header on even pages,                             % right header on odd pages \fancyhead[RE]{\nouppercase{\leftmark}} % remove uppercase on chapter title \renewcommand{\chaptermark}[1]{\markboth{#1}{}} % remove "Chapter N." prefi \usepackage{lastpage}   Another problem is that I would like to have a chapter numbering in the header. The design is really nice, but I would like to have the chapter number too, just like "CHAnumber| name of the chapter".  Is it possible to make this two changes? And how? Thank you very much for help!
78073
I need to put some text at the same height in my page, and I'm trying to do it with a minipage, but I'm not able to do it since they get centre-aligned.    This is the LaTeX for the figure I've uploaded:  \begin{minipage}[]{0.5\textwidth}     \begin{flushleft}         {\large \textit{Author}:\vspace*{0.5cm} \\          Me}     \end{flushleft} \end{minipage}% % \begin{minipage}[]{0.5\textwidth}     \begin{flushright}         {\large \textit{Supervisor}:\vspace*{0.5cm} \\          Him}\\         \vspace*{0.5cm}         {\large \textit{Advisor}:\vspace*{0.5cm} \\          Other Guy}     \end{flushright}     \end{minipage}%   Can you please explain me what I'm doing wrong?
18254
this TeX-source  \documentclass[a4paper,12pt]{book} \usepackage[usenames,dvipsnames,svgnames,table,x11names]{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[LO,RE]{} \fancyhead[LE,RO]{{\large{}\color{DarkRed}\rightmark}} \fancyfoot[C]{\thepage} \fancyfoot[LE,RO]{\color{DarkRed}\large{}\leftmark} \fancyfoot[LO,RE]{xxx} \renewcommand{\headrulewidth}{0.14mm} \renewcommand{\footrulewidth}{0.14mm} \setlength\headheight{6mm}  \begin{document} \markboth{A}{B}  Yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda ...  \end{document}   when compiled with XeLaTeX, will cause this output:    as you can see, the red A is not properly aligned with the rest of the footer. naturally i first assumed that was because of the font size, but, surprisingly, changing  \fancyfoot[LE,RO]{\color{DarkRed}\large{}\leftmark}   to  \fancyfoot[LE,RO]{\large{}\leftmark}   gives me not only (naturally) a black A, but also a properly aligned one:    any hints why that should be so? any fixes?
114202
I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule.  Currently they look like this:  \documentclass[10pt,twoside,openright]{book} \usepackage{titlesec} \titleformat{\chapter}[display]{\LARGE\sffamily\bfseries\raggedright}   {\leftskip2cm {\Large\textmd{\chaptertitlename~\thechapter}}} {0cm}{\leftskip2cm}[\vspace{4mm} {\color{dgray}\titlerule[.6mm]} \enlargethispage{-\parskip}]   The \enlargethispage is used to make some extra space for the title number, which appears at the bottom of the page only at the first page of the chapter. My attempts with using the framed environment or colorbox have so far not been successful.
92582
How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error     ! Package titlesec Error: Not allowed in `easy'   settings.
399
I have been racking my brains over how in bloody hell can you have a different header for the title (or first) page of a document.   I am not asking here how I can not have a header by clearing the page style for this page using \thispagestyle{plain} or something of the sort but how can I have a different header just for the very first page.   Please help as I have a deadline to meet.   So far, I have not been able to find anything useful on TeX.SE.   Here is some of my code to give you some idea of what I want to achieve:  \documentclass[12pt]{article} \usepackage{amsmath} \usepackage[margin=2.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{fancyhdr} \usepackage{hyperref} \usepackage{graphicx} \usepackage{csc} \pagestyle{fancy} \fancyhead[L]{**Left Header for all pages**}\fancyhead[R]{**Right Header for all pages**} \lhead{**Left Header for just the first page**} \rhead{**Right Header for just the first page**} \title{Problem Set 1}         \author{MyBloodyName} \date{January 31, 2017} \begin{document}     \maketitle     \newpage     Easier? \end{document}
22003
I have a problem that I can't seem to solve. Basically, I want my chapter headings to be at the same position relative to top of the page as the rest of the text. I've looked at numerous resources online, but the problem is still not solved... :(  I tried using the titlesec package, but no results:  \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont\Large\bfseries}{\thechapter}{1em}{\Large} \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{} \titlespacing*{\chapter} {0pt}{\baselineskip}{0pt} \titlespacing*{\section} {0pt}{\baselineskip}{0pt}   Here is what I get in the output:  Chapter Heading:    Other text (sections):    Also, the headings of TOC LoF and LoT are a little off from normal Chapter heading spacing...  Please help!
57023
I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text.  I read about the  package, but can't seem to find good example how to use the package.  Using Gonzalo Medina does in fact change the font size, however, it changes the default font as well.  Before:    After:
29564
Actually I am using the fancyhdr package, and trying to put the current part name in the right header.   I know that \rightmark and \leftmark are used to represent the current section and chapter heading respectively, but I can not find anything similar to represent the part name.
73388
I am using WinEdt to write my thesis and I used   \usepackage[latin1]{inputenc}   to get the French accents to be understood automatically.  It works fine for the first 2 chapters, but for some reason, when I add more chapters, it  gives me this weird symbol whenever I use accents.  This doesn't really make sense as the chapters are all joined to the document the same way!  I really can't see what's wrong.  Any idea?  So here's what it looks like:  \documentclass[msc, index, hyperref, prelimtm]{theseUL1_2}  \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc}  \usepackage{lmodern}     \usepackage[francais]{babel} ... \begin{document} ...  \include{chap1/chap1} \include{chap2/chap2} \include{chap3/chap3}  \end{document}   The chapters are in different files all starting with  \chapter{name} ...
36069
How do I specify the fonts, and general font size, for the titles, chapters and sections in my document  Update:  I can see how my question is confusing.  I use \section and \chapter etc. to organise my document, and I would like to change the way the section and chapter titles are displayed.
101988
I'm embarking on a journey to create a conference abstract book using XeTeX and got stuck within five minutes:        The missing 'g' in 'somethin' influences the line height of the following line. How can I correct this?  At the end I want to be able to include the abstracts and corresponding information through our online registration system, so this should be a global setting.  My MWE:  \documentclass[10pt, a5paper]{article} \usepackage{fontspec}  %% GEOMETRY \usepackage[left=2cm, right=1.5cm]{geometry} % to change the page dimensions  \newenvironment{AbsHead} {     \fontsize{16}{22}\headfont\noindent }% {     \vspace{0.5 cm} }  \newenvironment{AbsAuthors} {     \fontsize{12}{14}\authorfont\noindent }% {    \vspace{0.5 cm} }  \begin{document}  ￼￼￼￼\setmainfont{Minion Pro} \newfontfamily\authorfont{Helvetica Neue Light} \newfontfamily\headfont{Helvetica Neue Condensed Bold}  \begin{AbsHead}The XIAP  something something something somethin somethin somethin somethin somethin somethin somethin something something\end{AbsHead}   \begin{AbsAuthors}Somebody Someone\end{AbsAuthors}   \noindent Purpose: Lorem ipsum \end{document}
64781
So in the default book class, the page number for chapters appears at the bottom of the page. I just want the page numbering to alternate left and right, as it does for all other pages.   How can I change the different behavior for pages where there is a chapter?  I have googled the problem and I am aware the package fancyhdr may be of some use, but I don't understand how to use it (yes I read some of the documentation and I still don't understand). So far I just use its default behavior:  \usepackage{fancyhdr}  \pagestyle{fancy} \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[C]{\thepage}  \begin{document} \Stuff \end{document}   EDIT: I want the page numbers to appear in the header. I've changed the code to look like this:  \usepackage{fancyhdr}  \pagestyle{fancy} \fancyhead[LE]{\slshape \rightmark} \fancyhead[RO]{\slshape \leftmark} \fancyhead[LO,RE]{\thepage}  \begin{document} \Stuff \end{document}   What this does is to alternate the pages depending on whether it is odd or even, but for chapters, the pages are still centered. Also, I now have page numbers listed in BOTH the header AND the footer for ALL pages...
15
I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes occuring.  First:  \documentclass[12pt]{report}   \usepackage[compact]{titlesec}   \begin{document}   \chapter{Characters}  The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}   Second:  \documentclass[12pt]{report}   \usepackage{titlesec}   \titleformat{\chapter}[display]   {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   \titlespacing{\chapter}{0pt}{0pt}{0pt}   \begin{document}   \chapter{Characters}    The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}