
2016年10月29日更新: この質問に対する完全な回答と、本文中の特定の引用を相互参照する方法を別の質問で提供しました。LyX で ERT を相互参照するにはどうすればいいですか?。
Word 版で既に完成したぶら下げインデント参照リストがあり、それを LyX で再現したいと考えています。先頭に [number] を付けずに、一般的なぶら下げインデントにしたいです (これは APA Web サイトからの例です)。
専門家からラベル付け環境を使用するよう提案されましたが、(i) ラベルの最初の文字が大文字ではありません。(ii) ラベルの文字間のスペースが、後続のコンテンツのスペースよりもわずかに広くなっています。
次に、Classicthesis ではなく標準の LyX ドキュメント クラスで試してみましたが、(i) (ii) の問題は両方とも消えましたが、(iii) という新しい問題に気付きました。姓がラベルの幅よりも短い場合 (非常に一般的)、ラベルと後続のコンテンツの間にギャップが生じます。
別のウェブサイトで「verse」環境の使用を提案している人を見ましたが、見つけることができません。(1) それは機能しますか? また、どのように機能しますか? (2) 機能する場合、Classicthesis LyX テンプレートにロードするにはどうすればよいですか?
論文の締め切りが1週間以内(31日)なので、緊急の助けが必要です。他の代替案の提案も大歓迎です。
更新1
別の専門家は、記述環境の使用を提案しました。Classicthesis LyX では次の結果が得られました。
コード:\begin{description} \item [{Lorem}] ipsum at nusquam appellantur his, ut eos erant homero concludaturque. Albucius appellantur deterruisset id eam, vivendum partiendo dissentiet ei ius. Vis melius facilisis ea, sea id convenire referrentur, takimata adolescens ex duo. Ei harum argumentum per. Eam vidit exerci appetere ad, ut vel zzril intellegam interpretaris. \marginpar{More dummy text.} \end{description}
標準文書クラスでは、問題(iii)は大幅に緩和されますが、問題(ii)、つまりラベル文字間のスペースと、新しい問題(iv)が発生します。説明の太字を削除したいのです。
コード:
\begin{description}
\item [{Surname,}] Surname, Surname, Surname, A. 2005. This is a bibliography.
This is a bibliography. This is a bibliography. This is a bibliography.
This is a bibliography. This is a bibliography.
\item [{Sur,}] Sur, Sur, Sur, A. 2005. This is a bibliography. This is
a bibliography. This is a bibliography. This is a bibliography. This
is a bibliography. This is a bibliography.
\end{description}
私は依然として Classicthesis テンプレートで修正するソリューションを好みます。したがって、代替ソリューションがあれば歓迎します。
アップデート2
Ctrl+L を使用して、「回答 1」の関連コード (後続のコメントに基づいて \scshape は削除されます) をテンプレートに挿入すると、次の結果が得られます。
問題 1: 説明ラベルの最初の文字が大文字ではありません。問題 2: 説明ラベルの文字間の距離が広いです。最初の図と同じスタイル (APA 参照スタイル) を実現するにはどうすればよいですか?
アップデート3
回答 2 に基づいて、次の出力が得られます。
唯一の問題は、0.5 インチ (1.27 cm) の標準量をインデントする方法です。もう 1 つの個人的な問題は、「ハング」モジュールをロードすると、TEX の容量超過 (5000 の制限) のため、親ドキュメントに変更が保存されないことです。この問題を解決できる人はいますか?
注: LyX のヘルプ ドキュメントを検索しましたが、オプションの「hanging」モジュールがあるにもかかわらず、「hanging」はまったく見つかりませんでした。
答え1
環境を悪用して自分の命令を実行させるのではなくdescription
、段落を「固定」するように設計された環境を使用することもできます。たとえば、次のようになります。
\documentclass{report}
\usepackage{classicthesis}
\usepackage{hanging}
\usepackage{setspace}
% If global doublespacing:
% \doublespacing
% If only in the References environment:
\usepackage{etoolbox}
\AtBeginEnvironment{hangparas}{\doublespacing}
\AfterEndEnvironment{hangparas}{\addvspace{0.67\baselineskip}}
\begin{document}
This paragraph is only doublespaced if you use the etoolbox method to
activate double-spacing within the \verb|hangparas| environment. If
you simply use the \verb|\doublespacing| command, this paragraph will
also be double-spaced.
\begin{hangparas}{1cm}{1}% `1cm` sets the hang amount; `1` says to hang lines after the first line in each paragraph
Holosko, M. J. (2006). \emph{Primer for Critiquiing Social Research:
A Student Guide.} Belmont, CA: Brooks/Cole.
Shear, K., Frank, E., Houck, P. R., \& Reynolds, C. F. (2005).
Treatment of complicated grief: A randomized controlled
trial. \emph{The Journal of American Medical Association},
\emph{293}(21), 2601--2608.
\end{hangparas}
This paragraph is only doublespaced if you use the etoolbox method to
activate double-spacing within the \verb|hangparas| environment. If
you simply use the \verb|\doublespacing| command, this paragraph will
also be double-spaced.
\end{document}
答え2
itemize
また、とのクローンに基づいた 2 つのソリューションも提案しますdescription
。
\documentclass{report}
\usepackage{classicthesis}
\usepackage{enumitem}
\usepackage{titlecaps}
\usepackage{etoolbox}
\newlist{biblistI}{itemize}{1}
\setlist[biblistI]{label = {}, labelsep =\fontdimen2\font, wide = 0pt, leftmargin =1.667\parindent}%
\newlist{biblistD}{description}{1}
\setlist[biblistD]{font =\mdseries\normalfont\titlecap, labelsep =\fontdimen2\font}%
\BeforeBeginEnvironment{biblistD}{\renewcommand{\descriptionlabel}[1]{#1}}
\begin{document}
\begin{biblistI}%
\item[Lorem, Ipsum (2016)] at nusquam appellantur his, ut eos erant homero concludaturque.
Albucius appellantur deterruisset id eam, vivendum partiendo dissentiet
ei ius. Vis melius facilisis ea, sea id convenire referrentur, takimata
adolescens ex duo. Ei harum argumentum per. Eam vidit exerci appetere
ad, ut vel zzril intellegam interpretaris. \marginpar{More dummy text.} \end{biblistI}
\begin{biblistD}%
\item[Lorem, Ipsum (2016)] at nusquam appellantur his, ut eos erant homero concludaturque.
Albucius appellantur deterruisset id eam, vivendum partiendo dissentiet
ei ius. Vis melius facilisis ea, sea id convenire referrentur, takimata
adolescens ex duo. Ei harum argumentum per. Eam vidit exerci appetere
ad, ut vel zzril intellegam interpretaris. \marginpar{More dummy text.}
\end{biblistD}
\end{document}
答え3
次のような簡略化された回答(専門家からの 2 番目の回答に基づく)と、「ハング」モジュールによって発生する衝突を解決するためのソリューションを提示します。
- Bibliography.lyx 内の元の LaTeX コードを削除しないでください。まだ行っていない場合は、「ドキュメント」->「設定」->「モジュール」で、「カスタマイズ可能なリスト列挙項目」のモジュールを読み込みます。
2: 貼り付け
\usepackage{etoolbox}
\AfterEndEnvironment{hangparas}{\addvspace{0.67\baselineskip}}
\usepackage[notquote]{hanging}
Bibliography.lyx と classicthesis.lyx の両方の Document->Setting->LaTeX プリアンブルに追加します。
重要な注意 1: 論文全体を統合すると容量超過の問題が発生するため、Document->Setting->Modules から「ハング」モジュールをロードしないでください。
3: Bibliography.lyxのメインテキストのページ上部(元のコードより上になければ機能しません)で、「Ctrl+L」と入力してLaTeXコードウィンドウまたはERTを作成し、貼り付けます。\renewcommand{\bibname}{References}
4: メニューバーの左上からオプションをプルダウンして、ドキュメント環境を「章*」に変更します(「章」ではなく、星印の付いたものを選択してください)。
5: 「Enter」、「Ctrl+L」と入力して別の Latex コード ウィンドウを作成し、次のコードをウィンドウに貼り付けます。
\begin{hangparas}{1.27cm}{1}
Surname, Surname, Surname, A. 2005. This is a bibliography. This is
a bibliography. This is a bibliography. This is a bibliography. This
is a bibliography. This is a bibliography.
\end{hangparas}
重要な注意 2: 次の記事では、手順 2 を繰り返します。つまり、「Ctrl + L」を押して、Latex コード ウィンドウを再度作成します。
重要な注意3:本文中の引用をハイパー参照(つまり、クリックすると、参考文献リスト内の引用の特定の場所にジャンプする)したい場合は、この質問に対する私の回答を参照してください。LyX で ERT を相互参照するにはどうすればいいですか?。
コメント: このソリューションは、Microsoft Word 版で既存の参考文献リストを持っている人に適しています。「What You See Is What You Get」なので、lyX で簡単に編集できます。ページ番号は正しく、Contents.lyx (または TOC) に「参考文献」+ クリック可能なページ番号としてリストされます。参考文献の最初のページのページ番号は下部にあることに注意してください。これは、classicthesis スタイルと一致しています。ヘッダーとページ番号は、通常どおり 2 ページ目からページ上部に表示されます。