summaryrefslogtreecommitdiffstats
path: root/content/posts/ecrm1000.tfm-latex-issues.md
diff options
context:
space:
mode:
authorbreadcat2020-06-19 12:23:15 +0100
committerbreadcat2020-06-19 12:23:15 +0100
commit70bb5d5a801428b0fb390abf79f19ffcf5e29c67 (patch)
treeb9fd7990156bd58bc38d58f91829c05933215102 /content/posts/ecrm1000.tfm-latex-issues.md
parent0f9a31348079c0a061bcc194912e75cc1c07bc1f (diff)
downloadblog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.tar.gz
blog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.tar.bz2
blog.minskio.co.uk-70bb5d5a801428b0fb390abf79f19ffcf5e29c67.zip
Simple migration of existing posts to hugo format
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