This paper presents the surface piezomagnetoelasticity theory for size-dependent buckling analysis of an embedded piezoelectric/magnetostrictive nanobeam (PMNB). It is assumed that the subjected forces from the surrounding medium contain both normal and shear components. Therefore, the surrounded elastic foundation is modeled by Pasternak foundation. The nonlocal piezomagnetoelasticity theory i...