1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
  
     | 
    
      %%
%% @ is a letter
%%
\catcode`\@=11
%%
%% Grab the initex file list
%%
%% If this file is called via
%%     latex "\input{latexbug}" or some
%% similar command sequence rather than
%%     latex latexbug
%% then the debugging info in \reserved@a will already have been lost.
%% This might not matter, but if it does we may ask the user to resubmit
%% the report.
\ifx\reserved@b\@undefined
  \ifx\reserved@a\@gobble
    \def\@inputfiles{NONE}
  \else
    \let\@inputfiles\reserved@a
  \fi
\else
  \def\@inputfiles{LOST}
\fi
%%
%% Output stream to produce the bug report template.
%%
\newwrite\msg
\immediate\openout\msg=\jobname.msg
%%
%% Check that LaTeX2e is being used.
%%
\ifx\undefined\newcommand
 \newlinechar`\^^J%
 \immediate\write17{^^J%
    You must use LaTeX2e to generate the bug report!^^J^^J%
    Sie muessen LaTeX2e verwenden, um die Fehlermeldung zu erzeugen!}%
 \let\relax\end
\else
 \def\@tempa{LaTeX2e}\ifx\@tempa\fmtname\else
  \immediate\write17{^^J%
   You must use LaTeX2e to generate the bug report!^^J^^J%
   Aeltere Versionen von LaTeX werden nicht unterstuetzt.^^J%
   Sie muessen LaTeX2e verwenden, um de Fehlermeldung zu erzeugen!}%
  \let\relax\@@end
\fi\fi
%%
%% \wmsg writes to the terminal, and the .msg file
%% \wmsg* just writes to the .msg file
%% \typeout just writes to the terminal
%%
\def\wmsg{\bgroup\@ifstar{\interactivefalse\@wmsg}\@wmsg}
\relax
\endlinechar=-1
\def\@wmsg#1{%
  \ifinteractive\immediate\write17{#1}\fi
  \immediate\write\msg{#1}%
  \egroup}
%%
%% if \interactivefalse just make a blank template.
%%
\newif\ifinteractive
\interactivetrue
%%
%% Prompt for an answer from the user, if the answer is not
%% provided by the cfg file.
%%
\def\readifnotknown#1{%
 \@ifundefined{#1}%
    {{\message{#1> }%
     \catcode`\^^I=12 \let\do\@makeother\dospecials
     \global\read\m@ne t\expandafter o\csname#1\endcsname}}%
    {\message{\csname#1\endcsname}}}
%%
%% Pause so messages do not scroll off screen.
%%
\def\pause{%
  \ifinteractive
   \message{Mit der <Return>-Taste geht es weiter. }%
   \read\m@ne to \@tempa
  \fi}
%%
%% Try to get Version
%%
\def\GetVersion#1{
 \def\ProvidesFile##1{\@ifnextchar [{\@P@F}{\@P@F[1996/10/31 ]}}
 \def\@P@F[##1 ##2]{\xdef\komaversion{##1}\csname endinput\endcsname}
 \InputIfFileExists{#1}
  {}
  {\def\noscrclass{%
   ! Die Datei `#1' konnte nicht gefunden werden!^^J%
   ! Zur Bestimmung der aktuellen Version ist es unbedingt^^J%
   ! erforderlich, dass diese Datei sich im selben Verzeichnis^^J%
   ! wie `komabug.tex' befindet!}
   \errmessage{\noscrclass}
   \errhelp{Beenden Sie TeX mit `x' und starten Sie komabug neu}}}
%%
%% Opening Banner.
%%
\typeout{^^J%
============================================================^^J%
^^J%
KOMA-Script Fehlermeldungsgenerator^^J%
===================================^^J%
Die Bearbeitung dieser Datei mit LaTeX erzeugt das Formular \jobname.msg,^^J
um Fehlermeldungen zum KOMA-Script-Paket zu melden.^^J^^J%
* Schreiben Sie Ihre Meldung nach Moeglichkeit in Deutsch.^^J \space
  Notfalls ist auch Englisch moeglich.^^J%
* Bitte fassen Sie sich kurz.^^J%
* Bitte halten Sie keine Information zurueck, die moeglicherweise^^J \space
  wichtig sein koennte.^^J}
\InputIfFileExists{komabug.cfg}
                  {\typeout{** komabug.cfg wird verwendet **}}
                  {}
\count@=0
\typeout{%
Verschiedene Bereiche werden von diesem Generator unterstuetzt, die^^J%
sich auf verschiedene Dateien im KOMA-Script-Paket beziehen:^^J^^J
0) komascr:\space\@spaces
         Auspacken und Installieren von KOMA-Script.^^J
1) scrguide:\@spaces
         Die KOMA-Script-Anleitung.^^J
2) scrclass:\@spaces
         Die KOMA-Script-Standard-Klassen.^^J
3) scrlettr:\@spaces
         Die KOMA-Script-Brief-Klasse und die zugehoerigen Pakete.^^J
4) typearea:\@spaces
         Automatische und individuelle Satzspiegelberechnung.^^J
5) scrpage:\space\@spaces
         Individuelle Kopf- und Fusszeilendefinition.^^J
