I am examining a way to adjust the size of nested delimiters automatically.

This gives 'double subscript':

\documentclass[a4paper, 12pt]{article}



\date{Typeset on \today}




$$ D_{v_p} = \p{ {\widehat e}_i } $$


Without the _i, the error vanishes.

How to understand that?

1 Answer 1


If the base of the math accent is just a single character node (or single character node that has been subscripted or superscripted) the outer braces are essentially lost to allow finer font-specified control over positioning. Note how even the empty {} in the first form avoids the error (but adversely affects the display in some cases.

\documentclass[a4paper, 12pt]{article}


${{}{\widehat e}_i}_{} $

${{\widehat e}_i}_{} $


This is a tex-primitive behaviour not controlled by latex, see this plain tex example

${{}\mathaccent"7013 a_i}_{} $

${\mathaccent"7013 {a_i}}_{} $

% error ${\mathaccent"7013 {za}_i}_{} $

% error ${{\mathaccent"7013 a_i}}_{} $

% error $\begingroup \mathaccent"7013 a_i\endgroup_{} $

% error ${\mathaccent"7013 a_i}_{} $


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .