Guest User

Untitled

a guest
Jan 17th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. usepackage{xspace}
  2. newcommand{abc}{textsc{abc}xspace}
  3.  
  4. usepackage{xspace}[2006/05/08]
  5. makeatletter
  6. % usually check@icr is @empty and therefore
  7. % not appropriate for xspaceaddexceptions.
  8. begingroup
  9. text@commandrelax
  10. globalletxspace@check@icrcheck@icr
  11. endgroup
  12. xspaceaddexceptions{xspace@check@icr}
  13. makeatother
  14.  
  15. defabc/{textsc{abc}}
  16.  
  17. Now use abc/ in a sentence, and it won't eat up the trailing white space.
  18.  
  19. Now use abc incorrectly.
Add Comment
Please, Sign In to add comment