フロントページのタイトルと写真の配置

フロントページのタイトルと写真の配置

OpenOffice で作成したもの (添付) と同じように、LaTeX でフロントページを作成したいと考えています。つまり、大学名、論文のタイトルのヘッダーと、右上に小さな画像を配置する場所が必要です。これを最も簡単に実現する方法の例をいくつか見ることができますか?

添付の画像は表紙の上半分のみを示しており、残りは空白です。

ここに画像の説明を入力してください

答え1

パッケージを使用しますfancyhdr。最小限の例を以下に示します。

\documentclass{article}

\usepackage{fancyhdr}
\usepackage{graphicx}

\renewcommand{\headrulewidth}{0pt} % this is the line thickness under the header - 0pt for no line
\renewcommand{\footrulewidth}{0pt} % and above the footer

\pagestyle{fancy} % to apply your fancy header and footer

\lhead{University of X\\ {\small Faculty of X}}
\rhead{\includegraphics[height=35pt,keepaspectratio]{noimage}}

\setlength\headheight{40pt} % you might want to modify this number so it does not show overfull boxes, if you have bigger image or more text in the header

\begin{document}

\section*{This is the title of the thesis}
\subsection*{A study on how to make front pages with \LaTeX}

\end{document}

以下が得られます:

ここに画像の説明を入力してください

関連情報