Skip to main content

dropping_argument_tails

Function dropping_argument_tails 

Source
pub fn dropping_argument_tails<R>(
    why: &'static str,
    invoke: impl FnOnce() -> Result<R>,
) -> Result<R>
Expand description

Where a handed-back tail would be misread, so invoke runs with the tails its commands leave DROPPED, and warned about, why naming what TeX does with the text:

  • a column type (\NC@rewrite@p, alignment.rs): the template reader would read a tail as more column letters (p{\textwidth-1pt}c a second p column of width t); TeX typesets it in every cell (array.sty:189-191 \@startpbox → \setlength\hsize{#1});
  • the head of an alignment row, between rows (tex_tables.rs digest_alignment_column): a tail would open the next row with a cell of its own, where \noalign then fails (\cmidrule[lr]{1-2} \cmidrule[lr]{3-4} for (lr): 2605.27476, 2605.25272; pdflatex prints the lr between the rows, with 2 errors).

The drop scope is restored on every exit, a caught panic included. OXIDIZED_DESIGN #317.