如何同時使用 fancyhdr 和 \begin{titlepage}

如何同時使用 fancyhdr 和 \begin{titlepage}

我正在用 Latex 寫一篇論文,並嘗試使用套件創建一個標題頁fancyhdr。然而,右標題斯威本科技大學(砂拉越校區)拒絕出現在扉頁上。有人可以幫我解決這個問題嗎?下面是程式碼和預設標題頁。

網址=http://ge.tt/2CwKfBZ2

  \begin{titlepage}
  \thispagestyle{titlepage}
    \begin{center}
        \vspace*{1cm}

        \Large
        \textbf{Swinburne University of Technology \\Sarawak Campus\\ Faculty of Engineering, Computing \& Sciences}

        \vspace{0.5cm}
        \Large
        Modelling of an Involute Spur Gear via Finite Element Method


        \vspace{1.5cm}

        Bachelor of Engineering\\
        (Mechanical)

        \vspace{0.8cm}

        \includegraphics[width=0.6\textwidth]{Swinburne}

        \Large
        Name\\
        June/2016

    \end{center}
\end{titlepage}

答案1

同意約翰內斯_B那個使用fancyhdr可能不是這裡的方法,除非您希望大學名稱標題出現在文件的每一頁上。相反,我使用手動方法來建立標題,用於\raggedleft右對齊和\rule

\documentclass{report}
\usepackage{graphicx}
\begin{document}
  \begin{titlepage}
    \begin{center}
        {\raggedleft\textit{Swinburne University of Technology (Sarawak Campus)}\\}
        \rule{\textwidth}{0.5pt}

        \vspace*{1cm}

        \Large
        \textbf{Swinburne University of Technology \\Sarawak Campus\\ Faculty of Engineering, Computing \& Sciences}

        \vspace{\fill}

        \Large
        Modelling of an Involute Spur Gear via Finite Element Method

        \vspace{\fill}

        Bachelor of Engineering\\
        (Mechanical)

        \vspace{1cm}

        \includegraphics[width=0.6\textwidth]{Swinburne}

        \vspace{\fill}

        \Large
        Name

        \vspace{\fill}

        June/2016
    \end{center}
\end{titlepage}
\end{document}

範例文件產生的標題頁

相關內容