회고록 패키지를 사용하여 사용자 정의 제목 페이지를 만드는 방법

회고록 패키지를 사용하여 사용자 정의 제목 페이지를 만드는 방법

아마도 쉬운 방법이 있을 것입니다. 하지만 기존 문서에 회고록 제목 페이지 스타일을 추가하려면 어떻게 해야 합니까? 이 코드를 시도했지만 여전히 기본 제목 페이지가 표시됩니다.

\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호출하기 만 하면 됩니다 (다른 두 가지 사소한 변경 작업을 수행하여 페이지 스타일을 규칙의 높이 변경으로 설정하여 초과를 방지함 ).\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}

여기에 이미지 설명을 입력하세요

관련 정보