GeneralCustom input during compilation time

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
filimon
Posts: 1
Joined: Sat Jan 07, 2012 1:23 pm

Custom input during compilation time

Post by filimon »

Dear all, maybe this is a FAQ but could not google anything... I have a 1-2 page document that I would like to customize at 2 specific lines (for example a birthday invitaion where I need to change the recipient name and address). How can I achieve this at runtime. I assume LaTeX would stop at a prompt, possibly printing a question that I choose (eg "Enter address") input that address and then continiue typesetting it and the rest of the document. \input could possibly work by redirecting stdinbut I have not tried. Any ideas for TeX/LaTeX code or package that can achieve this? Thanks,
f

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Custom input during compilation time

Post by Stefan Kottwitz »

Compilation depending on user input could easily be done with LuaLaTeX. You could even provide a graphical user interface with wxLua.

Stefan
LaTeX.org admin
Post Reply