| 1 |
# Installing Locally |
| 2 |
|
| 3 |
To get started as an author in Ximera, all you need is the XimeraLaTeX |
| 4 |
LaTeX Package. Unfortunately, at this point, this package is not part |
| 5 |
of CTAN. However, you can install it manually with the instructions |
| 6 |
below. Please feel free to contact Bart Snapp with questions |
| 7 |
([email protected]). |
| 8 |
|
| 9 |
1. Get a GitHub account |
| 10 |
2. Go to: [XimeraLaTeX on GitHub](https://github.com/XimeraProject/ximeraLatex) |
| 11 |
3. Click on the green code button:  and copy the code, (or just copy: `[email protected]:XimeraProject/ximeraLatex.git`) |
| 12 |
4. Clone the repository. |
| 13 |
|
| 14 |
At this point the installation becomes operating-system specific. |
| 15 |
|
| 16 |
## Linux |
| 17 |
|
| 18 |
If you are running linux, create the local directory structure `~/texmf/tex/latex` |
| 19 |
|
| 20 |
├── texmf |
| 21 |
|
| 22 |
├───└── tex |
| 23 |
|
| 24 |
└───────└── latex |
| 25 |
|
| 26 |
Now move the `ximeraLatex` folder (cloned in step 4. above) into the latex folder. At this point you have installed XimeraLaTeX! You can test your installation by compiling: |
| 27 |
``` |
| 28 |
\documentclass{ximera} |
| 29 |
\begin{document} |
| 30 |
\begin{problem} |
| 31 |
Hello $\answer[format=string]{World}$ |
| 32 |
\end{problem} |
| 33 |
\end{document} |
| 34 |
``` |
| 35 |
|
| 36 |
## MacOS |
| 37 |
|
| 38 |
If you are running MacOS, create the local directory structure `~/Library/texmf/tex/latex`. To do this, you'll need to make your Library folder visible, see [How to make your Library folder visible in the Finder](http://kb.mit.edu/confluence/display/istcontrib/How+to+make+your+Library+folder+visible+in+the+Finder+in+OS+X+10.9+%28Mavericks%29+or+later). |
| 39 |
|
| 40 |
├── Library |
| 41 |
|
| 42 |
├───└── texmf |
| 43 |
|
| 44 |
├───────└── tex |
| 45 |
|
| 46 |
└───────────└── latex |
| 47 |
|
| 48 |
Now move the `ximeraLatex` folder (cloned in step 4. above) into the latex folder. At this point you have installed XimeraLaTeX! You can test your installation by compiling: |
| 49 |
``` |
| 50 |
\documentclass{ximera} |
| 51 |
\begin{document} |
| 52 |
\begin{problem} |
| 53 |
Hello $\answer[format=string]{World}$ |
| 54 |
\end{problem} |
| 55 |
\end{document} |
| 56 |
``` |
| 57 |
|
| 58 |
|
| 59 |
## Windows |
| 60 |
|
| 61 |
If you are running Windows, create the local directory structure `C:\localtexmf\tex\latex\` |
| 62 |
|
| 63 |
├── C: |
| 64 |
|
| 65 |
├───└── localtexmf |
| 66 |
|
| 67 |
├───────└── tex |
| 68 |
|
| 69 |
└───────────└── latex |
| 70 |
|
| 71 |
Now move the `ximeraLatex` folder (cloned in step 4. above) into the latex folder. |
| 72 |
|
| 73 |
For MiKteX to notice this directory, go to: |
| 74 |
|
| 75 |
* Start → All programs → MiKTeX Folder → Maintenance (Admin) Folder → Settings (Admin). |
| 76 |
* Now select the tab “Roots.” |
| 77 |
* Click “Add” because you are going to add a path. |
| 78 |
* Find `C:\localtexmf\` and click “OK.” |
| 79 |
* Click “apply” then “OK.” |
| 80 |
* Reopen Miktex Settings (Admin). Click **Refresh FNDB.** |
| 81 |
|
| 82 |
The steps above will vary between systems. However, the key steps are **adding the path** and **Refreshing FNDB.** |
| 83 |
At this point you have installed XimeraLaTeX! You can test your installation by compiling: |
| 84 |
``` |
| 85 |
\documentclass{ximera} |
| 86 |
\begin{document} |
| 87 |
\begin{problem} |
| 88 |
Hello $\answer[format=string]{World}$ |
| 89 |
\end{problem} |
| 90 |
\end{document} |
| 91 |
``` |