[email protected] wrote:

> Attached is a diff that uses the longtable package. It seems to
> do the trick, at least for what I need.  It also looks like I
> can script the edits to convert makeinfo's output to this.

Attached is the script I'm using to munge the LaTeX output
to using the longtable package.  Totally FYI, nothing necessarily
actionable.

Thanks again everyone.

Arnold
#! /usr/local/bin/gawk -f

/^% use hidelinks/ {
        print "\\usepackage{longtable}"
        print
        next
}

/^\\begin\{table\}/ {
        getline caption         # \caption{GLIBC values for \texttt{errno}}
        getline tabular         # \begin{tabular}{m{.18\textwidth} 
m{.20\textwidth} m{.62\textwidth}}%
        sub(/^\\begin\{tabular\}/, "", tabular) # get just the {m...} part
        print "\\begin{longtable}" tabular
        print caption " \\\\"
        in_table_env = 1
        next
}

in_table_env && /^\\end\{tabular\}/ {
        getline label           # \label{anchor:table_002derrno_002dvalues}%
        getline endtable        # not used
        sub(/%$/, "", label)
        print label " \\\\"
        print "\\end{longtable}"
        in_table_env = 0
        next
}

{ print }

Reply via email to