Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import defineFunction from "../defineFunction";2import {makeLineSpan, makeSpan, makeVList} from "../buildCommon";3import {MathNode, TextNode} from "../mathMLTree";4 5import * as html from "../buildHTML";6import * as mml from "../buildMathML";7 8defineFunction({9 type: "overline",10 names: ["\\overline"],11 props: {12 numArgs: 1,13 },14 handler({parser}, args) {15 const body = args[0];16 return {17 type: "overline",18 mode: parser.mode,19 body,20 };21 },22 htmlBuilder(group, options) {23 // Overlines are handled in the TeXbook pg 443, Rule 9.24 25 // Build the inner group in the cramped style.26 const innerGroup = html.buildGroup(group.body,27 options.havingCrampedStyle());28 29 // Create the line above the body30 const line = makeLineSpan("overline-line", options);31 32 // Generate the vlist, with the appropriate kerns33 const defaultRuleThickness = options.fontMetrics().defaultRuleThickness;34 const vlist = makeVList({35 positionType: "firstBaseline",36 children: [37 {type: "elem", elem: innerGroup},38 {type: "kern", size: 3 * defaultRuleThickness},39 {type: "elem", elem: line},40 {type: "kern", size: defaultRuleThickness},41 ],42 }, options);43 44 return makeSpan(["mord", "overline"], [vlist], options);45 },46 mathmlBuilder(group, options) {47 const operator = new MathNode(48 "mo", [new TextNode("\u203e")]);49 operator.setAttribute("stretchy", "true");50 51 const node = new MathNode(52 "mover",53 [mml.buildGroup(group.body, options), operator]);54 node.setAttribute("accent", "true");55 56 return node;57 },58});59 