CTAN Comprehensive TeX Archive Network

texosquery announced too soon

Date: May 23, 2017 9:05:24 PM CEST
Sorry, the following announcement should have gone out 24 hours later as it has only just been installed and will not yet have been picked up by the mirrors: ----- Forwarded message from petra at ctan.org ----- From: petra at ctan.org To: ctan-ann at ctan.org Subject: CTAN Update: texosquery Date: Tue, 23 May 2017 20:56:56 +0200 Organization: CTAN Nicola Talbot submitted an update to the texosquery package. Version: 1.5 2017-05-23 License: lppl1.3 Summary description: Cross-platform Java application to query OS information Announcement text:
* Added new command line options to allow for mount point substitutions: --strip-path-prefix (-sp) --nostrip-path-prefix --strip-uri-prefix (-su) --nostrip-uri-prefix --replace-path (-rp) --noreplace-path --replace-uri (-ru) --noreplace-uri * Bash scripts now check for cygwin
The package’s Catalogue entry can be viewed at https://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 Petra Rübe-Pugliese
We are supported by the TeX users groups. Please join a users group; see https://www.tug.org/usergroups.html . ----- End forwarded message -----

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