Skip to content

Report Builder#

The Report Builder is a document editor for report templates. A template is ordinary formatted text with data fields in it; Generate fills the fields from the current project and writes a PDF, Word or HTML file.

Templates#

The template buttons in the top bar manage named templates for the project.

Button What it does
New Starts an empty template.
Open Opens a saved template.
Save Saves the open template. It is disabled for a template that has no name yet; use Save As first.
Save As Saves a copy under a new Report Name. An existing name asks before it is replaced.

An empty template cannot be saved. The bar shows the time of the last autosave. Users without edit permission can read a template and use Preview and PDF, but not change it.

Placeholders#

A report that uses scan sections starts with the scans of the loaded scan's sample (the Source scans bar reads "Using 3 scans of Sample 12"); Choose scans… changes them. Hovering a scan chip shows its spectrum, and clicking it opens the scan.

Click Insert Data in the editor toolbar, or type {{, to add a data field such as sample.name. Browse All Data Fields... opens a searchable tree; double-click a field, or select a leaf and click Insert. Hover an existing placeholder to see its resolved value and the scan it comes from; click it to open that scan, or double-click it to edit its name and options (Edit Placeholder). The name is chosen from a searchable list of data fields, each shown with what it resolves to now. The scan is the report's main scan.

Figures are inserted the same way. A figure placeholder has an Options button for what it draws (real, imaginary or magnitude part, Peak Labels, Integrals, J-Coupling Tree, Molecule) and its X Min / X Max range. Use current view copies the settings from the plot as it looks now. The options apply only to that figure.

{{experiment.sequence_diagram}} draws the scan's pulse-sequence diagram as it appears under Sequence in the scan's information: the stored sequence of a scan acquired with NucleI, or the pulse program of an imported Bruker scan as far as it is read (see Supported formats). A diagram that is only partly read ends with a line naming the program lines left out. A scan with neither shows the same dash as any other field without data.

{{peaks}} is the peak list and {{shifts}} the signals; {{peaks.assignment}} is only the assigned part, as its own table. For a 1D scan it has one row per assigned signal with its atoms, shift, multiplicity, J couplings, proton count and integral; for a 2D scan, one row per assigned cross-peak with its atom pair. Atoms are numbered by the project's atom-numbering setting, the same as in the peak-list export. It works inside Repeat for... blocks and is kept as approved with the report.

Journal style#

Journal styles apply to the experimental line. {{experimental}} writes the reported signals as one line, ¹H NMR (400 MHz, CDCl3) δ 7.26 (d, J = 7.1 Hz, 2H), …, in the template's journal style; the peak table's copy button writes the same line. The Journal style selector in the Report Builder bar sets the template default, and the gear on an {{experimental}} placeholder (or {{experimental|style:rsc}}) names its own. The styles are ACS, RSC, Wiley / Thieme, Elsevier and a bare shift list. The Wiley / Thieme and Elsevier layouts follow the publishers' published examples and have not been checked against a current author guideline. The {{peaks}}, {{shifts}} and {{peaks.assignment}} tables keep their own layout in every style; a template saved with a style on one of them has it removed when it is opened. The Journal Article template starts from this.

Repeat blocks#

Repeat for... wraps a part of the template so it is written once for every scan, or once for every page of the Acquisition workspace, with that scan's or page's data.

  • Scans can cover Every report scan, 1D scans, 2D scans, chosen experiment types, or chosen scans.
  • Pages can cover Every page or chosen pages. A scans block inside a pages block repeats only for that page's scans.
  • Block title is printed once above the repeated part, and is left out if the block covers nothing.

The report's scans are the benches on the Analysis page, or the loaded scan when there are none. The bar under the toolbar lists them; Choose scans... changes the list. Remove block (keep content) unwraps a block.

Page layout#

Page size, orientation & margins... sets A4, Letter or Legal, Portrait or Landscape, and the margins in mm. Page numbers... adds a number to the header or footer in a format such as Page {n} of {m}, optionally skipping the first page.

Word import#

Import reads a .docx file and replaces the open template with its content. You are asked to confirm because unsaved changes are lost. Formatting is converted to HTML, so complex Word layouts may change; any conversion warnings are shown after import. Then add placeholders where the document has fixed text.

Preview and generating#

Preview renders the template with real data. Preview ready shows how many fields were missing or produced warnings. Generate writes the final file in one of three formats:

Format Notes
PDF Report Uses the page size, orientation and margins above.
Word Document An editable .docx.
HTML Report A single web page.

Generation can take a while. Cancel only stops waiting: the report may still finish in the background, but it is not downloaded. When it succeeds you can Open it or Show in folder.

Send to a notebook#

When a plugin provides a destination such as eLabFTW, the arrow next to Generate lists Send to with its name. To send scans without a report, use Share in the Data Browser. Choose the format (PDF or Word), the server, an API key, and optionally the experiment to add to, then Send. The report is made as usual and kept in the archive, then delivered with a result.json describing it. Include scan data also sends the .nuclei file of each scan the report describes. A pop-up gives the link to the entry, or the reason the delivery failed. The connection is remembered for the next time; the key is kept encrypted and is never shown.

One report per scan#

One report per scan (beside Choose in the scans bar) writes a separate report for each scan in the working set. Pick the template and the format, then Generate. Each report describes only its own scan: repeat blocks, the scan fields and the spectrum all refer to that scan. Reports are written one after another; the dialog lists every scan with its outcome, and Stop ends the run after the report in progress. A scan that cannot be read, or a report that fails, is listed with its reason and does not stop the others. When a destination is installed, the dialog can add one to deliver each scan's report to; a delivery that fails is listed as a warning of that scan and the report stays in the archive.

With Also write a summary of the batch on, a further report from the Batch Summary template lists each scan with its outcome, warnings and fields no data filled, and a CSV of the same table is kept with the archive. Its fields are {{batch.count}}, {{batch.succeeded}}, {{batch.failed}} and {{batch.table}}, and they are filled only in that report.

The same run is available from the Data Browser (Report for each scan… on a selection, group, sample or project) and as a Task Manager step. Every report is its own entry in the Reports archive, with the scan it describes; entries of one batch share a batch id. A project whose report is approved cannot start a batch: the approval covers its own report only.

Print current view (Ctrl+P, ⌘P on macOS, or the command palette) renders the Current View template, a single page with the scan, sample, nucleus, date and the spectrum as it is on screen, and opens it in the preview with its Print button. It is available once a plot is showing. The page uses the template's own layout; edit the Current View template to change it. A printed view is light paper like every report figure, is not archived and is not signed.

Review and signing#

The Review & output bar above the editor shows the template's state (Draft, In review, Changes requested, Approved) and the next sign-off step, such as Request review or Approve. Each step asks you to re-enter your password and records what you are attesting to. Approve puts your signature on the printed report. If the template is edited after signing, the bar warns that the signatures no longer match. Comments opens a thread panel for the whole report.

Every generated file is also signed with the key of the active profile; the signature is embedded in the PDF or Word file.

Generated reports#

The Reports button opens an archive of every report generated for the project. Search, sort, and filter by format; PDF and HTML reports preview in place, Word files open in the default app. Re-download, Show in folder and Delete are on each report. Users without edit permission get their file but leave no archived copy.

Note

Generated reports are fixed once written. Change the template or the data, then generate again.