code: def get_latex_figure_str2(fpath_list, cmdname, **kwargs):
      
      import utool as ut
      from os.path import relpath
      # Make relative paths
      if kwargs.pop('relpath', True):
          start = ut.truepath('~/latex/crall-candidacy-2015')
          fpath_list = [relpath(fpath, start) for fpath in fpath_list]
      cmdname = ut.latex_sanitize_command_name(cmdname)
  
      kwargs['caption_str'] = kwargs.get('caption_str', cmdname)
      figure_str  = ut.get_latex_figure_str(fpath_list, **kwargs)
      latex_block = ut.latex_newcommand(cmdname, figure_str)
      return latex_block
docs: hack for candidacy