-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-picture5.tex
76 lines (60 loc) · 2.15 KB
/
with-picture5.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\documentclass{article}
\usepackage[headheight=45pt, includehead]{geometry} % for margins on a A4paper
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{kantlipsum}
\usepackage[colorlinks]{hyperref}
\newbox\dashbox\setbox\dashbox\hbox{-\,}
\renewcommand{\headrule}{\smash{\makebox[\headwidth][c]{\xleaders\copy\dashbox\hfill-}}}
\fancyhfoffset{1cm}
\fancypagestyle{fancy}{
\fancyhf{}
\fancyhead[L]{%
\fancyhdrbox{\includegraphics[height=3\normalbaselineskip]{example-image}}
\fontsize{8}{9}\selectfont
\fancyhdrbox{%
Journal on Teaching Engineering, 1:1 (2015) 5-15 \\
ISSN XXX-XXXX \\
DOI: \href{https://doi.org/10.24840/2183-6493...}{10.24840/2183-6493\ldots}%
}}
\fancyhead[R]{\fontsize{8}{9}\selectfont%
\fancyhdrbox[cr]{%
Received: XX October, XXXX \\
Revised: XX November, XXXX \\
Published: XX December, XXXX
}}
\fancyfoot[R]{
\fontsize{8}{8}\selectfont
\textbf{\thepage}}}
\begin{document}
\pagestyle{fancy}
{\parskip=4pt \parindent=0pt
This is an example of a multi-line header with an image, and three lines of text. The image and the text are vertically center-aligned with \verb|\fancyhdrbox|.
The line under the header is a dashed line, \verb|\headline| is redefined to achieve this.
Both the header and the footer are offset 1cm into the margin by the \verb|\fancyhfoffset| command.}
\bigskip
This is the code for the header:
\begin{verbatim}
\newbox\dashbox\setbox\dashbox\hbox{-\,}
\renewcommand{\headrule}{\smash{\makebox[\headwidth][c]{\xleaders\copy\dashbox\hfill-}}}
\fancyhfoffset{1cm}
\fancypagestyle{fancy}{
\fancyhf{}
\fancyhead[L]{%
\fancyhdrbox{\includegraphics[height=3\normalbaselineskip]{example-image}}
\fontsize{8}{9}\selectfont
\fancyhdrbox{%
Journal on Teaching Engineering, 1:1 (2015) 5-15 \\
ISSN XXX-XXXX \\
DOI: \href{https://doi.org/10.24840/2183-6493...}{10.24840/2183-6493\ldots}%
}}
\fancyhead[R]{\fontsize{8}{9}\selectfont%
\fancyhdrbox[cr]{%
Received: XX October, XXXX \\
Revised: XX November, XXXX \\
Published: XX December, XXXX
}}
\end{verbatim}
\bigskip
\kant[1]
\end{document}