フレーズブックのレイアウトを定義するのに助けが必要

フレーズブックのレイアウトを定義するのに助けが必要

私は別の言語(フランス語)を学んでおり、独自のフレーズ集を作成することにしました。

私のアイデアは、映画やテレビ番組からフレーズを収集し、それを自分のベストフレーズに継続的に追加していくことです。

左側にフランス語のフレーズを太字で表示し、右側に英語の翻訳を斜体で表示できる(2 列レイアウト)シンプルなテンプレートを探しています。

辞書レイアウトをいくつか見つけましたが、私が達成したいことを達成するには複雑すぎると感じました。用語集と頭字語の使用も検討しましたが、結果に満足できませんでした。

どなたか親切な方、私が使えるものについてアドバイスをいただけませんか?

どうもありがとうございます。

答え1

最も簡単な方法は、2 つの列を持つテーブル環境のいずれかを使用することです。tabularx列の 1 つを設定するだけで済むため、おそらく最も便利です。別の方法としては、カスタム リストがあります。

最初の例はtabularx

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

カスタムリストを使用した他の例

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


最初の例のコード

\documentclass{article}
\usepackage{tabularx} 


\begin{document}

\renewcommand\arraystretch{1.5}
\noindent%
\begin{tabularx}{\linewidth}{@{} >{\bfseries}l X@{}}
  Bête noire
  & A pet peeve A thing or person found particularly unwelcome and to be avoided. \\
  Billet doux
  & A short love letter or note. \\
  Bon appétit
  & 'Good appetite' - "Enjoy your food". \\
  Bon mot
  & Clever, witty remark. \\
  Bon vivant
  & 'Good liver' - a person who enjoys life, especially 'wine, women and song'. \\
  Bon voyage
  & Have a good trip. Ça ne fait rien (or sans faire rien) It doesn't matter - often deliberately mispronounced in English as 'San fairy Ann'. \\
\end{tabularx}

\end{document}

2番目の例のコード

\documentclass{article}
\usepackage{enumitem} 

\newlist{phrases}{itemize}{1}
\setlist[phrases]{
  font=\bfseries,
  align=left,
  leftmargin=3em,
  labelwidth=\linewidth,
  itemindent=\dimexpr\linewidth-3em,
  labelsep=0pt,
}


\begin{document}

\begin{phrases}
  \item[Bête noire] A pet peeve A thing or person found particularly unwelcome and to be avoided.
  \item[Billet doux] A short love letter or note.
  \item[Bon appétit] 'Good appetite' - "Enjoy your food".
  \item[Bon mot] Clever, witty remark.
  \item[Bon vivant] 'Good liver' - a person who enjoys life, especially 'wine, women and song'.
  \item[Bon voyage] Have a good trip. Ça ne fait rien (or sans faire rien) It doesn't matter - often deliberately mispronounced in English as 'San fairy Ann'.
\end{phrases}

\end{document}

関連情報