Skip to main content

read_ltcmd_optional

Function read_ltcmd_optional 

Source
pub fn read_ltcmd_optional(cs: Token) -> Result<Option<Option<Tokens>>>
Expand description

ltcmd’s o argument (\__cmd_grab_D_aux:NNnNN, latex.ltx:3594-3651) of the command cs: […] past spaces, to the matching explicit ] (read_delimited_balanced), one brace pair around the whole of it stripped; Some(None) when absent. Read as the non-\long delimited macro ltcmd grabs it with (\cs_set_protected_nopar:Npn): a \par, a } or a file’s end in it ends the call, None, with TeX’s Error naming cs (tex.web §395-396, §338).