8
votes
Accepted
How to use true/false inside definitions?
The two constructs aren't equivalent.
With
\if@mybool
\def\ps@myps{...T...}%
\else
\def\ps@myps{...F...}%
\fi
you test \if@mybool and define \ps@myps according to its truth value. Changing the ...
6
votes
Accepted
How to insert centered image into drawing?
\documentclass{report}
\pagestyle{empty}
\usepackage[a3paper, landscape]{geometry}
\usepackage{circuitikz}
\usepackage{graphicx}
\begin{document}
\begin{tikzpicture}[overlay, remember picture]
...
5
votes
Apply empty style to the entire bibliography
I would just separate the heading from the bibliography and put your page style commands in between:
\documentclass{memoir}
\usepackage[style=ieee, citestyle=numeric-comp, backrefstyle=none]{biblatex}...
4
votes
Accepted
How can I copy a specific page design from an existing book?
I am running out of time, but here is a beginning and others are invited to work on it:
\documentclass{book}
\usepackage{tikz,tikzpagenodes}
\usepackage{lipsum}
\begin{document}
\chapter{ROMA ...
4
votes
Accepted
Probably a copyrighted question...about LaTeX Companion layout
The A4 page size is 297 by 210 mm (approximately 11 by 8 3/4 inches) so the Companion page is smaller than A4, as one might expect. memoir provides facilities for setting the page size and text size/...
4
votes
Accepted
Fancyhdr not working for articles more than 10 pages long
Use \ifnum to compare numbers:
\documentclass{article}
\usepackage{lipsum}
\usepackage{lastpage,refcount}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\...
3
votes
Accepted
Trigger a newgeometry starting at a certain page
Set your page margins according to the requirements for the bulk of your document. In your case, this would be
\usepackage[
% https://css.paperplaza.net/conferences/support/page.php
letterpaper,
...
3
votes
Accepted
What are the parameters of \newpagestyle?
Here is an example page (odd page 3) which should explain the six parameters:
\documentclass[a5paper]{article}
\usepackage{titlesec}
\newpagestyle{main}{
\sethead[A][B][C]% even
{D}{E}{F}% ...
3
votes
Accepted
Apply empty style to the entire bibliography
This might be regarded as a fault with the standard bibliography environment in biblatex. In an article class what you are asking is no really appropriate as the bibliography is not designed to start ...
3
votes
Accepted
How do I adjust the position of a page number on embedded pdf pages?
Create a new page style that would identify the location of the page number for the imported pages. Below I've defined the importedpages page style thanks to fancyhdr:
\documentclass{article}
\...
3
votes
Accepted
How to break the bottom margin?
xcoffins is a package that emulates a layout program. You put your content into boxes and stitch them together in various ways, adding vertical and horizontal offsets as needed.
Then write the result, ...
3
votes
Accepted
\thispagestyle not working with \cleardoubleoddpage
The KOMA-Script class uses option cleardoublepage=empty by default. Therefore blank pages inserted by \cleardoublepage or \cleardoubleoddpage etc. get page style empty.
You can change this behaviour ...
3
votes
Accepted
confused about setting header and footer information?
Use the package fancyhdr. The plain TeX/LaTeX commands are rather confusing (as you found out).
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[L]{\leftmark}
\fancyhead[R]{...
3
votes
Fancyhdr not working for articles more than 10 pages long
While there's an accepted answer on this, there are a couple things worth nothing.
Conditionals in (La)TeX
This is a big source of confusion for people, given the profusion of \ifXXX commands in TeX.
...
3
votes
Accepted
How to change footskip in koma-script with scrlayer-scrpage pagestyle?
\enlargefirstpage and the pseudolength firstfootvpos (shown in the picture in the question) are provided by class scrlttr2 and package scrletter. They are not relevant with scrreprt.
As you mentioned, ...
2
votes
Force page style on all pages
You can use pagestyle fancyplain instead fancy to get the same header and footer for plain and fancy pages. If there should be a headrule on plain pages too, redefine \plainheadrulewidth.
Example:
\...
2
votes
Accepted
No header on first page of chapter
You specify that the plain pages should contain the \headmark as well by calling \ihead[...]{...} (the optional argument is the stuff that goes into plain. So if you don't want that just leave that ...
2
votes
Accepted
After \cfoot command every page is getting the same footer despite of specifying \thispagestyle
Because you are using a font most of us do not have we can not run your given mwe. If the font is not the issue please create in future an mwe without your special font and use a standard font as I ...
2
votes
Accepted
Break line of long header with pagestyle fancy
With the help of a minipage:
\documentclass[a4paper,12pt]{book}
%--------------------- General Packages ------------------------
\usepackage[english]{babel} % Language of the document
\usepackage{...
2
votes
Accepted
Memoir: Switch left-right margins
Of course there is. Read chapter 2 in the documentation (> texdoc memoir).
\documentclass{memoir}
\usepackage{lipsum}
\setlrmargins{2in}{1in}{*}
\checkandfixthelayout
\begin{document}
\lipsum
\...
2
votes
Last Section appearing on top with usage of pagestyle fancy
Well, I'm not sure I understand you right:
It seems you want to get rid of the printed section name in header with style fancy ...
Style fancy is predefined and adds the section name and an ...
2
votes
Accepted
Starting a section in a new page with "plain"-style with `amsart'
What happens is that \thispagestyle{plain} is processed when TeX is still typesetting page 1 and, indeed, you get pagestyle plain in the first page. Only after having processed the \section command ...
2
votes
Accepted
"\chapterpagestyle{plain}" does not work
\renewcommand*{\chapterpagestyle}{plain} works fine. You simply have redefined the plain style to put the page number in the header.
Change your page style definition to
\clearpairofpagestyles
\...
2
votes
Beamer: Generating references w/ A4 page style
Following section "21.2 Creating Handouts Using the Article Mode" starting on page 209 of the beamer manual, you can create the following three separate files:
1: main.tex
\begin{filecontents}{\...
2
votes
Set pagestyle on non-chapter pages in book class
For (my) convenience I added the package kantlipsum
to test more pages. More important also added a new pagestyle to put the chapter name in all the headers. The headers now appear on both chapter ...
2
votes
Accepted
After \patchcmd \thispagestyle{empty} sets the word "plain" in upper left corner on parts page in scrbook
You're replacing \thispagestyle with \parthook\thispagestyle{empty}, which cannot work, because the original argument to `\thispagestyle remains in place. You might patch with
\parthook\@firstoftwo{\...
2
votes
Accepted
How do I adjust the page size such that I can fit a large header and footer into my page?
I made some changes to the fancy header definitions but mostly to the implementation of the geometry package.
To get back the default geometry on the second page is not an easy task if you don't do ...
2
votes
Accepted
Bibliography header inconsistency with my page style using a memoir class
Under oneside you should use \rightmark as this is what most header data providers only write to under oneside.
For the added question:
Not many of the page styles have a oneside and a twoside variant....
2
votes
Accepted
Omit \headmark in table of contents
\headmark is empty on the first page of each normal chapter in your MWE (using open=right), because \chapter sets the left mark and cleans up the right mark. Therefore the first right mark on an odd ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pagestyle × 110header-footer × 35
fancyhdr × 32
page-numbering × 18
koma-script × 11
table-of-contents × 8
bibliographies × 7
footer × 7
margins × 6
memoir × 6
geometry × 5
sectioning × 4
numbering × 4
scrbook × 4
scrlayer-scrpage × 4
biblatex × 3
floats × 3
chapters × 3
books × 3
number × 3
formatting × 2
titles × 2
tikz-styles × 2
titlesec × 2
indexing × 2