\documentclass{article} \usepackage[landscape,a4paper]{geometry} \usepackage{array,booktabs} \usepackage{amsmath} \usepackage{background} \usepackage{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{header1} \rhead{header2} \begin{document} Some text \end{document}   in the center of page "DRAFT" appears, how can i erease it? it will appear when i use fancyhdr , but there is no code about it i think =\
122902
I installed background package and there is text "Draft" all the page    How can I remove this text or uninstall this package?
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}
59971
users  I have some problems with linespacing in my thesis. One page look normal like this:    Another page look weird like this:    My preamble look like this:  \documentclass[a4paper,11pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{layout} \usepackage[protrusion=true,expansion=true]{microtype}   % Different usepackages \usepackage[T1]{fontenc} \usepackage[lf]{MinionPro} %% MinionPro \usepackage{icomma} \usepackage{setspace} \setstretch{1.1} \usepackage{siunitx,booktabs} \usepackage{graphicx} %% \usepackage{tocloft} - add if customize TOC \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \usepackage{tabu}  % Chapter \usepackage[pagestyles ,newparttoc, explicit]{titlesec}% \usepackage{titletoc} \SetTracking[no ligatures = {f}]{encoding = }{100}  \usepackage[explicit]{titlesec} \titleformat{name=\chapter}[display]{ \figureversion{lining}}{\lsstyle\Large\MakeUppercase\chaptername\enspace \LARGE\thechapter}{2ex}{\LARGE\bfseries#1}%\uppercase  \titleformat{name=\chapter, numberless}{\lsstyle\LARGE}{}{0pt}{\MakeUppercase{#1}} \titlespacing{\chapter}{0pt}{2.5ex}{6ex}  % Table of Contents  \titlecontents{chapter}[0em]{\large\bfseries\protect\addvspace{15pt}}%\thecontentslabel\brlap[1.25\baselineskip] {\textssc{\mdseries\MakeLowercase\chaptername~{\footnotesize\thecontentslabel}}\\\medskip} {}% {\hfill\contentspage}%  % item / enumerate  \usepackage{enumitem}  % HTML code  \usepackage{listings} \usepackage{xcolor}  \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0.5} \definecolor{mauve}{rgb}{0.58,0,0.82}  \lstset{frame=tb,   language=Java,   aboveskip=3mm,   belowskip=3mm,   showstringspaces=false,   columns=flexible,   basicstyle={\small\ttfamily},   numbers=none,   numberstyle=\tiny\color{gray},   keywordstyle=\color{blue},   commentstyle=\color{dkgreen},   stringstyle=\color{mauve},   breaklines=true,   breakatwhitespace=true,   tabsize=3 }   % Figure  \usepackage{chngcntr} \counterwithout{figure}{chapter}  % More pdf-pages at same site  \usepackage{pdfpages}  % References \usepackage[round, colon, sort, authoryear]{natbib} \setlength{\bibsep}{0.0pt} \setlength{\bibhang}{2em} \bibpunct{(}{)}{;}{a}{}{} \setcitestyle{notesep={: }} \def\citeapos#1{\citeauthor{#1}'s (\citeyear{#1})}  % Quotes \usepackage{csquotes} \MakeOuterQuote{"}  % Page margins \usepackage[left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm]{geometry}  % PDF background  \usepackage{eso-pic}  % Random text \usepackage{lipsum}  % Page style \usepackage{fancyhdr} \pagestyle{fancy}% &lt;- ! % Defining MyStyle \fancypagestyle{MyStyle}{%     \fancyhead{}     \fancyfoot{}     \fancyfoot[RO]{\small{\leftmark} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \small{\thepage}}     \fancyfoot[LE]{\small{\thepage} \ \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt} \ \lsstyle\small{\MakeUppercase{\chaptername}}\ \thechapter} \renewcommand{\headrulewidth}{0pt} % Remove header rule \renewcommand{\chaptermark}[1]{\markboth{\lsstyle\uppercase{##1}}{}} } % Redefining the PLAIN style \fancypagestyle{plain}{% \fancyhead{} %Clean headers \fancyfoot{} %Clean footers \fancyfoot[RO]{{\vrule height 10pt width 1pt} \hspace{2pt} \ \thepage} \fancyfoot[LE]{\thepage \ \hspace{2pt} {\vrule height 10pt width 1pt} \hspace{2pt}} \renewcommand{\headrulewidth}{0pt} % Remove header rule }   % Tabular \usepackage{threeparttable} \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \includepdfset{pagecommand=\thispagestyle{plain}} \renewcommand{\TPTnoteSettings}{\footnotesize} \renewcommand{\TPTnoteLabel}[1]{#1}   Because of the text-length I only show you preamble. The rest is text and figures, where I use [ht].  Is there anyone who can help me.  Best regards
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.
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.
124
I use  \usepackage{fancyhdr}    then  \pagestyle{headings}    and I want \section*{name of the section} in my headings. How to do it?
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...
27369
In the following standard \documentclass{book} all headers are in upper case.   How can I modify the code below to make lower case headers?  The even pages show the chapter number and name, and the odd pages show the section number and name. The first page of a chapter has no header, only the page number in the footer. The other pages show the page numbers on the headers: odd pages on the right and even pages on the left, as shown.      It was created with  \documentclass{book} \usepackage{lipsum}  \begin{document}  \title{Standard \LaTeX{} Book} \author{The Author} \date{The Date} \maketitle \tableofcontents  \chapter{Test Chapter One} \section{Test Section One} \lipsum[1-6] \section{Test Section Two} \lipsum[1-6] \section{Test Section Three} \lipsum[1-6]  \chapter{Test Chapter Two} \section{Test Section One} \lipsum[1-6] \section{Test Section Two} \lipsum[1-6]  \end{document}   Remark: the question   is not sufficiently similar to this one to help me to find a possible solution by my own.
71809
First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few tables in landscape mode since they are to big to look nice in normal portrait mode. I would also like to have my header and page numbering on that page as well. Can anyone guide me in how to do this. With a simple code. I am actually scared of ruing my current document so I am going to make it on a separate file and then add it with a PDF tool later into my original document. So i would probably need to add custom numbering to those page. I am providing the code I used from a user here for my header and number can you guys tell me how to add a custom number in here for example if the landscape table is on 23rd page. Also I am adding an image of how I want my page to look with a table in landscape. Thanks alot    and here is the code where I want to put custom numbers  \usepackage{fancyhdr} \usepackage[margin=0.75in,head=2cm,top=1.5cm,bottom=2.5cm,includehead]{geometry} \usepackage{lastpage} \usepackage{graphicx} \renewcommand{\headrule}{}% to remove the line \lhead{\includegraphics[width=6cm]{lol.png}}% use your logo \rhead{% \begin{minipage}[b]{5cm} \flushright \today\\ IND/Q-85/15 \\ Page \thepage{} of \pageref{LastPage} \vspace{6mm} \end{minipage}} \cfoot{}   I think I would need to change the '\thepage{}' with a normal 23 if it was the 23rd page I am not sure though =/. Sorry if I am asking a very easy question.
112357
I want to achieve the exact same title page layout as the paper shown . For those that do not want to download the paper, the image of the title page is shown below:    The super-scripts indicating the authors doesn't have to be as shown in the example title page (e.g, a, b and c), other symbols are fine.  I am using the authblk package and know the general syntax such as:  \title{title of paper} \author[1]{author 1\thanks{details that goes into the footnote}} \author[1]{author 2\thanks{details that goes into the footnote}} \author[2]{author 3\thanks{details that goes into the footnote}} \affil[1]{university 1} \affil[2]{university 2} \renewcommand\Authands{ and } \maketitle  \begin{abstract} abstract goes here \end{abstract}   But I am not sure how to achieve the example title page shown. Any help would be appreciated!
122544
I want to add a landscape page between 2 pages, But the problem is that latex make a space before landscape, how to remove the section (which circled on red ) to the page 1. the code is like that Text   \afterpage{ \begin{landscape}  a  \end{landscape} }  \Section  Another text
58166
I'm trying to create a document that has different margins on even and odd pages. This is what I've tried:  \documentclass[a4paper,12pt]{article} \usepackage[slovene]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsfonts,amsmath,amssymb,amsthm} \usepackage[all,cmtip]{xy} \usepackage{graphicx} \usepackage{resizegather}  \hfuzz=2pt  \oddsidemargin=51pt \evensidemargin=11pt   This would give me precisely the margins I want, but for some reason, \oddsidemargin and \evensidemargin are not independent. When I set one of them, the other is fixed. After reading some answers here, I tried setting changing the first line to  \documentclass[a4paper,12pt,twoside]{article}   but this completely messes with my layout and I get a bunch of "underfull \vbox"'s. (Although the left and right margins then behave as expected.) So, my question is as follows:     How do I make \oddsidemargin and \evensidemargin behave independently without introducing any other (undesired) behaviour?
84424
This is the document:  \documentclass[12pt]{article} \usepackage[top=3in, bottom=3in, left=3in, right=3in]{geometry} \usepackage{lipsum} \interlinepenalty=10000 \begin{document} This is first short par\footnote{foot note}  \lipsum[1] \end{document}   As you can see the foot note is "glued" to the text and is not a "foot" note any more.. How can I make drop it down to the bottom of the page, where it will look like a real foot note?
13107
I am having trouble typesetting multi-line headers using fancyhdr The header on the first page behaves differently than the header on subsequent pages. The first page header has no depth, but produces a greater vertical displacement on subsequent pages.  Here is a sample tex file to illustrate the difficulty  \documentclass{article}  \usepackage{fancyhdr}  \chead{line 1\\line 2\\line 3\\line 4\\line 5\\line 6\\line 7\\line 8}  \cfoot{footer}  \fancypagestyle{plain}{}  \pagestyle{fancy}  \begin{document} \thispagestyle{fancy} page 1 \newpage page 2 \newpage page 3    \end{document}
78782
I am using titleps to get custom headers, and biblatex for the bibliography. The headers look all right except when it comes to the bibliography, where a "REFERENCES" label appears in the header and footer. Here is a MWE:  \documentclass{article} \usepackage{lipsum} \usepackage{titleps} \newpagestyle{fancy}{  \headrule \sethead[\normalsize \thepage][][] {Author}{Document}{\normalsize \thepage} \setfoot[][][]{}{}{} } \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @article{A2013, author = {Author, A}, title = {A nice paper}, journal = {Journal}, year = {2013}, volume = {1}, pages = {1--2}, } \end{filecontents}  \usepackage[style=numeric,backend=biber]{biblatex} \addbibresource{\jobname.bib}  \begin{document} \pagestyle{fancy}  \lipsum[1] \cite{A2013}    \clearpage  \printbibliography  \end{document}   And here is the output:   The left page is ok but not the right page. Where does the "REFERENCES" label come from?  Note that this does not happen if I use bibtex instead of biblatex for the bibliography, or fancyhdr instead of titleps to customize the headers. For instance, replacing lines 3-9 in the example with  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{Document} \fancyhead[L]{Author} \fancyhead[R]{\normalsize \thepage} \fancyfoot{} \fancyfoot[C]{} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}   gives the expected output:   How can I obtain the same result with titleps and biblatex?
33718
I am trying to write a recommendation letter with a fancy heading at the top of the first page, using fancyhdr. I copy my code below.  The results are that the first page looks good but subsequent pages do not. Subsequent pages omit the logo (as desired) but leave enough space for it, and the text starts from the same place on every page. Starting from the second page, I would like the text to start higher.  It seems that the only code which could cause the text to appear lower is within the \fancypagestyle{firstpage}{...}, and I use \thispagestyle{firstpage} with the intent that this should only affect the first page -- but this is not what happens when I compile and view my document.  I read related posts  and , and attempted to modify my code based on what I read there, but without achieving the results I was looking for.  Thank you very much.  LaTeX code (which compiles):   \documentclass[11pt]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{color,hyperref} \usepackage{graphics} \usepackage{times} \usepackage{fancyhdr} \usepackage{datetime}   \definecolor{darkblue}{RGB}{0,0,50} \hypersetup{colorlinks,breaklinks,             linkcolor=darkblue,urlcolor=darkblue,             anchorcolor=darkblue,citecolor=darkblue}   %%%%%%%%%%%%%%%%%%date in format Sunday, October 25, 2011$$$ \usdate \def\theday {\dayofweekname{\day}{\month}{\year}} \def\mydate {\theday , \today}  %%%%%%%%%%return address%%%%%%%%%% \def\myname     {Frank Thorne} \def\mydeptname     {Department of Mathematics} \def\myaffiliation  {University of South Carolina} \def\mystreet       {1523 Greene Street} \def\mycitystatezip {Columbia,\ SC\ \ 29208} \def\myphone        {{\it Phone:} (803)404-4057 (home)} \def\office     {(803)777-4224} \def\fax        {{\it Fax:}(803)777-3783} \def\email      {thorne@math.sc.edu} \def\url        {http://www.math.sc.edu/$\sim$thornef} % NOTE: use $\sim$ for tilde %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%margins%%%%%%%%%%%%%%%%%% \oddsidemargin   0in \evensidemargin  0in \topmargin  -0.75in \textwidth   6.5in \textheight  6.25in \headwidth  \textwidth \parindent      0ex %controls how the indentation of new paragraphs behaves \parskip        6pt %controls the space between paragraphs \headheight     1.25in \headsep    1in %This controls how far below the letterhead the text of the letter will begin    \addtolength{\textheight}{.5in} %%%%%%%%%%%%%%%%letterhead%%%%%%%%%%%%%%%% \fancyfoot{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}  %\thispagestyle{fancy} \fancypagestyle{firstpage}{ \fancyhf{} %%%usc logo \fancyhead[L]{\resizebox{2.5in}{!}{ %\includegraphics{USC_Linear.jpg} } \vspace{0.6in}}  %%%%%%%%%%return address on right%%%%%%% \fancyhead[R]{ \parbox[t]{3.1in}{ \footnotesize   \em \vspace{0.5in}                 \myname \\                 \mydeptname   \\                 \myaffiliation \\                 \mystreet \\                 \mycitystatezip \\                 \email \\ \\                  \mydate                 }\hspace{-1.3in} \vspace{0.2in}} }  \begin{document}  \thispagestyle{firstpage}  Blah blah blah.   Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.    \hspace{.5\textwidth}\parbox[t]{2.95in}{             Sincerely,\\              Frank Thorne\\             Assistant Professor of Mathematics            }  \vfill      \end{document}
97883
I am trying to put fancyhdr custom style on all pages except first one, but it either shows up on all of them, or on none, I can't make this style to go from second page, im new to latex, so any help is welcome.