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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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