自訂頁首和頁尾未出現

自訂頁首和頁尾未出現

我在 Lyx 中的新文件上使用自訂頁首/頁尾模組,但頁首和頁尾甚至沒有出現在文件中。

我在舊文件中使用了這個模組,它運作得很好。但是,即使設定了所有相同的設定(包括設定為精美的頁面佈局),頁首和頁尾在新版本中也不可見。

文件之間的唯一區別是新文件中放置了自訂標題腳本(%Old Code 之前的所有內容)。也許 Graphicx 或 svgnames 套件與客戶頁首/頁尾模組衝突,我不確定。

非常感謝您為解決此問題提供的任何幫助。

謝謝

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stylish Colored Title Page 
% LaTeX Template
% Version 1.0 (27/12/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Peter Wilson ([email protected])
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
% 
% Instructions for using this template:
% This title page compiles as is. If you wish to include this title page in 
% another document, you will need to copy everything before 
% \begin{document} into the preamble of your document. The title page is
% then included using \titleBC within your document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%---------------------------------------------------------------------------
-------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%---------------------------------------------------------------------------

\usepackage[svgnames]{xcolor}% Required to specify font color

\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}} % Generic publisher logo

\usepackage{graphicx}% Required for box manipulation

%---------------------------------------------------------------------------
%   TITLE PAGE
%---------------------------------------------------------------------------

\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 
degrees
\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 
degrees

\newcommand*{\titleBC}{\begingroup % Create the command for including the 
title page in the document
\centering % Center all text

\def\CP{\textit{\Huge Building Brands By Building Links}} % Title

 % Set the width of the curly brackets to the width of the title
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}
{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket
\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title
{\color{RosyBrown}\Large AN ILLUSTRATED COLLECTION} \\ % Tagline or further 
description
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}
{\rotlft{$\}$}}} % Print bottom curly bracket

\vfill % Whitespace between the title and the author name

{\Large\textbf{Author}}\\ % Author name

\vfill % Whitespace between the author name and the publisher logo

\plogo\\[0.5\baselineskip] % Publisher logo
2012 % Year published

\endgroup}

%Old Code
\date{}
\usepackage{wallpaper}
\CenterWallPaper{1}{PDF_Background_1.png} 

相關內容