Apparently producing margarine from coal was actually done during WWII.
https://en.wikipedia.org/wiki/Margarine?wprov=sfti1#Coal_but...
https://www.sciencehistory.org/stories/magazine/brave-new-bu...
Edit: The more I read on this the more doubtful I’m becoming that this was actually produced at scale. If anyone has a better source I’d love to see it!