Thing to create worksheets.
- Create a directory.
git clone https://github.com/csmberkeley/csm-70.git
- Make sure you have pdflatex set up on your machine. If it isn't download MacTex.
- git pull
- git checkout BRANCH
- Go to latex and create worksheetXX directory
- Inside new directory create Latex files called meta.tex and worksheetXX.tex
- Copy from an existing worksheet.
- Update the date, title, worksheet number.
- Go back to src and type make worksheetXX. This will generate meta.pdf and worksheetXX.pdf in src/pdf/worksheetXX/.
](https://youtu.be/9_qXN9onpmc)
](https://youtu.be/JzXQ5t4YkeU)
Each worksheet has problems and introductory material. This section will go over both. The main difference is the header of the topic specific Latex file and the way that problem is imported into the main worksheetXX.tex.
- git pull
- git checkout BRANCH
- Go to tpics
- Create new directory with new topic name or enter an existing directory.
- If creating new topic, create problems directory inside new topic directory.
- Create tex file that will contain your problem. Give it a descriptive name. If there are images in your problem, put them in the same directory and name them problem_name*
- If you are writing a problem, start the latex file with \question. Otherwise you can just start writing
- Go back to the main worksheet and edit the \section field as necessary. Edit the \subimport fields to reflect the path to your new problem.
- If you wrote a question it should be surrounded by \begin{questions} and \end{questions}
- Go back to src to make worksheetXX (the worksheet you included your problem in).
- To write the solution, go to your topic specific latex file and surround the solution in \begin{solution} and \end{solution}. After \begin{solution} you can write [1 in] and this will leave a 1 inch space in the worksheet for the student answer.
- Go back to src and make worksheetXX_sol
- Pattern match always.
- Special commands:
- \texttt{} will create programming text
- \lstlisting will create a block of programming text
- Special symbols (inside math environment)
- \P
- \E
- \var
- \cov
- How to make boxes:
- \fbox{\begin{minipage}{16.3cm}
- CONTENT GOES HERE
- \end{minipage}}
- Naming conventions:
- Always create worksheet directories as worksheetXY where X,Y are in [0, 9]
- Put images in same folder as the problem they are used in. Name them the same name as the problem.
- Common errors and debugging:
- Replace tabu with \fbox{\begin{minipage}{16.3cm} CONTENT \end{minipage}}
- Remove \ after each line
- If make all isn’t working try doing “make worksheetXX” for the worksheet that doesn’t compile and then do make all
- Replace tabu with \fbox{\begin{minipage}{16.3cm} CONTENT \end{minipage}}
01087e9e8e9521b038c76c0dbcd0d67df9fe78a4