Skip to content

Computer Lab: Adding LaTeX Styles

tehempe edited this page Nov 24, 2017 · 1 revision

Background

The computers in the Lab have LaTeX installed but not all necessary style files are installed. R Markdown typically depends on framed and I am aware of the fact that, in some cases, you encounter an error that filehook style is missing.

Therefore, we will install the following styles ourselves:

Installation

To put it simply, copy necessary files to ~/Library/texmf/tex/. Done.

Well, it's not as easy as it sounds. The problem is that ~/Library is invisible by default. (Do you remember that ~ is the home directory? If not, see: Home Directory).

Do the following one by one.

  1. Visit rokko-ma17q2/latex-styles, click on "Clone or Download" and click "Download ZIP". The files will be automatically be uncompressed when the download is complete.
  2. Find texmf folder within the latex-styles-master folder. After finding it, you will move this texmf folder into ~/Library (which is still invisible).
  3. Open up a new Finder window (Command + N) or click on any blank space on the desktop image. Then hold Shift ⇧ + Command ⌘ + G on your keyboard (Press G while holding down both Shift ⇧ and Command ⌘ keys). A dialog box will open, as shown below.
  4. Type ~/Library in the dialog box and click on Go. This step will open the ~/Library folder, even though it remains invisible to you.
  5. Move texmf to that folder.

Next step

Do the homework!