The standard fill.elpackage includes a team justify-current-linethat is part of what you need. From the reference:
Do some kind of justification on this line.
Normally does full justification: adds spaces to the line to make it end at
the column given by `current-fill-column '.
Optional first argument how specifies alternate type of justification:
it can be `left', `right', `full', `center', or `none'.
If how is t, will justify however the `current-justification' function says to
magicall invokation:
M-x set-justification
, wdith . LaTeX . , " " LaTeX , , LaTeX, .