Jump to content

Dissertation.Tools: Difference between revisions

From MindAttic Docs
md2wiki: sync from MindAttic.Docs
md2wiki: sync from MindAttic.Docs
Line 98: Line 98:
== Documentation ==
== Documentation ==


* [https://github.com/mindattic/Dissertation.Tools/blob/main/DESIGN.md DESIGN.md]: the project contract and every convention in full (exports, verification levels, the ledger appendix, <code>references/</code>, word counts, Pages).
* DESIGN.md: the project contract and every convention in full (exports, verification levels, the ledger appendix, <code>references/</code>, word counts, Pages).


== License ==
== License ==

Revision as of 22:14, 29 November 2026

Dissertation.Tools

Write a dissertation in Markdown where every citation records how far its source was actually verified; exports to PDF, Word, ePub and a GitHub Pages site.

PowerShell-5.1-blue.svg manuscript-Markdown-informational.svg status-in%20use-green.svg

chapters/*.md ──► scripts\export.ps1 ──► MindAttic.Export ──► "<Base> V<N>.pdf/.docx/.md/.epub/.txt"
      │                                                              │
references/VERIFICATION.md                                  -Publish │
references/UNRETRIEVED.md                                            ▼
Appendix: verification ledger                    exports\<Title>.pdf/.docx/.md + docs\<slug>.md (Pages)

Why

  • Know, for every source you cite, whether you read the full text, only the abstract, or only found the record, and keep your claims inside what you actually read.
  • Hand a reader or examiner a ledger appendix that shows the verification level of every source and every correction made to the draft.
  • Keep a library list of what you could not retrieve, so the gaps are written down instead of hidden.
  • Get a numbered, archived bundle in PDF, Word, Markdown, ePub and plain text from one command, and never hand-edit an export.
  • Count words by one written rule, body and total, so a stated count can be checked.
  • Start a second manuscript with the same conventions instead of copying files and forking them on day one.

The verification ledger

Dissertation.Tools exists because a citation alone does not say whether anyone read the source. Each manuscript keeps a ledger that does.

  • Three levels. Every source is recorded as Full text read (or the relevant parts, stated after the entry), Abstract or publisher page read, or Record located (bibliographic record only).
  • Claims at the verified level. A source read only at its abstract supports only what the abstract establishes. A record-only source is cited for central, widely documented claims and flagged for a library check. An unopened source is never presented as verified.
  • The unretrieved list. references/UNRETRIEVED.md lists every work checked only at the cited passage, cited from a preprint because the published version could not be opened, or removed for want of a copy, each with what to get from the library.
  • The corrections log. The ledger appendix numbers every correction made to the working draft, cumulatively and never renumbered, and each later review pass appends its own section saying what it checked, what it changed and what remains open.
  • Research notes. Each source gets an entry with its full reference, its verification level, what it actually establishes and how the manuscript uses it.

Adding a citation means adding the reference entry, its ledger level and its research note, and checking the in-text and reference-list forms match.

Features

  • Scaffold. New-AcademicProject.ps1 creates a manuscript from template/: academic.json, export.json, the export shim, front matter, the ledger appendix, the references/ ledgers and research-note index, and a GitHub Pages workflow. It never overwrites an existing file.
  • Export. Export-Manuscript.ps1 renders the chapters through the MindAttic.Export library into a versioned bundle <fileBaseName> V<N>.* with description.txt and keywords.txt, archiving the previous bundle into Archives\v<N>\.
  • Publish. Publish-Exports.ps1 (or export.ps1 -Publish) copies the newest PDF, Word and Markdown into the project's exports\ folder under the work's title, and the Markdown into the Pages article.
  • Word count. Measure-Words.ps1 prints a per-file table plus body and total counts, after removing math, code, comments and link targets. It never writes into the manuscript.
  • Whole repo or subfolder. A project can be a repo of its own or a folder inside a larger repo.

Quick start

Prerequisites: Windows PowerShell 5.1, the .NET SDK, and a clone of MindAttic.Export beside your repo (or $env:MINDATTIC_EXPORT pointing at its MindAttic.Export.Cli project). Clone Dissertation.Tools beside your manuscript repo:

cd D:\Projects
git clone https://github.com/mindattic/Dissertation.Tools
git clone https://github.com/mindattic/MindAttic.Export

Scaffold a manuscript. -Author is required:

cd D:\Projects\MyThesis
powershell -File ..\Dissertation.Tools\scripts\New-AcademicProject.ps1 -Path dissertation -Title "My Thesis" -FileBaseName THESIS -Author "A. Author"

Write chapters as chapters\NN-slug.md, each starting with one # heading. Then export and publish:

powershell -File dissertation\scripts\export.ps1
powershell -File dissertation\scripts\export.ps1 -Formats pdf,docx
powershell -File dissertation\scripts\export.ps1 -Publish

You should see THESIS V1.pdf, .docx, .md, .epub and .txt in dissertation\exports\, and after -Publish the unversioned My Thesis.pdf, .docx and .md. Count words with:

powershell -File ..\Dissertation.Tools\scripts\Measure-Words.ps1 -ProjectRoot dissertation

Configuration

  • academic.json sets the export definition file, the word-count rule (wordCount.body, wordCount.exclude) and the publish step (publish.directory, publish.name, publish.formats, publish.pages). Paths are relative to the project root.
  • export.json is a MindAttic.Export bundle definition: title page, sources, outputDirectory, fileBaseName, formats, profile, toc, math. The template writes to a relative exports folder; a relative path resolves against the folder holding export.json.
  • scripts\export.ps1 in each project finds Dissertation.Tools at $env:DISSERTATION_TOOLS_HOME, else ..\Dissertation.Tools beside the project's git root, else the legacy $env:MINDATTIC_ACADEMIC.

Check which copy a project will use without exporting:

$env:DISSERTATION_TOOLS_DRYRUN = 1; powershell -File scripts\export.ps1; Remove-Item Env:DISSERTATION_TOOLS_DRYRUN

Project layout

DESIGN.md                    the conventions of record
scripts/
  Academic.Common.ps1        shared helpers
  Export-Manuscript.ps1      export through MindAttic.Export
  Publish-Exports.ps1        copy the newest bundle into exports/ and the Pages article
  Measure-Words.ps1          the word-count rule
  New-AcademicProject.ps1    scaffold a manuscript from template/
template/                    files a new manuscript starts from

Works using it

Limitations

  • Windows PowerShell only; the scripts use Windows paths.
  • Rendering needs the MindAttic.Export library and the .NET SDK; Dissertation.Tools does not render on its own.
  • The Pages workflow in the template calls a reusable workflow in mindattic/MindAttic.Agency; replace it if you publish elsewhere.
  • The ledger is a convention, not a checker: nothing verifies that a source was read at the level recorded.

Documentation

  • DESIGN.md: the project contract and every convention in full (exports, verification levels, the ledger appendix, references/, word counts, Pages).

License

This repo has no LICENSE file. All rights reserved.

Pages in this repository

From Dissertation.Tools/README.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.