
챕터 이름이 포함된 프레임을 만들기 위해 titlesec을 조작하고 있습니다. 장 이름(예제에서는 "Chapter Foo")을 이동하는 방법을 알 수 없습니다.
MWE는 다음과 같습니다.
\documentclass[a4paper,book,openany,twocolumn]{memoir}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{titlesec}
\titleformat{\chapter}[frame]
{\normalfont\huge\bfseries}{\thechapter}{5em}{\Huge}
\titlespacing*{\chapter}{0pt}{-40pt}{15pt}
\begin{document}
\chapter*{Chapter Foo}
\lipsum
\lipsum[3-6]
\end{document}
이것이 내가 가진 것입니다:
이것이 내가 원하는거야:
누군가가 도울 수 있기를 바랍니다!
답변1
댓글에서 언급했듯이,titlesec and memoir
완전히 호환되지 않습니다. 에 내장된 명령을 사용하여 memoir
스타일을 쉽게 정의할 수 있습니다. 간단한 예(필요에 따라 필요한 조정을 수행하십시오):
\documentclass[a4paper,openany,twocolumn]{memoir}
\usepackage{lipsum}
\makeatletter
\makechapterstyle{Nordestgaard}{%
\renewcommand*{\printchaptername}{}
\renewcommand*{\printchapternum}{}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\bfseries}
\renewcommand*{\printchaptertitle}[1]{%
\fbox{%
\begin{minipage}[b][5cm][b]{\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}
\raggedright\chaptitlefont\strut##1\par\smallskip%
\end{minipage}}}
\setlength\afterchapskip{15pt}
\setlength\beforechapskip{-40pt}
}
\makeatother
\chapterstyle{Nordestgaard}
\begin{document}
\chapter{Test chapter}
\lipsum[1-6]
\end{document}