Initial commit: Klammertext source distribution

Curated source subset assembled by klammertext-dev's doc/make_dist.sh: the Klammermachine (mac), the Standard Klammer Set (sks), the commands (com), editor plugins and install guides (doc), a test subset (tst), and lib/bin placeholders. Builds with 'make -C com'.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-18 18:48:23 +02:00
commit 2ba7ceee7a
272 changed files with 27634 additions and 0 deletions

33
sks/target/latex_util.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include <string>
#include <vector>
#include "font_resolve.h"
namespace latex {
std::string page(std::string structure,
std::string title,
std::string subtitle,
std::string authors,
std::string date,
std::string version,
std::string copyright,
std::string bottom,
std::string prolog,
std::string paper_size,
bool two_column,
float leading,
int pointsize,
bool ragged_right,
std::string cover,
bool landscape,
std::string body,
Resolved_font serif_font = {},
Resolved_font sans_font = {},
Resolved_font mono_font = {},
float font_scale = 1.0f);
}
void check_for_xelatex();
std::vector<std::string> find_latex_error_lines(const std::string& log_content);