回想録パッケージを使用してカスタムタイトルページを作成する方法

回想録パッケージを使用してカスタムタイトルページを作成する方法

おそらくこれを行う簡単な方法があると思いますが、既存のドキュメントに回想録のタイトル ページ スタイルを追加するにはどうすればよいでしょうか。このコードを試しましたが、基本的なタイトル ページが表示されます。

\documentclass[12pt,a4paper,twoside]{memoir}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{titlesec}  %needs recent version of »titlesec«
\usepackage{xcolor}


\newcommand*{\titleGM}{\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
\hspace*{0.2\textwidth}%
\rule{1pt}{\textheight}
\hspace*{0.05\textwidth}%
\parbox[b]{0.75\textwidth}{
\vbox{%
\vspace{\drop}
{\noindent\HUGE\bfseries Some\\[0.5\baselineskip]
Conundrums}\\[2\baselineskip]
{\Large\itshape Puzzles for the Mind}\\[4\baselineskip]
{\Large THE AUTHOR}\par
\vspace{0.5\textheight}
{\noindent The Publisher}\\[\baselineskip]
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}

\title{\Huge\textbf{ORTHODOX RULE OF PRAYER}}
\author{\Large\textbf{Father Thomas Moore, Michael Dykes}}
\date{\Large{\today}}

\begin{document}

\title{\Huge\textbf{ORTHODOX RULE OF PRAYER}}
\author{\Large\textbf{Father Thomas Moore, Michael Dykes}}
\date{\Large{\today}}

Towards evening, we stand before the holy icons (having lit a candle and        maybe some incense), with reverence and fear of God; we gather our thoughts, make the        Sign of the Cross, and say:

\end{document}

ありがとう!!!

答え1

ドキュメント内で\drop長さを作成して呼び出すだけです(私は、オーバーフルを防ぐためにページ スタイルを設定し、ルールの高さを変更するという、他の 2 つの小さな変更も行いました)。\titleGMempty\vbox

\documentclass[12pt,a4paper,twoside]{memoir}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{titlesec}  %needs recent version of »titlesec«
\usepackage{xcolor}

\newlength\drop
\newcommand*{\titleGM}{%
\thispagestyle{empty}
\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
\hspace*{0.2\textwidth}%
\rule{1pt}{\dimexpr\textheight-28pt\relax}%
\hspace*{0.05\textwidth}%
\parbox[b]{0.75\textwidth}{
\vbox{%
\vspace{\drop}
{\noindent\HUGE\bfseries Some\\[0.5\baselineskip]
Conundrums}\\[2\baselineskip]
{\Large\itshape Puzzles for the Mind}\\[.37\baselineskip]
{\Large THE AUTHOR}\par
\vspace{0.5\textheight}
{\noindent The Publisher}\\[\baselineskip]
}% end of vbox
}% end of parbox
}% end of hbox
\vfill
\null
\endgroup}

\title{\Huge\textbf{ORTHODOX RULE OF PRAYER}}
\author{\Large\textbf{Father Thomas Moore, Michael Dykes}}
\date{\Large{\today}}

\begin{document}

\titleGM

Towards evening, we stand before the holy icons (having lit a candle and        maybe some incense), with reverence and fear of God; we gather our thoughts, make the        Sign of the Cross, and say:

\end{document}

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

\author標準コマンド、に含まれる情報を自動的に使用するには\title、いくつかの変更が必要です。

\documentclass[12pt,a4paper,twoside]{memoir}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{titlesec}  %needs recent version of »titlesec«
\usepackage{xcolor}

\makeatletter
\newlength\drop
\newcommand*{\titleGM}{%
\thispagestyle{empty}
\begingroup% Gentle Madness
\drop = 0.1\textheight
\vspace*{\baselineskip}
\vfill
\hbox{%
  \hspace*{0.2\textwidth}%
  \rule{1pt}{\dimexpr\textheight-28pt\relax}%
  \hspace*{0.05\textwidth}% 
  \parbox[b]{0.75\textwidth}{%
    \vbox{%
      \vspace{\drop}
      {\Huge\bfseries\raggedright\@title\par}\vskip2.37\baselineskip
      {\Large\bfseries\@author\par}
      \vspace{0.5\textheight}
    }% end of vbox
  }% end of parbox
}% end of hbox
\vfill
\null
\endgroup}
\makeatother

\title{ORTHODOX RULE OF PRAYER}
\author{Father Thomas Moore, Michael Dykes}

\begin{document}

\titleGM

Towards evening, we stand before the holy icons (having lit a candle and        maybe some incense), with reverence and fear of God; we gather our thoughts, make the        Sign of the Cross, and say:

\end{document}

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

関連情報