Tomas Janousek <[EMAIL PROTECTED]> wrote: > Package: tetex-base > Version: 3.0-22 > Severity: important > Tags: patch > > The pdfcslatex and pdfcsplain formats are made of cslatex.ini file, which > simply disables pdf output, resulting in forced dvi output. I'm attaching a > patch that fixes that for me.
Thanks for reporting, and for preparing a patch. However, there's already a new upstream release, and I'd like to check whether the fix they made also works (I guess it will, there's only a slight chance that it depends on other changes made upstream). Could you please help us and test this? I attach two new versions of csplain.ini and cslatex.ini. They should replace the old ones, and the original 01tetex.cnf should be restored. After that, please try to rebuild the formats fmtutil-sys --byfmt csplain fmtutil-sys --byfmt cslatex fmtutil-sys --byfmt pdfcsplain fmtutil-sys --byfmt pdfcslatex and to use them. Actually using them for your documents is the main point, since I only have the test files in /usr/share/doc/tetex-doc/cstex/test8z available. Thanks in advance, Frank -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
\input csfonts % re-defines primitive \font \input plain % format Plain \restorefont % original meaning of primitive \font \input il2code % extra codes for czech / slovak letters in ISO-8859-2 encoding \input hyphen.lan % czech / slovak hyphenation pattern (may be others too) \input plaina4 % \hsize and \vsize for A4 \everyjob=\expandafter{\the\everyjob \message{The format: csplain <Sep. 2005>.} \message{The cs-fonts are preloaded and A4 size implicitly defined.}} \ifx\enc\undefined \else \input csenc-\enc.tex \fi % re-encoding using encTeX \ifx\xprncode\undefined \else %% The encTeX is detected \count255=128 % All codes > 128 are printable: \loop \xprncode\count255=1 \advance\count255 by 1 \ifnum \count255<256 \repeat \fi \ifx\pdfoutput\undefined \else % added in Feb. 2005 \def\tmpa{\pdfcsplain} \expandafter\def\expandafter\tmpb\expandafter{\csname\jobname\endcsname} \ifx\tmpa\tmpb %% PDFTeX with PDF output \message {jobname=pdfcsplain, PDF output initialised.} \openin0=pdftexconfig.tex \ifeof0 \message{WARNING: pdftexconfig.tex does not exist. I set \string\pdfoutput=1 only.}% \else \closein0 \input pdftexconfig.tex \fi \pdfoutput=1 \else \message {jobname=csplain with pdftex, DVI output initialised.} \pdfoutput=0 \let\oripdfoutput=\pdfoutput \let\pdfoutput=\undefined \fi \let\tmpa=\undefined \let\tmpb=\undefined \fi \dump Information about changes (since <Apr. 1995>) ============================================= ** 1 ** <Aug. 1996> file extcode.tex renamed to il2code.tex (suggested by Jan Kasprzak) ** 2 ** <Sep. 1996> * New metrics of cs-fonts loaded (T\v reba has no kern between T\v r). * File il2code.tex: - \icrqq, \protect: removed - \def\crqq{\protect\irrqq} -> \chardef\crqq=255 \sfcode255=0 - The definition \def\foo{\char<number> } -> \chardef\foo=<number> for following \foos: \clqq, \flqq, \frqq. - New definition of \ogonek (the \ogonek A is improoved). - \defaulthyphenchar=\extrahyphenchar added to \extrahyphens macro. - The \uv definition added. ** 3 ** <Oct. 1998> * The input re-encoding possibility using encTeX primitives added. * Files enc-k.tex, enc-w.tex and enc-p.tex added. * You can use (for example): tex -enc -ini \let\enc=k \input csplain.ini to activate the encTeX reencoding ** 4 ** <Feb. 2000> * The Czech/Slovak patterns are loaded in T1 encoding too: hyphen.lan was modified, \toneczech, \toneslovak, \iltwoczech, \iltwoslovak \chardef's was introduced. The default encoding was keep ISO-8859-2. * You can use (for example): tex -ini \let\Cork=\relax \input csplain.ini to suppress the loading hyphen patterns in T1 encoding. * You can use (for example): %&csplain -translate-file=il2-t1 \input t1code \chyph \font\f=ptmr8t \f Here is czech text processed in T1 encoded font ptmr8t and hyphenated by right pattern table. \end ** 5 ** <Feb. 2005> * The possibility of csplain initialisation by pdfTeX added (see \ifx\pdfoutput\undefined \else ... \fi). * The file pdftexconfig.tex during pdfcsplain initialisation is read (see \ifx\pdfoutput\undefined \else ... \fi). * The file t1code.tex corrected (bug in \uccodes removed). ** 6 ** <Sep. 2005> * Files enc-k.tex, enc-w.tex, enc-p.tex renamed to csenc-*.tex because only characters from Czech and Slovak alphabet are declared here. * Commands \let\xordcode=\undefined etc. are removed, but user is kindly asked to use encTeX primitives with care. The result may be unportable document with another csplain implementations. * File csenc-u.tex for UTF8 input encoding using encTeX is added. You can use (for example): tex -enc -ini \let\enc=u \input csplain.ini if your system (or text editor) is using UTF8 encoding. COPYRIGHT ========= This macro package (csplain.ini, il2code.tex, csfonts.tex, hyphen.lan, plaina4.tex) is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version with the following appendix: You can do any changes in this software for your own usage. However, you cannot distribute the changed software under the same name "csplain". Only the current administrator of CSTeX can do official changes to csplain. This macro package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
%% The cslatex ini file %% use: %% tex -ini cslatex.ini %% or (for example): %% tex -ini \let\enc=w \input cslatex.ini %% see the csplain.doc in csplain.tar/zip for more details \ifx\enc\undefined \else %% Reencoding by encTeX is needed \begingroup \catcode`\{=1 \catcode`\}=2 \catcode`\#=6 \catcode`^=7 \globaldefs=1 \input csenc-\enc.tex % changed in Sep. 2005 \global\let\orieveryjob=\everyjob \gdef\everyjob#1{\let\everyjob=\orieveryjob \let\orieveryjob=\undefined \everyjob=\expandafter{\the\everyjob #1}} \endgroup \fi \ifx\xprncode\undefined \else %% The encTeX is detected \begingroup \catcode`\{=1 \catcode`\}=2 \count255=128 \def\next{\xprncode\count255=1 \advance\count255 by 1 \ifnum \count255>255 \let\next=\relax \fi \next} \next \endgroup % \let\enc=\undefined \let\setinputchr=\undefined % \let\xordcode=\undefined \let\xchrcode=\undefined \let\xprncode=\undefined \fi \ifx\pdfoutput\undefined \else % added in Feb. 2005 \catcode`\{=1 \catcode`\}=2 \def\tmpa{\pdfcslatex} \expandafter\def\expandafter\tmpb\expandafter{\csname\jobname\endcsname} \ifx\tmpa\tmpb %% PDFTeX with PDF output \message {jobname=pdfcslatex, PDF output initialised.} \openin0=pdftexconfig.tex \ifeof0 \message{WARNING: pdftexconfig.tex does not exist. I set \string\pdfoutput=1 only.}% \else \closein0 \input pdftexconfig.tex \fi \pdfoutput=1 \else \message {jobname=cslatex with pdftex, DVI output initialised.} \pdfoutput=0 \let\oripdfoutput=\pdfoutput \let\pdfoutput=\undefined \fi \let\tmpa=\undefined \let\tmpb=\undefined \catcode`\{=12 \fi \input latex.ltx