6) scrtime:\space\@spaces
         Kleine Zugaben fuer Datums- und Zeitinformationen.^^J%
}
\message{Bitte waehlen Sie einen der Bereiche von 0--6 aus:  }
\read\m@ne to \answer
\count@=\answer\relax
\ifcase\count@
 \def\category{komascr}\GetVersion{scrclass.dtx}
 \let\categoryversion\komaversion
\or
 \def\category{scrguide}\GetVersion{scrguide.tex}
 \let\categoryversion\komaversion\GetVersion{scrclass.dtx}
\or
 \def\category{scrclass}\GetVersion{scrclass.dtx}
 \let\categoryversion\komaversion
\or
 \def\category{scrlettr}\GetVersion{scrlettr.dtx}
 \let\categoryversion\komaversion\GetVersion{scrclass.dtx}
\or
 \def\category{typearea}\GetVersion{scrclass.dtx}
 \let\categoryversion\komaversion
\or
 \def\category{scrpage}\GetVersion{scrpage.dtx}
 \let\categoryversion\komaversion\GetVersion{scrclass.dtx}
\or
 \def\category{scrtime}\GetVersion{scrtime.dtx}
 \let\categoryversion\komaversion\GetVersion{scrclass.dtx}
\else
 \errhelp{Beenden Sie TeX mit `x' und starten Sie komabug neu}
 \def\badcategory{Nur die Bereiche 0,...,6 werden derzeit unterstuetzt}
 \errmessage{\badcategory}
\fi
\typeout{^^J%
============================================================^^J%
^^J%
Bitte eine einzeilige (< 50 Zeichen) Beschreibung des Problems.%
^^J^^J%
Wenn Sie fuer die Meldung eMail verwenden, setzen Sie diese Beschreibung^^J
bitte auch als Betreff (`Subject') der eMail ein:%
^^J \@spaces\@spaces\space
                 |<------------------------------------------------>|}
\loop
\let\synopsis\relax
\readifnotknown{synopsis}
\ifx\synopsis\@empty
\repeat
\typeout{%
^^J%
Dieser Generator kann auf zwei Arten verwendet werden.^^J%
Im interaktiven Betrieb, werden Ihnen Fragen zur direkten Beantwortung^^J%
gestellt. Ansonsten wird ein leeres Formular erzeugt, das Sie dann mit^^J%
einem Editor ausfuellen muessen.^^J%
}
\typeout{Interaktive Sitzung (j/n)? }
\readifnotknown{interactive}
\ifx\interactive\@empty
   \def\interactive{n}
