SHARE
TWEET

Untitled

a guest Nov 3rd, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2.  
  3. \newcommand\mycommand[1]%
  4.   {test:command arg=#1 environment arg=\myenvArg}
  5.  
  6. \newenvironment{myenvir}[1]
  7.   {%
  8.     \def\myenvArg{#1}%
  9.     \begin{center}%
  10.   }
  11.   {%
  12.     \end{center}%
  13.   }
  14.  
  15. \begin{document}
  16.  
  17. \begin{myenvir}{Hello}
  18. \mycommand{World}
  19. \end{myenvir}
  20.  
  21. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top