Guest User

Untitled

a guest
Dec 5th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. listfiles
  2. documentclass[12pt,fleqn]{article}
  3. usepackage{amsmath}
  4. usepackage{environ}
  5. usepackage{tikz}
  6. usetikzlibrary{matrix}
  7. usetikzlibrary{decorations.pathreplacing, calligraphy, calc}
  8. tikzset{
  9. mymatr/.style={
  10. matrix of math nodes,
  11. column sep = 10pt,
  12. nodes={
  13. anchor=text,
  14. inner xsep=3pt
  15. },
  16. inner xsep=7pt,
  17. ampersand replacement=&
  18. }
  19. }
  20. NewEnviron{mybrak}[1][2]{%
  21. begin{tikzpicture}[baseline=(mybase)]
  22. matrix[mymatr](A){
  23. BODY\
  24. };
  25. coordinate (mybase) at ($(A-1-1.text)!.5! (A-#1-1.text)$);
  26. draw[thick]([xshift=-6.4pt]A-1-1.west) -- +(4.4pt,0);
  27. foreach[evaluate=mystep as prev using int(mystep-1)] mystep in {2,...,#1}{
  28. draw[thick]([xshift=-6pt]A-prev-1.west) -- ([xshift=-6pt]A-mystep-1.west) -- + (4pt,0);
  29. }
  30. end{tikzpicture}
  31. }
  32.  
  33. NewEnviron{mycurly}[1][2]{%
  34. begin{tikzpicture}[baseline=(mybase)]
  35. matrix[mymatr](A){
  36. BODY\
  37. };
  38. coordinate (mybase) at ($(A-1-1.text)!.5! (A-#1-1.text)$);
  39. draw[line width=.9pt,decorate,decoration={calligraphic brace,amplitude=4pt, mirror}](A-1-1.west) -- (A-#1-1.west);
  40. end{tikzpicture}
  41. }
  42.  
  43.  
  44. begin{document}
  45. Environment who puts curly braces:
  46. [
  47. begin{mycurly}
  48. frac{3}{4}x+y=2 \
  49. e^{2x}+3y=4
  50. end{mycurly}
  51. ]
  52. if you have more than 2 equation, you have to indicate their number in the optional argument:
  53. [
  54. begin{mycurly}[3]
  55. frac{3}{4}x+y=2 \
  56. e^{2x}+3y=4\
  57. sqrt{x+3}+5z=0
  58. end{mycurly}
  59. ]
  60. [
  61. begin{mycurly}[4]
  62. x+y=2 \
  63. 2x+3y=4 \
  64. 3x+5z=0 \
  65. dfrac{7x}{x+9}+y+z=2
  66. end{mycurly}
  67. ]
  68. Environment who puts square brakets:
  69. [
  70. begin{mybrak}
  71. frac{3}{4}x+y=2 \
  72. e^{2x}+3y=4
  73. end{mybrak}
  74. ]
  75. if you have more than 2 equation, you have to indicate their number in the optional argument:
  76. [
  77. begin{mybrak}[3]
  78. frac{3}{4}x+y=2 \
  79. e^{2x}+3y=4\
  80. sqrt{x+3}+5z=0
  81. end{mybrak}
  82. ]
  83. [
  84. begin{mybrak}[4]
  85. x+y=2 \
  86. 2x+3y=4 \
  87. 3x+5z=0 \
  88. dfrac{7x}{x+9}+y+z=2
  89. end{mybrak}
  90. ]
  91. Please note you have to use verb|&| instead of verb|&| here:
  92. [
  93. f(x) =
  94. begin{mycurly}[4]
  95. dfrac{1}{3}x+y=2 & text{if }x<0 \
  96. 2x+3y=4 & text{if }0leq x<1\
  97. 3x+5z=0 & text{if }1leq x<2\
  98. dfrac{7x}{x+9}+y+z=2 & text{if } x>2
  99. end{mycurly}
  100. ]
  101. [
  102. f(x) =
  103. begin{mycurly}[3]
  104. 2x+3y=4 & text{if } x<1\
  105. 3x+5z=0 & text{if }1leq x<2\
  106. dfrac{7x}{x+9}+y+z=2 & text{if } x>2
  107. end{mycurly}
  108. ]
  109. It works also with the bracket type (even if I don't know if it is used in your country):
  110. [
  111. f(x) =
  112. begin{mybrak}[4]
  113. dfrac{1}{3}x+y=2 & text{if }x<0 \
  114. 2x+3y=4 & text{if }0leq x<1\
  115. 3x+5z=0 & text{if }1leq x<2\
  116. dfrac{7x}{x+9}+y+z=2 & text{if } x>2
  117. end{mybrak}
  118. ]
  119. [
  120. f(x) =
  121. begin{mybrak}[3]
  122. 2x+3y=4 & text{if } x<1\
  123. 3x+5z=0 & text{if }1leq x<2\
  124. dfrac{7x}{x+9}+y+z=2 & text{if } x>2
  125. end{mybrak}
  126. ]
  127. end{document}
  128.  
  129. *File List*
  130. article.cls 2014/09/29 v1.4h Standard LaTeX document class
  131. fleqn.clo 2016/12/29 v1.2a Standard LaTeX option (flush left equations)
  132. size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
  133. amsmath.sty 2016/11/05 v2.16a AMS math features
  134. amstext.sty 2000/06/29 v2.01 AMS text
  135. amsgen.sty 1999/11/30 v2.0 generic functions
  136. amsbsy.sty 1999/11/29 v1.2d Bold Symbols
  137. amsopn.sty 2016/03/08 v2.02 operator names
  138. environ.sty 2014/05/04 v0.3 A new way to define environments
  139. trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list
  140. tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151)
  141. pgf.sty 2015/08/07 v3.0.1a (rcs-revision 1.15)
  142. pgfrcs.sty 2015/08/07 v3.0.1a (rcs-revision 1.31)
  143. everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
  144. pgfrcs.code.tex
  145. pgfcore.sty 2010/04/11 v3.0.1a (rcs-revision 1.7)
  146. graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
  147. keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
  148. graphics.sty 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
  149. trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
  150. graphics.cfg 2016/06/04 v1.11 sample graphics configuration
  151. pdftex.def 2017/06/24 v1.0g Graphics/color driver for pdftex
  152. pgfsys.sty 2014/07/09 v3.0.1a (rcs-revision 1.48)
  153. pgfsys.code.tex
  154. pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9)
  155. pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4)
  156. xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
  157. color.cfg 2016/01/02 v1.6 sample color configuration
  158. pgfcore.code.tex
  159. pgfcomp-version-0-65.sty 2007/07/03 v3.0.1a (rcs-revision 1.7)
  160. pgfcomp-version-1-18.sty 2007/07/23 v3.0.1a (rcs-revision 1.1)
  161. pgffor.sty 2013/12/13 v3.0.1a (rcs-revision 1.25)
  162. pgfkeys.sty
  163. pgfkeys.code.tex
  164. pgfmath.sty
  165. pgfmath.code.tex
  166. pgffor.code.tex
  167. tikz.code.tex
  168. spath3.sty 2016/02/19 v1.1 Functions for manipulating PGF soft paths
  169. expl3.sty 2017/05/29 L3 programming layer (loader)
  170. expl3-code.tex 2017/05/29 L3 programming layer
  171. l3pdfmode.def 2017/03/18 v L3 Experimental driver: PDF mode
  172. xparse.sty 2017/05/29 L3 Experimental document command parser
  173. supp-pdf.mkii
  174. epstopdf-base.sty 2016/05/15 v2.6 Base part for package epstopdf
  175. infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
  176. grfext.sty 2016/05/16 v1.2 Manage graphics extensions (HO)
  177. kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
  178. ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
  179. kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
  180. kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
  181. etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
  182. ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
  183. pdftexcmds.sty 2017/03/19 v0.25 Utility functions of pdfTeX for LuaTeX (HO)
  184. ifpdf.sty 2017/03/15 v3.2 Provides the ifpdf switch
  185. epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
  186. ***********
  187.  
  188. *File List*
  189. article.cls 2014/09/29 v1.4h Standard LaTeX document class
  190. fleqn.clo 2016/12/29 v1.2a Standard LaTeX option (flush left equations)
  191. size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
  192. amsmath.sty 2017/09/02 v2.17a AMS math features
  193. amstext.sty 2000/06/29 v2.01 AMS text
  194. amsgen.sty 1999/11/30 v2.0 generic functions
  195. amsbsy.sty 1999/11/29 v1.2d Bold Symbols
  196. amsopn.sty 2016/03/08 v2.02 operator names
  197. environ.sty 2014/05/04 v0.3 A new way to define environments
  198. trimspaces.sty 2009/09/17 v1.1 Trim spaces around a token list
  199. tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151)
  200. pgf.sty 2015/08/07 v3.0.1a (rcs-revision 1.15)
  201. pgfrcs.sty 2015/08/07 v3.0.1a (rcs-revision 1.31)
  202. everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
  203. pgfrcs.code.tex
  204. pgfcore.sty 2010/04/11 v3.0.1a (rcs-revision 1.7)
  205. graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
  206. keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
  207. graphics.sty 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
  208. trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
  209. graphics.cfg 2016/06/04 v1.11 sample graphics configuration
  210. pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
  211. pgfsys.sty 2014/07/09 v3.0.1a (rcs-revision 1.48)
  212. pgfsys.code.tex
  213. pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9)
  214. pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4)
  215. xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
  216. color.cfg 2016/01/02 v1.6 sample color configuration
  217. pgfcore.code.tex
  218. pgfcomp-version-0-65.sty 2007/07/03 v3.0.1a (rcs-revision 1.7)
  219. pgfcomp-version-1-18.sty 2007/07/23 v3.0.1a (rcs-revision 1.1)
  220. pgffor.sty 2013/12/13 v3.0.1a (rcs-revision 1.25)
  221. pgfkeys.sty
  222. pgfkeys.code.tex
  223. pgfmath.sty
  224. pgfmath.code.tex
  225. pgffor.code.tex
  226. tikz.code.tex
  227. spath3.sty 2016/02/19 v1.1 Functions for manipulating PGF soft paths
  228. expl3.sty 2018-11-19 L3 programming layer (loader)
  229. expl3-code.tex 2018-11-19 L3 programming layer
  230. l3pdfmode.def 2018-11-19 v L3 Experimental driver: PDF mode
  231. xparse.sty 2018-10-17 L3 Experimental document command parser
  232. supp-pdf.mkii
  233. epstopdf-base.sty 2016/05/15 v2.6 Base part for package epstopdf
  234. infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
  235. grfext.sty 2016/05/16 v1.2 Manage graphics extensions (HO)
  236. kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
  237. ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
  238. kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
  239. kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
  240. etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
  241. ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
  242. pdftexcmds.sty 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
  243. ifpdf.sty 2018/09/07 v3.3 Provides the ifpdf switch
  244. epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
  245. ***********
  246.  
  247. ! Undefined control sequence.
  248. <argument> g__prg_map_int
  249.  
  250. l.54 end{mycurly}
Add Comment
Please, Sign In to add comment