Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TrueMath","colors":{"primary":"#5C2D91","light":"#B18CFF","dark":"#3D1A6E"},"logo":{"light":"https://mintcdn.com/truemath/zvkgJv__Zo4LG2Q8/logo/light.png?fit=max\u0026auto=format\u0026n=zvkgJv__Zo4LG2Q8\u0026q=85\u0026s=218c7c7b2c0cc8181798b76c7c7475df","dark":"https://mintcdn.com/truemath/zvkgJv__Zo4LG2Q8/logo/dark.png?fit=max\u0026auto=format\u0026n=zvkgJv__Zo4LG2Q8\u0026q=85\u0026s=96821b03ef8253e384362c519c821c08"},"favicon":"https://mintcdn.com/truemath/zvkgJv__Zo4LG2Q8/favicon.ico?fit=max\u0026auto=format\u0026n=zvkgJv__Zo4LG2Q8\u0026q=85\u0026s=74181afb3a35d54ca21deb6d9005a529","navbar":{"links":[{"href":"mailto:hello@truemath.ai","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://app.truemath.ai"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"API Reference","icon":"code","href":"/api/overview"},{"anchor":"Domain Library","icon":"calculator","href":"/domain-library/overview"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.truemath.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"truemath","hasAudioNarration":false,"actualSubdomain":"truemath","customDomains":["docs.truemath.ai"],"gitSource":{"type":"github","owner":"truemathai","repo":"truemath-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ab9ae50ac10aa622fd5bbe4","collectionId":"9be71602-5934-4bc7-b587-437764e89ccc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ab9ae50ac10aa622fd5bbe4"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ab9ae50ac10aa622fd5bbe4","clientVersion":"0.0.3894","searchFilterCounts":[{"language":"default","tag":"Authoring Domains","count":13},{"language":"default","tag":"Function Library","count":11},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Concepts","count":8},{"language":"default","tag":"Data Types","count":4},{"language":"default","tag":"Playground","count":4},{"language":"default","tag":"Resources","count":4},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Domain Library","count":1},{"language":"default","tag":"Units","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"teamspace","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer>:last-child{margin-left:auto}"}],"page":{"pagePath":"authoring/customizing-a-library-domain","slug":"/authoring/customizing-a-library-domain","pageMetadata":{"title":"Customizing a library domain","description":"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.","href":"/authoring/customizing-a-library-domain"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Customizing a library domain","description":"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.","href":"/authoring/customizing-a-library-domain"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"truemath","siteName":"TrueMath","title":"Customizing a library domain - TrueMath","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-12T04:02:13.224Z","originalFileLocation":"authoring/customizing-a-library-domain.mdx"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TrueMath\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Customizing a library domain - TrueMath\">\u003cmeta data-mint-head property=\"og:description\" content=\"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TrueMath\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.truemath.ai/authoring/customizing-a-library-domain\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Customizing a library domain - TrueMath\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/truemath/RkkhwMkNL2SAPPeF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TrueMath\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5C2D91\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.truemath.ai/authoring/customizing-a-library-domain\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authoring/customizing-a-library-domain.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.truemath.ai/#organization\",\"name\":\"TrueMath\",\"url\":\"https://docs.truemath.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/truemath/zvkgJv__Zo4LG2Q8/logo/light.png?fit=max\u0026auto=format\u0026n=zvkgJv__Zo4LG2Q8\u0026q=85\u0026s=218c7c7b2c0cc8181798b76c7c7475df\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.truemath.ai#website\",\"name\":\"TrueMath\",\"url\":\"https://docs.truemath.ai\",\"publisher\":{\"@id\":\"https://docs.truemath.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain#webpage\",\"url\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain\",\"name\":\"Customizing a library domain\",\"description\":\"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\",\"dateModified\":\"2026-06-12T04:02:13.224Z\",\"isPartOf\":{\"@id\":\"https://docs.truemath.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Authoring Domains\",\"item\":\"https://docs.truemath.ai/authoring/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customizing a library domain\",\"item\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain#article\",\"headline\":\"Customizing a library domain\",\"name\":\"Customizing a library domain\",\"description\":\"Adapt a pre-built domain to your own conventions, regulatory requirements, or business logic.\",\"url\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain\",\"mainEntityOfPage\":{\"@id\":\"https://docs.truemath.ai/authoring/customizing-a-library-domain#webpage\"},\"dateModified\":\"2026-06-12T04:02:13.224Z\",\"publisher\":{\"@id\":\"https://docs.truemath.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.truemath.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TrueMath\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"TrueMath","nav":{"global":{"anchors":[{"anchor":"API Reference","icon":"code","href":"/api/overview"},{"anchor":"Domain Library","icon":"calculator","href":"/domain-library/overview"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.truemath.ai"}]},"pages":[{"group":"Introduction","pages":[{"title":"What is TrueMath","href":"/introduction/what-is-truemath"},{"title":"How TrueMath fits with LLMs","href":"/introduction/how-it-fits-with-llms"},{"title":"Guarantees","href":"/introduction/guarantees"}]},{"group":"Quickstart","pages":[{"title":"Quickstart","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"Domains","href":"/concepts/domains"},{"title":"Activities","href":"/concepts/activities"},{"title":"Variables","href":"/concepts/variables"},{"title":"Provenance","href":"/concepts/provenance"},{"title":"Scenarios","href":"/concepts/scenarios"},{"title":"Versioning","href":"/concepts/versioning"},{"title":"Units and precision","href":"/concepts/units-and-precision"},{"title":"Input formats","href":"/concepts/input-formats"}]},{"group":"Domain Library","pages":[{"title":"Domain library","href":"/domain-library/overview"}]},{"group":"Playground","pages":[{"title":"Playground tour","href":"/playground/tour"},{"title":"Input formats","href":"/playground/input-formats"},{"title":"Reading results","href":"/playground/reading-results"},{"title":"What-if scenarios","href":"/playground/what-if-scenarios"}]},{"group":"Authoring Domains","pages":[{"title":"Authoring overview","href":"/authoring/overview"},{"title":"Creating a domain","href":"/authoring/creating-a-domain"},{"title":"Writing activities","href":"/authoring/writing-activities"},{"title":"Writing equations","href":"/authoring/writing-equations"},{"title":"Defining variables","href":"/authoring/defining-variables"},{"title":"Authoring dates and durations","href":"/authoring/dates-and-durations"},{"title":"Authoring tables","href":"/authoring/tables"},{"title":"Authoring charts","href":"/authoring/charts"},{"title":"Natural language domain creation","description":"Describe a calculation workflow in plain language and generate a structured domain definition.","href":"/authoring/natural-language-domain-creation"},{"title":"Customizing a library domain","href":"/authoring/customizing-a-library-domain"},{"title":"Testing and publishing","description":"Test a domain draft by running calculations against it, then publish it so calculations can use it — or revert the draft.","href":"/authoring/testing-and-publishing"},{"title":"A worked domain: contractor estimating","href":"/authoring/worked-example-estimating"},{"title":"The domain definition","href":"/authoring/domain-definition"}]},{"group":"Data Types","pages":[{"title":"Scalar numbers","href":"/math/types/scalar-numbers"},{"title":"Unit numbers","href":"/math/types/unit-numbers"},{"title":"Dates","href":"/math/types/dates"},{"title":"Tables","href":"/math/types/tables"}]},{"group":"Units","pages":[{"title":"Units","href":"/math/units"}]},{"group":"Function Library","pages":[{"title":"Function library","href":"/math/functions/index"},{"title":"Operators and precedence","href":"/math/functions/operators-and-precedence"},{"title":"Arithmetic and powers","href":"/math/functions/arithmetic-and-powers"},{"title":"Trigonometry","href":"/math/functions/trigonometry"},{"title":"Rounding and numeric","href":"/math/functions/rounding-and-numeric"},{"title":"Unit functions","href":"/math/functions/units"},{"title":"Statistics","href":"/math/functions/statistics"},{"title":"Finance","href":"/math/functions/finance"},{"title":"Dates","href":"/math/functions/dates"},{"title":"Table functions","href":"/math/functions/tables"},{"title":"Conditionals and logic","href":"/math/functions/conditionals-and-logic"}]},{"group":"API Reference","pages":[{"title":"API overview","href":"/api/overview"},{"title":"Authentication","href":"/api/authentication"},{"title":"Calculate","href":"/api/calculate"},{"title":"Conversations","href":"/api/conversations"},{"title":"Scenarios","href":"/api/scenario-context"},{"title":"Domains","href":"/api/domains"},{"title":"Errors","href":"/api/errors"},{"title":"Limits","href":"/api/limits"}]},{"group":"Resources","pages":[{"title":"Glossary","href":"/resources/glossary"},{"title":"FAQ","href":"/resources/faq"},{"title":"Compliance and security","href":"/resources/compliance-and-security"},{"title":"Changelog","href":"/resources/changelog"}]}]},"title":"Customizing a library domain - TrueMath","buildId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","deploymentId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","dynamics":[],"chunks":[]}