You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ The main bibtex file ([cdl.bib](https://raw.githubusercontent.com/ContextLab/CDL
16
16
-[`compare`](#compare)
17
17
-[`commit`](#commit)
18
18
-[Using the bibtex file as a common bibliography for all *local* LaTeX files](#using-the-bibtex-file-as-a-common-bibliography-for-all-local-latex-files)
19
+
-[General Unix/Linux Setup (Command Line Compilation)](#general-unixlinux-setup-command-line-compilation)
20
+
-[MacOS Setup with TeXShop and TeX Live](#macos-setup-with-texshop-and-tex-live)
19
21
-[Using the bibtex file on Overleaf](#using-the-bibtex-file-on-overleaf)
20
22
-[Acknowledgements](#acknowledgements)
21
23
@@ -190,6 +192,8 @@ called, and a pull request must be submitted in order to integrate the changes
190
192
into the main ContextLab fork.
191
193
192
194
# Using the bibtex file as a common bibliography for all *local* LaTeX files
195
+
196
+
## General Unix/Linux Setup (Command Line Compilation)
193
197
1. Check out this repository to your home directory
194
198
2. Add the following lines to your `~/.bash_profile` (or `~/.zshrc`, etc.):
195
199
```
@@ -208,6 +212,28 @@ latex filename
208
212
pdflatex filename
209
213
```
210
214
215
+
## MacOS Setup with TeXShop and TeX Live
216
+
217
+
Mac GUI applications like TeXShop don't execute within your shell environment, which means the environment variable approach described above won't work when compiling through the TeXShop GUI. Instead, use TeX Live's built-in support for personal files:
218
+
219
+
1. Check out this repository (we'll assume you cloned it to your home directory: `~/CDL-bibliography`)
220
+
2. Create the TeX Live personal texmf directory structure for bibliography files:
221
+
```bash
222
+
mkdir -p ~/Library/texmf/bibtex/bib
223
+
```
224
+
3. Create a symbolic link from your personal texmf directory to the CDL-bibliography repository. **Important**: You must use the absolute path (not relative paths or `~`):
4. In your .tex file, use the line `\bibliography{cdl}` to generate a bibliography using the citation keys defined in cdl.bib
233
+
5. Compile your document using TeXShop's GUI or from the command line
234
+
235
+
**Note**: This approach also works for command-line compilation, so you don't need to set up the environment variables if you use this method.
236
+
211
237
# Using the bibtex file on Overleaf
212
238
You can use [git submodules](https://blog.github.com/2016-02-01-working-with-submodules/) to maintain a reference to the cdl.bib file in this repository that you can easily keep in sync with latest version. This avoids the need to maintain a separate .bib file in each Overleaf project.
0 commit comments