
私は 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}