EnglishFrenchSpanish

OnWorks favicon

gather_stx_titles - Online in the Cloud

Run gather_stx_titles in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gather_stx_titles that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


gather_stx_titles - gather title declarations from Stx documents

SYNOPSIS


gather_stx_titles [ -f from-suffix ] [ -t to-suffix ] [ m4 options ] file [ file ... ]

DESCRIPTION


gather_stx_titles digs out Stx metadata declarations from the listed files, and dumps the
title and document ID information as m4 definitions into standard output. This
information can later be used by w_crosslink to link the documents by their metadata.

Why is this useful? Well, imagine that you have a large site with a lot of cross-linking.
A document's name will appear in many places: in the link menu (if you have one), and in
the body of different pages where it is cross-linked from. gather_stx_titles lets you put
all the information in one place and where it belongs, i.e. the file itself. You'll be
glad if you did, when the time comes to change document titles or move the documents
around; especially so if your website has multilingual magic.

OPTIONS


gather_stx_titles uses m4 internally and will accept any option m4 accepts. In addition
to those, it takes the following options:

-f from-suffix
In the filename data, substitute away the suffix from-suffix. Actually,
from_suffix may be a regular expression; stupid but true, in GNU m4 it is a
“traditional” regexp, whereas in BSD m4 it is an “extended” regexp. Default to
no suffix (nothing to take away).

-t to-suffix
In the filename data, substitute the suffix taken away by from-suffix with to-
suffix. If from-suffix is nil (the default), append to-suffix to all filenames.

-p prefix
Strip away the prefix given by (regular expression) prefix from filenames. The
equivalent of -t for this does not exist, because you can specify a directory
prefix to w_crosslink by w_base.

--version, -V
Just show version information and exit.

--help, -?
Just show a short help message and exit.

EXAMPLES


I guess most of the time you will want to automate the use of gather_stx_titles, for
example with a Makefile like this:

SOURCES = $(wildcard *.stx)
TARGETS = $(SOURCES:.stx=.html)

all: $(TARGETS)

titles.m4: $(SOURCES)
gather_stx_titles -f stx -t html $^ > $@

%.html: %.stx titles.m4
stx2any -T html titles.m4 $< > $@

If you don't want to be quite so correct, drop the .html dependency on titles.m4 or
titles.m4 dependency on SOURCES. Using temporary files is not necessary: this should also
work:

$ gather_stx_titles *.stx | stx2any - mydoc.stx

Use gather_stx_titles online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PyQt
    PyQt
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 2
    Sardi
    Sardi
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    icons...
    Download Sardi
  • 3
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    h...
    Download LMMS Digital Audio Workstation
  • 4
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS is a market-leading real-time
    operating system (RTOS) for
    microcontrollers and small
    microprocessors. Distributed freely
    under the MIT open source lice...
    Download FreeRTOS Real Time Kernel (RTOS)
  • 5
    Avogadro
    Avogadro
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • 6
    XMLTV
    XMLTV
    XMLTV is a set of programs to process
    TV (tvguide) listings and help manage
    your TV viewing, storing listings in an
    XML-based format. There are utilities to
    do...
    Download XMLTV
  • More »

Linux commands

Ad