GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SQLTeX(1) FreeBSD General Commands Manual SQLTeX(1)

SQLTeX - a preprocessor to enable the use of SQL statements in LaTeX documents.

sqltex <INPUT-FILE> [PARAMETERS] [OPTIONS]

SQLTeX is a preprocessor to enable the use of SQL statements in LaTeX. It is a tool that reads an input file containing the SQL commands, and writes a LaTeX file that can be processed with your LaTeX package.

The SQL commands will be replaced by their values. It's possible to select a single field for substitution substitution in your LaTeX document, or to be used as input in another SQL command.

For a full description, please refer to the PDF documentation.

SQL queries in the input file can contain parameters in the form '$PAR<n>' where <n> is a number between 1 and 9, e.g.:

\sqlrow{SELECT * FROM table WHERE field_s = '$PAR1' AND field_i = $PAR2}

SQLTeX configuration file. This option might be disallowed by your systems administrator.

Replace input file extension in outputfile: 'input.tex' will be 'input.string'. For further notes, see option '--filename-extend'

NULL return values allowed. By default SQLTeX exits if a query returns an empty set

Database password. The value is optional; if omitted, SQLTeX will prompt for a password. This overwrites the password in the input file.

Database username

Print version number and exit

Add string to the output filename: 'input.tex' will be 'inputstring.tex'. In 'string', the values between curly braces {} will be substituted:

parameter n
current monthname (Mon)
current weekday (Wdy)
current date (yyyymmdd)
current date and time (yyyymmddhhmmss) -IP T current time (hhmmss)


The options '--file-extension' and '--filename-extend' cannot be used together or with '--output'.

Force overwrite of existing files

Print this help message and exit

Multidocument mode; create one document for each parameter that is retrieved from the database in the input document (see documentation) This option cannot be used with '--output'.

Same as -m, but with the parameter in the filename i.s.o. a serial number

Specify an output file. Cannot be used with '--file-extension', '--filename-extend' or the '--multidoc' options.

All SQLTeX commands will be removed from the input line or replaced by the corresponding value. The rest of the input line is written to the output file. This includes lines that only contain a SQLTeX command (and a newline character). This will result in an empty line in the output file. By specifying this option, these empty lines will be skipped. Lines that were empty in the input will be written.

LaTeX comments in the input file will be skipped by default. With this option, comments will also be copied to the output file.

Prefix used in the SQLTeX file. Default is 'sql' (see documentation)

Run in quiet mode

Specify a file that contains replace characters. This is a list with two tab-separated fields per line. The first field holds a string that will be replaced in the SQL output by the second string.

Do not use a replace file. '--replacementfile' '--no-replacementfile' are handled in the same order as they appear on the command line.

SQL server to connect to. Default is ´localhost´

If the input file contains updates, execute them.

{SYSCONFDIR}/SQLTeX_r.dat
Default replacement file. If your installation is part of TEX Live the file will redisde in the same directory as the sqltex executable
{SYSCONFDIR}/SQLTeX.cfg
Default configuration file. If your installation is part of TEX Live the file will redisde in the same directory as the sqltex executable
{BINDIR}/sqltex
The sqltex executable. The location might differ depending on your installation type, e.g. as part if the TEX Live distribution.

0
Success

1
SQLTeX ended with an error, check the last message.

Copyright 2001-2024 Oscar van Eijk, Oveas Functionality Provider. https://oveas.com

This software is subject to the terms of the LaTeX Project Public License; see http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html

Version 2.2 LaTeX preprocessor

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.