NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
installer.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <filesystem>
10
11#include "notex/environment.hpp"
12
13namespace notex {
14
22class Installer {
23public:
24 Installer() = delete;
25
44 static bool install_global(const Environment& environment,
45 bool force = false);
46
63 static bool install_local(const std::filesystem::path& target_dir,
64 bool force = false);
65
78 static bool uninstall_global(const Environment& environment,
79 bool force = false);
80
92 static bool uninstall_local(const std::filesystem::path& target_dir,
93 bool force = false);
94
110 static bool installation_differs(const std::filesystem::path& latex_dir,
111 const std::filesystem::path& fonts_dir);
112};
113
114} // namespace notex
Represents the surrounding system as NoTeX perceives it: where TeX expects user files to live,...
static bool install_local(const std::filesystem::path &target_dir, bool force=false)
Installs the template locally into target_dir.
static bool installation_differs(const std::filesystem::path &latex_dir, const std::filesystem::path &fonts_dir)
Reports whether an installation at latex_dir/fonts_dir differs from what would be freshly installed.
static bool uninstall_global(const Environment &environment, bool force=false)
Removes a global installation: every embedded LaTeX and font file's target directory inside environme...
static bool uninstall_local(const std::filesystem::path &target_dir, bool force=false)
Removes a local installation: target_dir's settings/ and fonts/ directories, then clears installation...
static bool install_global(const Environment &environment, bool force=false)
Installs the template globally, using environment to resolve the target directories inside the TeX tr...
Definition installer.cpp:91
Environment: discovers where TeX lives and whether NoTeX is installed.