Theses, Books, Title pages ⇒ Add a rule at the bottom of the pages
Add a rule at the bottom of the pages
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Add a rule at the bottom of the pages
perhaps show what you tried.Ben_85 wrote:I've tried with fancyhdr package
Please post the error messages (and the code).Ben_85 wrote:but I get some errors related to the template
Stefan
Add a rule at the bottom of the pages
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{1pt}and he error message is
''Class MastersDoctoralThesis Error: Package `fancyhdr' is incompatible(MastersDoctoralThesis) with this class. \usepackage{fancyhdr}''
After that I've thought that maybe fancyhdr package doesn't accept only a rule, so I've tried to put more charateristics of the package from here
[url][https://es.sharelatex.com/learn/Headers_and_footers[/url]
in order to find the error, but everytime i Ggt the same.
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Add a rule at the bottom of the pages
scrlayer-scrpage, that's used in the template.Stefan
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add a rule at the bottom of the pages
Add a rule at the bottom of the pages
\RequirePackage[markcase=used]{scrlayer-scrpage}
\providepairofpagestyles{thesisSimple}{%
\clearpairofpagestyles%
\automark[chapter]{chapter}
\ihead{\headmark}% Inner header
\ohead[\pagemark]{\pagemark}% Outer header
}
\ifoot{}% Inner footer
\ofoot{}% Outer footer
\pagestyle{thesisSimple}
\providepairofpagestyles[thesisSimple]{thesis}{%
\automark*[section]{}%
}
\providepairofpagestyles[thesisSimple]{review}{%
\ofoot[\shorttitle/\authorname]{\shorttitle/\authorname}
\ifoot[\today]{\today}
}
\pagestyle{thesis}
\ifbool{headsepline}{\KOMAoption{headsepline}{true}}{}
\PreventPackageFromLoading[\ClassError{\classname}{Package `fancyhdr' is
incompatible\MessageBreak with this class}{The pagesyles are defined
using package `scrlayer-scrpage', please consult the\MessageBreak
KOMA-script documentation for details.}]{fancyhdr}And I get a footer but without the rule, which is what I want.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add a rule at the bottom of the pages
Add a rule at the bottom of the pages
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add a rule at the bottom of the pages
footsepline right after headsepline.- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Add a rule at the bottom of the pages
how does he add this option within the template, within the document? I did not check it.
Ben: not to change a class because of licensing is one thing. Nobody can say don't do it on your own computer.
\renewcommand may do it. Perhaps Johannes knows an option here or a macro to redefine.Stefan