Italo Svevo, La coscienza di Zeno.

The clue is designed to make you think of Primo Levi, if you weren't already. But Svevo also fits the bill: he trained at different times as a chemist and as a lawyer and wrote this fairly famous book in which the protagonist gives up smoking literally hundreds of times. Svevo himself is said to be a model for Leopold Bloom.