TransWikia.com

Using underset and overset together

TeX - LaTeX Asked by khleeloo on January 23, 2021

I would like to use underset and overset together above and below the word. Current output looks like this:

begin{equation}
    v_t(j)=max^{N}_{i=1}v_{t-1}(i)a_{ij}b_j(o_t)
end{equation}

enter image description here

I would like both the superset and the underset to be placed exactly above and below the max.

2 Answers

Welcome to TeX.SE! As egreg pointed out in the comments, you can achieve what you want using max_{i=1}^{N}, like so:

documentclass[12pt]{article}
usepackage{amsmath} % Only for the equation* environment

begin{document}
  begin{equation*}
    v_t(j) = max_{i=1}^{N}v_{t-1}(i)a_{ij}b_j(o_t)
  end{equation*}
end{document}

Correct answer by gjkf on January 23, 2021

Here is maybe an easier fix yet - just nest overset in underset, or the other way around, as in:

v_t(j)=overset{N}{ underset{i=1}{max}} hspace{0.1cm} v_{t-1}(i)a_{ij}b_j(o_t)

Answered by Justin Turner on January 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP