Difference between revisions of "Command/fillinline"

From Wiki
Jump to navigation Jump to search
 
Line 14: Line 14:
 
<cd:description>A line on which the reader may fill in an answer.
 
<cd:description>A line on which the reader may fill in an answer.
  
Typically the fill-in line is its own paragraph, because it behaves a bit oddly: it pushes the actual fill-in field to the right of the line, and it does not work well in vertical mode (see example).</cd:description>
+
Typically each fill-in line should be its own paragraph, because it behaves a bit oddly: it pushes the actual fill-in field to the end of the paragraph while also keeping the required width on that side free.</cd:description>
<cd:examples><cd:example title=""><context source="yes" text="This gives:">
+
<cd:examples><cd:example title=""><context source="yes" mode="mkiv" text="This gives:">
\setuppapersize[A6,landscape]
+
\setuppapersize[A7,landscape]
\setupfillinlines[color=blue]
 
 
\starttext
 
\starttext
 
separate pars:\par
 
\noindent\fillinline[width=2cm]{\it name}\par
 
\noindent\fillinline[width=4cm]{\it address}\par
 
 
two fields on one line:\crlf
 
\fillinline[width=2cm]{\it name}
 
\fillinline[width=4cm]{\it address}\par
 
 
two fields on two lines:\crlf
 
\fillinline[width=2cm]{\it name}\crlf
 
\fillinline[width=4cm]{\it address}\par
 
 
invisible in vertical mode:\par
 
 
\fillinline[width=2cm]{\it name}\par
 
\fillinline[width=2cm]{\it name}\par
 
+
\fillinline[width=2cm]{\it Which quote is this?} \input ward\par
 
\stoptext
 
\stoptext
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>

Latest revision as of 14:49, 16 November 2021


\fillinline

Summary

The command \fillinline creates fill-in lines.

Settings

\fillinline[...=...,...]
...=...,...inherits from \setupfillinlines

Description

A line on which the reader may fill in an answer.

Typically each fill-in line should be its own paragraph, because it behaves a bit oddly: it pushes the actual fill-in field to the end of the paragraph while also keeping the required width on that side free.

Examples

Example 1

\setuppapersize[A7,landscape]
\starttext
\fillinline[width=2cm]{\it name}\par
\fillinline[width=2cm]{\it Which quote is this?} \input ward\par
\stoptext

This gives:

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: