我希望能够在 fancyhdr 阅读器中除第一页之外的所有其他页面上将文本环绕在徽标周围。
正如您在屏幕截图中看到的,徽标上有文字。我不想增加标题的高度,我想让文字换行。
代码:
主文本
\documentclass[a4paper,11pt,twoside]{report}
\input{packages} % Include packeges
\input{Preamble} % Include custom commands
\newcounter{sprog}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set language for appendix
\setcounter{sprog}{1} % 1 for danish, 2 for english
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definere info about yourself
\newcommand{\name}{}
\newcommand{\studyline}{}
\newcommand{\semester}{}
\newcommand{\appendixnumber}{FRxxx-xx} % remmember to add -English for english appendix
\newcommand{\definetitle}{
\Sprog{Opstilling til XXX}{Candidacy for XXX}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beginning of document
\begin{document}
% Title and info
\createtitle
\vspace{-1cm}
% Nice picture of yourself
\begin{wrapfigure}{R}{0.4\textwidth}
\includegraphics[width=0.4\textwidth]{images/Picture1.png}
\caption{xxxx}
\vspace{-1cm}
\end{wrapfigure}\leavevmode
% Body text
\section*{English summary}
\blindtext
\section*{Motivation}
\Blindtext
\Blindtext
\Blindtext
\subsection*{Kompetencer}
\Blindtext
\Blindtext
\Blindtext
\subsection*{Sub-title}
\Blindtext
\end{document}
包.tex:
% ALLE PAKKER TIL BRUG I DAGSORDENEN
\usepackage[danish]{babel} % danske overskrifter
\usepackage[utf8]{inputenc} % Skal passe til editorens indstillinger
\usepackage[sfdefault]{roboto}
\usepackage[T1]{fontenc} % fonte (output)
\usepackage{lmodern} % vektor fonte
\usepackage{graphicx} % indsættelse af billeder
\usepackage{subfigure}
\usepackage{a4wide}
\usepackage{xcolor}
\usepackage{lastpage}
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=blue}
\usepackage{longtable}
\usepackage{sectsty}
\usepackage{titlesec}
\usepackage{lipsum}
\usepackage{wrapfig}
序言.tex
\usepackage{xstring}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Commandoer brugt til opsætning
\newcommand{\Sprog}[2]{\ifnum\value{sprog} = 1 #1\else #2\fi}
\definecolor{PFBlue}{cmyk}{100,0,0,0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page layout
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.7em}
\sectionfont{\color{PFBlue}}
\titlespacing*{\section}{0pt}{1em}{-0.75em}
\titlespacing*{\subsection}{0pt}{0em}{-0.75em}
\textwidth = 470pt
\addtolength{\topmargin}{-2cm}
%\marginparwidth = 86pt
\hoffset = -25pt
\voffset= -15pt
\textheight = 23cm %23cm
\headheight = 156pt
\headsep = -65pt %-65pt
\footskip = 50pt
\usepackage{fancyhdr}
%\usepackage{showframe}
\usepackage{blindtext}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Opstilling med billede
\newcommand{\createtitle}{
\Huge \definetitle \normalsize \\
\textcolor{PFBlue}{\rule{13.5cm}{2pt}}
\textbf{\Sprog{Navn:}{Name:} \name} \\
\textbf{\Sprog{Studieretning:}{Study Line:}} \studyline \\
\textbf{Semester: \semester}
}
\renewcommand\labelenumi{\bfseries\theenumi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header og footer
\fancyhf{} % tom header/footer
%\Sprog{Bilagsnummer: }{Appendix: } \appendixnumber
\fancyhfoffset{71pt}
\fancyhead[L]{
\hspace{71pt}
\vspace{100pt}
\Sprog{Bilagsnr.:}{Appendix:} \appendixnumber
}
\fancyhead[R]{\includegraphics[width=5.25cm]{images/logo_rgb.png}}
\fancyhead[CE]{}
\fancyfoot[FC]{\Sprog{Side}{Page} \thepage{} \Sprog{af}{of} \pageref*{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}
\makeindex
%\setlength\parindent{0pt}
抱歉,我无法提供一个更简单的例子。希望您能有所帮助。
我试图寻找类似的问题但无法将它们应用到我的问题中。
提前谢谢您!