TransWikia.com

Setting equal formatting on all pages scrarticle

TeX - LaTeX Asked by sbuanzi on November 29, 2020

I’m trying to set the same layout on all the pages of my document, using any class of KOMA-script (e.g. scrarticle). The first page preserves the margins I set with geometry package, while starting from the second page the header is correct while text and footer are shifted down (I’m using fancyhdr); e.g. if I set showframe, the text in the first page sticks to the top margin (which I want), while in the next pages there’s a offset.
Here’s the code:

documentclass[fontsize=12pt,a4paper,parskip=true,toc=listof,bibliography=totoc]{scrartcl}


usepackage[dvinames]{xcolor}
usepackage{etoolbox}

usepackage{geometry}
geometry{paper=a4paper,truedimen=true,showframe,top=2.54cm,left=2.8cm,bottom=2.54cm,right=2.8cm,headheight=1cm,headsep=0.6cm,footnotesep=0.5575cm,textheight=24.62cm}
usepackage{graphicx}
usepackage[bookmarks=true, bookmarksopen=true, breaklinks=true,bookmarksopenlevel=1,bookmarksnumbered=true]{hyperref}

usepackage{tikz}
usetikzlibrary{calc}

usepackage[utf8]{inputenc} 
usepackage{fourier} 
usepackage[T1]{fontenc} 
usepackage{datetime} 
usepackage[scaled=.92]{helvet} 
usepackage{amsmath} 
usepackage{amssymb} 
usepackage{bm} 
usepackage[font=small,labelfont=bf]{caption}
usepackage{booktabs}
usepackage[per-mode=symbol-or-fraction]{siunitx}
usepackage{enumitem}
usepackage{subcaption} 
usepackage{float}
usepackage{pdfpages}
usepackage{verbatim}
usepackage{layout}
makeatletter
renewcommand*{lay@value}[2]{%
    [email protected]#2endcsnamerelaxrelax mm%
}
makeatother
%newcommandnotsotiny{@setfontsizenotsotiny{6.6}{7.6}}
newcommand{od}{,mathrm{d}}
usepackage{siunitx}
usepackage{stackengine}

usepackage[export]{adjustbox}
usepackage{mwe}
tikzset{boximg/.style={remember picture,red,thick,draw,inner sep=1pt,outer sep=1pt, line width=0.5mm}}
usepackage{ctable}

usepackage[a-1a]{pdfx}
parindent0pt
setlength{parskip}{1baselineskip}

urlstyle{sf}
usepackage{fancyhdr}
pagenumbering{gobble}
usepackage{microtype} 


fancypagestyle{plain}{
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}
fancyhead{} 

fancyhead[L]{includegraphics[height=0.99cm, width=7cm]{{example-image-a}}}
fancyfoot{} 
fancyfootoffset[lh]{1.026cm}

fancyfoot[C]{includegraphics[height=1.5cm, width=17cm]{{example-image-a}}}

}

pagestyle{plain}

begin{document}
    Some text
    newpage
    Some text
end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP