にシンプルな 2 列のドキュメントがありますConTeXt
。`placefigure` を使用してテキスト内に図をフロート/ラップしようとしましたが、図は正確にその場所に挿入されます。図が収まらない場合、前の列に空白が残ります。
さらに、、などConTeXt
の図のフロート配置コマンドは無視しますtop
。bottom
テキスト内でフロート/ラップする標準的な図の配置はどうすればよいですか?
\starttext
\startcolumns[n=2,tolerance=verytolerant]
\section{Introduction}
LaTeX is based on the idea that authors should be able to focus on the content of what they are writing without being distracted by its visual presentation. In preparing a LaTeX document, the author specifies the logical structure using familiar concepts such as chapter, section, table, figure, etc., and lets the LaTeX system worry about the presentation of these structures. It therefore encourages the separation of layout from content while still allowing manual typesetting adjustments where needed. This is similar to the mechanism by which many word processors allow styles to be defined globally for an entire document or the use of Cascading Style Sheets to style HTML.
\placefigure[top,bottom][fig:1]{LaTeX can be arbitrarily extended by using the underlying macro language to develop custom formats. Such macros are often collected into packages, which are available to address special formatting issues such as complicated mathematical content or graphics. Indeed, in the example below, the align environment is provided by the amsmath package.
}
{\externalfigure[1.png][width=\textwidth]}
LaTeX is based on the idea that authors should be able to focus on the content of what they are writing without being distracted by its visual presentation. In preparing a LaTeX document, the author specifies the logical structure using familiar concepts such as chapter, section, table, figure, etc., and lets the LaTeX system worry about the presentation of these structures.
\stopcolumns
\stoptext
答え1
画像を浮かべるには、contextgardenのグラフィックスの使用2 つの方法を説明します。 を使用するかstarthanging
、次のようにします。
\starttext
\starthanging[location=right,n=2,distance=1cm]{\externalfigure[cow][width=4cm]}
\input tufte
\stophanging
\stoptext
または使用浮遊物これらは ConTeXt によって番号が付けられて配置され、次のようなキャプションを取得できます。
\placefigure[right]{My Caption}{\externalfigure[cow.jpg]}