SHARE
TWEET

Untitled

a guest Apr 21st, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{standalone}
  2.  
  3. usepackage{tcolorbox}
  4. usepackage{multicol}
  5.  
  6. newtcolorbox{objbox}[1] {colback=red!5!white,colframe=red!75!black,fonttitle=bfseries,title=#1, before skip=0.5cm, after skip=0.5cm}  %  
  7.  
  8. newenvironment{objectives}{%                                                                                                          
  9.     begin{objbox}{Objectives:} begin{list}{(bullet)}{}%                                                                    
  10. }{%                                                                                                                        
  11.     end{list} end{objbox}%                                                                                
  12. }%  
  13.  
  14. begin{document}
  15.  
  16. begin{objectives}
  17.     item foo:
  18.     begin{multicols}{2}
  19.         item one
  20.         item two
  21.     end{multicols}
  22. end{objectives}
  23.  
  24. end{document}
  25.    
  26. documentclass{article}
  27. usepackage{enumitem}
  28. usepackage{tasks}
  29. usepackage{tcolorbox}
  30. usepackage{multicol}
  31. usepackage{shortlst, setspace}
  32. newenvironment{boxeditemize}[1][3]{settowidth{labelwidth}{mbox{textbullet}}%
  33. setlength{leftmargini}{dimexprlabelwidth+labelseprelax}%
  34. setlength{shortitemwidth}{dimexprlinewidth/#1-labelwidth-2labelseprelax}%
  35. begin{shortitemize}}%{1.333}
  36. {end{shortitemize}}%
  37. %%
  38. newtcolorbox{objbox}[1] {colback=red!5!white,colframe=red!75!black,fonttitle=bfseries,title=#1, before skip=0.5cm, after skip=0.5cm} %
  39.  
  40. newenvironment{myobjectives}{%
  41.     begin{objbox}{Objectives: (with texttt{enumitem})} begin{itemize}[wide=0pt, leftmargin =*]%
  42. }{%
  43.     end{itemize} end{objbox}%
  44. }%
  45.  
  46. newenvironment{otherobjectives}[1][3]{%
  47.  begin{objbox}{Objectives (with texttt{shortlst})}%
  48. begin{boxeditemize}[#1]
  49. }{%
  50.  end{boxeditemize} end{objbox}%
  51. }%
  52.  
  53. newcommandparitem[2][1]{item parbox[t]{#1shortitemwidth}{#2medskip}}
  54.  
  55. begin{document}
  56.  
  57. begin{myobjectives}
  58.  item foo:
  59.   begin{multicols}{2}
  60.  item one
  61.  item two
  62.  end{multicols}
  63. end{myobjectives}
  64.  
  65. par
  66. begin{objbox}{Objectives: (with texttt{tasks})}settasks{style = itemize, item-indent = 0em, label-offset =-0.2em, before-skip = -1.5ex, after-skip =-3ex}%
  67. begin{tasks}(2)
  68.  task* foo:
  69.  task one
  70.  task two
  71.  end{tasks}
  72. end{objbox}
  73.  
  74. begin{otherobjectives}[2]setstretch{2.5}
  75.  item foo:
  76.  item one
  77.  item two
  78. end{otherobjectives}
  79.  
  80. begin{otherobjectives}[2]
  81.  item foo;
  82.  paritem[2] {Bla bla bla bla bla. Bla bla bla bla bla. Bla bla bla bla bla. Bla bla bla bla bla. }
  83.  paritem{Bli bli bli bli bli. Bli bli bli bli bli. Bli bli bli bli bli. Bli bli bli bli bli. Bli bli bli bli bli. }
  84.  item one
  85.  item two
  86. end{otherobjectives}
  87.  
  88. end{document}
  89.    
  90. documentclass{standalone}
  91.  
  92. usepackage{tcolorbox}
  93. usepackage{multicol}
  94.  
  95. newtcolorbox{objbox}[1] {colback=red!5!white,colframe=red!75!black,fonttitle=bfseries,title=#1, before skip=0.5cm, after skip=0.5cm}  %  
  96.  
  97. newenvironment{objectives}{%                                                                                                          
  98.     begin{objbox}{Objectives:} begin{list}{(bullet)}{}%                                                                    
  99. }{%                                                                                                                        
  100.     end{list} end{objbox}%                                                                                
  101. }%  
  102.  
  103. begin{document}
  104.  
  105. begin{objectives}
  106.     item foo: % empty line below this is important
  107.  
  108.     parbox{5cm}{
  109.         begin{multicols}{2}
  110.             item one
  111.             item two
  112.         end{multicols}
  113.     }
  114. end{objectives}
  115.  
  116. end{document}
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top