The Euler-Lagrange equation for particles is given by
$$ \frac{d}{dt}\frac{\partial L}{\partial \dot{q}} = \frac{\partial L}{\partial q},\tag{1}$$
and for fields it is
$$ \partial_{\mu} \frac{\partial \mathcal{L}}{\partial (\partial_{\mu}\phi)} = \frac{\partial \mathcal{L}}{\partial \phi}.\tag{2} $$
Comparing the two equations, the first one has a total time derivative $\frac{d}{dt}$ but the other one appears to have partial derivatives $\partial_{\mu}$. These derivatives come from integration by parts in the derivation of the EL equation. I was wondering why the field version has partial derivatives and the particle version has total derivatives?
I have also seen for the specific example (in Quantum Field Theory for the gifted amateur) of 1 dimensional waves on a string, the corresponding Euler-Lagrange equation is
$$ \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \left(\frac{d\phi}{dt}\right)} + \frac{d}{dx} \frac{\partial \mathcal{L}}{\partial \left(\frac{d\phi}{dx}\right)} = \frac{\partial \mathcal{L}}{\partial \phi}, \tag{3}$$
which uses total derivatives, so I am a bit confused.