A Few Stupid T E X Tricks Stupid T E X Tricks, N. Van Cleave, 2005 1
Double Columns, Overriding Item Numbering 1. p 3. q 5. r 7. p p 2. p 4. q 6. r 8. p p 9. p q 10. p q Stupid T E X Tricks, N. Van Cleave, 2005 2
Include the multicol package: \usepackage{multicol} Macros and Setup To provide the line for the T/F answer: \newcommand{\spacer}{\underline{\hspace*{3ex}} } To provide separation space between columns, inside the begin{multicols}: \setlength{\columnsep}{3ex} To provide separation space between list items, inside the begin{itemize}: \setlength{\itemsep}{1.5ex} Stupid T E X Tricks, N. Van Cleave, 2005 3
\begin{multicols}{2}[][5ex] \begin{minipage}[t]{3.5in} \begin{itemize} \item[1.] \spacer $p$ \item[3.] \spacer $q$ \item[5.] \spacer $r$ \item[7.] \spacer $\sim p \wedge p$\\[0.5ex] \item[9.] \spacer $p \wedge \sim q$\\[0.5ex] \end{itemize} \end{minipage} \begin{minipage}[t]{3.5in} \begin{itemize} \item[ 2.] \spacer $\sim p$ \item[ 4.] \spacer $\sim q$ \item[ 6.] \spacer $\sim r$ \item[ 8.] \spacer $p \vee \sim p$\\[0.5ex] \item[10.] \spacer $p \vee \sim q$\\[0.5ex] \end{itemize} \end{minipage} \end{multicols} Stupid T E X Tricks, N. Van Cleave, 2005 4
Including Pictures in Double Columns Deductive Reasoning: the process of applying general principles (or rules) to specic examples. Apply the Pythagorean Theorem to the right triangle with short sides of length 6 and 8. b = 8 hypotenuse a = 6 a 2 + b 2 = hypotenuse 2 6 2 + 8 2 = hypotenuse 2 36 + 64 = hypotenuse 2 100 = hypotenuse 2 10 = hypotenuse Stupid T E X Tricks, N. Van Cleave, 2005 5
{\bf Deductive Reasoning}: the process of applying general principles (or rules) to specific examples.\\ Apply the Pythagorean Theorem to the right triangle with short sides of length 6 and 8.\\ \begin{multicols}{2}[][5ex] \begin{minipage}[t]{3.5in} \includegraphics[scale=1.35]{section1-2/triangle} \end{minipage} \begin{minipage}[t]{3.5in} \vspace*{3ex}\begin{tabular}{r c l} $aˆ2 + bˆ2$ & = & $hypotenuseˆ2$\\ $6ˆ2 + 8ˆ2 $ & = & $hypotenuseˆ2$\\ $36 + 64 $ & = & $ hypotenuseˆ2$\\ $100 $ & = & $ hypotenuseˆ2$\\ $10 $ & = & $ hypotenuse$\\ \end{tabular} \end{minipage} \end{multicols} Stupid T E X Tricks, N. Van Cleave, 2005 6
Multiple Choice Exam Questions a b c d 1. Use the formula H n = number. Show your work. (a) H 10 = 210 (b) H 10 = 160 (c) H 10 = 190 (d) H 10 = 60 n(4n 2) 2 to nd the 10 th hexagonal To generate questions in an enumerated list which includes multiple choice values in the left margin: \renewcommand{\labelenumi}{{\tt a b c d }\qquad {\bf \arabic{enumi}}. } Stupid T E X Tricks, N. Van Cleave, 2005 7
T/F Exam Questions T F 1. X T F 2. Z U T F 3. f g To generate questions in an enumerated list which includes T/F choice values in the left margin: \renewcommand{\labelenumi}{{\bf \tt T F }\quad {\bf \arabic{enumi}}. } Stupid T E X Tricks, N. Van Cleave, 2005 8
Hinking Around with Spacing 5 points each Venn Diagrams Shade the appropriate areas 1. A B A B U 2. (A C) B A B C U \begin{enumerate} \item $A \cap B $ \\[-1in] \hspace*{1in}\includegraphics[width=2in]{exam1/venn_blank} \item $(A \cup C) \cap B$\\[-1in] \hspace*{2in}\includegraphics[width=2in]{exam1/venn_abcblank} \end{enumerate} Stupid T E X Tricks, N. Van Cleave, 2005 9
Two Column Documents PROGRAM Invocation Dinner Introductions Presentation of Awards MENU Fried Chicken Cheese Lasagne Broccoli Raisin Salad Fresh Fruit Salad Glazed Baby Carrots Mashed Potatoes with Gravy Whole Green Beans Almondine Rolls & Butter Assorted Gourmet Desserts Coffee or Tea AWARDS Allhands Award Alumni Award Buckler Award Coon Award Dougherty Award Dulgar Award KME Calculus Award Modesitt Award O Brien Award Reed Award Senior Honor Roll Taylor Award Vogel Freshman Award Warner Award Wozencraft Award SCHOLARSHIP COMMITTEE Margaret Weaver, Chair Marshall Lassak Greg Ronsse Nancy Van Cleave \documentclass[12pt, twocolumn]{article} Use \pagebreak to break between columns. Stupid T E X Tricks, N. Van Cleave, 2005 10
Award Certicates Use Xfig to create the template: Illinois Beta Chapter Initiate Presented by Eastern Illinois University Department of Mathematics & Computer Science Sunday, April 17, 2005 Nancy Van Cleave, Advisor Peter Andrews, Chair David Boyd, Advisor Stupid T E X Tricks, N. Van Cleave, 2005 11
Then, overlay another graphic: Illinois Beta Chapter Initiate Presented by Eastern Illinois University Department of Mathematics & Computer Science Sunday, April 17, 2005 Nancy Van Cleave, Advisor Peter Andrews, Chair David Boyd, Advisor Stupid T E X Tricks, N. Van Cleave, 2005 12
Create a Macro % generates *really* big fontsize \newfont{\big}{cmbx12 at 38pt} \newcommand{\award}[1]{ \begin{center} \includegraphics[scale=0.95]{template04} \end{center} \vspace*{-7.3in} \begin{center} \includegraphics[scale=0.95]{smallkey} \end{center} \vspace{0.435in} \centerline{\bf\big #1} \newpage } Stupid T E X Tricks, N. Van Cleave, 2005 13
Generate the Certicates \award{emily Brand} \award{nikkole Buchholzer}... \award{gregory Taeger} Illinois Beta Chapter Initiate Emily Brand Presented by Eastern Illinois University Department of Mathematics & Computer Science Sunday, April 17, 2005 Illinois Beta Chapter Initiate Nikkole Buchholzer Presented by Eastern Illinois University Department of Mathematics & Computer Science Sunday, April 17, 2005 Nancy Van Cleave, Advisor Peter Andrews, Chair Nancy Van Cleave, Advisor Peter Andrews, Chair David Boyd, Advisor David Boyd, Advisor Stupid T E X Tricks, N. Van Cleave, 2005 14
Useful Macros for Repeated Events \newcommand{\thissemester}{2005} \newcommand{\senddate}{march 31} % current year % date letter sent \newcommand{\pledge}{thursday, April 7} %Pledge Mtg date \newcommand{\initiate}{thursday, April 14} %Init Mtg date \newcommand{\banquet}{sunday, April 17} %banquet date \newcommand{\whichroom}{grand } % Which Ballroom in Union \newcommand{\deadline}{tuesday, April 12} %signup deadline %%%% Look at the great food we ll be having %%%% \newcommand{\menu}{\small Menu includes: Fried Chicken, Cheese Lasagne, Broccoli Raisin Salad, Fresh Fruit Salad, Glazed Baby Carrots, Mashed Potatoes with Gravy, Whole Green Beans Almondine, Rolls \& Butter, Assorted Gourmet Desserts, Coffee or Tea} Stupid T E X Tricks, N. Van Cleave, 2005 15
Mail Merge, the Hinking Way Same idea as the Award Certicates create macros for the form letters, for example: \newcommand{\acfgrad}[2] {\thispagestyle{empty} \begin{tabular}{l l} \hspace*{0.5in} & \hspace*{3in}\\ TO: & #1 #2\\ FROM: & Margaret Weaver, Nancy Van Cleave \& David Boyd\\ DATE: & \SendDate\\ \end{tabular} Dear #1,\\ Blah, blah, blah... \menu Blah, blah, blah... \spacer \hspace*{0.2cm} #1 #2 will attend with \spacer guests. Cost: \$3.00 per guest.\\ \spacer \hspace*{0.2cm} #1 #2 will not be attending.\\ \newpage } Stupid T E X Tricks, N. Van Cleave, 2005 16
Generate the Memos \ACFGrad{John}{Bennett} \ACFGrad{Carol}{Boroughs}... \ACFGrad{Carl}{Weaver} EASTERN ILLINOIS UNIVERSITY Department of Mathematics & Computer Science EASTERN ILLINOIS UNIVERSITY Department of Mathematics & Computer Science TO: John Bennett TO: Carol Boroughs FROM: Margaret Weaver, Nancy Van Cleave & David Boyd FROM: Margaret Weaver, Nancy Van Cleave & David Boyd DATE: March 31 Dear John, The annual KME/Honors Banquet will be held Sunday, April 17, 2005, at noon in the Grand Ballroom of the MLK Union. This banquet is to honor those pledging KME and to present the various awards for outstanding scholarship in Mathematics & Computer Science. This is our opportunity to recognize and support the efforts of our best students. As an added incentive, you may attend the banquet at no cost to you, and your guests are only $3.00 each. If you would, would you please respond by Tuesday, April 12 to let us know if you will be able to attend. We hope to see you there! Menu includes: Fried Chicken, Cheese Lasagne, Broccoli Raisin Salad, Fresh Fruit Salad, Glazed Baby Carrots, Mashed Potatoes with Gravy, Whole Green Beans Almondine, Rolls & Butter, Assorted Gourmet Desserts, Coffee or Tea DATE: March 31 Dear Carol, The annual KME/Honors Banquet will be held Sunday, April 17, 2005, at noon in the Grand Ballroom of the MLK Union. This banquet is to honor those pledging KME and to present the various awards for outstanding scholarship in Mathematics & Computer Science. This is our opportunity to recognize and support the efforts of our best students. As an added incentive, you may attend the banquet at no cost to you, and your guests are only $3.00 each. If you would, would you please respond by Tuesday, April 12 to let us know if you will be able to attend. We hope to see you there! Menu includes: Fried Chicken, Cheese Lasagne, Broccoli Raisin Salad, Fresh Fruit Salad, Glazed Baby Carrots, Mashed Potatoes with Gravy, Whole Green Beans Almondine, Rolls & Butter, Assorted Gourmet Desserts, Coffee or Tea Please return this portion to Sandy Reeds by Tuesday, April 12. Make checks payable to KME if applicable. Please return this portion to Sandy Reeds by Tuesday, April 12. Make checks payable to KME if applicable. John Bennett will attend with guests. Cost: $3.00 per guest. Carol Boroughs will attend with guests. Cost: $3.00 per guest. John Bennett will not be attending. Carol Boroughs will not be attending. Stupid T E X Tricks, N. Van Cleave, 2005 17