Page LayoutMultiline footer

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Yeth
Posts: 6
Joined: Mon Dec 30, 2019 12:37 pm

Multiline footer

Post by Yeth »

Hello,
I would like to have a multi-line footer.
I succeeded to make the second part of the footer but I want to add another part above this.
I tried to look for an answer but I found nothing.
Please, if anybody can help me, he's more than welcome.

Yeth
Attachments
footer.PNG
footer.PNG (2.87 KiB) Viewed 3679 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Multiline footer

Post by Ijon Tichy »

This hardly depends on the used class. Depending on the used class you have to use a package like scrlayer-scrpage or fancyhdr. Some classes may also provide their own page style interface. So if you need more help, please show us a Infominimal working example.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Yeth
Posts: 6
Joined: Mon Dec 30, 2019 12:37 pm

Multiline footer

Post by Yeth »

Thank for your reply.
This is the beginning of my document.


\documentclass[
11pt,
%oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side
english,
onehalfspacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
%draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
toctotoc, % Uncomment to add the main table of contents to the table of contents
parskip, % Uncomment to add space between paragraphs
nohyperref, % Uncomment to not load the hyperref package
headsepline, % Uncomment to get a line under the header
%chapterinoneline, % Uncomment to place the chapter title next to the number on one line
consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{article} % The class file specifying the document structure


\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters

\usepackage{arial}


\usepackage{textcomp}

\usepackage{amsmath}


\usepackage[backend=biber
,natbib=true
,style=numeric
,sorting=none
,giveninits=true
,maxcitenames=1
]{biblatex} % Use the bibtex backend with numeric order style


\usepackage{float}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{caption}

\usepackage{lmodern}
\usepackage{xcolor}
\definecolor{tiffanyblue}{rgb}{0.04, 0.73, 0.71}
\definecolor{white}{rgb}{1.0, 1.0, 1.0}

\usepackage[hmargin=2cm,vmargin=2cm]{geometry}

\geometry{a4paper,
top=1in,
bottom=1in,
left=1in,
right=1in,
headheight=14.5pt, % the default is too short
heightrounded, % avoids the need of a flexible baselineskip
}

\usepackage{multicol}

\AtEndDocument{\label{lastpage}}
\usepackage{fancyhdr}

\fancypagestyle{thetitlepage}{
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\fancyfoot[C]{\includegraphics[scale=0.12]{Logo2.png}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}


\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
\fancyhf{} % clear all fields
\fancyhead[R]{\includegraphics[scale=1]{Logo.png}}%
\fancyfoot[L]{\thepage/\pageref{lastpage}}
\fancyfoot[C]{Livrable }
\fancyfoot[R]{\textbf{\color{violet}{Confidential}}}

\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.4pt}%
\fancyhf{}% clear all fields
\fancyhead[R]{\includegraphics[scale=1]{Logo.png}}%
\fancyfoot[L]{\thepage/\pageref{lastpage}}
\fancyfoot[C]{Livrable}
\fancyfoot[R]{\textbf{\color{violet}{Confidential}}}}


\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\setlength\textfloatsep{8pt plus 0pt minus 2pt}
\setlength\intextsep{8pt plus 0pt minus 2pt}

\usepackage{color} %May be necessary if you want to color links

\usepackage{hyperref}
%\hypersetup{
%colorlinks=true, %set true if you want colored links
%linktoc=all, %set to all if you want both sections and subsections linked
%linkcolor=blue, %choose some color if you want links to stand out
%}

\usepackage{titlesec}
\titleformat*{\section}{\textcolor{tiffanyblue}}
\titleformat{\section}
{\color{tiffanyblue}\Large}
{\color{tiffanyblue}\thesection}{1em}{}

\renewcommand*\familydefault{\sfdefault}
\usepackage{cuted}

\begin{document}
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Multiline footer

Post by Ijon Tichy »

This is neither minimal nor complete and there are mistakes like loading hyperref before titlesec.→https://latex.org/forum/viewtopic.php?p=111553#p111553

However, read the documentation of the used page style package to learn how to change the page header or footer (see, e.g., the package links in my previous comment or—better—read he TeX distribution manual to find out how to find the installed manual).
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Yeth
Posts: 6
Joined: Mon Dec 30, 2019 12:37 pm

Multiline footer

Post by Yeth »

I don't know what minimal means, so I just copied the beginning of the code.
I'm trying to change a template from Word to Latex, so I'm trying to be the most faithful.
Thank you for your help.

Yeth
Post Reply