2番目の図表リストのタイトルを変更する方法

2番目の図表リストのタイトルを変更する方法

私の文書では、本文に含まれる図の図表一覧を用意しています。これは基本的に計画どおりに機能しています。ただし、付録に表示される図の図表一覧も別途用意する必要があります。これらの付録は両方とも、最初のページでは「[付録] 図表一覧」、以降の各ページでは「[付録] 図表一覧 (続き)」とラベル付けする必要があります。

見出しを変更するために、スタイル ファイルにコマンドが入力されています。

\newcommand\listfigurename{LIST OF FIGURES}
\newcommand\listfigurecont{LIST OF FIGURES (Continued)}

キャプション パッケージを使用して、本文と付録の図が同じリストに表示される問題を改善しようとしました。

\DeclareCaptionType{myfigure}[Figure]

次に、付録の数字を次のように入力します。

\begin{myfigure}[htpb]
\centering
\psfragscanon
\psfrag{Batman}[][]{Primary}
\psfrag{Roof Disp.}[][]{$Roof Disp. (in)$}
\psfrag{Roof Acc.}[][]{$Roof Acc. (g)$}
\psfrag{Robin}[][]{Secondary}
\psfrag{Time (s)}[][]{$Time (s)$}
\includegraphics[width=0.75\textwidth]{RDCHY034.eps}
\caption{Mean roof displacement response, Chi Chi CHY034 motion, founded on dense sand.}
\vspace{0.3cm}
\includegraphics[width=0.75\textwidth]{RACHY034.eps}
\caption{Mean roof acceleration response, Chi Chi CHY034 motion, founded on dense sand.}
\end{myfigure}

これらの数字は良さそうです。リストのタイトル以外はすべて設定されています。

図と表に使用したコードは次のとおりです。

\clearpage
\tableofcontents
\clearpage
\listoffigures 
\clearpage
\listoftables
\clearpage
\renewcommand\listfigurename{LIST OF APPENDIX FIGURES}
\renewcommand\listfigurecont{LIST OF APPENDIX FIGURES (Continued)}
\listofmyfigures 
%\renewcommand\listfigurename{LIST OF APPENDIX FIGURES}
%\renewcommand\listfigurecont{LIST OF APPENDIX FIGURES (Continued)}
\clearpage

結果はちょっと奇妙です。付録の図が 1 ページしかない場合、タイトルは問題なく「付録の図の一覧」となります。付録の図が 1 ページ以上ある場合、最初のページは「Myfigures の一覧」となり、中間のページは正しく「付録の図の一覧 (続き)」となり、最後のページは「表の一覧 (続き)」となります。

いろいろ試してみましたが、どれも何も変わらないようです。どなたか助けていただければ幸いです。これは、Word で付録の図のリストを入力して文書に挿入する前の最後の手段です。

答え1

新しい種類のフロートを定義する必要はありません。1つの可能性として、と\listofappfigures完全に類似したコマンドを定義しました\listoffiguresが、図には外部ファイルを使用し.laf、名前は異なります。コツは、付録の冒頭で図の拡張子を.lofからに変更することだけです。これは を再定義することで実現できます。また、 は、各章が新しいリストに少し垂直方向のスペースを追加するようにパッチされました (デフォルトの LoF と同様)。afterpage パッケージは、2 ページ目のタイトルを作成するために使用されました。必要なのは、次のように言うことだけです。.laf\ext@figure\@chapter

\addtocontents{laf}{\protect\afterpage{\bfseries\listappfigurecont\par\vskip20pt}}

付録の最初の数図の後のどこかにあります。

\documentclass{book}
\usepackage{afterpage}
\usepackage{xpatch}

\newcommand\listappfigurename{LIST OF APPENDIX FIGURES}
\newcommand\listappfigurecont{{\LARGE LIST OF FIGURES (Continued)}}

\makeatletter
\xpatchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{\addtocontents{lof}{\protect\addvspace{10\p@}}\addtocontents{laf}{\protect\addvspace{10\p@}}}{}{}

\newcommand\listofappfigures{%
  \renewcommand\listfigurename{\listappfigurename}
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \chapter*{\listfigurename}%
      \@mkboth{\MakeUppercase\listfigurename}%
              {\MakeUppercase\listfigurename}%
    \@starttoc{laf}%
    \if@restonecol\twocolumn\fi
    }
\makeatother

\newcommand\testfig{%
  \begin{figure}\caption{Caption for the figure~\thefigure}\end{figure}\clearpage}

\begin{document}

\listoffigures
\listofappfigures

\chapter{Some Chapter}
\testfig
\testfig
\testfig

\chapter{Some Chapter}
\testfig
\testfig

\appendix
\makeatletter
\renewcommand\ext@figure{laf}
\makeatother

\chapter{Some Appendix}
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig
\addtocontents{laf}{\protect\afterpage{\bfseries\listappfigurecont\par\vskip20pt}}
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig
\chapter{Some Other Appendix}
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig
\testfig\testfig\testfig\testfig\testfig

\end{document}

標準 LoF のイメージ:

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

2 ページ目に続くタイトルを示す新しい図表リストの画像:

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

関連情報