Tag Info

Hot answers tagged

5

Use \leftmark for the odd head; store the title in \mytitle and use it for the even head: \makeoddhead{mpd}{\slshape\leftmark}{}{} \makeevenhead{mpd}{}{}{\slshape\mytitle} \def\mytitle{The title}


4

The tabular isn't doing anything useful here, just use \begin{center} \includegraphics[scale=0.03]{img/original.png} \includegraphics[scale=0.03]{img/gauss2.png} \includegraphics[scale=0.03]{img/gauss5.png} De izquierda a derecha, imagen original (dendrita de una neurona de hipocampo de un cultivo transfectado con ...


4

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{center} \begin{tabular}{ l c r } \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} & \includegraphics[width=0.3\textwidth]{example-image} \\ ...


4

Add the following at the end of your preamble: \fancypagestyle{plain}{% \fancyhf{}% Clear header/footer \fancyfoot[OR]{\textbf{\thepage}}% \fancyfoot[EL]{\textbf{\thepage}}% \renewcommand{\headrulewidth}{0pt}% } Also, remove \thispagestyle{empty} after issuing the second \section.


4

In the comments the fancyhdr and scrlayer-scrpage packages have been recommended, but it's always fun to roll your own. What you need to do is to insert your table into \@oddfoot and \@even foot -- and in turn these should both be inside your own header style that you can pass to \pagestyle. Here's a fun example using the tcolorbox package to produce the ...


3

Question one: \aliaspagestyle{chapter}{HDR} Question two: You add it your self, see the \createplainmark{toc}{both}{\contentsname}, however it needs to be cleared out completely, add the following to you HDR definiton instead of the {toc} line \clearplainmark{toc} Question three: Hard to say as you do not show how you make your abstract. Always post ...


3

This solution uses a label for each section inside a tcolorbox, calling the title with \nameref*{} \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage{etoolbox}% \usepackage[many]{tcolorbox} \usepackage{fancyhdr} \usepackage{ifthen} \usepackage{lipsum} \usepackage{nameref}% \pagestyle{fancy} \makeatletter \newlength{\overhanglength} ...


3

Starred chapters (and sections) don't get a number, nor a toc entry, nor a header. Problem is, the header is not cleared. You have to do that manually using \markboth{}{}. But from your example i can see that you want a toc entry and i think also a header. You could implement that. A KOMA class provides the same command in a more advanced way. Please read ...


3

Using the idea found in Chapter title without number, the solution to your problem is to insert \renewcommand*{\sectionmarkformat}{} in the preamble (for instance after \usepackage{scrpage2}). This removes the number in the header.


3

The code \pagestyle{fancy} \fancyhf{} \rhead{Share\LaTeX} \lhead{Guides and tutorials} \rfoot{Page \thepage} should be after \begin{document} and you should remove \pagestyle{empty} % Removes page numbering as it not only removes the page numbering, but everything from fancyhdr.


2

