Tag Info

Hot answers tagged

6

May be like this: \documentclass[12pt]{article} \usepackage{fancyhdr} \usepackage{xcolor} \usepackage{blindtext} \usepackage[margin=1in,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \fancyhf{} \lhead{\bfseries \textcolor{black!50}{Some conference}} \rhead{\textcolor{black!50}{\thepage}} %% or \rfoot?? \renewcommand{\headrulewidth}{0.4pt} ...


6

Some thing like this? \documentclass[onecolumn]{article} \usepackage{fancyhdr} \usepackage[export]{adjustbox} \usepackage{lipsum} \pagestyle{fancy} \fancyhf{} \lfoot{\includegraphics[scale=0.3,valign=c]{example-image} \includegraphics[scale=0.15,valign=c]{example-image} Some text to go in the footer} \rfoot{\thepage} \begin{document} ...


6

I probably broke something but..... \documentclass[10pt,landscape,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[utopia,sfscaled]{mathdesign} %\usepackage[lf,minionint]{MinionPro} %\renewcommand{\sfdefault}{phv} %\usepackage[lf]{MyriadPro} \usepackage{multicol} ...


5

Who decided that spider has 8 legs? I don't know. But i know who is in charge of KOMA-script and scrlttr2, the author and maintainer Markus Kohm. He decided, for whatever reason, that the footer in a letter should be slanted. The footer is implemented as a parbox, so it is justified by default. You should not set things manually, let the program work for ...


5

I also suggest the use of scrlayer-scrpage instead of scrpage2.... About your question, you can issue \lohead{\thesection\autodot} just after \chapter{Appendix} to obtain what you want. MWE \documentclass[headsepline, open=right,twoside=true, numbers=noenddot]{scrreprt} \usepackage[english]{babel} \usepackage{blindtext} ...


5

You can change the mark by \markboth{\thesection.\ test}{} Code: \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\footrulewidth}{0pt} \setlength{\headheight}{15pt} \begin{document} \thispagestyle{empty} \tableofcontents \newpage \section[test (in the TOC)]{test} \markboth{\thesection.\ test}{} test \end{document} ...


4

You get a warning; Package Fancyhdr Warning: \headheight is too small (10.0pt): Make it at least 14.49998pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. fancyhdr tells you that header should be 14.4999pt high atleast. So make it 16pt to be safe. And do it with geometry package. ...


4

You can add a header switch during the toc using \addtocontents. For example, if we define the header type toc and apply it during the table of contents then you can also inject \makeevenhead and \makeoddhead part-way through the TOC: \documentclass[oneside,12pt]{memoir} \setsecnumdepth{subsection} \maxtocdepth{subsection} \usepackage{appendix} ...


4

As egreg says in his answer, use \makebox here also. \documentclass[twoside]{article} \usepackage{xcolor} \usepackage{lipsum} \usepackage{fancyhdr} \newlength\titleindent \setlength\titleindent{.25in} \pagestyle{fancy} \fancyhf{} %\renewcommand{\sectionmark}[1]{\markboth{#1}{}} %\renewcommand{\subsectionmark}[1]{\markright{#1}} \fancyfoot[RO]{% ...


3

Simply remove \thispagestyle{empty} just after \begin{document} That command causes the page where you issue it to be in "empty" style, that means with no page number.


3

Since you are using the article class, which by default uses \raggedbottom, you can load the footmisc package with the option bottom. \usepackage[bottom]{footmisc} This (together with \raggedbottom) forces footnotes to the bottom of the page, so they have a constant distance from your fancy foot. MWE (note that footmisc has to be loaded before hyperref): ...


3

Add this in the definition of Mybookstyle: \renewcommand{\makeheadrule}{\rule[-0.4\baselineskip]{\linewidth}{0.1pt}}% You can remove \setheadrule{.1pt} since this is incorporated in the above command. The default optional argument to \rule is 0.3\baselineskip, and you can change it to whatever you want. You can define as many page styles as you please ...


3

Here's the scheme: the table is inserted as the center field in the header, as a zero width box. For having it in all pages, use \aliaspagestyle{plain}{mystyle} so memoir will use mystyle also in the pages where plain is requested. The head height can be set after compiling once and looking in the .log file for a message such as Class memoir Warning: The ...


3

ConTeXt has two notions of page numbers: The real page number (accessed using \pagenumber) and the user page number (accessed using \userpagenumber). The userpagenumber is meant for what you are looking for (different page numbering in frontpart and bodypart. In the code you posted, in the sectionblock environment you are resetting the userpage counter; ...


2

When you define the footer: % Define footer \setbeamertemplate{footline}{bg=primary} \makeatother \setbeamertemplate{footline} { \leavevmode% \hbox{% \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% \usebeamerfont{author in head/foot}\insertshortauthor\ (IRE PW) \end{beamercolorbox}% ...


2

I've done this with book since you are overriding memoir's page layout anyway and it is simpler to do it without needing to define tripartite headers. I use fancyhdr to configure the header. I read the output to figure out what the header height needed to be so that I could feed this to geometry. Since you want the header on every page, I've just redefined ...


2

You can lower the picture using \raisebox \raisebox{-1cm}{\includegraphics[height=1cm,width=\textwidth]{bar.jpg}} Code: \documentclass[a4paper,twoside]{article} \usepackage[width=14cm,left=3.5cm,marginparwidth=3cm,marginparsep=0.35cm, height=21cm,top=3.7cm,headsep=1cm,headheight=1.6cm,footskip=2cm,showframe]{geometry} ...


2

An alternative would be to switch to a class with this feature built in. The appearence is a bit different, KOMA-script aims to provide nice defaults for the non-north-american world. \documentclass[headings=optiontotoc]{scrartcl} \usepackage[automark]{scrlayer-scrpage}%KOMA-budle \usepackage{blindtext} \begin{document} \tableofcontents \clearpage ...


2

I will use a headsepline to show the width of the headlines. With scrlayer-scrpage the option headwidth=textwithmarginpar works as expected: \documentclass[10pt]{scrbook} \usepackage{xltxtra} \usepackage[paperwidth=170mm,paperheight=240mm]{geometry} \KOMAoptions{DIV=calc,BCOR=15mm} \newlength{\TextwithMargin} \setlength{\TextwithMargin}{% ...


2

\markboth takes two arguments --- not one: \markboth{\uppercase {Introduction}}{\uppercase {Introduction}}


2

The headers in a document are for orientation of the reader. The might want to know, in which part of a document he is (where the duck am i?). So a header should not be very long, you can give shorter names for the table of contents and the header with \chapter[short title for toc and head]{long title which can, but shall not, confuse the reader by using ...


2

If the KOMA-Script option appendixprefix is not used: \newcommand*{\appendixmore}{% \renewcommand\sectionmark[1]{% \markright{\ifnumbered{section}{\thesection\autodot}{}}% }} Using \ifnumbered avoids a wrong number in the header if there is an unnumbered section. Note \appendix is not an environment. The package scrpage2 is depreciated. Use ...


2

If the footer on the second page should be at the same position as the footer on the first page you can load the package scrlayer and define your own pagestyle: \usepackage{scrlayer} \DeclareNewLayer[ align=tl, hoffset=\dimexpr.5\paperwidth-.5\useplength{firstfootwidth}\relax, voffset=\useplength{firstfootvpos}, width=\useplength{firstfootwidth}, ...


2

Didn't know whether the red box was part of the notation or the footer itself (I assumed the latter). I put the text in a \parbox, added some vertical buffer around the \fbox, and I spaced out the items in the footer. If you need actual boxes around the text and page number, let me know. \documentclass[onecolumn]{article} \usepackage{stackengine,xcolor} ...


2

You could just patch \chaptermark to remove the inserted \@chapapp\ : \documentclass[twoside]{book} \usepackage[spanish]{babel} \usepackage{fancyhdr,lipsum} \fancyhf{} \fancyhead[LE]{\slshape \leftmark} \fancyhead[RO]{\slshape PROYECTO FIN DE MASTER} \fancyfoot[LE,RO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} ...


1

I would recommend against customizing the layout if you want to submit this to a conference. Adding \thispagestyle{plain} will indeed show the page number at the bottom, but if you look at the documentation you will find that page numbers are omitted in conference mode. Removing the \\[-3.0ex] after the title is also a good idea (try adding ...


1

First of all, i have to say that i do not recommend using the templated linked in the question. It uses obsolete options and does really weird stuff most of the time. We simply use the variable firstfoot when setting the variable nextfoot. To make this work properly, we have to tweak the first foot a bit as well, namely putting all in a parbox. It should ...


1

Working through the requirements here, including the business about the fixes for the kernel, I think that everything does work if you take things a bit at a time % Should be part of the kernel \RequirePackage{fixltx2e} \documentclass[twoside]{article} % Required by the OP for 'other things' \usepackage{dblfloatfix} % For filler \usepackage{lipsum} ...


1

As I wrote in a comment I would use different approach in general. So, even though your own anwer is working, I add this solution for completeness: \documentclass[twoside,twocolumn,letterpaper,11pt]{book} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \usepackage{lipsum} \usepackage{fixltx2e} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} ...


1

Your MWE does not even use myheadings, but here is a MWE with headings: \documentclass[a4paper]{memoir} \usepackage{lipsum} \makeatletter \addtopsmarks{headings}{}{ % changed left to both \createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } } \makeatother \nouppercaseheads \pagestyle{headings} \begin{document} \chapter{test} \lipsum[1-15] ...



Only top voted, non community-wiki answers of a minimum length are eligible