New answers tagged

2

Some values are accessible in TeX, e.g.: \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{color} \setlength{\fboxsep}{0pt} \setlength{\fboxrule}{.3pt} \setcounter{secnumdepth}{0} \begin{document} \subsection{Bounding box} \begin{quote} \color{red} \Huge \def\test#1{\fbox{\color{blue}#1}} \test{\`A} ...


0

Does this solution also works for you ? It seems to be a lot simpler and the result seems to be the same. \documentclass{article} \usepackage{amsmath,graphicx} \newcommand{\boverdot}[1]{\overset{\scalebox{.5}[.2]{$[$} \boldsymbol{.} \scalebox{.5}[.2]{$]$}}{#1}} \begin{document} $a_{\boverdot{i}}$ \end{document}


2

I adapted \bunderline from my answer (putting square brackets around the underline of a letter (in math mode)) at the cited question into \boverdot. It works in all math styles. \documentclass{article} \usepackage{stackengine,graphicx,scalerel,amsmath} \stackMath \def\tinylb{\smash{\scalebox{.25}{$\SavedStyle[$}}} ...


2

You can push down to the depth of the underlined letter a scaled version of the brackets: \documentclass{article} \usepackage{amsmath,graphicx} \makeatletter \newcommand\bunderline{}% check for being undefined \DeclareRobustCommand\bunderline[1]{\mathord{\mathpalette\b@underline{#1}}} \newcommand{\b@underline}[2]{% \sbox\z@{$\m@th#1\underline{#2}$}% ...


2

Something like this? Note that some of the dimensions may need adjustment for the font or point size employed in a document. \documentclass{article} \usepackage{stackengine,graphicx} \stackMath \def\tinylb{\smash{\scalebox{.5}{$\scriptscriptstyle[$}}} \def\tinyrb{\smash{\scalebox{.5}{$\scriptscriptstyle]$}}} ...



Top 50 recent answers are included