\fi
%%
%% Allow anything begining with `j' or `J' for yes.
%%
\edef\interactive{\uccode`\expandafter\@car\interactive\@nil}
\ifnum \interactive=`J \else\interactivefalse\fi
%%
%% Header in the msg file.
%%
\wmsg*{^^J%
 KOMA-Fehlermeldung.^^J%
\ifnum \interactive=`Y Interaktiv \else Formular \fi
 erzeugt mit komabug.tex am
 \space\number\year-\two@digits\month-\two@digits\day^^J%
^^J%
 Meldungen bis 32 KByte koennen per eMail im MausNet an^^J%
 Markus Kohm @ KA2 verschickt werden.^^J%
 Die Meldung kann auch per eMail an unlf@rz.uni-karlsruhe.de^^J%
 verschickt werden.^^J%
 Bitte verwenden Sie dann als Betreff:^^J%
 \space KOMA-BUG:\space\synopsis^^J%
 ============================================================^^J}
%%
%% Category of bug, obtained earlier but put out now, after the header.
%%
\wmsg{>Bereich: \category}
\wmsg{>Version: \categoryversion}
%%
%% synopsis of bug, obtained earlier but put out now, after the header.
%%
\wmsg{>Betreff: \synopsis}
\begingroup
 \global\let\format\@empty
 \gdef\hyphenation{standard}
 \def\immediate#1#{\xdef\hyphenation}
 \def\typeout#1{\xdef\format{\format#1}}
 \the\everyjob
\endgroup
\wmsg{>Format: \format}
\wmsg{>KOMA-Script: \komaversion}
\ifinteractive
%%
%% if interactive, \wread reads a line (verbatim) and write it to the
%% .msg file, until a blank line is entered.
%%
  \def\wread{{\catcode`\^^I=12
  \let\do\@makeother\dospecials
  \let\lastanswer\answer
  \message{=> }\read\m@ne to \answer
  \ifx\lastanswer\@empty
    \let\lastanswer\answer
  \fi
  \ifx\lastanswer\@empty
  \else
    \immediate\write\msg{\answer}
    \expandafter\wread
  \fi}}
\else
%%
%% If non-interactive, \wread just writes a blank line to the .msg file,
%% and \wmsg does not write to the terminal.
%%
  \def\wread{\wmsg{}}
\fi
%%
%% \copytomsg copies the contents of a file into the .msg file.
%% (at least it does it as well as TeX can, so there may be
%% transcription problems with 8-bit characters).
%%
%% It does a line count, and complains if the test file is
%% too large.
\chardef\inputfile=15
\newcount\linecount
\def\copytomsg#1{{%
   \def\do##1{\catcode`##1=11}%
   \dospecials
   \global\linecount\z@
   \openin\inputfile#1\relax
   \def\thefile{#1}%
   \@copytomsg
   \closein\inputfile}}
\def\@copytomsg{%
   \ifeof\inputfile
      \typeout{*** \thefile\space Zeilen = \the\linecount}
   \else
      \global\advance\linecount\@ne
      \read\inputfile to \inputline
      \ifx\inputline\@empty
         \wmsg*{}
      \else
         \wmsg*{\inputline}
      \fi
      \expandafter\@copytomsg
   \fi}
%%
%% Test the age of the current format.
%%
\def\getage#1/#2/#3\@nil{%
  \count@\year
  \advance\count@-#1\relax
  \multiply\count@ by 12\relax
  \advance\count@\month
  \advance\count@-#2\relax}
%
\expandafter\getage\fmtversion\@nil
%%
%% \count@ should now be the age of the format in months.
%%
\ifnum\count@>12
\def\oldformat{^^J%
   ! Ihre LaTeX-Installation ist ueber ein Jahr alt.^^J%
   ! Bitte denken Sie ueber ein Update nach, ehe Sie diese Meldung^^J%
   ! abschicken.^^J%
   ! Vergleichen Sie wenigstens das Datum des Paketes mit dem Datum^^J%
   ! der LaTeX-Version. LaTeX sollte nicht mehr als 6 Monate aelter^^J%
   ! als KOMA-Script sein. Ansonsten koennte der Fehler in einer^^J%
   ! Unverstraeglichkeit zwischen Format- und Paketversion liegen.}
%%
%% Put the message in a macro to improve the look of the error mesage.
%%
%
\errhelp{Wenn Sie dennoch fortfahren wollen, druecken Sie einfach <Return>.}
\errmessage{\oldformat}
\fi
%
\expandafter\getage\komaversion\@nil
\ifnum\count@>12
\def\oldversion{^^J%
   ! Ihre KOMA-Script-Version ist ueber ein Jahr alt.^^J%
   ! Bitte denken Sie ueber ein Update nach, ehe Sie diese Meldung^^J%
   ! abschicken.^^J%
   ! Vergleichen Sie wenigstens das Datum des Paketes mit dem Datum^^J%
   ! der LaTeX-Version. LaTeX sollte nicht mehr als 6 Monate aelter^^J%
   ! oder juenger als KOMA-Script sein. Ansonsten koennte der Fehler^^J%
   ! in einer Unverstraeglichkeit zwischen Format- und Paketversion^^J%
   ! liegen.}
