# Tag Info

0

Instead of fancyhdr you can use Titleps \documentclass{article} \usepackage{titleps} \usepackage{lipsum} % syntax \newpagestyle{myfirstpage}[]{ %between [] after the pagestyle name you can insert \scshape for example {as long as you have a font that supports small caps!} \sethead[〈even-left〉][〈even-center〉][〈even-right〉] {〈odd-left〉}{〈odd-center〉}...

1

Here is a way from my old answer here: \documentclass{article} \usepackage{lipsum} \usepackage{fancyhdr} %\fancyhead[CO,CE]{} \fancyhead[R]{\scshape\leftmark} \let\oldsection\section \makeatletter \def\section{% \@ifstar{\@Starred}{\@nonStarred}% } \def\@Starred{% \@ifnextchar[% {\GenericWarning{}{Warning: A starred section can not have parameters. I am ...

2

Normally TeX can't use data like the number of pages on the first pages because LaTeX can't know yet how many pages there will be. But there is a trick: You can insert a reference to a PDF XObject on every page where the number of pages should be. A XObject is a separate object in a PDF file which can be referenced out of order. Then you can fill this ...

1

A design that comes close using KOMA-script. As others already said, you should use a class providing chapters if you want chapters. If you want a description under a \section, use \sectiondescription before the \section. \documentclass[]{scrartcl} \usepackage[T1]{fontenc} \usepackage{lmodern} \makeatletter \let\KOMA@sectionlinesformat\sectionlinesformat ...

1


0

Don't use the low-level \firstmark with latex. In latex the mark is split in two parts and you access the left and right part with \leftmark and \rightmark. Marks should be used only in the header and footer and not in the text body as they are reliable only when a page is shipped out. \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \...

0

You can nest \parbox, \raisebox, \makebox to get what ever placement you want: \documentclass{article} \usepackage[paperwidth=36in, paperheight=27in, margin=2in]{geometry} \usepackage{multicol} \columnsep=100pt \columnseprule=3pt \usepackage{graphicx} \usepackage{lipsum} % Footer \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \...

8

give geometry the chance to know the headheight you are using by setting it with the geometry options: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[includeheadfoot, margin=1in,headheight=67pt]{geometry} \usepackage{hyperref} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{lastpage} \setcounter{...

3

You can use a different page style on page one with \thispagestyle: \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \lfoot{\thepage\ -- next foot} \fancypagestyle{firstpage}{% \fancyhf{}\lfoot{first foot}} \usepackage{lipsum} \begin{document} \thispagestyle{firstpage} \lipsum \...

0

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 headrule to the headers. To get rid of them you need to redefine style fancy like this: \pagestyle{fancy} \fancyhf{} % <==========================================...

0

I found the solution, adding ifthen package. Then I don't have the twoside problem. \documentclass[12pt, a4paper]{report} \usepackage[a4paper, left=3cm, right=2.5cm, top=3cm, bottom=2.5cm]{geometry} \renewcommand{\baselinestretch}{1.5} \usepackage{fancyhdr} \usepackage{lipsum} \usepackage{ifthen} % <============== \pagestyle{fancy} \fancyhf{} \setlength{...

2

report is by default oneside. Add the twoside option: \documentclass[12pt, a4paper,twoside]{report} %<--- \usepackage[a4paper, left=3cm, right=2.5cm, top=3cm, bottom=2.5cm]{geometry} \renewcommand{\baselinestretch}{1.5} \usepackage{fancyhdr} \usepackage{lipsum} \pagestyle{fancy} \fancyhf{} \setlength{\headheight}{16pt} \fancyhead[LE,LO]{\leftmark} \...

1

\f@ncyolf is an internal macro that is redefined when you change the footer via \lfoot. If you use this macro inside the footer text, you get a recursive definition in the end, which will make TeX go into a loop until it dies in a stack overflow. What you can do is to define a global macro (\myfootertext in the example) for the basis text of your footer, ...

1

Here is a solution with titleps: I redefine the plain style as the empty style if a boolean all plain is false, and as a style with the page number on the top right corner of the page, and I define a ruledplain style, which adds a head rule. In addition, I load the emptypage package, which removes all footers and headers from empty pages. \RequirePackage{...

4

Welcome to TeX.SE! You can include the tikzpicture at the beginning of the document using the overlay option to ensure it doesn't take any space. From there, it can be appropriately shifted so that (for instance) the top-left corner of the green rectangle coincides with the top-left corner of the page. The code would be a bit more natural if you had given ...

Top 50 recent answers are included