1

I want my \textfield width to fill the width of the table. For now I have this:

\documentclass[a4paper,2pt]{article}
\usepackage{hyperref}% load last unless you know a package should be loaded later

\begin{document}


\begin{tabular}{|c|c|c|}

\hline
\textbf{Description} & \textbf{M/P} & \textbf{Was shipped before to customer}\\
\hline
USB Isolator & 114991949 & \CheckBox{Yes:} \CheckBox{No:}\\
\hline
Power strip & \TextField{Version:} &\CheckBox{Yes:} \CheckBox{No:}\\
\hline
White Ferrite bead & 28A2029-0A0 & \CheckBox{Yes:} \CheckBox{No:}\\
  \hline
  \TextField[name=r1]{} &\TextField[name=r2]{} &\TextField[name=r3]{} \\
   \hline
  \TextField[name=r4]{} & & \\
   \hline
   & & \\
   \hline 
  \end{tabular}

\end{document}

Which gives me this:

width of \TextField to the width of the table width

I would like to have this:

filed width

I tried using: \ttabbox{\TextField[name=r2]{}} . But it did not change anything. I also tried \TextField[name=r2, width=p{width}]{}.

I cannot find how can I get the width of the cell and use it on my \textfield, or if there is another way to make the width of the \textfield to be the width of the cell.

3
  • 1
    Welcome to TSE. Please post a Minimal Working Example, instead of a code snippet. Commented Mar 15, 2022 at 10:18
  • @JoséCarlosSantos Thank you, I edited the document. Commented Mar 15, 2022 at 10:21
  • us p-type columns in the tabular, then you can use width=\linewidth in the text field. Commented Mar 15, 2022 at 10:31

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.