NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
reference.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <string_view>
10#include <vector>
11
13
15struct Snippet {
16 std::string_view name;
17 std::string_view content;
18};
19
22const std::vector<Snippet>& all_snippets();
23
27std::vector<std::string_view> snippet_names();
28
41std::vector<Snippet> find_snippets(std::string_view name);
42
43} // namespace notex::reference
std::vector< std::string_view > snippet_names()
std::vector< Snippet > find_snippets(std::string_view name)
Looks up every snippet registered under name, whether as its canonical name or as an alias.
const std::vector< Snippet > & all_snippets()
One ready-to-paste snippet served by notex get.
Definition reference.hpp:15
std::string_view content
Ready-to-paste LaTeX.
Definition reference.hpp:17
std::string_view name
Canonical name, e.g. "cbox".
Definition reference.hpp:16