diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/text1/models/mergetxt.texmodel |
Initial commit
Diffstat (limited to 'macros/text1/models/mergetxt.texmodel')
-rw-r--r-- | macros/text1/models/mergetxt.texmodel | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/macros/text1/models/mergetxt.texmodel b/macros/text1/models/mergetxt.texmodel new file mode 100644 index 0000000000..f2a6f50724 --- /dev/null +++ b/macros/text1/models/mergetxt.texmodel @@ -0,0 +1,96 @@ +% MERGE LETTER MODEL, merges address list with letter +\input mergetxt.texinput % READ TEXT1 merge file format instructions +% +% Select special fonts and setting markup used +% in the merge process here: +% +\selectfontset{cm18}{titlefont}{default} % special letter heading font +\titlepageformat{\titleleadskip{0in}} % no initial skip for letters +% +% Run TEXT1 against a file on your disk that includes +% this model. A set of five sample letters will be printed. The +% sample letter describes the mail merge setup. Once you have +% run the model and read the letter, make the necessary +% modifications to your file. Set the address field names of +% your address file in the "\fieldnames{name, name, ...}" +% markup with the data field names of your data base file. +% Create the "shell letter," your letter, which includes the +% address field names of your data file, preceded by a "\", +% i.e., \namea, \nameb, etc. You need use only those data +% fields necessary in the document and address label, but all +% fields in your data base file must be given in the field +% names markup. Specify the name of your letter file +% "shell letter" with the "\documentfilename{fn.ft}" markup; +% specify the address data file with the "\addressfile{...}" +% markup; and then PRINT the file containing your letter merge +% model to merge the address file with the shell letter and +% print the label sheet. +% +% NOTE: If you create an address file by hand remove the percent sign +% before the datacheck MARKUP. The number of the letter from the +% beginning of the merge file data base and the first and last +% data fields will be listed on the screen and in the log file +% when data check is active. This will aid you in finding any +% errors in your data file. +% +%\datacheck % SET DATACHECK by removing the "%" symbol +% +% Give all data field names in sequence of occurrence +% (address list names) +% +% Format: \fieldnames{name1, name2, name3, ..., namelast} + +\fieldnames{title, firstname, lastname, company, address, city, + state, zipcode, phone, amount} + +% Give file name for document text (letter file that includes +% the field names for the replaceable text in the document) +% +% Format: \documentfilename{filename.filetype} + +\documentfilename{mergelet.texmodel} + +% WARNING! +% If you want to modify the address label format, then the +% \addresslabelformat markup MUST come prior to the +% \datafilename markup. +% +% Format: \addresslabelformat{all fields and markup to create label} + +\addresslabelformat{\noindent\title\ \firstname\ \lastname\lbr + \company\lbr + \address\lbr + \city, \state\quad\zipcode} + +% Now specify where the address data file is located with +% the \datafilename markup. +% +% Format: \datafilename{filename.filetype} + +\datafilename{mergelst.texmodel} + +% PRINTING A MAILING LABEL SHEET +% +% You may use the "\maillabelformat{}" markup to change +% the default label format markup. The default label format +% prints three inch-high labels across the page which can be +% copied onto a label sheet with an appropriate copy machine. +% +% WARNING! +% The \maillabelformat{} markup must be placed BEFORE the +% \printlabels markup to change the system defaults. +% +% Select the font setto be used in printing the labels. + +\tenpt % prints labels with computer modern ten point + +\printlabels % print address label sheet for Xerox label sheet + +% Labels will be printed beginning on page 99. +% +% WARNING! +% If you have an empty data field occurs in the data being +% processed within the \addresslabelformat, the field will +% be printed as a blank space or as a blank line if the +% field is by itself on the line. + |