This question already has an answer here:
- File format preference with graphicx 1 answer
Is there a way to define a new command so that existing
for any x and fig_name? This is for automatic conversion of eps to pdf because eps may cause out of memeory issues with xdvipdfmx: xdvipdfmx out of memory.