CTAN update: texosquery
* Now has three .jar files depending on the Java installation: - texosquery-jre8.jar Full application. May be used with the CLDR locale provider (Unicode Consortium's Common Locale Data Repository). Requires at least Java 8 (use with java -Djava.locale.providers=CLDR,JRE or add "java.locale.providers=CLDR,JRE" to the JAVA_TOOLS_OPTIONS environment variable to access the CLDR) - texosquery.jar The default version of the application. Can't be used with CLDR. Less locale support. Requires at least Java 7. - texosquery-jre5.jar Cut-down version of the application with significantly less locale support. Provided for old systems that can't upgrade, but not recommended. (Use of Java 5 or 6 is deprecated.) Requires at least Java 5. * New texosquery.cfg configuration file. Edit the definition of \TeXOSInvokerName to indicate which application you need to use. For example, if Java 8 is installed: \def\TeXOSInvokerName{texosquery-jre8} See the installation section of the manual for further details. * New command line switches. * Actions --list (-i) and --filterlist (-f) now have an optional argument to indicate the sort order. * When accessing file information, the TEXMF openin_any setting is first checked to determine if read access is permitted. * Returned values now include some shorthand markup that's internally converted when read in by \TeXOSQuery. For example "texosquery -n" now returns \pdfd \fcln 20161113161156\fpls 00\fcsq 00\fcsq instead of D:20161113161156+00'00' To restore the original behaviour use --compatible 1 See manual for further details.
The package's Catalogue entry can be viewed at http://www.ctan.org/pkg/texosquery The package's files themselves can be inspected at http://mirror.ctan.org/support/texosquery
Thanks for the upload. For the CTAN Team Erik Braun
We are supported by the TeX users groups. Please join a users group; see http://www.tug.org/usergroups.html .
texosquery – Cross-platform Java application to query OS information
This package provides a cross-platform Java application to query OS information designed for use in TeX’s shell escape mechanism.
The application can query the following:
- locale and codeset
- current working directory
- user home directory
- temporary directory
- OS name, arch and version
- Current date and time in PDF format (for TeX formats that don’t provide \pdfcreationdate)
- Date-time stamp of a file in PDF format (for TeX formats that don't provide \pdffilemoddate)
- Size of a file in bytes (for TeX formats that don’t provide \pdffilesize)
- Contents of a directory (captured as a list)
- Directory contents filtered by regular expression (captured as a list)
- URI of a file
- Canonical path of a file
All paths use a forward slash as directory divider so results can be used, for example, in commands like \includegraphics.
There are files provided for easy access in TeX documents:
- texosquery.tex: generic TeX code
- texosquery.sty: LaTeX package
This provides commands to run texosquery using TeX’s shell escape mechanism and capture the result in a control sequence. The category code of most of TeX’s default special characters (and some other potentially problematic characters) is temporarily changed to 12 while reading the result.
Package | texosquery |
Version | 1.7 2020-02-04 |
Copyright | 2016–2020 Nicola Talbot |
Maintainer | Nicola Talbot |