Hello, sorry about your name in this patch, my emacs was confused by the accented character. I have added the following patch, would you consider this ? Basically, I want this to happen: @@ -86,6 +86,13 @@ NEWFILES=newfile DUPLEX=false ADVI=0 + +for CONFIGFILES in /etc/whizzytex/whizzytex.conf ~/.whizzytexrc; do + if [ -f "$CONFIGFILES" ]; then + . "$CONFIGFILES" + fi +done + while true do case $1 in diff -u whizzytex-1.1/doc/manual.tex whizzytex-1.1/doc/manual.tex --- whizzytex-1.1/doc/manual.tex +++ whizzytex-1.1/doc/manual.tex @@ -194,13 +194,13 @@ \begin{tt} INITEX = iniptex\\ LATEX = platex\\ -LATEXFMT = platex +FORMAT = platex\\ \end{tt} \end{quote} This would be produced directly with the configuration line: \begin{quote} \begin{tt} -./configure -initex iniptex -latex platex -latexfmt latex +./configure -initex iniptex -latex platex -format latex \end{tt} \end{quote} If you wish to run {\whizzy} with several configurations, you must still @@ -214,6 +214,17 @@ with other previewers from Emacs, via Emacs configuration (see Section \ref {configuration.viewers}). +It is possible to customize the set up on a per-user basis, where you +can create a \lst"~/.whizzytexrc" containing +\begin{quote} +\begin{tt} +INITEX = iniptex\\ +LATEX = platex\\ +FORMAT = platex\\ +BIBTEX = jbibtex +\end{tt} +\end{quote} + \subsection {Manual installation} Since {\whizzy} only need three files to run, installation can also be done @@ -575,7 +586,8 @@ of file configuration (see Section~\ref {configuration.trace}). -\section {\label{manual}Manual} +\section {Manual} +\label{manual} This section describes how to use and parameterize {\whizzy}. So as to avoid redundancy, {\bf most of the documentation is only available online in @@ -634,7 +646,7 @@ \\ This only makes sense for a file loaded by a {\em master} file. \arg{master} is the relative or full name of the -master file. Optional surrounding quotes (character \lst$"$) are +master file. Optional surrounding quotes (character \lst:":) are %" fool emacs! stripped off, so that \lst$"foo.tex"$ and \lst"foo.tex" are equivalent. \item[whizzy] diff -u whizzytex-1.1/src/whizzytex whizzytex-1.1/src/whizzytex --- whizzytex-1.1/src/whizzytex +++ whizzytex-1.1/src/whizzytex @@ -1,7 +1,7 @@ #!/bin/bash # # whizzytex --- WhizzyTeX, a WYSIWIG environment for TeX -# Copyright (C) 2001, 2002 Didier R˜¡»my +# Copyright (C) 2001, 2002 Didier Remy # # Author : Didier Remy # Version : 1.1 @@ -86,6 +86,13 @@ NEWFILES=newfile DUPLEX=false ADVI=0 + +for CONFIGFILES in /etc/whizzytex/whizzytex.conf ~/.whizzytexrc; do + if [ -f "$CONFIGFILES" ]; then + . "$CONFIGFILES" + fi +done + while true do case $1 in @@ -309,14 +316,7 @@ # BEGIN Worddiff wordify () { - tr '\n' ' -' | - sed -e 's/[ -][ -]*/ -/g' | \ - tr ' -' '\n' + awk '{for (i=1; i<=NF; i++) {print $i}} ' } worddiff () { --- whizzytex-1.1.orig/debian/whizzytexrc +++ whizzytex-1.1/debian/whizzytexrc @@ -0,0 +1,6 @@ +VIEWCOMMAND=advi +INITEX=initex +LATEX=latex +FORMAT=latex +FMT=fmt +BIBTEX=bibtex