texlive 2019 (under Windows): Templates not found
With texlive 2019 under Windows I got the following:
C:\temp\testtexplate>texplate -t article -o doc1.tex
______ __ __ ___ __
/\__ _\ /\ \ /\ \ /\_ \ /\ \__
\/_/\ \/ __ \ `\`\/'/' _____\//\ \ __ \ \ ,_\ __
\ \ \ /'__`\`\/ > < /\ '__`\\ \ \ /'__`\ \ \ \/ /'__`\
\ \ \/\ __/ \/'/\`\\ \ \L\ \\_\ \_/\ \L\.\_\ \ \_/\ __/
\ \_\ \____\ /\_\\ \_\ \ ,__//\____\ \__/.\_\\ \__\ \____\
\/_/\/____/ \/_/ \/_/\ \ \/ \/____/\/__/\/_/ \/__/\/____/
\ \_\
\/_/
TeXplate 1.0.1, a document structure creation tool
Copyright (c) 2020, Island of TeX
All rights reserved.
Configuration file mode disabled .................. [ DONE ]
Entering full command line mode ................... [ DONE ]
Please, wait...
Obtaining reference ............................... [FAILED]
HOUSTON, WE'VE GOT A PROBLEM -------------------------------
I am sorry, but the template file 'article.toml' could not
be found in the default template locations (system and
user). Make sure the reference is correct and try again. For
reference, these are the paths I searched:
'C:\Users\Adrian\.texplate\templates' and '.\templates' (in
this order).
------------------------------------------------------------
C:\texlive\2019\bin\win32\runscript.tlu:927: C:\texlive\2019\bin\win32\runscript.tlu:907: C:\OpenJDK\Win64\jdk1.8.0_232\bin\java.exe: No such file or directory
The error message is misleading. The file java.exe is where it is expected to be:
C:\temp\testtexplate>where java
C:\OpenJDK\Win64\jdk1.8.0_232\bin\java.exe
C:\temp\testtexplate>java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
In order to avoid the error message I found it necessary to create symbolic links as follows:
C:\Users\Adrian\.texplate>md templates
C:\Users\Adrian\.texplate>cd templates
C:\Users\Adrian\.texplate\templates>mklink article.toml "c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-article.toml"
symbolische Verknüpfung erstellt für article.toml <<===>> c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-article.toml
C:\Users\Adrian\.texplate\templates>mklink standalone.toml "c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-standalone.toml"
symbolische Verknüpfung erstellt für standalone.toml <<===>> c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-standalone.toml
C:\Users\Adrian\.texplate\templates>dir
Datenträger in Laufwerk C: ist OS
Volumeseriennummer: D60D-AF06
Verzeichnis von C:\Users\Adrian\.texplate\templates
26.01.2020 14:47 <DIR> .
26.01.2020 14:47 <DIR> ..
26.01.2020 14:47 <SYMLINK> article.toml [c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-article.toml]
26.01.2020 14:47 <SYMLINK> standalone.toml [c:\texlive\2019\texmf-dist\scripts\texplate\templates\texplate-standalone.toml]
2 Datei(en), 0 Bytes
2 Verzeichnis(se), 28.630.237.184 Bytes frei
Afterwards an attempt to create a new document using texplate succeeded:
C:\temp\testtexplate>texplate -t article -o doc1.tex
______ __ __ ___ __
/\__ _\ /\ \ /\ \ /\_ \ /\ \__
\/_/\ \/ __ \ `\`\/'/' _____\//\ \ __ \ \ ,_\ __
\ \ \ /'__`\`\/ > < /\ '__`\\ \ \ /'__`\ \ \ \/ /'__`\
\ \ \/\ __/ \/'/\`\\ \ \L\ \\_\ \_/\ \L\.\_\ \ \_/\ __/
\ \_\ \____\ /\_\\ \_\ \ ,__//\____\ \__/.\_\\ \__\ \____\
\/_/\/____/ \/_/ \/_/\ \ \/ \/____/\/__/\/_/ \/__/\/____/
\ \_\
\/_/
TeXplate 1.0.1, a document structure creation tool
Copyright (c) 2020, Island of TeX
All rights reserved.
Configuration file mode disabled .................. [ DONE ]
Entering full command line mode ................... [ DONE ]
Please, wait...
Obtaining reference ............................... [ DONE ]
Composing template ................................ [ DONE ]
Validating data ................................... [ DONE ]
Merging template and data ......................... [ DONE ]
Done! Enjoy your template!
Written: 112 B
C:\temp\testtexplate>dir
Datenträger in Laufwerk C: ist OS
Volumeseriennummer: D60D-AF06
Verzeichnis von C:\temp\testtexplate
26.01.2020 14:47 <DIR> .
26.01.2020 14:47 <DIR> ..
26.01.2020 14:47 112 doc1.tex
1 Datei(en), 112 Bytes
2 Verzeichnis(se), 28.630.237.184 Bytes frei
By the way: With texlive 2019 (under Kubuntu 19.04) there is no need to create additional symbolic links:
adrian@adrian-MS-7B45:~/testtexplate$ texplate -t article -o doc1.tex
______ __ __ ___ __
/\__ _\ /\ \ /\ \ /\_ \ /\ \__
\/_/\ \/ __ \ `\`\/'/' _____\//\ \ __ \ \ ,_\ __
\ \ \ /'__`\`\/ > < /\ '__`\\ \ \ /'__`\ \ \ \/ /'__`\
\ \ \/\ __/ \/'/\`\\ \ \L\ \\_\ \_/\ \L\.\_\ \ \_/\ __/
\ \_\ \____\ /\_\\ \_\ \ ,__//\____\ \__/.\_\\ \__\ \____\
\/_/\/____/ \/_/ \/_/\ \ \/ \/____/\/__/\/_/ \/__/\/____/
\ \_\
\/_/
TeXplate 1.0.1, a document structure creation tool
Copyright (c) 2020, Island of TeX
All rights reserved.
Configuration file mode disabled .................. [ DONE ]
Entering full command line mode ................... [ DONE ]
Please, wait...
Obtaining reference ............................... [ DONE ]
Composing template ................................ [ DONE ]
Validating data ................................... [ DONE ]
Merging template and data ......................... [ DONE ]
Done! Enjoy your template!
Written: 112 B
adrian@adrian-MS-7B45:~/testtexplate$ ls -l doc1*
-rw-rw-r-- 1 adrian adrian 112 Jan 26 15:26 doc1.tex