Posts Tagged ‘Math’

How to Add the arg max and arg min Functions to Lyx

Sunday, October 30th, 2011

The arg max and arg min functions are not standard as math functions in LaTeX. As a result, they are not straightforward to use in Lyx either. However, it is quite simple to do so:

  1. Add the following code to the LaTeX preamble in Lyx (Document > Settings > LaTeX Preamble):

    \usepackage{amsmath}
    \DeclareMathOperator*{\argmax}{arg\,max}
    \DeclareMathOperator*{\argmin}{arg\,min}
  2. When you create a new math field in Lyx, simply type \argmax or \argmin. You can follow it by an underscore if you need text below the arg max or arg min functions. This text will be centered across all six letters.

It’s that simple!

Webcomic #1 – Kris Allen

Monday, December 21st, 2009

Kris Allen - Live Like We're Dying - 86,400 seconds in a day

How many seconds are in a day? 86,400. Thanks, Kris.

Copyright © 2011 by Brian D'Alessandro | Home | Contact | Privacy Policy