\errhelp{Wenn Sie dennoch fortfahren wollen, druecken Sie einfach <Return>.}
\errmessage{\oldversion}
\fi
%%
%% Now use \wmsg and \wread for each of the multi-line fields
%% in the form. Currently one-line fields use \read directly.
%%
\ifinteractive
  \typeout{^^JIhr Name:}
  \readifnotknown{name}
\else
  \ifx\name\undefined
    \def\name{ < GEBEN SIE IHREN NAMEN EIN > }
  \fi
\fi
\ifinteractive
  \typeout{^^JIhre Addresse (eMail bevorzugt):}
  \readifnotknown{address}
\else
  \ifx\address\undefined
    \def\address{ < GEBEN SIE IHRE (EMAIL-)ADRESSE EIN > }
  \fi
\fi
\ifinteractive
  \typeout{^^JDas verwendete Computersystem (z. B. Atari, Linux, Mac):}
  \readifnotknown{computersystem}
\else
  \ifx\computersystem\undefined
    \def\computersystem{ < GEBEN SIE IHR VERWENDETES COMPUTERSYSTEM EIN > }
  \fi
\fi
\wmsg*{>Adresse: \name\space<\address>}
%%
%% >Organisation: is really a GNATS multiline filed
%% but we treat it as a one-line field.
%%
\wmsg*{>Organisation: \ifx\organisation\undefined
                        \ifx\organization\undefined\else
                           \organization
                        \fi
                       \else
                         \organisation
                       \fi}
%%
%% Test which format is being used. These fields are completed
%% automatically even if the blank template is being produced.
%%
\wmsg*{>Voraussetzungen:}
\wmsg*{ \string\@TeXversion: \meaning\@TeXversion
        \ifx\@TeXversion\@@undefined
         \space (Standardeinstellung fuer TeX3.141 und spaeter)\fi}
\wmsg*{ \string\@currdir: \meaning\@currdir}
\wmsg*{ \string\input@path: \meaning\input@path
        \ifx\input@path\@@undefined
         \space (Standardeinstellung)\fi}
\wmsg*{ System: \computersystem}
\wmsg*{>Beschreibung:}
\ifinteractive
  \typeout{%
    Beschreibung des Problems:^^J^^J%
    \@spaces Die Beantwortung dieser Frage kann mehrere Zeilen^^J%
    \@spaces einnehmen (jede wird durch die Eingabeaufforderung^^J%
    \@spaces => eingeleitet).^^J%
    \@spaces Durch zwei aufeinanderfolgende Leerzeilen wird die^^J%
    \@spaces Antwort beenden.}
\else
\wmsg{ < GEBEN SIE HIER IHRE PROBLEMBESCHREIBUNG EIN >}
\fi
\wread
%%
%% insertion of the test file
%%
\ifinteractive
   \typeout{^^J%
 Name einer KURZEN, SELBSTERKLAERENDEN Datei, bei der das Problem^^J%
 auftritt (die Datei sollte wirklich so kurz wie moeglich sein,^^J%
 nicht mehr als 60 Zeilen):^^J^^J%
 Damit LaTeX diese Datei einlesen kann, geben Sie bitte den kompletten^^J%
 Namen einschliesslich des Verzeichnisses an, falls die Datei nicht im^^J%
 aktuellen Verzeichnis zu finden ist.^^J^^J%
 Falls Sie keinen Fehler in einer der Klassen oder Pakete melden und^^J%
 daher keine Testdatei existiert, druecken Sie einfach <Return>}
   \message{filename> }\read\m@ne to \filename
\else
   \def\filename{}
