[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-307104-105":53,"doc-detail-307104-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","jiang-z-mail-merge-with-the-use-of-formlettsty","Jiang Z - Mail merge with the use of formlett.sty","","Mail merge workflow using formlett.sty is presented for plain TEX and LaTEX/LaTEX2e. The material explains a parameterized form-letter format where bracketed placeholders are replaced per recipient, supports structured parameter clusters and grouped numbering, and introduces macro-driven defaults. Examples show supplying parameters via commands such as \\moreletter and using \\paras and \\beginletter/\\endletter to generate merged letters. It also covers previewing parameter positions and printing mailing labels.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":41,"@type":70,"position":76},"https://docshare.wps.com/template/letters/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/jiang-z-mail-merge-with-the-use-of-formlettsty/307104/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/jiang-z-mail-merge-with-the-use-of-formlettsty/307104.png","ImageObject",442,249,{"name":88,"@type":89},"Putri","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-12","2026-09-19",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",8,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How are placeholders in a form letter replaced for each recipient?","Question",{"text":109,"@type":110},"The template uses double-arrow bracket placeholders like \u003C\u003CFULL NAME>> and \u003C\u003CADDRESS-01>>, which are replaced by per-letter parameters supplied to formlett.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What does \\moreletter do in the examples?",{"text":114,"@type":110},"\\moreletter provides a cluster of parameters separated by semicolons and terminated with an exclamation mark, generating each merged letter.",{"name":116,"@type":107,"acceptedAnswer":117},"How can parameters be grouped and renumbered in a mail merge?",{"text":118,"@type":110},"Use grouped parameter notation such as \\paras[m][n] or \\blockparas[m][n][pre][post] so each group’s parameters resynchronize numbering for cleaner template organization.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},307104,1790468904,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":40,"category_name":41,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":136,"language":137,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":61,"update_tm":141,"read_time":73},962085571259,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Mail merge with the use of formlett.sty  \nZhuhan JIANG  \nSchool of Computing and Information Technology, University of Western Sydney, Victoria Road, Parramatta NSW 2150, Australia. Email: [z.jiang@uws.edu.au](z.jiang@uws.edu.au)  \n(Last updated on 26 May 2003)  \nIn this article, the author explains how to use a form-letter or mail merge style formlett.sty, designed for plain TEX and LaTEX or LaTEX2e.formlett.sty supports di􀀋erent parameter input methods, parameter naming and defaulting mechanism, as well as facilities for previewing parameter positions and printing labels.It is written for the purpose of being powerful, robust and above all easy to use.  \nIntroduction  \nOur purpose here is to describe a comprehensive implementation of a macro system, handling form letters or mail merge under plain TEX or LaTEX 2.09 or LaTEX2e. The main objective is to provide an easy way to output many form letters with their own parameters, with or without the use of multiple 􀀌les. There will be a coherent and simple format for putting parameters inside a form letter, with a number of helping facilities for such as naming parameters and previewing their positions. A minimum support for printing mailing labels is also provided.  \nThe concept of macros [1] for form letters is not new: there already exist macros in this connection such as merge, textmerg and address to name a few, see [2,3] for further details. Our stress here is therefore laid on the ease to use, along with the power and the robustness of the macros.  \nBasic format  \nSuppose we would like to write a form letter for mail merge in the following form  \n\u003C\u003CFULL NAME>>  \n\u003C\u003CADDRESS-01>>  \n\u003C\u003CADDRESS-02>>  \nDear \u003C\u003CGIVEN NAME>>,  \nWe have been looking for \u003C\u003CMISSING ITEM>> for quite a while without any luck, could you help us out? If so, please ring \u003C\u003CPHONE NUMBER>> .  \nCheers! Michael  \nwhere the text inside the double arrow brackets are to be replaced by the parameters speci􀀌c to each individual letter. If we number these parameters one by one in a single group, then the letter template will be organised as  \nDear,  \n1 { 4  \nWe have been looking for  1 { 5  for quite a while without any luck, could you help us out? If so,  \nplease ring  \n1 { 6  \n.  \nCheers! Michael  \nand we need just 6 parameters to personalise an individual letter. A simplest example of supplying a set or a cluster of these parameters to output a merged form letter is to use  \n\\moreletter  \nMrs L Stenson;\\\\#1-20 Sunset Street;% Hills, Norway;Louise;a Bible;220-8888!  \nFor more letters to be merged this way, just use again the command \\moreletter in the above format, in which each parameter is separated by a semicolon ` ; ' and the whole parameter cluster is ended by an exclamation mark ` ! ' . The actual code in LaTEX for making the above form letter, along with an extra merged letter, may read as follows  \n\\documentstyle[formlett]{article} 0001  \n\\begin{document} 0002  \n\\beginletter 0003  \n\\NOPAGENUMBERS\\parindent=0pt 0004  \n\\paras[1]\\par\\paras[2]\\par 0005  \n\\paras[3]\\par\\medskip 0006  \nDear \\paras[4], \\par\\medskip 0007  \nWe have been looking for 0008  \n\\paras[5] for quite a while 0009  \nwithout any luck, could you help 0010  \nus out? If so, please ring 0011  \n\\paras[6] . \\par\\medskip 0012  \nCheers!\\hfill Michael\\vfill\\eject 0013  \n\\endletter 0014  \n0015  \n\\moreletter % letter one 0016  \nMrs L Stenson;\\\\#1-20 Sunset Street;% 0017 Hills, Norway;Louise;a Bible;220-8888! 0018 \\moreletter % letter two 0019  \nS Wales;UMIST;Manchester;Sir or Madam;% 0020 a \\TeX\\ package{+}manual;225-9905! 0021  \n\\end{document} 0022  \nThe line numbers in the above and later on are for quick reference only: they are not a part of the program code. The letter template in lines 4-13 is de-  \nJiang Z Mail merge with the use of formlett.sty 1  \n􀀌ned by the \\beginletter and \\endletter pair inline 3 and line 14, with each use of \\moreletter generating a new merged letter. We note that command \\paras[m] represents the mth merged parameter (of the 􀀌","cbCaioRNZE5KJdjA","https://ap.wps.com/l/cbCaioRNZE5KJdjA","pdf",172966,6,"English","# Introduction\n# Basic format\n# The concept of macros\n# Parameter naming and grouping\n# Printing mailing labels and previewing","[{\"question\":\"How are placeholders in a form letter replaced for each recipient?\",\"answer\":\"The template uses double-arrow bracket placeholders like \\u003c\\u003cFULL NAME\\u003e\\u003e and \\u003c\\u003cADDRESS-01\\u003e\\u003e, which are replaced by per-letter parameters supplied to formlett.\"},{\"question\":\"What does \\\\moreletter do in the examples?\",\"answer\":\"\\\\moreletter provides a cluster of parameters separated by semicolons and terminated with an exclamation mark, generating each merged letter.\"},{\"question\":\"How can parameters be grouped and renumbered in a mail merge?\",\"answer\":\"Use grouped parameter notation such as \\\\paras[m][n] or \\\\blockparas[m][n][pre][post] so each group’s parameters resynchronize numbering for cleaner template organization.\"}]","Jiang Z - Mail merge with the use of formlett.sty | PDF",1789844138]