Guest User

Untitled

a guest
Feb 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. newcommand{addInset}[2]{%
  2. color{#2}%
  3. typeout{OMG {#1}} % outputs "OMG ../figures/correct_filename.png"
  4. fbox{includegraphics[width=1linewidth]{#1}}%
  5. } % reports file "correct_filename.png" not found!
  6. makeatletter
  7. newcommand{mycommand}[2][1]{%
  8. % second parameter is a path.
  9. % manipulated #2 with filename@parse and saved the result to baseFileName
  10. defcropfile{baseFileName-moreappendix}
  11. addInset{cropfile.png}{#1}
  12. }
  13. makeatother
Add Comment
Please, Sign In to add comment