Keep photographer in one line in a caption

Yet another small problem: I my photo captions, the photographer should be right aligned and in one line, i.e. if it doesn’t fit into the last line of the caption, it should move to the next line. ATM I’m clueless... That’s not enough (also not a MWE): \define[1]\Foto{\hfill\hbox{\tfx Foto: #1}} Best, Hraban

On 1/11/2020 14:31, Henning Hraban Ramm wrote:
Yet another small problem: I my photo captions, the photographer should be right aligned and in one line, i.e. if it doesn’t fit into the last line of the caption, it should move to the next line. ATM I’m clueless...
That’s not enough (also not a MWE):
\define[1]\Foto{\hfill\hbox{\tfx Foto: #1}}
Best, Hraban
Doesn't \wordright do what you want? -- Rik

Am 2020-01-11 um 22:02 schrieb Rik Kabel
: On 1/11/2020 14:31, Henning Hraban Ramm wrote:
Yet another small problem: I my photo captions, the photographer should be right aligned and in one line, i.e. if it doesn’t fit into the last line of the caption, it should move to the next line. ATM I’m clueless...
That’s not enough (also not a MWE):
\define[1]\Foto{\hfill\hbox{\tfx Foto: #1}}
Doesn't \wordright do what you want?
I always forget about that. Thanks for the reminder! Best, Hraban
participants (3)
-
Henning Hraban Ramm
-
Henning Hraban Ramm
-
Rik Kabel