summaryrefslogtreecommitdiffstats
path: root/content/posts/ecrm1000.tfm-latex-issues.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/ecrm1000.tfm-latex-issues.md')
-rw-r--r--content/posts/ecrm1000.tfm-latex-issues.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/content/posts/ecrm1000.tfm-latex-issues.md b/content/posts/ecrm1000.tfm-latex-issues.md
new file mode 100644
index 0000000..0ee4a2d
--- /dev/null
+++ b/content/posts/ecrm1000.tfm-latex-issues.md
@@ -0,0 +1,34 @@
+---
+title: "Pandoc TXT to PDF exporting ecrm1000.tfm issues"
+date: 2018-11-26T10:41:00
+tags: ["formats", "linux", "snippets", "software"]
+---
+
+Recently I was experimenting with [paperless](https://github.com/danielquinn/paperless) and importing a number of files to see how the software handled things. Over the course of this experiment the only files that didn't seem to be accepted were plain txt files.
+
+A simple solution (or so I thought) would be to convert these to PDF, and just run the import again. Pandoc is my goto choice for all types of textual documentation management, so I threw the files through the following command:
+
+```
+for i in *.txt; do pandoc "$i" -o "${i%txt}pdf"; done
+```
+
+Which helpfully gave me:
+```
+pdflatex not found. Please select a different --pdf-engine or install pdflatex
+```
+This can be remedied via:
+```
+sudo apt-get install texlive-latex-recommended
+```
+Which then nets you:
+```
+Error producing PDF.
+! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found.
+```
+
+This incredibly helpful message can be resolved via:
+```
+sudo apt-get install texlive-fonts-recommended texlive-latex-recommended
+```
+
+Which finally produces acceptable PDF files using the very first command. Phew. \ No newline at end of file