CTAN Comprehensive TeX Archive Network

CTAN update: texosquery

Date: March 27, 2017 7:43:55 AM CEST
Nicola Talbot submitted an update to the texosquery package. Version number: 1.2 2017-03-23 License type: lppl1.3 Summary description: Cross-platform Java application to query OS information Announcement text:
* 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 ’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 formats that don’t provide \pdfcreationdate)
  • Date-time stamp of a file in PDF format (for formats that don't provide \pdffilemoddate)
  • Size of a file in bytes (for 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 documents:

  • texosquery.tex: generic code
  • texosquery.sty: package

This provides commands to run texosquery using ’s shell escape mechanism and capture the result in a control sequence. The category code of most of ’s default special characters (and some other potentially problematic characters) is temporarily changed to 12 while reading the result.

Version1.7 2020-02-04
Copyright2016–2020 Nicola Talbot
MaintainerNicola Talbot



Guest Book Sitemap Contact Contact Author