jonas88
24-01-2007, 16:39
Hallo ich hab mal versucht den serienbrief, des unter http://archiv.tu-chemnitz.de/pub/2000/0047/data/ gibt mit g-brief zu machen, aber habs nicht geschaft. Könnt ihr mir helfen?
Ich hab hier mal die tex-Datei:
\documentclass[12pt,a4paper]{g-brief}
\usepackage[latin1]{inputenc}
\usepackage{ngerman}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{ifthen}
\usepackage{enumitem}
\faltmarken
\fenstermarken
\trennlinien
%\klassisch
%\unserzeichen
\lochermarke
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Daten Zur eigenen Person %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\Name {Max Muster}
\Strasse {Geldwäscherstraße 34}
\Ort {12345 Entenhausen}
\EMail {Max\_Muster@provider.de}
\Bank {Entenhausen GmbH}
\BLZ {10 203 48 48}
\Konto {83 838 38 38}
\signature {Max Muster}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Einlesen der Daten aus der Adress-Datei %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
% 1 --> Vorname
% 2 --> Nachname
% 3 --> Geschlecht
% 4 --> Straße
% 5 --> Stadt
% 6 --> Email
% 7 --> Telefon
% 8 --> Handy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Weitere Informationen %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\Gruss {Mit freundlichen Grüßen}{1cm}
\Betreff {Betreff}
\Datum {\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Beginn des eigentlichen Briefes %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\def\adrentry#1#2#3#4#5#6#7#8{
\Anrede{Sehr \ifthenelse{\equal{#3}{m}}{geehrter Herr}{geehrte Frau} #1 #2}
\Adresse{\ifthenelse{\equal{#3}{m}}{Herr}{Frau} #1 #2 \\#4 \\#5 }
\begin{g-brief}
Hier steht der ganz normale Text
\end{g-brief}
}
\input{Adressen.adr}
\end{document}
und die adr-Datei
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Adressen %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%
% 1 --> Vorname
% 2 --> Nachname
% 3 --> Geschlecht
% 4 --> Straße
% 5 --> Stadt
% 6 --> Email
% 7 --> Telefon
% 8 --> Handy
\adrentry{Donald}{Duck}{m}{Reichenstraße}{12345 Entenhausen}{Donald@ducks.de}{(123)4567899}{0160/1 284 238283}
\adrentry{Dabobert}{Duck}{m}{Geldspeicherweg 1}{54321 Entenhausen}{Dagpbert@ducks.de}{(123)999 999}{}
aber wenn ich das ganze erstelle, dann kommt die Adresse aus dem einen adr-Eintrag und die Anrede aus dem anderen und ich hab keine Ahnung wiese.
danke
Jonas
Ich hab hier mal die tex-Datei:
\documentclass[12pt,a4paper]{g-brief}
\usepackage[latin1]{inputenc}
\usepackage{ngerman}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{ifthen}
\usepackage{enumitem}
\faltmarken
\fenstermarken
\trennlinien
%\klassisch
%\unserzeichen
\lochermarke
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Daten Zur eigenen Person %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\Name {Max Muster}
\Strasse {Geldwäscherstraße 34}
\Ort {12345 Entenhausen}
\EMail {Max\_Muster@provider.de}
\Bank {Entenhausen GmbH}
\BLZ {10 203 48 48}
\Konto {83 838 38 38}
\signature {Max Muster}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Einlesen der Daten aus der Adress-Datei %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
% 1 --> Vorname
% 2 --> Nachname
% 3 --> Geschlecht
% 4 --> Straße
% 5 --> Stadt
% 6 --> Email
% 7 --> Telefon
% 8 --> Handy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Weitere Informationen %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\Gruss {Mit freundlichen Grüßen}{1cm}
\Betreff {Betreff}
\Datum {\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Beginn des eigentlichen Briefes %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\def\adrentry#1#2#3#4#5#6#7#8{
\Anrede{Sehr \ifthenelse{\equal{#3}{m}}{geehrter Herr}{geehrte Frau} #1 #2}
\Adresse{\ifthenelse{\equal{#3}{m}}{Herr}{Frau} #1 #2 \\#4 \\#5 }
\begin{g-brief}
Hier steht der ganz normale Text
\end{g-brief}
}
\input{Adressen.adr}
\end{document}
und die adr-Datei
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%%% Adressen %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%
% 1 --> Vorname
% 2 --> Nachname
% 3 --> Geschlecht
% 4 --> Straße
% 5 --> Stadt
% 6 --> Email
% 7 --> Telefon
% 8 --> Handy
\adrentry{Donald}{Duck}{m}{Reichenstraße}{12345 Entenhausen}{Donald@ducks.de}{(123)4567899}{0160/1 284 238283}
\adrentry{Dabobert}{Duck}{m}{Geldspeicherweg 1}{54321 Entenhausen}{Dagpbert@ducks.de}{(123)999 999}{}
aber wenn ich das ganze erstelle, dann kommt die Adresse aus dem einen adr-Eintrag und die Anrede aus dem anderen und ich hab keine Ahnung wiese.
danke
Jonas