RedcrabX – Worksheet Guide

Saving, loading, printing, layout and ribbon groups  |  Version 1.0

Back to Quick Start Guide

Table of Contents


1. Overview

A worksheet is the main document of RedcrabX. It is a free-form canvas that can hold any number of boxes — MathBox, TextBox, ImageBox, LabelBox, PlotBox, ChartBox — arranged anywhere by drag & drop. Worksheets are saved as .rcx files (a JSON-based format) and can be printed in full or as a selected region.

2. Saving the Worksheet (.rcx)

Use the application menu (the round button in the top-left of the ribbon) and choose Save. A Save File dialog appears with the filter RCX Workspace (*.rcx) and the default file name workspace.rcx. The file extension .rcx is added automatically.

All boxes on the worksheet are serialized including their:

Note: Image data is stored as Base64 directly inside the .rcx file, so worksheets remain self-contained even if the original image file is moved or deleted.

3. Loading and Recent Files

Open the application menu and choose Open. The dialog filter accepts *.rcx and falls back to All files. After loading, every box is re-created with its full state, including anchors and rich-text formatting.

The application menu also has a Recent sub-menu that lists the worksheets most recently saved or opened. Click an entry to reopen it directly.

Choose New to start an empty worksheet. Select "New" to create a blank worksheet. The current worksheet is saved as Workspace.rcx. Workspace.rcx is overwritten every time the worksheet is cleared or the program is exited..

4. The .rcx File Format

An .rcx file is a UTF-8 JSON document. The high-level structure is:

{
  "version": 1,
  "items": [
    { "type": "math",  "x": ..., "y": ..., "width": ..., "height": ...,
      "expression": "...", "outputFormat": "...", "decimalPlaces": ..., "useDegrees": ... },
    { "type": "text",  "x": ..., "y": ..., "width": ..., "height": ...,
      "text": "...", "richText": "<Section ...>...</Section>" },
    { "type": "image", "x": ..., "y": ..., "width": ..., "height": ...,
      "imageBase64": "...", "imagePath": "..." },
    { "type": "label", "x": ..., "y": ..., "width": ..., "height": ...,
      "mode": "Text", "inputText": "...", "fontFamily": "...", "fontSize": ...,
      "rotation": ..., "foregroundColor": "#FF000000",
      "backgroundColor": "#FFFFFFFF", "backgroundTransparent": false,
      "anchorTargetIndex": ..., "anchorOffsetX": ..., "anchorOffsetY": ... },
    { "type": "plot",  ... },
    { "type": "chart", ... }
  ],
  "extensions": { }
}

The extensions object is reserved for forward-compatible additions; unknown fields are preserved on round-trip so older files keep working with newer versions.

Tip: Because .rcx is plain JSON, it can be diff’ed and version-controlled. This is convenient for shared template worksheets.

5. Printing

The application menu offers two print actions:

Menu itemEffect
Print PreviewShows the current worksheet (or the selected print area) in a print-preview window.
PrintSends the current worksheet (or the selected print area) directly to a printer.

The same actions are available in the Print ribbon group on the Tools tab.

6. Print Area Selection

By default, RedcrabX prints the rectangle that bounds all visible boxes. To print only part of the worksheet, define a print area:

  1. On the Tools tab, in the Print group, click Select Print Area.
  2. The cursor changes; drag a rectangle on the canvas over the region you want to print.
  3. Release the mouse. The selected rectangle is shown as an overlay.
  4. Use Print Preview or Print — only the selected area is rendered.
  5. To remove the overlay and return to full-page printing, click Clear Print Area.

Note: The print-area overlay is purely a print hint — it is not saved with the worksheet and disappears when you create a new worksheet.

7. Workspace Layout

The worksheet is a free-form canvas, not a flowing document. Each box has an absolute position (x, y) and size (width, height).

Inserting boxes

Use the Workspace and Workspace ribbon groups on the Home tab to add MathBoxes, TextBoxes, ImageBoxes, LabelBoxes, PlotBoxes and ChartBoxes.

Moving and resizing

Selection and deletion

8. Anchored Boxes

A LabelBox can be anchored to any other box. The label remembers the offset to its target and follows the target whenever it is moved. This is useful for axis labels on plots, callouts on images and live readouts next to MathBoxes.

Anchors are part of the worksheet state and are restored when the file is reloaded.

9. Ribbon Groups

The ribbon at the top of the window groups related actions:

Tab / GroupPurpose
Home → ClipboardCut, Copy, Paste boxes or images.
Home → Font (MathBox Default)Default font family, size and output format applied to newly created MathBoxes.
Home → WorkspaceInsert TextBox, PlotBox, ImageBox, LabelBox.
Home → InsertInsert specialized boxes such as ChartBox.
Home → CalculatorQuick-access calculator buttons.
Functions → Functions / TablesCommon function and table inserts.
Tools → PrintSelect / Clear print area, Print Preview.

Tip: Changing values in the Font (MathBox Default) group only affects MathBoxes created after the change. Existing boxes keep their settings; edit them through their own toolbar.

10. Tips and Best Practices