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
Most LaTeX features come in the form of packages. By default, minimal installations only come with a basic set of packages. The default template that Zettlr uses requires a few additional packages to be present on your system, however. You'll need to install these packages, but they are often just a few Kilobytes large so they won't occupy much disk space.
73
+
Most LaTeX features come in the form of packages. By default, minimal installations only come with a basic set of packages. The default template that Zettlr uses requires a few additional packages to be present on your system. You'll need to install these packages, but they are often just a few Kilobytes large so they won't occupy much disk space. Even with the large or full installations, some packages might be missing.
74
74
75
75
We recommend you don't install packages unless Zettlr complains during exports. If you are missing some package, Zettlr will give you one of two errors: either `Command \somecommand not defined` or `File somefile.sty not found`. In both cases it is likely that the command or file will be provided by a package. It's easy to install the missing packages using the following procedure.
76
76
77
77
!!! note
78
78
79
-
On Windows, LaTeX will attempt to install the missing packages automatically and will ask you if it should do so. This means you only need to confirm a dialog (once per missing package). On macOS and Linux, you'll need to use the command line.
79
+
On Windows, LaTeX will attempt to install the missing packages automatically and will ask you if it should do so. This means you only need to confirm a dialog. On macOS and Linux, you'll need to use the command line. More specifically, on macOS and Linux, you need to use a tool called `tlmgr` (TeXLive Manager).
80
80
81
81
1. All LaTeX packages are listed in the [“Comprehensive TeX Archive Network” (CTAN)](https://www.ctan.org/). Take the filename (including its extension, `.sty`) or the command, and search for it using the search bar.
82
82
2. For example, if LaTeX complains that the command `\hypertarget` is not defined, [search for it like this](https://www.ctan.org/search?phrase=hypertarget).
83
83
3. In the case of “hypertarget,” it will give you a single package: `gmiflink`. If there is more than one result, try to google which one you need. There is usually some discussion, since you are never the first to experience the issue.
84
84
4. To install it on macOS or Linux, type `sudo tlmgr install <packagename>` into a terminal window.
85
85
5. Then, try the export again. Repeat these steps until all missing packages are installed.
86
+
87
+
!!! tip
88
+
89
+
Sometimes, the CTAN search gives you no results for your searches. An alternative to searching CTAN directly is to use `tlmgr`. You can query which packages contain a file by calling `tlmgr info <filename>`. For example, say Zettlr displays an error message that reads "File `biblatex.sty' not found." You can then query `tlmgr` for this file by running `tlmgr info biblatex.sty`. It will provide you several search results, which includes the package `biblatex`. You can then proceed to install it by running `tlmgr install biblatex` and wait until the command has finished. Then, try exporting again.
0 commit comments