形式:TextField 和 digsigfield 的表格排列

形式:TextField 和 digsigfield 的表格排列

我使用 Martin Lottermoser 的 digsig.sty http://home.htp-tel.de/lottermose2/tex/dist/digsig.sty


我怎样才能尽可能无缝地以这种形状排列两个“TextField”和一个digsigfield?

在此处输入图片描述


梅威瑟:

在此处输入图片描述

\documentclass[fontsize=14pt]{scrreprt}
\usepackage[margin=1.75cm,
 includefoot, 
showframe=false
%headheight=2\baselineskip,
]{geometry}

\usepackage{tabularx}
\usepackage{xcolor}
\usepackage{calc}
\usepackage[]{hyperref}
\usepackage{digsig} 

\begin{document}
Please describe your observation as accurately as possible:\par
\begin{Form}
\noindent\begin{tabularx}{\textwidth}{p{0.5\textwidth}  X }
\noindent\color{red}\fbox{\noindent\digsigfield{0.5\textwidth}{10cm}{test}} & \TextField[multiline,borderstyle=S, value=Text 1, height=10cm]{}\\
\TextField[multiline,borderstyle=S, value=Text 2, height=7cm, width=\textwidth]{}{} 
\end{tabularx}
\end{Form}
\end{document}

答案1

没有必要使用表格来使事情复杂化。

\documentclass[fontsize=14pt]{scrreprt}
\usepackage[margin=1.75cm,
 includefoot,
showframe=false
%headheight=2\baselineskip,
]{geometry}

\usepackage{xcolor}
\usepackage{calc}
\usepackage[]{hyperref}
\usepackage{digsig}

\begin{document}
Please describe your observation as accurately as possible:\par
\begin{Form}
\def\LayoutTextField#1#2{#2}
\noindent
\color{red}\fbox{\digsigfield{0.5\textwidth}{10cm}{test}}%
\TextField[name=text1,multiline,borderstyle=S, value=Text 1, height=10cm,width=\dimexpr 0.5\textwidth-2\fboxsep-2\fboxrule]{}\\
\TextField[name=text2,multiline,borderstyle=S, value=Text 2, height=7cm, width=\textwidth]{}{}

\end{Form}
\end{document}

在此处输入图片描述

相关内容