答案1
我不知道这个方法有多优雅,但你可以尝试假下划线。你需要包括:
\usepackage[normalem]{ulem} % [normalem] prevents the package from changing the default behavior of \emph to underline.
然后\dasheduline{\hfill}
应该可以工作。\hfill
可以用您想要下划线的元素替换。其余的应该很容易安排。
答案2
像这样。
\documentclass{article}
\usepackage[headheight=80pt, includehead]{geometry} % for margins on a A4paper
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{kantlipsum}
\newbox\dashbox\setbox\dashbox\hbox{-\,}
\renewcommand{\headrule}{\makebox[\headwidth][c]{\xleaders\copy\dashbox\hfill}}
\renewcommand{\footrule}{\headrule}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\sffamily
\begin{tabular}[c]{@{}c@{}}
\includegraphics[height=3\normalbaselineskip]{example-image}
\end{tabular}\hfill
\begin{tabular}[c]{@{}l@{}}
City \\
Street \\
something
\end{tabular}
\hspace{2cm}
\begin{tabular}[c]{@{}l@{}}
City \\
Street \\
something
\end{tabular}\\[-1ex]%
\headrule\\
{\footnotesize
\begin{tabular}[c]{@{}l@{}}
tele and other info\hspace{3cm} 666 666 66 641 123 675\\
something aaaaaaaaaaaaa bbbbbbbbbbbbbbb ccccccccc
\end{tabular}%
}
}
\fancyfoot[C]{tralala tralala tralala tralala }
\begin{document}
\kant[1-3]
\end{document}