--- context-2007.04.17.orig/debian/manpages/texfind.man +++ context-2007.04.17/debian/manpages/texfind.man @@ -0,0 +1,87 @@ +.TH "TEXFIND" "1" "December 2006" "texfind" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH "NAME" +texfind \- graphical tool to search for text in TeX input files + +.SH "SYNOPSIS" +.PP +\fBtexfind\fP [ \fIOPTION\fP ... ] + +.SH "DESCRIPTION" +.PP +\fBtexfind\fP is a graphical, interactive tool that helps you +searching through TeX input files, including subdirectories, and +allows you to do search/replace tasks using \fBperl\fP(1) regular +expressions. It opens two windows: One displays the directory +hierarchy and allows to select different search directories. The +second window is used to enter the query and display the results. + +.SH "SEARCHING" + +Enter a search string in the input box at the top, choose the file +extension (\fItex\fP by default) and hit ENTER to start the search. The +results will be displayed in the rest of the window. + +The search string is a perl regular expression (see \fBperlre\fP(1)), +which gives you lots of flexibility. The search-and-replace function +also uses perl regex syntax, but you can also just use simple +strings. Currently there is no way to save changed files. + +.SH "MENU" + +Use the right mouse button to open a menu. +.HP +\fBFile\fP : Currently only used to exit the program +.HP +\fBEdit\fP : Copy selections, select or unselect all +.HP +\fBSearch\fP : Open a \fBFind\fP dialog that allows further searching +through the displayed results. The \fBReplace\fP option can be used to +replace single or all occurrences of a string, but currently it is not +possible to change the file. +.PP +\fBView\fP : Select specific lines, and adjust word or character +wrapping. + +.SH "OPTIONS" +.HP +\fB\-\-font\fR : specify the font used for the menu. Default is +courier. +.HP +Other options probably exist. I appreciate input by the program +authors, experienced users, or Perl geeks. +.HP +.SH "SEE ALSO" + +.IP \(bu +\fBperl\fP(1), \fBperlre\fP(1). +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "BUGS" + +None known. However, the replace function isn't the most useful one. + +.SH "AUTHOR" + +\fBtexfind\fP was written for the ConTeXt package by Hans Hagen and +Ton Otten, PRAGMA. + +This manual page was written by Frank K\[:u]ster +for the Debian GNU/Linux system, and modified by Sanjoy Mahajan +. It may be used and modified by +others without contacting the authors. --- context-2007.04.17.orig/debian/manpages/mptopdf.man +++ context-2007.04.17/debian/manpages/mptopdf.man @@ -0,0 +1,103 @@ +.TH "MPTOPDF" "1" "January 2007" "mptopdf 1.3.2" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH "NAME" +mptopdf \- convert MetaPost to PDF + +.SH "SYNOPSIS" +\fBmptopdf\fP \fIFILE\fP [ ... ] + +.SH "DESCRIPTION" + +\fBmptopdf\fP can convert MetaPost-generated EPS files to PDF, or it +can process a MetaPost source file directly (see +.BR mpost (1)) +and convert the generated EPS files to PDF. + +.SH "OPTIONS" +All switches are specified in full here but can be abbreviated to the +shortest unique prefix. Thus, \fB--metaf\fP works the same as +\fB--metafun\fP. +.IP \fB--help\fP +Print a terse help message. +.IP "\fB--metafun\fP" +Use the metafun pre-compiled format to process the MetaPost source +file. You usually don't need this option, since metafun input is +usually produced and processed as part of a +.BR texexec (1) +run. Needs the \fB--rawmp\fP switch to take effect. +.IP \fB--rawmp\fP +Process the source file with +.BR mpost (1) +directly, rather than with +.BR texexec (1). +This option is needed if you want to specify \fB--metafun\fP. +.IP \fB--latex\fP +Typeseting labels using +.BR latex (1) +rather than plain +.BR tex (1). + +.SH "USAGE" + +To convert \fImanfig.20\fP to \fImanfig-20.pdf\fI: +.EX +mptopdf manfig.20 +.EE + +You can convert more than one EPS file at once: +.EX +mptopdf manfig.20 otherfig.17 finalfig.8 +.EE + +Or you can give +.BR mptopdf (1) +a pattern that it will expand: +.EX +mptopdf 'manfig.*' +.EE +Note the single quotes to protect the * from the shell. Of course, +usually you can let the shell do the wildcard expansion and therefore +leave off the quotes. + +To convert +.I figs.mp +to \fIfigs-1.pdf\fP, \fIfigs-2.pdf\fP, ... +.EX +mptopdf figs.mp +.EE + +If the labels are typeset with +.BR latex (1): +.EX +mptopdf --latex figs.mp +.EE + +.SH "SEE ALSO" +.IP \(bu +.BR tex (1), +.BR latex (1), +.BR mpost (1), +.BR texexec (1). +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "AUTHOR" +.BR mptopdf (1) +is part of the ConTeXt package available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +This manpage was written by Sanjoy Mahajan and is in +the public domain. --- context-2007.04.17.orig/debian/manpages/pdftools.man +++ context-2007.04.17/debian/manpages/pdftools.man @@ -0,0 +1,59 @@ +.TH PDFTOOLS "1" "December 2006" "pdftools 1.2" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH NAME +pdftools \- analyze PDF files, change image colors +.PP +.SH "SYNOPSIS" +\fBpdftools\fP [ \fIOPTION\fP ... ] [ ... ] + +.SH DESCRIPTION + +\fBpdftools\fP analyzes PDF files and changes image colors. +It is used by the ConTeXt programs. The image-processing features are +not documented here (since I don't understand what they do). +.PP +.SH "OPTIONS" +.PP +.IP "\fB--help\fP" +Print the available options. +.IP "\fB--analyzefile\fP" +Print statistics about each PDF file, including +size, number of xforms, annotations, links, etc. +.IP "\fB--info\fP" +Print, in XML format, information about the PDF files. +It gives the number of pages, producer, author, subject, creation date, +bounding boxes, ... See also \fBpdfinfo\fP(1). +.IP "\fB--countpages\fP" +Print the number of pages in each PDF file. + +.SH "SEE ALSO" + +.IP \(bu +\fBtexexec\fP(1), \fBpdfinfo\fP(1), \fBpdftk\fP(1) +.IP \(bu +The pdftools manual \f(CWmpdftools.pdf\fP +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . +.IP \(bu +The PDF specification + +.SH "AUTHOR" + +This (incomplete) manual page was written by Sanjoy Mahajan +. It is in the public domain. --- context-2007.04.17.orig/debian/manpages/texexec.man +++ context-2007.04.17/debian/manpages/texexec.man @@ -0,0 +1,640 @@ +.TH "TEXEXEC" "1" "December 2006" "texexec 6.2" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH "NAME" +texexec \- front end to the ConTeXt typesetting system + +.SH "SYNOPSIS" +\fBtexexec\fP [ \fIOPTION\fP ... ] \fIFILE\fP [ ... ] + +.SH "DESCRIPTION" + +\fBtexexec\fP, a \fBruby\fP(1) script, +is the command-line front end to the ConTeXt typesetting +system, an extensive macro package +built on the \fBtex\fP(1) family of typesetting programs. +\fBtexexec\fP provides several facilties: +.IP \(bu +Process a ConTeXt source file, +performing as many runs as +necessary of \fBtex\fP(1), \fBtexutil\fP(1), and +MetaPost (\fBmpost\fP(1)). Options control the output +format, the pages to process, paper size, and so forth. +.IP \(bu +Create new ConTeXt formats, useful during installation. +.IP \(bu +Post-process existing PDF files, including merging multiple +files, and extracting and rearranging pages within a file, +similar to the facilities provided for PostScript files by +\fBpsnup\fP(1) or for PDF files by \fBpdftk\fP(1). +.IP \(bu +Extract or strip documentation from ConTeXt source files +using \fBtexutil\fP(1). +.IP \(bu +Run MetaPost (\fBmpost\fP(1)) to generate figures from MetaPost source. +.IP \(bu +Produce proof sheets of figures used in a ConTeXt source file. +.IP +.SH "OPTIONS" + +All switches are specified in full here but can be abbreviated to the +shortest unique prefix. Thus, \fB--env\fP works the same as +\fB--environment\fP. With no options, \fBtexexec\fP assumes that +the file on the command line is a ConTeXt source file, i.e. a TeX file +in the ConTeXt dialect, and produces a PDF file using the source file. + +.SS "General Options" + +.IP "\fB--alone\fP" +Avoid calling other programs when possible. For +example, \fB--alone\fP will prevent \fBtexexec\fP from +using \fBfmtutil\fP(1) to generate formats (this prevention can +be handy when tracing installation problems). +.IP "\fB--environments\fP\fI=\fP\fIfile[,file[,...]]\fP" +Specify ConTeXt environment file(s), separated by commas, to use when +processing the source file. This option is useful when converting +from non-ConTeXt file formats without environment or layout settings. +.IP "\fB--help\fP" +Produce a summary of switches +and arguments. A more detailed help is produced by including +\fB--all\fP. +.IP "\fB--interface=\fP\fIlanguage\fP" +Specify the language +ConTeXt should use to communicate with you. +Options are +.IP +.RS +.IP "\fBen\fP" +US English +.IP "\fBnl\fP" +Dutch +.IP "\fBde\fP" +German +.IP "\fBuk\fP" +British English +.IP "\fBcz\fP" +Czech +.IP "\fBit\fP" +Italian +.RE +.IP "\fB--keep\fP" +Preserve a few of the temporary files generated while processing by +appending \fI.keep\fP to their name. For example, after +.EX +texexec --keep document.tex +.EE +you will find (besides \fIdocument.pdf\fP) \fIdocument.log.keep\fP +and \fIdocument.top.keep\fP. The \fIdocument.top\fP file is where +\fBtexexec\fP wraps \fIdocument.tex\fP with the proper ConTeXt macro +commands to set the output format, etc. +.IP "\fB--once\fP" +Process a file exactly once. (By default, +\fBtexexec\fP processes the file as many times as +necessary to sort out all references, typeset +\fBMetaPost\fP code, and so forth.) +.IP "\fB--purge\fP" +Get rid of most temporary files generated while processing the source +file. For example, +.EX +texexec --purge somefile.tex +.EE +will generate \fIsomefile.pdf\fP, cleaning up after itself and leaving +only one extra file, \fIsomefile.tuo\fP. See also the \fB--purge\fP +option of +.BR ctxtools (1) +.IP "\fB--purgeall\fP" +Get rid of all temporary files generated while processing the source +file, including the \fIfilename.tuo\fP file. See also the \fB--purge +--all\fP option combination of +.BR ctxtools (1) +.IP "\fB--randomseed=\fP\fINNNN\fP" +Set the random seed. +.IP "\fB--result=\fP\fIFILENAME\fP" +Allows you to change the +basename of the output file. See +\fB--mode\fP for an example. +.IP "\fB--runs=\fP\fINUMBER\fP" +Specify the number of runs to +perform on a file. Overrides +\fBtexexec\fP's calculations. +.IP "\fB--separation\fP" +Perform color separations. +.IP "\fB--silent\fP" +Suppress a few diagnostic and progress messages. +.IP "\fB--timeout=\fP\fINNN\fP" +Abort the run if a subprocess waits for more than \fINNN\fP seconds; +e.g. while waiting for user input when \fBtex\fP reports an undefined +control sequence. Useful for automated testing scripts, to make sure +the runs finish. +.IP "\fB--usemodules=\fP\fImodule1[,module2,[...]]\fP +Use the comma-separated list of modules. For example, to typeset +\fIdocument.tex\fP using the \fIbib\fP and \fIunits\fP modules: +.EX +texexec --usemodules=bib,units document.tex +.EE +.IP "\fB--verbose\fP" +Output extra diagnostic information. +.IP "\fB--version\fP" +Print the version number. +.IP + +.SS "Processing ConTeXt Source Files" + +Including specifying paper sizes, formats, and so forth. + +.IP "\fB--arrange\fP" +Perform page rearrangements, which are used to produce booklets. This +option tells ConTeXt to the first \fIn\fP-1 runs without taking +account of arrangements, then on the last run to pay attention to +the arrangement commands in the source file. +.IP "\fB--batchmode\fP" +Process the file in batchmode, which means +to typeset the whole document even if there are errors. More +imformation about \f(CWbatchmode\fP can be found in Donald +E. Knuth's \fITeXbook\fP. +.IP "\fB--nonstopmode\fP" +Process the file in nonstopmode, which means +to typeset the document and report errors, but not to stop at any +error. It is similar to batchmode but more verbose. More +imformation about \f(CWnonstopmode\fP can be found in Donald +E. Knuth's \fITeXbook\fP. +.IP "\fB--bodyfont=\fP\fIfont\fP" +The name of a font to preload for use in +setting the body of the text (OBSOLETE). +.IP "\fB--centerpage\fP" +Center the document on the page. +.IP "\fB--color\fP" +Turn on color mode. Color mode can also be set by +commands embedded in the document. These commands +override the \fB--color\fP option. +.IP "\fB--convert=\fP\fIFORMAT\fP" +Convert the input file to +ConTeXt format from \fIFORMAT\fP before +processing. In most cases, this conversion will result +in a TeX file. Currently supported input +\fIFORMAT\fPs are \fBxml\fP and +\fBsgml\fP. +.IP "\fB--dvipdfmx, --dvipdfm, --dpx, --dpm\fP" +Use the TeX engine (e.g. \fBpdftex\fP or \fBpdfetex\fP) +to make a DVI file and \fBdvipdfmx\fP(1) to turn it +into PDF. +.IP "\fB--dvi, --ps, --dvips\fP" +Use the TeX engine (e.g. \fBpdftex\fP or \fBpdfetex\fP) +to make a DVI file and \fBdvips\fP(1) to turn it +into PostScript. It's counterintuitive that \fB--dvi\fP produces +a PostScript file in addition to the DVI file. But that's because +\fB--dvi\fP is shorthand for \fB--dvips\fP; adding the \fB--nobackend\fP +option prevents \fBtexexec\fP's running \fBdvips\fP(1). See also the +\fB--engine\fP option. +.IP "\fB--fast\fP" +Typeset the document(s) as fast as possible without +causing problems. +.IP "\fB--final\fP" +Perform a final run without skipping anything. +This option is typically used with \fB--fast\fP. +.IP "\fB--language=\fP\fILANGUAGE\fP" +Set the language for +hyphenation. Can be specified in your source file. +Options are the same as those for \fB--interface\fP. +.IP "\fB--mode=\fP\fIMODELIST\fP, \fB--modes=\fP\fIMODELIST\fP" +Allows you to change the mode used while typesetting the +source file. The \fIMODELIST\fP is a comma separated list of modes. +Modes are a conditional-compilation facility +like \f(CW#ifdef\fP in C. So one source file can be used to produce +several typeset documents: one for A4 paper, one for +screen display in full color, one for letter paper, etc. For +example: +.IP +.EX +\f(CWtexexec --pdf --mode=A4 --result=manual-a manual-t.tex\fP +\f(CWtexexec --pdf --mode=letter --result=manual-l manual-t.tex\fP +\f(CWtexexec --pdf --mode=screen --result=manual-s manual-t.tex\fP +.EE +.IP +Here the \fB--mode\fP tells ConTeXt which +mode directives to use when typesetting the source file. The +\fB--result\fP option tells ConTeXt +where to put the output file. +.IP "\fB--modefile=\fP\fIfile\fP" +Load this file before most of the usual processing; usually used for +mode-related material. +.IP "\fB--noarrange\fP" +Ignore arrangement commands in the source file. +.IP "\fB--nobackend\fP" +Do not run the backend, e.g. \fBdvips\fP(1) or \fBdvipdfmx\fP(1). See +the \fB--dvips\fP or \fB--dvipdfmx\fP options. Why would you give one +of those options to choose a backend, yet tell \fBtexexec\fP not to +run the backend? Because each backend has its own syntax for +\f(CW\\special\fP calls. Specifying the backend allows the ConTeXt +macros to use the correct syntax so that when you later run the +backend to produce PostScript or PDF, the specials will be interpreted +correctly. +.IP "\fB--pages=\fP\fIPAGENUMBERLIST\fP" +Specify the pages or page +range to appear in the output file. +\fIPAGENUMBERLIST\fP may be the keyword \fBodd\fP +or \fBeven\fP; or one or more pages or page ranges separated by commas. +For example, +.EX +\f(CWtexexec --pages=1,7,8-11,14 somefile.tex\fP +.EE +.IP "\fB--paperformat=\fP\fIKEY\fP" +For typesetting multiple pages on a +single piece of paper. \fIKEY\fP has the form \fBa4a3\fP +(for printing A4 pages on A3 paper), \fBa5a4\fP +(for printing A5 pages on A4 paper), or in general \fBaMaN\fP. +The actual layout of the pages is specified with the +\fB--printformat\fP option. +.IP "\fB--pdf, --pdftex\fP" +Use \fBpdftex\fP(1) to produce a pdf document (the default). +.IP "\fB--printformat=\fP\fIKEY\fP" +Specify the layout of the final +output. \fIKEY\fP can be \fBup\fP, resulting in 2 +pages per sheet, double sided; or \fBdown\fP, resulting +in 2 rotated pages per sheet, double sided. Use the +\fB--paperformat\fP option to specify the original page +and sheet size. +.IP "\fB--utfbom\fP" +Turn on UTF-8 encoding. +.IP "\fB--xetex, --xtx\fP" +Use \fBxetex\fP(1) to produce a pdf document. +.IP + +.SS "Creating ConTeXt Format Files" + +.IP "\fB--make\fP" +Generate a ConTeXt format file. For example, to make +\fIcont-en.fmt\fP and have it placed in a default format directory: +.EX +texexec --make de +.EE +The most common invocation, which is used by scripts that install a new version +of ConTeXt (see \fBctxtools\fP(1)), uses \fB--all\fP +so that \fBtexexec\fP makes the usual formats: +.EX +texexec --make --all +.EE +.IP "\fB--local\fP" +When searching for TeX or MetaPost formats, look in the current directory +rather than in the location set by the kpse library. See +.BR kpathsea (1) +for more information on path searching. +.IP "\fB--check\fP" +Check and report information about the ConTeXt version, the +distribution, the TeX engine, and the language interfaces/formats. + +.SS "Expert options" + +You should know what you're doing if you use these options! +.IP "\fB--alpha" +Use the TEXMFALPHA environment variable to find and +run an alpha release of ConTeXt. +.IP "\fB--beta" +Use the TEXMFBETA environment variable to find and +run a beta release of ConTeXt. +.IP "\fB--distribution\fP\fI=dist\fP" +Usually one of \fBstandard\fP, \fBweb2c\fP, or \fBmiktex\fP. +\fBtexexec\fP should figure it out automatically, and you shouldn't +need to use this option. +.IP "\fB--engine\fP\fI=texengine\fP" +Specify the program to do the hard work of typesetting. Currently +either \fBpdftex\fP (the default), \fBxetex\fP, or \fBaleph\fP. +The \fBluatex\fP value is experimental. The \fB--engine\fP +option is not usually needed. Instead, let +\fBtexexec\fP figure out the setting based on other command-line +information. See for example the \fB--xetex\fP or \fB--pdf\fP +switches. + +.SS "Postprocess PDF Files" + +.IP "\fB--combination=\fP\fIROWS\fP\fB*\fP\fICOLS\fP" +Specify the number of pages to show on a single page. Use with +\fB--pdfcombine\fP. +.IP "\fB--pdfarrange\fP" +For rearranging pages in PDF files. +.EX +\f(CWtexexec --pdfarrange --paperformat=a5a4 --printformat=up foo.pdf\fP +.EE +This command creates an A5 booklet from a PDF file +\fIfoo.pdf\fP. \fB--pdfarrange\fP is used in +conjunction with the following options. +.IP "\fB--pdfcopy\fP" +Copy and perhaps process pages from the pdf file. +The resulting file is \fItexexec.pdf\fP by default, but you can change +that using \fB--result\fP. Use the \fB--scale\fP option to magnify or +demagnify the original pages and the \fB--pages\fP option to select +the pages to copy. Here is an example using all these options: +.EX +texexec --pages=4-7 --pdfcopy --scale=750 --result=one images.pdf +.EE +It takes pages 4-7 from \fIimages.pdf\fP, scales them by 75%, +and copies them to \fIone.pdf\fP. +.IP "\fB--scale=\fP\fIinteger\fP" +If the integer is less than 10, then it is taken as an (integer) +magnification factor. Otherwise, it is taken as a magnification +factor in TeX terms, i.e. with 1000 meaning full scale. +.IP "\fB--paperoffset=\fP\fIdimen\fP" +Specify the space between the +edge of the pages and the beginning of the text block. +.IP "\fB--backspace=\fP\fIdimen\fP" +Specify the inside (gutter) margins. +.IP "\fB--topspace=\fP\fIdimen\fP" +Specify the top and bottom margin. +.IP "\fB--markings\fP" +Add crop marks. +.IP "\fB--addempty=\fP\fIPAGES\fP" +Add empty pages after the pages specified in \fIPAGES\fP. (Useful +for, among other things, adding blank pages after a table of +contents.) +.IP "\fB--textwidth=\fP\fIWIDTH\fP" +Set the width of +the original text. Specifying this parameter with a +single-sided original will allow ConTeXt to adjust +the page layout for double-sided output, producing much +more attractive results. + +With the \fB--pdfarrange\fP flag, specifying more +than one file will result in all of the files being +combined in the final result, allowing you to add title +pages, decorated part separators, and so forth. + +You can also do more complex manipulations, such as +adding additional text to the page by setting up a +small file with layout definitions and a simple figure +insertion loop. +.IP "\fB--pdfcombine\fP" +Combine multiple pages. Requires the \fB--combination\fP option. +.IP "\fB--pdfselect\fP" +Extract pages from a file. Use in combination with the +\fB--selection\fP switch, as in +.EX +\f(CWtexexec --pdfselect --paperformat=S6 +--selection=1,9,14 file-1\fP +.EE +which extracts pages 1, 9, and 14 from +\fIfile-1.pdf\fP, and places them in +\fItexexec.pdf\fP (the default output filename if +an output file isn't specified). + +See \fB--pdfarrange\fP for other +options. +.IP "\fB--selection=\fP\fIPAGES\fP" +Specify pages to be affected by +another option. See \fB--pdfarrange\fP and +\fB--pdfselect\fP for examples. + +.SS "XML handling" +.IP "\fB--filters=\fP\fIfilter1[,filter2[,...]]\fP +Specify XML filters to use. + +.SS "Extract or Strip Out Documentation" + +.IP "\fB--listing\fP" +Produce a typeset version of the source code in +\fIFILE\fP. You can specify the format of the output +file. For example, use +.EX +\f(CWtexexec --ps --listing readme.now\fP +.EE +to produce a PostScript file called +\fItexexec.ps\fP. + +See also \fB--backspace\fP, \fB--topspace\fP, and \fB--result\fP. +.IP "\fB--module\fP" +Create documentation for ConTeXt, +MetaPost (see \fBmpost\fP(1)), +.BR perl (1), +and +.BR ruby (1) +modules. +Converts the documentation to ConTeXt format and +then typesets a documentated version of the source file. + +Documentation lines in ConTeXt source files are +specified by beginning lines with these strings: + +\f(CW%C\fP : Copyright information + +\f(CW%D\fP : Documentation lines + +\f(CW%I\fP : TeXEdit information lines (mostly in Dutch) + +\f(CW%M\fP : Macro code needed to processs the documentation + +\f(CW%S\fP : Suppressed lines + +The same forms can be used for Perl or ruby scripts, except that the \f(CW%\fP +character (the TeX comment character) is replaced by \f(CW#\fP (the +Perl comment character). + +See also the \fB--documentation\fP option to +.BR ctxtools (1). + +.SS "Process MetaPost Figures" + +.IP "\fB--mpsformats=\fP\fIname\fP" +The name of a MetaPost format file, e.g. \fBmetafun\fP (the default). +.IP "\fB--mptex\fP" +Strips out and typesets TeX code embedded in a +MetaPost file. +.IP "\fB--nomp\fP" +Do not run \fBmpost\fP(1), even if needed. +.IP "\fB--nomprun\fP" +Do not run \fBmpost\fP(1) on embedded +MetaPost code. + +.SS "Producing Proof Sheets of Figures" + +Generate information and proof sheets of one or more (non-EPS) +graphics files. For example, +.EX +texexec --figures *.png *.jpg +.EE +scans the current directory for PNG and JPG files +and extracts useful information about their sizes and types. By +default, this information is stored in +.IR rlxtools.rli . +Then the given figures are made into a proof sheet (by default +\fItexexec.pdf\fP) according to the method specified by the +\fB--method\fP option. Note that newer versions of +.BR pdftex (1) +do not support TIFF inclusion. +.IP "\fB--method=\fP\fIALTERNATIVE\fP" +Specify one of three options to produce the document containing the images +used in the source file: + +\fBa\fP : A proof sheet with additional +information provided for each figure (the default) + +\fBb\fP : A proof sheet with the graphics only + +\fBc\fP : One figure per page, with the page +clipped to the bounding box of the +figure + +See also \fB--paperoffset\fP, +which allows you to specify an offset to be added to +the page, as in +.EX +texexec --figures --method=c --paperoffset=.5cm *.pdf *.png *.jpg +.EE + +.SH "USAGE" + +Each ConTeXt user interface (language) has its own format. The +following command generates two formats, one using the English +interface for typesetting in English, and one for Dutch: +.EX +\f(CWtexexec --make en nl\fP +.EE + +By default, the language used for typesetting matches the +user-interface language (set with +\fB--interface\fP. It is possible to use one +language for typesetting and another for messages by changing the +relevant settings in \fIcont-usr.tex\fP. These languages can +also be changed on the command line with a command such as +.IP +.RS +\f(CWtexexec --make --language=pl,cz,sk en\fP +.RE +.IP +That command generates a ConTeXt format file with an English user +interface, and the main language set to Polish (\fBpl\fP). Czech +and Slovak hyphenation patterns are also loaded +so that Czech and Slovak text included in a source file will be +typeset properly (\fBcz\fP and \fBsk\fP). +.IP o +When the appropriate formats are present, a file can be typeset +by typing +.EX +\f(CWtexexec test\fP +.EE +.IP +\fBtexexec\fP tries to determine what interface it should use to +typeset \fItest.tex\fP by looking for a line such as +.IP +.EX +\f(CW% interface=en tex=pdftex output=pdftex\fP +.EE +.IP +at the top of the file (i.e., on the very first line). This line is +equivalent to \fBTeX\fP's format line, ``&\fIFORMAT\fP''). +.IP +By default, \fBtexexec\fP will produce a PDF file using \fBpdftex\fP(1). The +\fB--dvips\fP flag tells \fBtexexec\fP to produce a PostScript +file instead. +.IP +After an error-free run, \fBtexexec\fP will run \fBtexutil\fP(1) to +determine whether additional runs of \fBtex\fP(1) (or +\fBpdftex\fP(1)) or any utility programs (e.g., \fBbibtex\fP(1), +\fBmakeindex\fP(1)) are necessary. You can suppress these +additional runs by specifying the \fB--once\fP or +\fB--runs\fP flags: +.IP +.EX +\f(CWtexexec --once test\fP +\f(CWtexexec --runs=2 test\fP +.EE +.IP + +.SH EXAMPLES +.TP +Produce PDF from ConTeXt source (the .tex extension is optional): +\f(CWtexexec file.tex\fP +.TP +Same as the above but without rerunning for crossreferences, etc.: +\f(CWtexexec --once file.tex\fP +.TP +Produce PostScript from ConTeXt source: +\f(CWtexexec --ps file.tex\fP +.TP +Produce file-a4.pdf using conditional compilation (modes): +\f(CWtexexec --mode=a4 --result=file-a4 file.tex\fP +.TP +Generate format (.fmt) files used by ConTeXt (used during installation): +\f(CWtexexec --make --all\fP + + +.SH "INITIALIZATION" +.IP +\fBtexexec\fP requires ruby. On Unix and Unix-like systems, no special +steps have to be taken to get \fBtexexec\fP to work beyond installing +ruby and having the \fBruby\fP(1) binary in your path. + +.SH "ENCODINGS" +.IP +Some languages require specific character encodings to represent their +alphabets (beyond the basic ASCII encoding). Although you can use TeX +commands to represent these characters, such as ``\f(CW\e.z\fP'', it's +easier to use a text editor that includes direct support for these +characters and let ConTeXt translate them to the necessary TeX +commands. For some languages, this approach can also improve the +performance of TeX's hyphenation algorithms. +.IP +ConTeXt supports several of the most commonly used encodings. +Check the files beginning with \fIenco-\fP, \fIlang-\fP, and +\fIfont-\fP in the ConTeXt distribution for more information. +.IP +\fBweb2c\fP distributions (such as \fBteTeX\fP) support a mechanism to +map document encodings to ConTeXt's internal encoding, font +encodings, and hyphenation patterns. \fBtexexec\fP provides a document +option and a command-line flag to pass the necessary information to +\fBtex\fP(1) or \fBpdftex\fP(1). You can add lines such as +.EX +\f(CW%& --translate-file=cp1250pl\fP +.EE + +or + +.EX +\f(CW% --translate=cp1250pl\fP +.EE + +to the beginning of your document, or you can specify the \fB--translate\fP +flag on the command line, as +.EX +\f(CWtexexec --translate=il2pl somefile\fP +.EE + +Using language-specific encodings will make your file less +portable than using ASCII. It may then not be possible for other people to +typeset your documents on their systems. + +.SH "SEE ALSO" +.IP \(bu +\fBbibtex\fP(1), \fBdvipdfmx\fP(1), \fBdvips\fP(1), \fBfmtutil\fP(1), +\fBmakeindex\fP(1), \fBmpost\fP(1), +\fBpdftex\fP(1), \fBpdftk\fP(1), \fBxetex\fP(1), +\fBruby\fP(1), \fBpsnup\fP(1), \fBtex\fP(1), \fBtexshow\fP(1), +\fBtexutil\fP(1). +.IP \(bu +The texexec manual +.IR mtexexec.pdf , +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +.IP \(bu +Donald E. Knuth's \fIThe TeXbook\fP. +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "AUTHOR" +This manpage was written by Tobias Burnus + and C.M. Connelly + and updated by Sanjoy Mahajan . +It is based on the +.I mtexexec.pdf +manual written by Hans Hagen . --- context-2007.04.17.orig/debian/manpages/texutil.man +++ context-2007.04.17/debian/manpages/texutil.man @@ -0,0 +1,22 @@ +.TH "TEXUTIL" "1" "December 2006" "texutil 9.1" "ConTeXt" + +.SH "NAME" +texutil \- ConTeXt utility program + +.SH "SYNOPSIS" +\fBtexutil\fP [ \fIOPTION\fP... ] \fIFILENAME\fP[...] + +.SH "DESCRIPTION" + +This program, whether as a Perl or the newer ruby script, is +deprecated and many of its features are available in +\fBctxtools\fP(1), \fBgs\fP(1), \fBpdftools\fP(1), and +\fBtexexec\fP(1). + +.SH SEE ALSO + +\fBctxtools\fP(1), \fBgs\fP(1), \fBpdftools\fP(1), \fBtexexec\fP(1) + +.SH "AUTHOR" + +This skeleton man page was written by Sanjoy Mahajan . --- context-2007.04.17.orig/debian/manpages/ctxtools.man +++ context-2007.04.17/debian/manpages/ctxtools.man @@ -0,0 +1,89 @@ +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. +.TH CTXTOOLS "1" "January 2007" "ctxtools 1.3.3" "ConTeXt" + +.SH NAME +ctxtools \- clean up temporary ConTeXt files, install latest ConTeXt + +.SH "SYNOPSIS" +\fBctxtools\fP [ \fIOPTION\fP ... ] + +.SH DESCRIPTION +\fBctxtools\fP is useful for dealing with ConTeXt source and generated +files and for installing new versions of ConTeXt. + +.SH "OPTIONS" +.TP +.B --help +Print the available options. +.TP +.B --purgefiles +Get rid of many temporary files generated by ConTeXt. You can give the +.B --all +option to remove a larger fraction of those files, +and the +.B --recurse +option to remove these files also in subdirectories. +.TP +.B --contextversion +Show the date of the ConTeXt macros and the format file. Useful after +upgrading ConTeXt (perhaps using \fB--updatecontext\fP) to check +whether the new formats and macros are visible to the TeX path +searches (see +.BR kpsewhich (1). +.TP +.B --updatecontext +Download the latest ConTeXt distribution and install it in the +TEXMFLOCAL tree (see +.BR kpsewhich (1) +for information on +TeX path searching). TEXMFLOCAL usually points to a system-wide +location. If you want to install the new ConTeXt in your home +directory (i.e. an install for one user), then set the TEXMFLOCAL +environment variable while running +.BR ctxtools . +For example, using the syntax of the Bourne shell +.BR sh (1): +.EX +TEXMFLOCAL=$HOME/texmf ctxtools --updatecontext +.EE +.TP +.B --documentation +Generate a \fI.ted\fP file from the source file. See also the +\fB--module\fP option to +.BR texexec (1). +.TP +\fB--patternfiles\fP [languagecode] +Generate pattern files. You can also give the +\fB--all\fP, \fB--xml\fP, and \fB--utf8\fP options. + +.SH "ENVIRONMENT" +.TP +TEXMFLOCAL +Used by \f(CW--updatecontext\fP to decide where to install the distribution. + +.SH "SEE ALSO" +.IP \(bu +.BR texexec (1), +.BR texmfstart (1). +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH BUGS +This manual page is not complete. + +.SH "AUTHOR" +This manual page was written by Sanjoy Mahajan . It is in +the public domain. --- context-2007.04.17.orig/debian/manpages/fdf2tex.man +++ context-2007.04.17/debian/manpages/fdf2tex.man @@ -0,0 +1,52 @@ +.TH FDF2TEX "1" "December 2006" "fdf2tex 1.02" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH NAME +fdf2tex \- Convert PDF formular data (FDF) into something (Con)TeX(t) can +handle +.PP +.SH "SYNOPSIS" +\fBfdf2tex\fP \fIinfile\fP [ \fIoutfile\fP ] +.PP +\fBfdf2tan\fP \fIinfile\fP +.PP +.SH DESCRIPTION +.PP +Converts PDF formular data (FDF) into something (Con)TeX(t) can +handle. This command is usually called indirectly during ConTeXt +file processing, so most users do not need to worry about it. +.HP +.SH "BUGS" +.PP +Probably none -- all errors are in this manpage +.PP +.SH "SEE ALSO" +.IP \(bu +\fBtexexec\fP(1). +.IP \(bu +The TeXExec manual, \fImtexexec.pdf\fP. +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "AUTHOR" + +This manual page was written by Frank K\[:u]ster , +for the Debian GNU/Linux system, and modified by Sanjoy Mahajan +. It may be used and modified by others without +contacting the authors. + --- context-2007.04.17.orig/debian/manpages/pstopdf.man +++ context-2007.04.17/debian/manpages/pstopdf.man @@ -0,0 +1,74 @@ +.TH "PSTOPDF" "1" "December 2006" "pstopdf 2.0" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH "NAME" +pstopdf \- convert EPS to PDF + +.SH "SYNOPSIS" +\fBpstopdf\fP [ \fIOPTION\fP ... ] \fIFILE\fP [ ... ] + +.SH "DESCRIPTION" + +\fBpstopdf\fP converts EPS (encapsulated PostScript) to PDF. + +.SH OPTIONS +.TP +.B --help +Print usage and version information. +.TP +.B --convert +Convert EPS to PDF. This option is assumed if none is given. +.TP +.BI --method= string +What method to use for bounding boxes when converting to PDF. +Specify one of \fBcrop\fP, \fBbounded\fP (the default), or \fBraw\fP. +Older versions of ConTeXt used numerical methods (1, 2, or 3). +.TP +.BI --resolution= string +The resolution to use when when converting to pdf. +Specify one of \fBlow\fP, \fBnormal\fP, \fBmedium\fP, \fBhigh\fP, +\fBprinter\fP, \fBprint\fP, \fBscreen\fP, \fBebook\fP, or +\fBdefault\fP. +.TP +.B --request +Handle exa request file. +.TP +.B --watch +Watch folders for conversions (\fIuntested\fP). + +.SH EXAMPLES + +To make \fIcow.pdf\fP: +.EX +pstopdf cow.eps +.EE +or (one of several equivalences): +.EX +pstopdf --convert cow.eps cow.pdf +.EE + + +.SH "SEE ALSO" +.IP \(bu +.BR epstopdf (1), +.BR mptopdf (1), +.BR texexec (1). +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "AUTHOR" +This (incomplete) manual page was written by Sanjoy Mahajan +. It is in the public domain. --- context-2007.04.17.orig/debian/manpages/texfont.man +++ context-2007.04.17/debian/manpages/texfont.man @@ -0,0 +1,99 @@ +.TH TEXFONT "1" "December 2006" "texfont 2.2" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH NAME +texfont \- font installation tool for ConTeXt + +.SH "SYNOPSIS" +\fBtexfont\fP [ \fIOPTION\fP ... ] + +.SH DESCRIPTION + +TeXFont is a +.BR perl (1) +script that helps to set up and install TeX fonts. +It was designed for use with ConTeXt, but may also be helpful for +users of other formats, like plain TeX or LaTeX. Its use is described +in detail in the files \fImtexfont.pdf\fP and \fImfont.pdf\fP. + +.SH "OPTIONS" + +.HP +\fB\-\-fontroot\fR=\fIpath\fR : texmf font root (automatically determined) +.HP +\fB\-\-sourcepath\fR=\fIpath\fR : when installing, copy from this path (default: .) +.HP +\fB\-\-sourcepath\fR=\fIauto\fR : locate and use vendor/collection +.HP +\fB\-\-vendor\fR=\fIname\fR : vendor name (first level directory) +.HP +\fB\-\-collection\fR=\fIname\fR : font collection (second level +directory) +.HP +\fB\-\-encoding\fR=\fIname\fR : encoding vector (default: texnansi) +.HP +\fB\-\-slant\fR=\fIs\fR : slant glyphs in font by factor (0.0 - 1.5) +.HP +\fB\-\-extend\fR=\fIs\fR : extend glyphs in font by factor (0.0 - 1.5) +.HP +\fB\-\-caps\fR=\fIs\fR : capitalize lowercase chars by factor (0.5 - 1.0) +.HP +\fB\-\-noligs\fR : remove ligatures +.HP +\fB\-\-install\fR : copy files from source to font tree +.HP +\fB\-\-listing\fR : list files on auto sourcepath +.HP +\fB\-\-remove\fR : remove files on auto sourcepath +.HP +\fB\-\-makepath\fR : when needed, create the paths +.HP +\fB\-\-test\fR : use test paths for vendor/collection +.HP +\fB\-\-show\fR : run tex on texfont.tex +.HP +\fB\-\-batch\fR : process given batch file +.HP +\fB\-\-weight\fR : multiple master weight +.HP +\fB\-\-width\fR : multiple master width +.HP +\fB\-\-expert\fR : also handle expert fonts +.HP +\fB\-\-help\fR : show some more info +.HP +.SH "SEE ALSO" +.IP \(bu +\fBtexexec\fP(1), \fBfontinst\fP(1), \fBperl\fP(1), \fBtexshow\fP(1). +.IP \(bu +The ConTeXt Font manual, \fImfonts.pdf\fP +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +.IP \(bu +The TeXFont manual, \fImtexfont.pdf\fP +.IP \(bu +The TeXExec manual, \fImtexexec.pdf\fP. +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . +.IP \(bu +Donald E. Knuth\'s \fIThe TeXbook\fP. + +.SH "AUTHOR" + +This manual page was written by Frank K\[:u]ster , +for the Debian GNU/Linux system, and modified by Sanjoy Mahajan +. It may be used and modified by others without +contacting the authors. --- context-2007.04.17.orig/debian/manpages/makempy.man +++ context-2007.04.17/debian/manpages/makempy.man @@ -0,0 +1,72 @@ +.TH MAKEMPY "1" "December 2006" "makempy 1.1" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH NAME +makempy \- convert PDF or PostScript text to MetaPost graphics + +.SH "SYNOPSIS" +\fBmakempy\fP \fIfilenam\fP + +.SH DESCRIPTION + +\fBmakempy\fP takes MetaPost output files (\fI*.mpo\fP) and +translates them to \fI*.mpy\fP files. In order to include text as a +graphic into a file typeset with (Con)TeX(t), you extract the text +from Postscript of PDF files using \fBpdftops\fP(1) and \fBpstoedit\fP(1), +creating a Metapost input file. + +This file can then be processed by \fBmakempy\fP. The \fBmakempy\fP +script does its work without user intervention. When it deduces that +there are no changes, it does not do anything; otherwise it reports +its steps and any errors. +.SH "OPTIONS" +.IP "\fB--help\fP" +print basic usage information +.IP "\fB--silent\fP" +don't report status messages +.IP "\fB--force\fP" +always process the file (no checksum test) +.IP "\fB--noclean\fP" +don't remove temporary files when finished +.IP "\fB--pdftops\fP" +use \fBpdftops\fP(1), part of the \fBxpdf\fP(1) programs, +to convert PDF to PostScript +.IP "\fB--ghostscript\fP" +use GhostScript (see \fBpdf2ps\fP(1)) to convert PDF to PostScript + +.SH "VARIABLES" +.PP +When set, the environment variables GS and GS_PROG will be used to +identify GHOSTSCRIPT. The names of the other programs that +are used can be set with PDFTOPS and PSTOEDIT. +.HP + +.SH "SEE ALSO" + +.IP \(bu +\fBmpost\fP(1), \fBpstoedit\fP(1), \fBtexexec\fP(1). +.IP \(bu +The makempy manual, \fImmakempy.pdf\fP, +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . + +.SH "AUTHOR" + +This manual page was written by Frank K\[:u]ster , +for the Debian GNU/Linux system. It may be used and modified by +others without contacting the author. --- context-2007.04.17.orig/debian/manpages/texmfstart.man +++ context-2007.04.17/debian/manpages/texmfstart.man @@ -0,0 +1,363 @@ +.TH "TEXMFSTART" "1" "December 2006" "texmfstart 2.0" "ConTeXt" +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.de EX +.in +3 +.nf +.ft CW +.. +.de EE +.in -3 +.ft R +.fi +.. + +.SH "NAME" +texmfstart \- run ConTeXt scripts, make ConTeXt wrapper scripts, view documents + +.SH "SYNOPSIS" +\fB texmfstart\fP [ \fIoptions ...\fP ] [ \fIfilename\fP ] [ \fIarguments ...\fP ] + +.SH "DESCRIPTION" +ConTeXt is a typesetting system based on +the .BR tex (1) +family of programs. +.B texmfstart +is a ConTeXt meta-script that can run subordinate +scripts (subscripts?) such +as +.BR texexec (1), +.BR ctxtools (1), +or +.BR pdftools (1). +It can also generate short wrapper scripts to simplify common uses. +These scripts are often called +.I stubs +in the ConTeXt documentation. The options control +.BR texmfstart 's +behaviour, and the arguments are passed +to the program identified by +.IR filename . + +If the filename is a document, then +.B texmfstart +will start a viewer for that document. For example: +.EX +texmfstart showcase.pdf +.EE +will start an appropriate viewer for +.IR showcase.pdf . +See the +.B EXAMPLES +section. + +.SH OPTIONS + +.SS General: +.TP +.B --help, --version +print version information, usage, and examples. +.TP +.B --verbose +print status and progress information, for example what commands are +being executed. +.TP +.B --clear +don't pass info about locations to child processes. + +.SS Running a program: +.TP +.B --arguments=\fIstr\fP +an alternative for providing the arguments to be passed. For example, +.EX +texmfstart --arguments=b.tex texexec +.EE +will pass +.I b.tex +as the argument to +.BR texexec . +.TP +.B --report +dry run: report what command would be run, but do not run it +.TP +.B --locate +dry run: like \f(CW--report\fP but doesn't print the trailing newline. +.TP +.B --browser +view the document in a web browser (for Windows). +.TP +.B --file=\fIfilename\fP +an alternative way to specify the file (the program to run or document +to open). +.TP +.B --direct +run a program without searching for its location (assumes that the +program is on the PATH). +.TP +.B --execute +use the +.BR ruby (1) +.I exec +function instead of its +.I system +function. +.TP +.B --program=\fIstr\fP +the program space where +.BR kpsewhich (1) +will search (default: context). This information is given to +.B kpsewhich +as its \f(CW-progname\fP option. Usually you don't need this option. + +.SS Creating startup scripts: +.TP +.B --make +create a wrapper script or batch file to run the given file. +The wrapper scripts are put in the current path, which usually means +the current directory. If +\fIall\fP is given as the file, e.g. +.EX +texmfstart --make all +.EE +then make all the ConTeXt wrapper scripts (the stubs). +.TP +.B --windows +when making a wrapper script (stub), create a Windows batch (.bat) file. +Usually you +do not need to specify this option, as +.B texmfstart +will figure out what operating system you are using. +.TP +.B --linux +when making a wrapper script, create a Unix shell script. Usually you +do not need to specify this option, as +.B texmfstart +will figure out what operating system you are using. +.TP +.B --stubpath=\fIpath\fP +specify where to put the wrapper scripts (stubs). +.TP +.B --indirect +always use +.I texmfstart +in the wrapper script (stub). + +.SS Document viewing: +.TP +.B --page=\fInumber\fP +open the document at this page. + +.SS Environments and paths: +.TP +.B --path=\fIstr\fP +change to the specified path. +.TP +.B --tree=\fIstr\fP +use the given TEXMF tree. +.TP +.B --autotree +automatically determine the TEXMF tree to use (the default). +.TP +.B --environment=\fIstr\fP +use the given environment file. Its syntax is given in the +.I mtexmfstart.pdf +manual. +.TP +.B --showenv +print the environment variables known at runtime + +.SS Conditional execution: +.TP +.B --iftouched=\fIfile1,file2\fP +run only when the given files have different timestamps. +.TP +.B --ifchanged=\fIstr\fP +run only when the given file has changed (based on its last-computed MD5 +checksum). + +.SS Special features: +.TP +.B --edit +open the given file in an editor. + +.SH "FILENAME PREFIXES" +.SS +Optional prefixes determine the method used to search for the specified file: +.TP +.I bin:filename +expanded name based on the PATH environment variable +.TP +.I kpse:filename +expanded name based on +.BR kpsewhich (1) +result +.TP +.I rel:filename +expanded name relative to the current directory +.TP +.I env:name +expanded pathname based on environment variable +.I name +.TP +.I path:filename +path part of filename as located by +.BR kpsewhich (1) + +.SH EXAMPLES +.TP +\f(CWtexmfstart texexec.rb file.tex\fP +Locate the +.I texexec.rb +script and run it with +.I file.tex +as its argument. In other words, make +.I file.pdf +from +.IR file.tex . +If +.BR texexec (1) +is properly installed on your system, +this common invocation can be shortened to +.EX +\f(CWtexexec file.tex\fP +.EE +.TP +\f(CWtexmfstart texexec file.tex\fP +Locate the +.BR texexec (1) +program (currently a +.BR ruby (1) +script, +.IR texexec.rb ) +and run it with +.I file.tex +as its argument, producing +.I file.pdf. +This invocation can be shortened to +.EX +texexec file.tex +.EE +.TP +\f(CWtexmfstart ctxtools --updatecontext\fP +Run the +.BR ctxtools (1) +script, updating the ConTeXt installation. This +invocation is equivalent to +.EX +ctxtools --updatecontext +.EE +.TP +\f(CWtexmfstart pstopdf --method=3 cow.eps\fP +Convert +.I cow.eps +to PDF using method 3 of +.BR pstopdf (1). +This invocation is equivalent to +.EX +pstopdf --method=3 cow.eps +.EE +.TP +\f(CWtexmfstart --make --stubpath=/usr/local/bin texexec\fP +Make a wrapper script (stub), either a shell script +.I /usr/local/bin/texexec +on Unix, or a batch file \fI\\usr\\local\\bin\\texexec.bat\fP +on Windows. On Unix (and maybe on Windows?), you need to make +the script executable; see +.BR chmod (1). +.TP +\f(CWtexmfstart --edit kpse:cont-sys.tex\fP +Locate and edit the \fIcont-sys.tex\fP configuration file. +.TP +\f(CWtexmfstart --ifchanged=whatever.mp texexec --mpgraphic whatever.mp\fP +Rerun +.B texexec +if +.I whatever.mp +has changed since the last use of +.IR --ifchanged . +.TP +\f(CWtexmfstart --ifchanged=whatever.mp bin:echo rerun MetaPost\fP +If the +.I whatever.mp +source file has changed since the last use of +.IR --ifchanged , +then use the +.BR echo (1) +command to tell the user to rerun MetaPost +.RB "(see " mpost (1)). +This example shows that +.B texmfstart +can be used to run any script, not just ConTeXt scripts. The +\f(CWbin:\fP prefix tells +.B texmfstart +not to search for +.I echo +in the TEXMF tree(s), but to assume that it's an executable somewhere +on the PATH. +.TP +\f(CWtexmfstart --ifchanged=whatever.mp --direct echo rerun MetaPost\fP +This invocation has the same effect as the preceding example, but +using \f(CW--direct\fP instead of the \f(CWbin:\fP prefix, again to tell +.B texmfstart +not to search for the +.I echo +command. + +.SH FILES +.TP +.I file.md5 +MD5 checksum file used for the \f(CW--ifchanged\fP option. + +.SH ENVIRONMENT +.TP +PATH +For expanding filenames given with a +.I bin +prefix. +.TP +TEXMFSTART_EDITOR, EDITOR, editor +Editor to use with +.IR --edit . +The environment variables are looked up in that order, with the first +setting found taking priority. + +.SH "SEE ALSO" +.IP \(bu +.BR ctxtools (1), +.BR kpsewhich (1), +.BR makempy (1), +.BR mpost (1), +.BR pdftools (1), +.BR pstopdf (1), +.BR texexec (1), +.BR texfont (1), +.BR texutil (1). +.IP \(bu +.URL "http://www.contextgarden.net" "ConTeXt wiki" . +.IP \(bu +The +.B texmfstart +manual, +.IR mtexmfstart.pdf , +available from +.URL "http://www.pragma-ade.com/dir/general/manuals/" "PRAGMA ADE" . + +.SH BUGS +On Unix, opening a PDF document first tries +.B pdfopen +then +.BR acroread , +neither of which may be present on your system. + +The \f(CW--report\fP option doesn't work if you specify a filename +prefix (i.e. it does a real run instead of a dry run). + +.SH "AUTHOR" +ConTeXt is written and maintained by +.URL "http://www.pragma-ade.com" "Hans Hagen" . +This man page, which is in the public domain, was written by Sanjoy +Mahajan based on the +.I mtexmfstart.pdf +manual. --- context-2007.04.17.orig/debian/stubs/texshow +++ context-2007.04.17/debian/stubs/texshow @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart texshow.pl "$@" --- context-2007.04.17.orig/debian/stubs/pdftrimwhite +++ context-2007.04.17/debian/stubs/pdftrimwhite @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart pdftrimwhite.pl "$@" --- context-2007.04.17.orig/debian/patches/00list +++ context-2007.04.17/debian/patches/00list @@ -0,0 +1 @@ +10_texfont_fontforge.dpatch --- context-2007.04.17.orig/debian/patches/10_texfont_fontforge.dpatch +++ context-2007.04.17/debian/patches/10_texfont_fontforge.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_texfont_fontforge.dpatch by +## +## DP: texfont calls pfaedit, but Debian has already fontforge, change the name + +@DPATCH@ +--- ./scripts/context/perl/texfont.pl.orig 2006-12-09 12:19:30.000000000 +0100 ++++ ./scripts/context/perl/texfont.pl 2006-12-09 12:20:01.000000000 +0100 +@@ -818,8 +818,8 @@ + report ("destination file : $pfbfont") ; } + else + { error ("missing otf/ttf source file") } +- open (CONVERT, "| pfaedit -script -") || error ("couldn't open pipe to pfaedit") ; +- report ("pre-processing with : pfaedit") ; ++ open (CONVERT, "| fontforge -script -") || error ("couldn't open pipe to fontforge") ; ++ report ("pre-processing with : fontforge") ; + print CONVERT "Open('$infont');\n Generate('$pfbfont', '', 1) ;\n" ; + close (CONVERT) } + --- context-2007.04.17.orig/debian/texmfstart +++ context-2007.04.17/debian/texmfstart @@ -0,0 +1,2 @@ +#!/bin/sh +ruby $(kpsewhich --format=texmfscripts texmfstart.rb) "$@" --- context-2007.04.17.orig/debian/changelog.Debian.prerelease +++ context-2007.04.17/debian/changelog.Debian.prerelease @@ -0,0 +1,100 @@ +context (2006.12.17-0.1) UNRELEASED; urgency=low + + * new upstream release + * don't include the zip files in the .orig.tar.gz, but already unpack them, + make relevant adaptions to the rules file + * add a mktexlsr call after the creation and removal of formats + (Closes: #402543) + + -- Norbert Preining Tue, 19 Dec 2006 18:45:39 +0100 + +context (2006.12.07-0.3) UNRELEASED; urgency=low + + * new tar ball, including cont-tmf.zip, cont-ext.zip, cont-fnt.zip, + cont-img.zip + * install all the files included in the above zips + + -- Norbert Preining Mon, 11 Dec 2006 11:08:36 +0100 + +context (2006.12.07-0.2) UNRELEASED; urgency=low + + * disable all map files + * install documentation + + -- Norbert Preining Sun, 10 Dec 2006 11:45:43 +0100 + +context (2006.12.07-0.1) UNRELEASED; urgency=low + + * new upstream + * suggest fontforge, and let texfont call fontforge instead of pfaedit + * add dpatch build-dep and adjust rules + + -- Norbert Preining Sat, 9 Dec 2006 12:28:02 +0100 + +context (2006.08.08-0.6) UNRELEASED; urgency=low + + * fix format renaming, so that removal works + * fix duplicate web2c component in the remove part + * at removal time remove the fmts in web2c/$engine AND web2c + + -- Norbert Preining Wed, 25 Oct 2006 16:18:37 +0200 + +context (2006.08.08-0.5) UNRELEASED; urgency=low + + * only create cont-en, mptopdf, and metafun formats on pdftex by default + * fix man page + * install perl scripts, some stubs need them + * make ctxformat less noisy + * don't install formats in /usr/share/texmf/web2c, but into either + TEXMFSYSVAR/web2c or TEXMFVAR/web2c, depending on whether the running + user is root or not. + * add a check for the presence of the engine binary, warn if not present + + -- Norbert Preining Wed, 25 Oct 2006 12:24:22 +0200 + +context (2006.08.08-0.4) UNRELEASED; urgency=low + + * ConTeXt formats are now defined in /etc/texmf/context/formats.cnf + and created with /usr/bin/ctxfmtutil + + -- Norbert Preining Tue, 24 Oct 2006 19:32:47 +0200 + +context (2006.08.08-0.3) UNRELEASED; urgency=low + + * switch to ruby stubs and scripts, add depends on ruby + * remove dpatch and patches, is not necessary with the switch to ruby + * do not install the perl scripts + + -- Norbert Preining Mon, 23 Oct 2006 12:46:13 +0200 + +context (2006.08.08-0.2) UNRELEASED; urgency=low + + * do not install the fonts/map/dvipdfm directory, it hoses the system + + -- Norbert Preining Mon, 23 Oct 2006 12:06:38 +0200 + +context (2006.08.08-0.1) UNRELEASED; urgency=low + + * that was not 07.13, but 08.08, why does CTAN state this ... + * install copyright and LICENSE.teTeX file + + -- Norbert Preining Sun, 22 Oct 2006 17:24:33 +0200 + +context (2006.07.13-0.2) UNRELEASED; urgency=low + + * update copyright file and long description + * add a conflict with tetex as it also ships texexec and friends + * add a README.Debian + * use context.maps and context.formats instead of cmd line options + * add man pages + * fix some lintian warnings + * add patches for perl invocation + * remove tetex from alternative deps, it does not work + + -- Norbert Preining Sun, 22 Oct 2006 17:01:36 +0200 + +context (2006.07.13-0.1) UNRELEASED; urgency=low + + * Initial release. + + -- Norbert Preining Sun, 22 Oct 2006 12:36:25 +0200 --- context-2007.04.17.orig/debian/README.Debian +++ context-2007.04.17/debian/README.Debian @@ -0,0 +1,32 @@ +README for using ConTeXt on Debian +================================== + +1. non free content +------------------- + +Most of the ConTeXt documentation is distributed only in pdf format, which +will be made available together with fonts which are not DFSG compatible +in the + context-nonfree +package. + +2. generation of documentation +------------------------------ + +The documentation and examples for various modules as distributed in + /usr/share/doc/context/third/... +can be generated from the input code by calling + texexec --module t-french.tex +for the documentation, and + texexec --mode=demo t-french.tex +for the example file. + +3. generation of the font files (vf,tfm) +---------------------------------------- +These files were generated using the texfont program, as follows: + texfont --encoding=texnansi --batch type-tmf.dat +where the type-tmf.dat is located in + /usr/share/texmf/context/data + + +Norbert Preining, 2006-2007 --- context-2007.04.17.orig/debian/rules +++ context-2007.04.17/debian/rules @@ -0,0 +1,118 @@ +#! /usr/bin/make -f + +package := context +# zipfiles := cont-tmf.zip cont-fnt.zip cont-ext.zip cont-img.zip +instbase := debian/$(package) + +include /usr/share/dpatch/dpatch.make + +build: build-indep + +# unpack-stamp: +# for i in $(zipfiles) ; do unzip $$i ; done +# touch unpack-stamp + +# patch-stamp: unpack-stamp + + +build-indep: build-indep-stamp + +build-indep-stamp: patch-stamp + touch build-indep-stamp + +clean: unpatch + dh_testroot + rm -f build-indep-stamp + # rm -rf bibtex context doc fonts metapost scripts tex tpm web2c + dh_clean + +test-nonfree: + found=0 ; for i in $$(cat debian/MANIFEST.nonfree debian/MANIFEST.doc-nonfree) ; do \ + if [ -r $$i ] ; then \ + echo "nonfree stuff: $$i" ; \ + found=1; \ + fi ; \ + done ; if [ $$found = 1 ] ; then \ + echo "Found non free stuff, stopping, please clean up first!" ;\ + exit 1; \ + fi + +binary-indep: build-indep test-nonfree + dh_testdir + dh_testroot + dh_clean + dh_installdirs usr/share/texmf usr/share/doc/$(package) \ + var/lib/texmf/web2c/pdftex \ + etc/texmf/tex/context/user + cp -a scripts bibtex context fonts metapost tex web2c \ + $(instbase)/usr/share/texmf + # move user config file to /etc + mv $(instbase)/usr/share/texmf/tex/context/user/cont-sys.rme \ + $(instbase)/etc/texmf/tex/context/user + rmdir $(instbase)/usr/share/texmf/tex/context/user + # this file is not needed + rm $(instbase)/usr/share/texmf/web2c/context.cnf + # switch to ruby + #rm -r $(instbase)/usr/share/texmf/scripts/context/ruby + rm -r $(instbase)/usr/share/texmf/scripts/context/stubs + #we still need the perl scripts + #rm -r $(instbase)/usr/share/texmf/scripts/context/perl + rm -r $(instbase)/usr/share/texmf/context/examplap + rm -r $(instbase)/usr/share/texmf/fonts/map/dvipdfm + + # we need a check here that all maps are installed + # use context.formats and context.maps in debian dir + dh_installtex --flavor=format:no_links + + dh_installdirs usr/bin + + # install our context-format creation script + # not needed anymore since we depend on texlive 2007 and use + # context.formats and fmtutil + # cp debian/ctxfmtutil $(instbase)/usr/bin + # and the formats definitions + # cp debian/formats.cnf $(instbase)/etc/texmf/context/config + + # switch to ruby + cp scripts/context/stubs/unix/* $(instbase)/usr/bin + cp debian/texmfstart $(instbase)/usr/bin + # missing stubs for some perl scripts: + cp -a debian/stubs/* $(instbase)/usr/bin/ + + # documentation + cp -a doc/context/* $(instbase)/usr/share/doc/$(package) + cp -a doc/fonts $(instbase)/usr/share/doc/$(package) + rm $(instbase)/usr/share/doc/$(package)/scripts/perl/texshow.1 + dh_installman \ + doc/context/scripts/perl/texshow.1 \ + debian/manpages/*.man + + dh_installdocs debian/changelog.Debian.prerelease \ + debian/MANIFEST.nonfree debian/MANIFEST.doc-nonfree + + # backward compatibility with pdftex < 1.40 where formats MUST + # be put into web2c/pdfetex, while new context puts them into + # web2c/pdftex + # There is also a preinst part to this problem + # This can be removed as soon as TeX Live 2006/7 is in Debian + # Then also the link should be removed + # dh_link var/lib/texmf/web2c/pdftex var/lib/texmf/web2c/pdfetex + + # lintian override for script-not-executable + install -D --mode=644 debian/override $(instbase)/usr/share/lintian/overrides/$(package) + + dh_installchangelogs + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: +# We have nothing to do here but the Debian Policy says this target must +# exist. + +binary: binary-indep binary-arch + +.PHONY: clean build build-indep binary binary-indep binary-arch --- context-2007.04.17.orig/debian/compat +++ context-2007.04.17/debian/compat @@ -0,0 +1 @@ +5 --- context-2007.04.17.orig/debian/MANIFEST.doc-nonfree +++ context-2007.04.17/debian/MANIFEST.doc-nonfree @@ -0,0 +1,34 @@ +./doc/context/document/general/manuals/metafun-p.pdf +./doc/context/document/general/manuals/cont-eni.pdf +./doc/context/document/general/manuals/showcase.pdf +./doc/context/document/general/manuals/eppchtex.pdf +./doc/context/document/general/manuals/mtexwork.pdf +./doc/context/document/general/manuals/show-mag.pdf +./doc/context/document/general/manuals/mtexexec.pdf +./doc/context/document/general/manuals/show-dem.pdf +./doc/context/document/general/manuals/roadmap.pdf +./doc/context/document/general/manuals/cont-enp.pdf +./doc/context/document/general/manuals/show-man.pdf +./doc/context/document/general/manuals/show-pap.pdf +./doc/context/document/general/manuals/mp-cb-en.pdf +./doc/context/document/general/manuals/showunic.pdf +./doc/context/document/general/manuals/setup-en.pdf +./doc/context/document/general/manuals/ms-cb-en.pdf +./doc/context/document/general/manuals/mp-ch-en.pdf +./doc/context/document/general/manuals/mtexfont.pdf +./doc/context/document/general/manuals/showfont.pdf +./doc/context/document/general/manuals/mtexutil.pdf +./doc/context/document/general/manuals/show-not.pdf +./doc/context/document/general/manuals/mmakempy.pdf +./doc/context/document/general/manuals/minstall.pdf +./doc/context/document/general/manuals/show-gra.pdf +./doc/context/document/general/manuals/tiptrick.pdf +./doc/context/document/general/manuals/aleph.pdf +./doc/context/document/general/manuals/example.pdf +./doc/context/document/general/manuals/show-exa.pdf +./doc/context/document/general/manuals/metafun-s.pdf +./doc/context/document/general/manuals/show-pre.pdf +./doc/context/document/general/manuals/show-art.pdf +./doc/context/document/general/manuals/mfonts.pdf +./doc/context/document/general/manuals/details.pdf +./doc/context/document/general/manuals/style.pdf --- context-2007.04.17.orig/debian/changelog +++ context-2007.04.17/debian/changelog @@ -0,0 +1,127 @@ +context (2007.04.17-1) unstable; urgency=low + + * new upstream release: + - mptopdf and texexec (once again) support the handling of LaTeX files + - allow blocking of installed programs for texutil + - fix the handling of external graphics in xetex + - various low-level fixes and extensiosn for multicolumn handling + - bugfix for disappearing footnotes + - support for TeX-Gyre Hermes + - for various other small bugfixes, see the detailed page + * remove paragraph about format generation from README.Debian + * make cont-sys.rme a conffile (/etc/texmf/tex/context/user/cont-sys.rme) + + -- Norbert Preining Wed, 25 Apr 2007 10:54:13 +0200 + +context (2007.03.22-1) unstable; urgency=low + + * new upstream release: + - ctxtools --updatecontext now supports a --proxy switch + - and a few small bugfixes + * switching to dh_installtex/fmt.d definitions of ConTeXt formats: + - take over config file from texlive-context (Closes: #414873) + - proper placement of format dumps (Closes: #418976, #419565, #419111) + - removing ctxfmtutil, adjust the rules file + * adjust build deps and run deps for tex-common + + -- Norbert Preining Wed, 18 Apr 2007 08:46:52 +0200 + +context (2007.03.19-1) experimental; urgency=low + + * new upstream release: + - Aditya's 'mathsets' modules in included in cont-ext.zip + - The use of \setuphead[][numberwidth=...] + - Named font styles can now also be 'sans' or 'sansbold' + - The old marvosym metric file is included, fixing the + 'MarvoSym' symbols and '\texteuro' bugs + - Quoting of font files is changed so that hopefully XeTeX bare + fontfiles are OK now. + - For some other small changes, see the details page + * depend on texlive >= 2007: + - remove ctxfmtutil hack, texlive 2007 can deal with different + engines in the fmtutil.cnf file + - use context.formats with dh_installtex + + -- Norbert Preining Wed, 21 Mar 2007 17:30:58 +0100 + +context (2007.02.21-1) UNRELEASED; urgency=low + + * new upstream release: + - Handling of figure paths extended (cache support) + - Corrected truetype font file for lmtypewriter10-regular (for use in X11) + + -- Norbert Preining Tue, 27 Feb 2007 10:00:57 +0100 + +context (2007.02.20-1) UNRELEASED; urgency=low + + * new upstream release: + - Bugfixes: Quite a few (mostly very small) fixes + * edit changelog for 2007.01.23-3 to close a bug + * remove 20_shebang_fixes.dpatch, included upstream + * depend on lmodern >= 1.01 (currently only in experimental) + + -- Norbert Preining Sun, 25 Feb 2007 18:34:38 +0100 + +context (2007.01.23-3) unstable; urgency=low + + * texlive 2007 preparation: + - remove the conflict with tetex-base, and version the conflict with + tetex-bin << 2007 + - change links from pdftex->pdfetex to pdfetex->pdftex + * fix shebang lines, thanks to Jindrich Novy (Closes: #410851) + + -- Norbert Preining Wed, 14 Feb 2007 01:09:57 +0100 + +context (2007.01.23-2) unstable; urgency=low + + * install directory /var/lib/texmf/web2c/pdfetex (Closes: #409575) + + -- Norbert Preining Mon, 5 Feb 2007 18:01:04 +0100 + +context (2007.01.23-1) unstable; urgency=low + + * new upstream + - bugfixes: + . corrected XeTeX commandline + - new: + . The vim module is now included in cont-ext.zip + . Switch to latin modern math fonts. + * adding a dependency on lmodern >= 1.00 for the lmath fonts + + -- Norbert Preining Fri, 2 Feb 2007 19:32:58 +0100 + +context (2007.01.12.2-1) unstable; urgency=low + + * new upstream (same day) fixes complete breakage + + -- Norbert Preining Sat, 13 Jan 2007 06:53:38 +0100 + +context (2007.01.12-1) unstable; urgency=low + + * new upstream release, should fix texexec return values and + incompatibilities with old pdfetex + * add libxml-parser-perl to the suggests + * add compatibility hack for pdftex < 1.40 where the formats must + be placed into .../web2c/pdfetex by linking .../web2c/pdftex to pdfetex + + -- Norbert Preining Fri, 12 Jan 2007 12:45:04 +0100 + +context (2007.01.02-2) unstable; urgency=low + + * add missing stub for texshow (Closes: #406211) and pdftrimwhite + + -- Norbert Preining Tue, 9 Jan 2007 16:56:50 +0100 + +context (2007.01.02-1) unstable; urgency=low + + * new upstream release + + -- Norbert Preining Wed, 3 Jan 2007 10:02:43 +0100 + +context (2006.12.27-1) unstable; urgency=low + + * first upload (Closes: #403770) + * include the contents of cont-tmf, cont-fnt, cont-ext, cont-img, minus + the files from MANIFEST.nonfree + + -- Norbert Preining Thu, 28 Dec 2006 11:29:07 +0100 --- context-2007.04.17.orig/debian/ctxfmtutil +++ context-2007.04.17/debian/ctxfmtutil @@ -0,0 +1,112 @@ +#!/bin/bash +# +# ctxfmtutil +# +# This script reads the context format definition file from +# /etc/texmf/context/config/formats.cnf +# and creates the necessary formats by calling texexec. +# + +configfile=/etc/texmf/context/config/formats.cnf + +texmfsysvar=$(kpsewhich -expand-var '$TEXMFSYSVAR') +texmfvar=$(kpsewhich -expand-var '$TEXMFVAR') + +if [ "$(id -u)" -eq 0 ] ; then + TEXFORMATS=$texmfsysvar/web2c + desttree=$texmfsysvar +else + TEXFORMATS=$texmfvar/web2c + desttree=$texmfvar +fi +export TEXFORMATS + +case "$1" in + "--build") + build=1 ;; + "--remove") + build=0 ;; + *) + echo "Wrong commandline argument $1!" >&2 ; exit 1 ;; +esac + + +dhit_build_format () +{ + tempfile=$(mktemp -p /tmp ctxfmtutil.XXXXXXXX) + printf "Building ConTeXt format(s) $2 with engine $1.\n\tThis may take some time... " + # calling texexec with --nonstopmode AND $tempfile 2>&1 /dev/null 2>&1 +} + +parse_line() +{ + engine=$1 + format=$2 + eval set $engine + allengines="$@" + eval set $format + allformats="$@" + for e in $allengines ; do + case "$e" in + pdftex) prog=pdftex ;; + aleph) prog=aleph ;; + xetex) prog=xetex ;; + *) echo "Unknown engine $e, exit!" >&2 ; exit 1 ;; + esac + if check_program $prog ; then + # ok, we can build the format, do nothing here + : + else + echo "Warning: engine $prog not present, but specified in the config file!" >&2 + echo "Warning: Will not build the formats based on this engine!" >&2 + continue + fi + for f in $allformats ; do + case "$f" in + ??) f=cont-$f ;; + esac + if [ $build = 1 ] ; then + dhit_build_format $e $f + else + remove_format_files $e $f + fi + done + done +} + +OIFS=$IFS +IFS=' +' +set $(echo x; sed '/^#/d; /^[ ]*$/d' "$configfile") ; shift +IFS=$OIFS +for line +do + parse_line $line; +done + +mktexlsr $desttree --- context-2007.04.17.orig/debian/override +++ context-2007.04.17/debian/override @@ -0,0 +1 @@ +context: script-not-executable --- context-2007.04.17.orig/debian/copyright +++ context-2007.04.17/debian/copyright @@ -0,0 +1,487 @@ +This package was debianized by Norbert Preining on +Sun Oct 22 11:53:51 CEST 2006. + +The original source was downloaded and merged, and repackaged from the +following source files + http://www.pragma-ade.com/context/current/cont-tmf.zip + http://www.pragma-ade.com/context/current/cont-fnt.zip + http://www.pragma-ade.com/context/current/cont-img.zip + http://www.pragma-ade.com/context/current/cont-ext.zip + +Debian adaptations for this Package are licensed under the GNU General +Public License, version 2, and are under Copyright by: + + Norbert Preining (2006) + +All the files contained in the generated orig.tar.gz are licensed under +the GNU General Public License, but the files of t-letterine, which +are licensed under Public Domain. + +Following are excerpts from an email by Taco Hoekwater +clarifying the license statement: + +-------- Message-ID: <458BEFE0.8030308@elvenkind.com> ---- + +>First cont-img.zip: + +All images in cont-img are GPLv2. + +>cont-fnt contains a huge bunch of vf/afm/tfm/map files. I assume that +>they were generated from some fontinst source, but this is missing. + +No, they were not, and there is no "missing source". The vf/tfm/map +were generated using the texfont program, which does not use source +files. The afms were created using ttf2afm, which uses ttfs as source. + +>Anyway, there is no accompanying readme or whatsoever besides the one +>for lucida. + +All the files in cont-fnt are GPLv2. + +>cont-ext seems to be ok besides a few points: +> t-lettrine.tex does not have a license statement + +Yes, it does. Top of file. PD. Perhaps you missed another then? + +> t-urwgaramond, type-urwgaramond, + +Peter, can you add the license statement and re-upload? (it is GPL, +according to Peter's own license statement on the contextgarden page +for this module) + +> type-urwgothic: no license statement + +---------------------------------------------------- + +The files from cont-tmf.zip are distributed under GPL as stated in the +including mreadme.tex/pdf file: + + The program code (i.e. anything not under the /doc subtree) is distributed + under the Creative Commons GNU GPL + + For practical purposes distributers may also choose the LaTeX project + licence, which is considered to be a bit more TeX friendly. + (BSD alike licences, the Ruby Licence and the Apache are all licences + that apply well for ConTeXt.) + + +On Debian systems the text of the GNU General Public License can be found +in /usr/share/common-licenses/GPL (and GPL-2). + + +The LaTeX Project Public License +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +LPPL Version 1.3c 2006-05-20 + +Copyright 1999 2002-2006 LaTeX3 Project + Everyone is allowed to distribute verbatim copies of this + license document, but modification of it is not allowed. + + +PREAMBLE +======== + +The LaTeX Project Public License (LPPL) is the primary license under +which the the LaTeX kernel and the base LaTeX packages are distributed. + +You may use this license for any work of which you hold the copyright +and which you wish to distribute. This license may be particularly +suitable if your work is TeX-related (such as a LaTeX package), but +it is written in such a way that you can use it even if your work is +unrelated to TeX. + +The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', +below, gives instructions, examples, and recommendations for authors +who are considering distributing their works under this license. + +This license gives conditions under which a work may be distributed +and modified, as well as conditions under which modified versions of +that work may be distributed. + +We, the LaTeX3 Project, believe that the conditions below give you +the freedom to make and distribute modified versions of your work +that conform with whatever technical specifications you wish while +maintaining the availability, integrity, and reliability of +that work. If you do not see how to achieve your goal while +meeting these conditions, then read the document `cfgguide.tex' +and `modguide.tex' in the base LaTeX distribution for suggestions. + + +DEFINITIONS +=========== + +In this license document the following terms are used: + + `Work' + Any work being distributed under this License. + + `Derived Work' + Any work that under any applicable law is derived from the Work. + + `Modification' + Any procedure that produces a Derived Work under any applicable + law -- for example, the production of a file containing an + original file associated with the Work or a significant portion of + such a file, either verbatim or with modifications and/or + translated into another language. + + `Modify' + To apply any procedure that produces a Derived Work under any + applicable law. + + `Distribution' + Making copies of the Work available from one person to another, in + whole or in part. Distribution includes (but is not limited to) + making any electronic components of the Work accessible by + file transfer protocols such as FTP or HTTP or by shared file + systems such as Sun's Network File System (NFS). + + `Compiled Work' + A version of the Work that has been processed into a form where it + is directly usable on a computer system. This processing may + include using installation facilities provided by the Work, + transformations of the Work, copying of components of the Work, or + other activities. Note that modification of any installation + facilities provided by the Work constitutes modification of the Work. + + `Current Maintainer' + A person or persons nominated as such within the Work. If there is + no such explicit nomination then it is the `Copyright Holder' under + any applicable law. + + `Base Interpreter' + A program or process that is normally needed for running or + interpreting a part or the whole of the Work. + + A Base Interpreter may depend on external components but these + are not considered part of the Base Interpreter provided that each + external component clearly identifies itself whenever it is used + interactively. Unless explicitly specified when applying the + license to the Work, the only applicable Base Interpreter is a + `LaTeX-Format' or in the case of files belonging to the + `LaTeX-format' a program implementing the `TeX language'. + + + +CONDITIONS ON DISTRIBUTION AND MODIFICATION +=========================================== + +1. Activities other than distribution and/or modification of the Work +are not covered by this license; they are outside its scope. In +particular, the act of running the Work is not restricted and no +requirements are made concerning any offers of support for the Work. + +2. You may distribute a complete, unmodified copy of the Work as you +received it. Distribution of only part of the Work is considered +modification of the Work, and no right to distribute such a Derived +Work may be assumed under the terms of this clause. + +3. You may distribute a Compiled Work that has been generated from a +complete, unmodified copy of the Work as distributed under Clause 2 +above, as long as that Compiled Work is distributed in such a way that +the recipients may install the Compiled Work on their system exactly +as it would have been installed if they generated a Compiled Work +directly from the Work. + +4. If you are the Current Maintainer of the Work, you may, without +restriction, modify the Work, thus creating a Derived Work. You may +also distribute the Derived Work without restriction, including +Compiled Works generated from the Derived Work. Derived Works +distributed in this manner by the Current Maintainer are considered to +be updated versions of the Work. + +5. If you are not the Current Maintainer of the Work, you may modify +your copy of the Work, thus creating a Derived Work based on the Work, +and compile this Derived Work, thus creating a Compiled Work based on +the Derived Work. + +6. If you are not the Current Maintainer of the Work, you may +distribute a Derived Work provided the following conditions are met +for every component of the Work unless that component clearly states +in the copyright notice that it is exempt from that condition. Only +the Current Maintainer is allowed to add such statements of exemption +to a component of the Work. + + a. If a component of this Derived Work can be a direct replacement + for a component of the Work when that component is used with the + Base Interpreter, then, wherever this component of the Work + identifies itself to the user when used interactively with that + Base Interpreter, the replacement component of this Derived Work + clearly and unambiguously identifies itself as a modified version + of this component to the user when used interactively with that + Base Interpreter. + + b. Every component of the Derived Work contains prominent notices + detailing the nature of the changes to that component, or a + prominent reference to another file that is distributed as part + of the Derived Work and that contains a complete and accurate log + of the changes. + + c. No information in the Derived Work implies that any persons, + including (but not limited to) the authors of the original version + of the Work, provide any support, including (but not limited to) + the reporting and handling of errors, to recipients of the + Derived Work unless those persons have stated explicitly that + they do provide such support for the Derived Work. + + d. You distribute at least one of the following with the Derived Work: + + 1. A complete, unmodified copy of the Work; + if your distribution of a modified component is made by + offering access to copy the modified component from a + designated place, then offering equivalent access to copy + the Work from the same or some similar place meets this + condition, even though third parties are not compelled to + copy the Work along with the modified component; + + 2. Information that is sufficient to obtain a complete, + unmodified copy of the Work. + +7. If you are not the Current Maintainer of the Work, you may +distribute a Compiled Work generated from a Derived Work, as long as +the Derived Work is distributed to all recipients of the Compiled +Work, and as long as the conditions of Clause 6, above, are met with +regard to the Derived Work. + +8. The conditions above are not intended to prohibit, and hence do not +apply to, the modification, by any method, of any component so that it +becomes identical to an updated version of that component of the Work as +it is distributed by the Current Maintainer under Clause 4, above. + +9. Distribution of the Work or any Derived Work in an alternative +format, where the Work or that Derived Work (in whole or in part) is +then produced by applying some process to that format, does not relax or +nullify any sections of this license as they pertain to the results of +applying that process. + +10. a. A Derived Work may be distributed under a different license + provided that license itself honors the conditions listed in + Clause 6 above, in regard to the Work, though it does not have + to honor the rest of the conditions in this license. + + b. If a Derived Work is distributed under a different license, that + Derived Work must provide sufficient documentation as part of + itself to allow each recipient of that Derived Work to honor the + restrictions in Clause 6 above, concerning changes from the Work. + +11. This license places no restrictions on works that are unrelated to +the Work, nor does this license place any restrictions on aggregating +such works with the Work by any means. + +12. Nothing in this license is intended to, or may be used to, prevent +complete compliance by all parties with all applicable laws. + + +NO WARRANTY +=========== + +There is no warranty for the Work. Except when otherwise stated in +writing, the Copyright Holder provides the Work `as is', without +warranty of any kind, either expressed or implied, including, but not +limited to, the implied warranties of merchantability and fitness for a +particular purpose. The entire risk as to the quality and performance +of the Work is with you. Should the Work prove defective, you assume +the cost of all necessary servicing, repair, or correction. + +In no event unless required by applicable law or agreed to in writing +will The Copyright Holder, or any author named in the components of the +Work, or any other party who may distribute and/or modify the Work as +permitted above, be liable to you for damages, including any general, +special, incidental or consequential damages arising out of any use of +the Work or out of inability to use the Work (including, but not limited +to, loss of data, data being rendered inaccurate, or losses sustained by +anyone as a result of any failure of the Work to operate with any other +programs), even if the Copyright Holder or said author or said other +party has been advised of the possibility of such damages. + + +MAINTENANCE OF THE WORK +======================= + +The Work has the status `author-maintained' if the Copyright Holder +explicitly and prominently states near the primary copyright notice in +the Work that the Work can only be maintained by the Copyright Holder +or simply that it is `author-maintained'. + +The Work has the status `maintained' if there is a Current Maintainer +who has indicated in the Work that they are willing to receive error +reports for the Work (for example, by supplying a valid e-mail +address). It is not required for the Current Maintainer to acknowledge +or act upon these error reports. + +The Work changes from status `maintained' to `unmaintained' if there +is no Current Maintainer, or the person stated to be Current +Maintainer of the work cannot be reached through the indicated means +of communication for a period of six months, and there are no other +significant signs of active maintenance. + +You can become the Current Maintainer of the Work by agreement with +any existing Current Maintainer to take over this role. + +If the Work is unmaintained, you can become the Current Maintainer of +the Work through the following steps: + + 1. Make a reasonable attempt to trace the Current Maintainer (and + the Copyright Holder, if the two differ) through the means of + an Internet or similar search. + + 2. If this search is successful, then enquire whether the Work + is still maintained. + + a. If it is being maintained, then ask the Current Maintainer + to update their communication data within one month. + + b. If the search is unsuccessful or no action to resume active + maintenance is taken by the Current Maintainer, then announce + within the pertinent community your intention to take over + maintenance. (If the Work is a LaTeX work, this could be + done, for example, by posting to comp.text.tex.) + + 3a. If the Current Maintainer is reachable and agrees to pass + maintenance of the Work to you, then this takes effect + immediately upon announcement. + + b. If the Current Maintainer is not reachable and the Copyright + Holder agrees that maintenance of the Work be passed to you, + then this takes effect immediately upon announcement. + + 4. If you make an `intention announcement' as described in 2b. above + and after three months your intention is challenged neither by + the Current Maintainer nor by the Copyright Holder nor by other + people, then you may arrange for the Work to be changed so as + to name you as the (new) Current Maintainer. + + 5. If the previously unreachable Current Maintainer becomes + reachable once more within three months of a change completed + under the terms of 3b) or 4), then that Current Maintainer must + become or remain the Current Maintainer upon request provided + they then update their communication data within one month. + +A change in the Current Maintainer does not, of itself, alter the fact +that the Work is distributed under the LPPL license. + +If you become the Current Maintainer of the Work, you should +immediately provide, within the Work, a prominent and unambiguous +statement of your status as Current Maintainer. You should also +announce your new status to the same pertinent community as +in 2b) above. + + +WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE +====================================================== + +This section contains important instructions, examples, and +recommendations for authors who are considering distributing their +works under this license. These authors are addressed as `you' in +this section. + +Choosing This License or Another License +---------------------------------------- + +If for any part of your work you want or need to use *distribution* +conditions that differ significantly from those in this license, then +do not refer to this license anywhere in your work but, instead, +distribute your work under a different license. You may use the text +of this license as a model for your own license, but your license +should not refer to the LPPL or otherwise give the impression that +your work is distributed under the LPPL. + +The document `modguide.tex' in the base LaTeX distribution explains +the motivation behind the conditions of this license. It explains, +for example, why distributing LaTeX under the GNU General Public +License (GPL) was considered inappropriate. Even if your work is +unrelated to LaTeX, the discussion in `modguide.tex' may still be +relevant, and authors intending to distribute their works under any +license are encouraged to read it. + +A Recommendation on Modification Without Distribution +----------------------------------------------------- + +It is wise never to modify a component of the Work, even for your own +personal use, without also meeting the above conditions for +distributing the modified component. While you might intend that such +modifications will never be distributed, often this will happen by +accident -- you may forget that you have modified that component; or +it may not occur to you when allowing others to access the modified +version that you are thus distributing it and violating the conditions +of this license in ways that could have legal implications and, worse, +cause problems for the community. It is therefore usually in your +best interest to keep your copy of the Work identical with the public +one. Many works provide ways to control the behavior of that work +without altering any of its licensed components. + +How to Use This License +----------------------- + +To use this license, place in each of the components of your work both +an explicit copyright notice including your name and the year the work +was authored and/or last substantially modified. Include also a +statement that the distribution and/or modification of that +component is constrained by the conditions in this license. + +Here is an example of such a notice and statement: + + %% pig.dtx + %% Copyright 2005 M. Y. Name + % + % This work may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.3 + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.3 or later is part of all distributions of LaTeX + % version 2005/12/01 or later. + % + % This work has the LPPL maintenance status `maintained'. + % + % The Current Maintainer of this work is M. Y. Name. + % + % This work consists of the files pig.dtx and pig.ins + % and the derived file pig.sty. + +Given such a notice and statement in a file, the conditions +given in this license document would apply, with the `Work' referring +to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being +generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' +referring to any `LaTeX-Format', and both `Copyright Holder' and +`Current Maintainer' referring to the person `M. Y. Name'. + +If you do not want the Maintenance section of LPPL to apply to your +Work, change `maintained' above into `author-maintained'. +However, we recommend that you use `maintained', as the Maintenance +section was added in order to ensure that your Work remains useful to +the community even when you can no longer maintain and support it +yourself. + +Derived Works That Are Not Replacements +--------------------------------------- + +Several clauses of the LPPL specify means to provide reliability and +stability for the user community. They therefore concern themselves +with the case that a Derived Work is intended to be used as a +(compatible or incompatible) replacement of the original Work. If +this is not the case (e.g., if a few lines of code are reused for a +completely different task), then clauses 6b and 6d shall not apply. + + +Important Recommendations +------------------------- + + Defining What Constitutes the Work + + The LPPL requires that distributions of the Work contain all the + files of the Work. It is therefore important that you provide a + way for the licensee to determine which files constitute the Work. + This could, for example, be achieved by explicitly listing all the + files of the Work near the copyright notice of each file or by + using a line such as: + + % This work consists of all files listed in manifest.txt. + + in that place. In the absence of an unequivocal list it might be + impossible for the licensee to determine what is considered by you + to comprise the Work and, in such a case, the licensee would be + entitled to make reasonable conjectures as to which files comprise + the Work. + --- context-2007.04.17.orig/debian/context.formats +++ context-2007.04.17/debian/context.formats @@ -0,0 +1,6 @@ +# context format definitions +# all possible languages are: en nl de it fr cz ro uk +# all possible engines are: pdftex aleph xetex +cont-en pdftex cont-usr.tex -8bit *cont-en.ini +mptopdf pdftex - -translate-file=cp227.tcx mptopdf.tex +metafun mpost - -translate-file=cp227.tcx metafun.mp --- context-2007.04.17.orig/debian/context.postinst +++ context-2007.04.17/debian/context.postinst @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +rm -f /var/lib/texmf/web2c/metafun.mem /var/lib/texmf/web2c/metafun.log + +#DEBHELPER# + + --- context-2007.04.17.orig/debian/MANIFEST.nonfree +++ context-2007.04.17/debian/MANIFEST.nonfree @@ -0,0 +1,39 @@ +./doc/fonts/hoekwater/koeieletters/koeieletters.rme +./fonts/afm/hoekwater/koeieletters/koeieletters-contour.afm +./fonts/afm/hoekwater/koeieletters/koeieletters.afm +./fonts/afm/hoekwater/koeieletters/koeielogos-contour.afm +./fonts/afm/hoekwater/koeieletters/koeielogos.afm +./fonts/afm/hoekwater/koeieletters/koeien-ex.afm +./fonts/afm/hoekwater/koeieletters/koeien-mi.afm +./fonts/afm/hoekwater/koeieletters/koeien-sy.afm +./fonts/enc/pdftex/context/koeieletters-ex.enc +./fonts/enc/pdftex/context/koeieletters-mi.enc +./fonts/enc/pdftex/context/koeieletters-sy.enc +./fonts/enc/pdftex/context/koeieletters.enc +./fonts/enc/pdftex/context/koeielogos.enc +./fonts/map/pdftex/context/koeieletters.map +./fonts/tfm/hoekwater/koeieletters/koeielett-contour.tfm +./fonts/tfm/hoekwater/koeieletters/koeielett.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletter-ex.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletter-mi.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletter-sy.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletter-syx.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletters-contour.tfm +./fonts/tfm/hoekwater/koeieletters/koeieletters.tfm +./fonts/tfm/hoekwater/koeieletters/koeielettx.tfm +./fonts/tfm/hoekwater/koeieletters/koeielogos-contour.tfm +./fonts/tfm/hoekwater/koeieletters/koeielogos.tfm +./fonts/tfm/hoekwater/koeieletters/koeien-ex.tfm +./fonts/tfm/hoekwater/koeieletters/koeien-mi.tfm +./fonts/tfm/hoekwater/koeieletters/koeien-sy.tfm +./fonts/type1/hoekwater/koeieletters/koeieletters-contour.pfb +./fonts/type1/hoekwater/koeieletters/koeieletters.pfb +./fonts/type1/hoekwater/koeieletters/koeielogos-contour.pfb +./fonts/type1/hoekwater/koeieletters/koeielogos.pfb +./fonts/vf/hoekwater/koeieletters/koeielett-contour.vf +./fonts/vf/hoekwater/koeieletters/koeielett.vf +./fonts/vf/hoekwater/koeieletters/koeieletter-ex.vf +./fonts/vf/hoekwater/koeieletters/koeieletter-mi.vf +./fonts/vf/hoekwater/koeieletters/koeieletter-sy.vf +./fonts/vf/hoekwater/koeieletters/koeieletter-syx.vf +./fonts/vf/hoekwater/koeieletters/koeielettx.vf --- context-2007.04.17.orig/debian/formats.cnf +++ context-2007.04.17/debian/formats.cnf @@ -0,0 +1,19 @@ +# +# This file defines which ConTeXt formats are build +# +#engine format +# where engine is one of: pdftex aleph xetex +# format is one of: +# en nl de it fr cz ro uk +# mptopdf, metafun +# You can use {} expansion as in the shell +# +# You can use many lines +# +# Example: +#{pdftex,aleph} {de,en,it,mptopdf} +#xetex nl +#aleph {cz,fr} +# +# Only pre-build english context and mptopdf format +pdftex {en,mptopdf,metafun} --- context-2007.04.17.orig/debian/control +++ context-2007.04.17/debian/control @@ -0,0 +1,39 @@ +Source: context +Section: tex +Priority: optional +Maintainer: Debian TeX maintainers +Uploaders: Norbert Preining +Build-Depends: debhelper (>= 5.0.35), dpatch +Build-Depends-Indep: tex-common (>= 1.6) +Standards-Version: 3.7.2 + +Package: context +Section: tex +Architecture: all +Depends: tex-common (>= 1.4), ruby, texlive-base-bin (>= 2007), texlive-base (>= 2007), texlive-metapost (>= 2007), lmodern (>= 1.01) +Suggests: perl-tk, libxml-parser-perl, fontforge, context-nonfree, context-doc-nonfree +Conflicts: texlive-context, tetex-bin (<< 2007) +Replaces: texlive-context +Provides: texlive-context +Description: powerful TeX format + ConTeXt is a document-production system based, like LaTeX, on the TeX + typesetting system. Whereas LaTeX insulates the writer from + typographical details, ConTeXt takes a complementary approach by + providing structured interfaces for handling typography, including + extensive support for colors, backgrounds, hyperlinks, presentations, + figure-text integration, and conditional compilation. It gives the + user extensive control over formatting while making it easy to create + new layouts and styles without learning the TeX macro language. + ConTeXt's unified design averts the package clashes that can happen + with LaTeX. + . + ConTeXt also integrates MetaFun, a superset of MetaPost and a powerful + system for vector graphics. MetaFun can be used as a stand-alone + system to produce figures, but its strength lies in enhancing ConTeXt + documents with accurate graphic elements. + . + ConTeXt allows the users to specify formatting commands in English, + Dutch, German, French, or Italian, and to use different typesetting + engines (PDFTeX, XeTeX, Aleph, and soon LuaTeX) without changing the + user interface. ConTeXt is developed rapidly, often in response to + requests from the friendly user community. --- context-2007.04.17.orig/debian/context.preinst +++ context-2007.04.17/debian/context.preinst @@ -0,0 +1,78 @@ +#!/bin/sh +set -e + +case "$1" in + install|upgrade) + if [ -L /var/lib/texmf/web2c/pdftex ] ; then + linkdest=$(readlink -n /var/lib/texmf/web2c/pdftex) + case "$linkdest" in + pdfetex|/var/lib/texmf/web2c/pdfetex) + rm /var/lib/texmf/web2c/pdftex + mv /var/lib/texmf/web2c/pdfetex /var/lib/texmf/web2c/pdftex + ;; + esac + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument '$1'" >&2 + exit 1 + ;; +esac + + + +dpkg_md5sum() +{ + file=$1 + md5sum=$(grep "$file[[:space:]]" /var/lib/dpkg/status | cut -f 3 -d ' ') + if [ -z "$md5sum" ]; then + echo "$file: md5sum not known. Exiting" >&2 + exit 1 + fi + echo $md5sum +} + +# try to take over context format definitions: +# first we check for texlive-context stuff, then for intermediate +# context packages with ctxfmtutil format config lines. +# +# preinst part: remove everything which has the right md5sums +old_cfg=/etc/texmf/fmt.d/10texlive-context.cnf +new_cfg=/etc/texmf/fmt.d/20context.cnf +if [ -f $old_cfg ]; then + mdorig=$(dpkg_md5sum $old_cfg) + if [ $(md5sum "$old_cfg" | cut -f 1 -d ' ') = "$mdorig" ] ; then + rm -f $old_cfg + else + cp $old_cfg $new_cfg + sed -i -e s/10texlive-context.cnf/20context.cnf/ $new_cfg + sed -i -e s/pdfetex/pdftex/g $new_cfg + fi +fi +old_cfg=/etc/texmf/context/config/formats.cnf +if [ -f $old_cfg ]; then + mdorig=$(dpkg_md5sum $old_cfg) + if [ $(md5sum "$old_cfg" | cut -f 1 -d ' ') = "$mdorig" ] ; then + rm -f $old_cfg + else + echo " +Warning: you appear to have modified $old_cfg. +The definition of context formats has changed and is now located in + $new_cfg. +Please transfer your changes to this file." + fi +fi + + + +#DEBHELPER# + +# common.functions.preinst end +# Local Variables: +# mode: shell-script +# End: +# vim:set expandtab: # --- context-2007.04.17.orig/debian/make-orig-tar +++ context-2007.04.17/debian/make-orig-tar @@ -0,0 +1,110 @@ +#!/bin/bash +# +# generate Debians orig.tar.gz for context package +# Norbert Preining + +set -e + +WGETQUIET="-q" +UNZIPQUIET="-qq" + +if [ "$1" = "-v" ] ; then + WGETQUIET="" + UNZIPQUIET="" + shift +fi + +getnet=1 +srcdir="." +if [ "$1" = "-p" ] ; then + shift + srcdir="$1" + getnet=0 +fi + +toplevel=$(pwd) +dh_testdir + +TMPDIR=$(mktemp -d) +cd $TMPDIR + +echo -n "Checking version ... " +# wget $WGETQUIET -O foo.html http://wiki.contextgarden.net/Release_Notes +# version=$(egrep 'title="Context [0-9]{4}\.[0-9]{2}\.[0-9]{2}">' foo.html | sed -e 's/^.*Context \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)">.*$/\1.\2.\3/') + +wget $WGETQUIET -O foo.html http://www.pragma-ade.com/download-1.htm +version=$(w3m -dump foo.html | grep cont-tmf.zip | sed -e 's/^.*distribution[ \t]*\([0-9]*\)-\([0-9]*\)-\([0-9]*\) .*$/\1.\2.\3/') +case "$version" in + ????.??.??) echo "$version" ;; + *) echo "Can't get version, exiting!"; exit 1 ;; +esac + +if [ $getnet = 1 ] ; then + echo -n "Getting cont-tmf.zip ..." + wget $WGETQUIET http://www.pragma-ade.com/context/current/cont-tmf.zip + echo "done" + echo -n "Getting cont-fnt.zip ..." + wget $WGETQUIET http://www.pragma-ade.com/context/current/cont-fnt.zip + echo "done" + echo -n "Getting cont-img.zip ..." + wget $WGETQUIET http://www.pragma-ade.com/context/current/cont-img.zip + echo "done" + echo -n "Getting cont-ext.zip ..." + wget $WGETQUIET http://www.pragma-ade.com/context/current/cont-ext.zip + echo "done" +else + for i in cont-tmf.zip cont-fnt.zip cont-img.zip cont-ext.zip ; do + if ! [ -r "$srcdir/$i" ] ; then + echo "File not found: $srcdir/$i!" + echo "Exiting!" + exit 1 + else + echo "Using $srcdir/$i" + fi + done +fi + +mkdir context-$version +mkdir context-nonfree-$version +cnf="$TMPDIR/context-nonfree-$version" + +cd context-$version +for i in cont-tmf.zip cont-fnt.zip cont-img.zip cont-ext.zip ; do + echo -n "Unzipping $i ..." + if [ $getnet = 1 ] ; then + unzip $UNZIPQUIET ../$i + else + unzip $UNZIPQUIET "$srcdir/$i" + fi + echo "done" +done + +echo -n "Moving non-free files to context-nonfree-$version ..." +for i in $(cat "$toplevel/debian/MANIFEST.nonfree") ; do + dn=$(dirname $i); bn=$(basename $i) + mkdir -p "$cnf/$dn" + mv $i "$cnf/$i" +done +echo "done" +echo -n "Removing non-free documentation files ..." +for i in $(cat "$toplevel/debian/MANIFEST.doc-nonfree") ; do + rm -f $i +done +echo "done" + +echo -n "Removing empty directories ..." +find . -type d -empty | xargs rmdir || true +echo "done" + +cd .. +echo -n "Building .orig.tar.gz ..." +tar -czf context_$version.orig.tar.gz context-$version +tar -czf context-nonfree_$version.orig.tar.gz context-nonfree-$version +echo "done" + +echo "Moving the .orig.tar.gz to $toplevel!!! Do what you need with them!" +mv context_$version.orig.tar.gz context-nonfree_$version.orig.tar.gz $toplevel + +cd $toplevel +rm -rf $TMPDIR +