Hot answers tagged

5

Here, I modify \replaceFooterFig to do several things. It puts the figure into a saved \vbox. It then diminishes the depth of the box by \footsep to shift it down. It also turns off the footer (with an \AtBeginShipout), and sets up a reactivation of the footer for the next page (by doing a nested \AtBeginShipout). \documentclass{book} ...


5

Moving the figure in the footer is not really difficult. This can be done with a simple vspace. But is is not so easy to suppress the printing of the page number in the footer. The following code works but relies on the fact that \thepage doesn't do silly thinks ... \documentclass{book} \usepackage{lipsum} \usepackage{multicol} \usepackage{color} ...


5

exams seem to have clear designations between subject matters, and to me is almost synonymous with \sectional divisions. So, instead of defining fixed per-page headings, define a \subjectmatter macro that you can change with every subject matter shift. \documentclass{exam} \makeatletter \chead{\@subjectmatter}% Subject matter in centered header ...


4

package scrlayer-scrpage Here is a suggestion using package scrlayer-scrpage. It defines layer page styles. There you can clone the layer that inserts the headsepline. Then you can shift the layer a bit and change the line width. \documentclass{book} \usepackage[automark,headsepline=1.5pt,markcase=noupper]{scrlayer-scrpage} \clearpairofpagestyles ...


4

A quick and dirty method, using \chead (the same would work for \lhead or \rhead) and a \ifcase ...\fi conditional. \documentclass[12pt]{exam} \chead{% \ifcase\value{page} % empty test for page = 0 \or Paper Details% page=1 \or Physics% page = 2 \or Chemistry% page = 3 \or Maths% page = 4 \or Biology% page = 5 \else % Empty chead here! ...


4

This should do the trick: \documentclass[oneside]{report} \usepackage{blindtext} \usepackage[pagestyles]{titlesec} \newpagestyle{main}{\setfoot{}{}{\thepage}} \pagestyle{main} \assignpagestyle{\chapter}{main} \begin{document} \Blinddocument \end{document}


3

There are a couple of things that need to change in your code: Don't set the page layout with geometry and then add other page layout settings manually. Do one or the other. I'd suggest using and sticking with only geometry and leave out settings like this: \hoffset-2.8cm \voffset-2.3cm \setlength{\textwidth}{18cm} \setlength{\textheight}{22.5cm} You're ...


3

Since you say that you can covert all the different file types to PDF, then doing what you want isn't very difficult using the pdfpages package. As others have noted in the comments, there may be issues of margins in the source document not being sufficient for the footer, but I should think that these are solvable problems. Here's a basic method to do ...


3

Just say \lhead{}, i.e. an empty left page heading, because this is used by \leftmark{} normally, which prints a section etc. title. \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \rhead{\textsc{Department}} \lhead{}% \cfoot{\thepage} \begin{document} %\section{Objective Data} % nothing at left top when this active \subsection{Status ...


3

The change of the page from even to odd requires special setups if the order of the text etc. should be reversed. Use \fancyfoot[LE]{...} and \fancyfoot[RO]{...} with the relevant content. It should be possible to use a \ifodd\value{page}...\else...\fi approach too, but I've not tested this. Please change the \footskip (there's a warning if it should be ...


2

Do you want something like this? If you use geometry, do not set page layout dimensions manually as it will throw off the calculations. In this case geometry doesn't know you've changed \headheight so it doesn't take any account of it. The problem can be corrected by changing the dimension using geometry's facilities. Code for above sample: ...


2

Here is a solution. the command \@chapapp expand to chapter first and to appendix after the use \appendix we can use it here \renewcommand{\chaptermark}[1]{\markboth{\@chapapp{} \thechapter:\ #1}{}} \documentclass{book} \usepackage{blindtext} \usepackage{fancyhdr} \renewcommand{\chaptermark}[1]{% \markboth{\@chapapp{} \thechapter:\ #1}{}} \fancyhead{} ...


2

If I understand one can do this in two step remove \usepackage{fullpage} edit the line \usepackage[margin=1in, bottom=0.5cm, paperwidth=8.5in, paperheight=11in]{geometry} geometry provides a very easy way to change the page layout. So here I think one can type for example \usepackage[margin=1in, bottom=0.5cm, top=1cm, paperwidth=8.5in, ...


2

Redefine \chaptermark and \sectionmark outside the page style definition after using \pagstyle{fancy}. \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markright{\thesection~- ~#1}} \renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~-~ #1}{}} Code: \documentclass[12pt,a4paper,french]{book} ...


2

If you are willing to live risky, you can add the following after your title page. I cannot recommend that solution, though. It is against the design of the template. The author must have had some reasoning when coming up with that. Basically, that replaces all instances of an empty page with a plain page. All of them after you do this. ...


2

\documentclass{scrartcl} \usepackage{kantlipsum} \title{A title} \author{An author} \date{\today} \begin{document} \maketitle \begin{abstract} \kant[1] \end{abstract} \section{A section} \subsection{A subsection} \kant \end{document} If you want the abstract text itself in Sans Serif use \begin{abstract}\sffamily


2

The following may be what you want. \pagestyle{myheadings} % Select a suitable page style \usepackage{geometry} % Set page geometry parameters \geometry{a4paper,includehead,showframe, % omit 'showframe' option in real document hmargin={4cm,2.5cm},vmargin={2cm,2.5cm}} \addtolength{\topmargin}{-\headheight} \addtolength{\textheight}{\headheight} ...


2

Here is a solution. titleps's documentation One of the disavantaged of the switching mechanism is that comparing a command from, say, the top marks and the botttom marks is not trivial. This macro just makes it simpler. If you want to compare the currect \thesection with that in the top mark, write: ...


1

Here is a solution for headers you need to set \makeatletter \renewcommand{\chaptermark}[1]{\markboth{\@chapapp~\thechapter~-~ #1}{}} \makeatother For toc you need to set \makeatletter \renewcommand\cftchappresnum{\@chapapp\ } \makeatother and add after \appendix \makeatletter ...


1

LaTeX is a funny beast sometimes, since what should be a fairly simple thing can often end up more complicated than you expect. In this case, because the different parts of the document (title, abstract, headings, etc.) are constructed separately, you need to change each part separately. For some things (like the title parts) the hacky way to do this is ...


1

I don't have a bib file available, so I called \chapter*{\bibname} directly. \documentclass{book} \usepackage{showframe} \begin{document} \bgroup% make changes termporary \makeatletter \def\@makeschapterhead#1{% %\vspace*{50\p@}% \vspace*{25\p@}% {\parindent \z@ \raggedright \normalfont \interlinepenalty\@M %\Huge \bfseries ...


1

Unfortunaly there is no MWE in the question. With memoir you should use the header and footer commands of this class: \documentclass{memoir} \usepackage{blindtext} \usepackage{xcolor} \colorlet{ared}{red} \pagestyle{ruled} \makeevenhead{ruled}{\leftmark}{}{\rightmark} \makeoddhead{ruled}{\rightmark}{}{\leftmark} \makeevenfoot{ruled}{}{\thepage}{} ...


1

The package Libertine (as of the version published on february 11, 2014) provides the \useosf command, which, if used after loading the math font, sets old-style figures only for text (including headers). \documentclass[12pt]{memoir} \usepackage{textcomp} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[libertine]{newtxmath} \useosf ...



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