The problem was in the style redefinition. Tex give a underfull warning when the {} blocks have no content. To fix it fill them with an non visible whitespace -> \hfill \newpagestyle{fancy}{(0pt,0pt) % Outer header line {\pagemark \hfill \headmark} % Even page header {\headmark \hfill ...


2

You instructed LaTeX to set the headmark on plain pages. If you omit that, your first problem is solved. You are using some deprecated KOMA-options making KOMA run in backwards compatibility mode. The pages you describe as falsely marked should be completely empty in the typographical sense. KOMA takes care of this. Additionally, i patched the ...


2

Use the numberless feature of titlesec. You don't need explicit. Moreover, using \flushright is wrong, as it adds vertical spacings. Also some other things have been streamlined. \documentclass[draft]{book} \usepackage[pass,showframe]{geometry} % just for the example \usepackage[table]{xcolor} \usepackage{epigraph} \usepackage{titlesec} \usepackage{type1cm} ...


2

Besides empty, the isov2 class uses three defined page styles: startpage, isotitlehead and headings: the simplest way to activate your headers/footers on every page is to \let those styles (or some of them, depending on which pages you want to keep the standard ones) to be your fancyplain style using \makeatletter \let\ps@headings\ps@fancyplain ...


2

Here's one way to go about implementing issues #1, #2, and #3. (I leave aside #4; but this is an issue that can be dealt with much later on.) \documentclass[11pt,twoside,openright]{book} % If we store the book title in a macro, we can use it in many places \newcommand{\thebooktitle}{Heat and Mass Transfer} % Fonts, encodings, languages ...


2

In order to get fancyhdr to obey your geometry settings you need to call geometry first. And to get the title page to use the same style as the rest, use \thispagestyle after \maketitle. \documentclass{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{Lecture 1} \rhead{Handout 1} \lfoot{Lecture 1} ...


2

Too long for a comment: I still don't know, what you want in your headers. You used Contents, so i guess you want the \headmark. There is absolutely no reason to set this by hand. An alternative to fancyhdr would be using the moden package scrlayer-scrpage. And why not use the corresponding KOMA class? \documentclass[10pt,a4paper, twoside]{scrreprt} ...


2

This solution provides two ways -- first with a tabular environment and second with an adjustable tcolorbox environment. \documentclass{scrbook}% \usepackage{tcolorbox}% \usepackage{colortbl}% \usepackage{xcolor}% \usepackage[utf8]{inputenc} \usepackage{blindtext}% \newcounter{musterklausur} \newlength{\kopfbreite} \setlength{\kopfbreite}{0.9\textwidth}% ...


2

Referring to the chapter/section/subsection etc. title is always a problem, as long it should be expandable, otherwise \nameref{} would do. I redefined the slightly the \chapter and \subsection commands to store the current title in a \chaptertitle or \subsectiontitle command, which is used then as input for \rohead etc. commands from scrpage2 package. Most ...


1

Here is a solution that will add a running header to all unnumbered chapters, so handle with care. It uses package etoolbox to prepend the markboth command you would do manually. Be careful, this code is bound to fail. Best to set the headers manually. Just to point that out, the right way to uppercase something is to use \MakeUppercase{<content>}. ...


1

You can get your frames to continue on the next page using the framed package and changing the definition of \problemAnswer to \newcommand{\problemAnswer}[1]{\begin{framed}#1\end{framed}} For the continuation messages you need to either shorten some of the material appearing in the footers or to put the continuation messages on a different line. One ...


1

I am not entirely sure that I understand what you want but the code below: has a page footer on EVERY page with a line and the page number on the right-hand side has your page headers except on the "first" pages Rather than using fancyhdr etc I define the page headers and footers directly. When you type \pagestyle{mine} what happens is that latex ...


1

The reasons why both the user manual and the glossaries FAQ caution against using commands like \gls in chapter or section headings are as follows: 1. Documents with a Table of Contents Consider the following example: \documentclass{book} \usepackage{glossaries} \makeglossaries \newglossaryentry{sample}{name={sample},description={an example}} ...


1

Since you have not posted a MWE I don't know what package you used to define your footer, so I used \usepackage{fancyhdr} to create one to show you how it works. \documentclass{article} \usepackage{fancyhdr} \fancyhf{} % clears the previous formatting of header and foot \renewcommand{\headrulewidth}{0pt} % erases the rule under the ...


1

I took the liberty to write up an answer, making your very large example into a minimal one. As @cgnieder stated in the comments, package scrlayer-scrpage defines an interface for defining page headers and footer; mostly compatible with scrpage2. Mostly, what does that mean? You received a warning, telling you that the command deftripstyle is deprecated. ...


1

The figure is on a float page, i.e. a page that contains only floats. You have added the package floatpag whose purpose is to be able to set the pagestyle for such pages, and by default it sets the pagestyle to headings, which is what you see. Hence, just remove \usepackage{floatpag}.


1

Converting my comment in to answer, just to close this. When you define and apply a fancy page style, you need to empty the previous values/definitions of headers and footers. This is done by issuing \fancyhf{} in the definition as \pagestyle{fancy} \fancyhf{} %% <--- here \lfoot{\textsf{www.economics-ejournal.org}} \rfoot{\thepage} ...


1

Have you tried anything on your own? Without more info on what this is supposed to be and what you've already tried it is hard to really know what you're trying to achieve. That said, have a look at the following: \documentclass[11pt,a4paper,landscape]{report} \usepackage{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyfoot{} ...



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