Named parameters

All parameters on the insert_image function can be specified by name using the notation parameter_name:= value. Named parameters must follow all positional parameters.

Examples are provided here.

The following four expressions, mixing positional, and named parameters are equivalent:

@(insert_image (image; "1cm"; "2cm"; w; h))
@(insert_image (filename:=image; x:="1cm"; y:="2cm"; width:=w; height:=h))
@(insert_image (image; "1cm"; "2cm"; width:=w; height:=h))
@(insert_image (height:=h; width:=w; y:="2cm"; x:="1cm"; filename:=image))

The following expressions are incorrect and cause compilation errors:

@(insert_image (filename:=image; "1cm"; "2cm"; w; h))
@(insert_image (image; "1cm"; "2cm"; w; h; filename:=image))