NoTeX
1.0.0
A modern noteworthy LaTeX template
Toggle main menu visibility
Loading...
Searching...
No Matches
notex
include
notex
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
13
namespace
notex
{
14
22
class
Installer {
23
public
:
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
notex::Environment
Represents the surrounding system as NoTeX perceives it: where TeX expects user files to live,...
Definition
environment.hpp:35
notex::Installer::install_local
static bool install_local(const std::filesystem::path &target_dir, bool force=false)
Installs the template locally into target_dir.
Definition
installer.cpp:117
notex::Installer::installation_differs
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.
Definition
installer.cpp:200
notex::Installer::uninstall_global
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...
Definition
installer.cpp:144
notex::Installer::uninstall_local
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...
Definition
installer.cpp:174
notex::Installer::install_global
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.hpp
Environment: discovers where TeX lives and whether NoTeX is installed.
notex
Definition
assets.hpp:20
Generated by
1.17.0