Guest User

Untitled

a guest
Dec 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. documentclass{minimal}
  2.  
  3. usepackage{ifthen}
  4. newboolean{somevariable}
  5. setboolean{somevariable}{false}
  6.  
  7. begin{document}
  8.  
  9. ifthenelse{boolean{somevariable}}{Text if somevariable is true.}{Text if somevariable is false.}
  10.  
  11. end{document}
  12.  
  13. documentclass{article}
  14.  
  15. % remove comment from the following line for the long version
  16. %defCurrentAudience{long}
  17.  
  18.  
  19.  
  20. usepackage{multiaudience}
  21. SetNewAudience{long}
  22. begin{document}
  23.  
  24. normal text
  25. begin{shownto}{long}
  26. Text for execs
  27. end{shownto}
  28. normal text
  29.  
  30. end{document}
  31.  
  32. newcommand{additionalInfo}[1]{#1}
  33.  
  34. additionalInfo{I am additional}
  35.  
  36. newcommand{additionalInfo}[1]{}
  37.  
  38. documentclass{article}
  39.  
  40. % switch comment to disable additional info
  41. newcommand{additionalInfo}[1]{#1}
  42. % newcommand{additionalInfo}[1]{}
  43.  
  44. begin{document}
  45. I am always here
  46.  
  47. ædditionalInfo{I am additional}
  48. end{document}
  49.  
  50. documentclass{article}
  51. newififprintsolution
  52. printsolutiontrue
  53. begin{document}
  54. Assignment.
  55.  
  56. ifprintsolution
  57. Solution.
  58. fi
  59. end{document}
Add Comment
Please, Sign In to add comment