By Alvin Alexander. Last updated: June 4, 2016
Okay, now I'm getting into the crazy LaTeX code. I'm converting HTML UI prototype images into LaTeX so I can include the prototypes in my Requirements Specification docs.
So, that being my motivation, here's some LaTeX example code that shows how to display the equivalent of a textfield inside of a table. At the very least, this demonstrates how to use the LaTeX fbox
command. :)
\documentclass[11pt,a4paper]{report} \usepackage[pdftex]{graphicx} \begin{document} % % here's one box before the table % \fbox{some text here} \\ % % here's a box inside of a table. % it works when using pdflatex to generate a pdf. % \begin{tabular}{|l|c|r|} \hline \fbox{some stuff in a box} & blah & blah\\ \hline text & text & text\\ \hline text & text & text\\ \hline C++ & A difficult language. & R4C3\\ \hline \end{tabular} \end{document}
Note that this creates a LaTeX box with borders around it, and looks remarkably like a textfield in HTML. Exactly what I want. FWIW, I can also simulate buttons, checkboxes, and other widgets.
Crazy, I know ... but fun.