\fi
%%
%% Try to find the .tex file and .log file
%%
\ifx\filename\@empty
 \ifinteractive
  \typeout{^^J^^JKeine Testdatei.^^J^^J%
   Drei Arten von Meldungen werden unterstuetzt:^^J^^J%
    0) SW-Fehler:^^J\@spaces
       Software-Fehler, unbedingt eine Testdatei beilegen!^^J
    1) DOC-Fehler:^^J\@spaces
       Fehler in oder unverstaendliche Anleitung.^^J
    2) Aenderungswunsch:^^J\@spaces
       Kein Fehler sondern eine Frage nach Aenderund oder Hilfe.^^J}
  \message{Bitte waehlen Sie eine Art von 0--2:  }
  \read\m@ne to \answer
  \ifx\answer\@empty
    \def\answer{-1}
  \fi
  \count@=\answer\relax
 \else
  \count@=\z@
 \fi
 \ifcase\count@
  \ifinteractive\wmsg{>Unterbereich: SW-Fehler}\fi
  \typeout{^^J! Bitte ergaenzen Sie Beispiel- und LOG-Datei in der Meldung!}
  \pause
  \wmsg*{%
   Beispieldatei, die das Problem verdeutlicht:^^J%
   ============================================^^J%
   \space< HIER TESTDATEI EINFUEGEN >^^J%
   ^^J%
   LOG-Datei vom LaTeX-Lauf der Beispieldatei:^^J%
   ===========================================^^J%
   \space< HIER LOG ZUR TESTDATEI EINFUEGEN >}
 \or
  \wmsg{>Unterbereich: DOC-Fehler}
 \or
  \wmsg{>Unterbereich: Aenderungswunsch}
 \else
   \errhelp{Beenden Sie TeX mit `x' und starten Sie komabug neu}
   \def\badcategory{Nur die Bereiche 0, 1, 2 werden derzeit unterstuetzt}
   \errmessage{\badcategory}
 \fi
\else
\filename@parse\filename
\IfFileExists{\filename}{\edef\samplefile{\filename}}{}
\IfFileExists{\filename@area\filename@base.log}
  {\edef\logfile{\filename@area\filename@base.log}}
  {\IfFileExists{\filename@area\filename@base.lis}
    {\edef\logfile{\filename@area\filename@base.lis}}
    {}}
%%
%% The example file goes here:
%%
\wmsg*{^^J%
Beispieldatei, die das Problem verdeutlicht:^^J%
============================================}
\ifx\samplefile\undefinedcommand
   \typeout{^^J%
      Beispieldatei \filename\space nicht gefunden.^^J%
      Bitte ergaenzen Sie das Beispiel in \jobname.msg.}
   \wmsg*{ < HIER TESTDATEI EINFUEGEN >}
   \pause
\else
   \copytomsg{\samplefile}
   \ifnum\linecount>60
    \typeout{%
^^J%
!!! Ihre Testdatei ist \the\linecount\space Zeilen lang.^^J%
!!! So grosse Testdateien erschweren die Ursachenfindun.:^^J%
!!! ^^J%
!!! Bitte verkleinern Sie Ihre Testdatei, soweit das ueberhaupt^^J%
!!! moeglich ist, so dass das Problem gerade noch auftritt.^^J}
   \pause
   \fi
\fi
%%
%% The log file goes here:
%%
\wmsg*{^^J%
LOG-Datei vom LaTeX-Lauf der Beispieldatei:^^J%
===========================================}
\ifx\logfile\undefinedcommand
   \typeout{^^J%
      LOG-Datei \filename@area\filename@base.log nicht gefunden.^^J%
      Bitte ergaenzen Sie die LOG-Datei in \jobname.msg.}
   \wmsg*{ < HIER LOG ZUR TESTDATEI EINFUEGEN >}
   \pause
\else
   \copytomsg{\logfile}
\fi
\fi
%%
%% Closing Banner.
%%
\typeout{^^J%
============================================================}
\ifinteractive
 \typeout{^^J%
   Weiteren Aenderungen koennen sie direkt in der Datei^^J%
   `\jobname.msg' mit Hilfe eines Editors vornehmen.}
\else
 \typeout{^^J%
   Das Formular fuer die Erstellung der Meldung wurde in die^^J%
   Datei `\jobname.msg' geschrieben, die Sie bitte mit Hilfe^^J%
   eines Editors ergaenzen, bevor Sie sie abschicken.}
\fi
\let\ifinteractivetrue\iftrue
\typeout{^^J%
  Wenn Sie ueber eMail verfuegen, so senden Sie `\jobname.msg'^^J%
  bitte an eine der folgenden Adressen:^^J%
  MausNet: \space Markus Kohm @ KA2 (maximal 48 KByte/Tag!)^^J%
  InterNet:\space unlf@rz.uni-karlsruhe.de^^J%
  Verwenden Sie dabei bitte als Betreff (Subject):^^J%
  \@spaces `KOMA-BUG:\space\synopsis'^^J%
^^J%
  Danke, dass Sie sich die Zeit genommen haben.}
\wmsg*{^^J%
============================================================^^J
   Ende der KOMA-Fehlermeldung.^^J%
============================================================}
%%
%% Close the .msg output stream.
%%
\immediate\closeout\msg
%%
%% This is the TeX primitive \end command.
%%
\@@end
 
     |