diff --git a/labels/README.md b/labels/README.md new file mode 100644 index 0000000..5a226b0 --- /dev/null +++ b/labels/README.md @@ -0,0 +1,32 @@ +# Generate labels with Libre Office + +If not already done, install the "database" component of Libre Office. + +```sh +sudo dnf install libreoffice-base +``` + +* Launch Libre Office Base +* Select **Connect to an existing Database** +* In the dropdown list, select **Text** +* Click **Browse** and select the **users** folder +* Select **Comma-separated value files (CSV)** +* Click **Next >** and **Finish** +* Save the database somewhere + +* Launch Libre Office Writer +* Click **File** > **New** > **Labels** +* In the **Database** dropdown list, select your database +* In the **Table** dropdown list, select **users** +* In the **Database field** dropdown list, select **username** and click the left arrow. +* In the **Database field** dropdown list, select **password** and click the left arrow. +* In the **Format** tab, enter the dimensions of a credit card (8.56 cm x 5.40 cm). + +![Label Dimensions](label-dimensions.png) + +* In the **Options** tab, select **Synchronize contents** +* Click **New Document** +* Format it according to your liking +* Click **Synchronize Labels** +* In the **Mail Merge** toolbar, click **Save Merged Documents** +* Click **Save Documents** diff --git a/labels/label-dimensions.png b/labels/label-dimensions.png new file mode 100644 index 0000000..fe56742 Binary files /dev/null and b/labels/label-dimensions.png differ diff --git a/labels/labels.odt b/labels/labels.odt new file mode 100644 index 0000000..e87ba07 Binary files /dev/null and b/labels/labels.odt differ diff --git a/labels/users.odb b/labels/users.odb new file mode 100644 index 0000000..20470f8 Binary files /dev/null and b/labels/users.odb differ diff --git a/labels/users/.gitignore b/labels/users/.gitignore new file mode 100644 index 0000000..ec7d020 --- /dev/null +++ b/labels/users/.gitignore @@ -0,0 +1 @@ +users.csv