SHARE
TWEET

Untitled

a guest Nov 3rd, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2.  
  3. \usepackage{filecontents}
  4. \begin{filecontents*}{fcommand.tex}
  5. \newcommand{\mycommand}[1]
  6.  { test:command arg=##1 environment arg=#1}
  7. \end{filecontents*}
  8.  
  9. \newenvironment{myenvir}[1]{%
  10.   \input{fcommand}
  11.  \begin{center}
  12. }{%
  13.   \end{center}%
  14. }
  15.  
  16. \begin{document}
  17.  
  18. \begin{myenvir}{abc}
  19.  \mycommand{def}
  20. \end{myenvir}
  21.  
  22. \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
 
Top