Espacio vertical en las columnas de la tabla.

Espacio vertical en las columnas de la tabla.

Estoy creando el siguiente formulario. La tabla debe completarse manualmente con bolígrafo o lápiz. Pero el espacio que queda disponible en cada línea es limitado (vertical). ¿Cómo puedo aumentar el espacio vertical entre las columnas?

\documentclass[a4paper]{exam}
    \usepackage{multicol, setspace}
    \usepackage{textcomp, booktabs,colortbl}
    \usepackage[table]{xcolor}
    \setlength\columnsep{10pt}
    \onehalfspacing
    \begin{document}

    \begin{center}
    \fbox{\fbox{\parbox{5.5in}{\centering
    OPD ENCOUNTER FORM}}}
    \end{center}
    \vspace{0.1in}

    \makebox[\textwidth]{Name :\enspace\hrulefill}
    \begin{multicols}{2}
    \vspace{0.2in}
    \makebox[0.45\textwidth]{Age:\enspace\hrulefill}
    \makebox[0.5\textwidth]{Sex:\enspace\hrulefill}
    \end{multicols}
    \makebox[\textwidth]{Address:\enspace\hrulefill}

    \begin{multicols}{2}
    \makebox[0.45\textwidth]{Dated: \enspace\hrulefill}
    \makebox[0.45\textwidth]{Ref: \enspace\hrulefill} 
    \end{multicols} 
    %-----------------------------------------------------------
    \section*{Present Problem}
    \fillwithlines{0.5in}
    %----------------------------------------------------------

    \section*{\large \textrecipe}
    \begin{table}[htp]
    \rowcolors{2}{gray!25}{white}
    \begin{tabular}{c p{3cm}p{3cm}clc} 
    \toprule 
     Sr No & Drug & Dose  & Frequency & Duration & Remark \\ \midrule
    1 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

     2 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

    3 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\ 

     4 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\ 

    5 &  &  & -~~ -~~ -  & x & before/with/after meals, at night  \\

    6 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

    7 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\ \bottomrule 
    \end{tabular}
    \end{table}
    \end{document}

Respuesta1

Puedes usar \renewcommand{\arraystretch}{2}. Cambia 2como quieras, por ejemplo 3.

\documentclass[a4paper]{exam}
    \usepackage{multicol, setspace}
    \usepackage{textcomp, booktabs,colortbl}
    \usepackage[table]{xcolor}
    \setlength\columnsep{10pt}
    \onehalfspacing
    \begin{document}

    \begin{center}
    \fbox{\fbox{\parbox{5.5in}{\centering
    OPD ENCOUNTER FORM}}}
    \end{center}
    \vspace{0.1in}

    \makebox[\textwidth]{Name :\enspace\hrulefill}
    \begin{multicols}{2}
    \vspace{0.2in}
    \makebox[0.45\textwidth]{Age:\enspace\hrulefill}
    \makebox[0.5\textwidth]{Sex:\enspace\hrulefill}
    \end{multicols}
    \makebox[\textwidth]{Address:\enspace\hrulefill}

    \begin{multicols}{2}
    \makebox[0.45\textwidth]{Dated: \enspace\hrulefill}
    \makebox[0.45\textwidth]{Ref: \enspace\hrulefill}
    \end{multicols}
    %-----------------------------------------------------------
    \section*{Present Problem}
    \fillwithlines{0.5in}
    %----------------------------------------------------------

    \section*{\large \textrecipe}
    \begin{table}[htp]
    \rowcolors{2}{gray!25}{white}
    \renewcommand{\arraystretch}{3}
    \begin{tabular}{c p{3cm}p{3cm}clc}
    \toprule
     Sr No & Drug & Dose  & Frequency & Duration & Remark \\ \midrule
    1 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

     2 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

    3 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

     4 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

    5 &  &  & -~~ -~~ -  & x & before/with/after meals, at night  \\

    6 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\

    7 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\ \bottomrule
    \end{tabular}
    \end{table}
    \end{document}

ingrese la descripción de la imagen aquí

Respuesta2

Otra forma es especificar manualmente el salto que desea después de cada fila sustituyendo \\con \\[skip].

De esta forma podrás incluso diferenciar el salto de cada fila.

Por ejemplo, en el siguiente MWE, he dado 5exdespués de cada fila blanca y 7exdespués de cada fila gris:

\documentclass[a4paper]{exam}
\usepackage{multicol, setspace}
\usepackage{textcomp, booktabs,colortbl}
\usepackage[table]{xcolor}
\setlength\columnsep{10pt}
\onehalfspacing
\begin{document}

\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
OPD ENCOUNTER FORM}}}
\end{center}
\vspace{0.1in}

\makebox[\textwidth]{Name :\enspace\hrulefill}
\begin{multicols}{2}
\vspace{0.2in}
\makebox[0.45\textwidth]{Age:\enspace\hrulefill}
\makebox[0.5\textwidth]{Sex:\enspace\hrulefill}
\end{multicols}
\makebox[\textwidth]{Address:\enspace\hrulefill}

\begin{multicols}{2}
\makebox[0.45\textwidth]{Dated: \enspace\hrulefill}
\makebox[0.45\textwidth]{Ref: \enspace\hrulefill}
\end{multicols}
%-----------------------------------------------------------
\section*{Present Problem}
\fillwithlines{0.5in}
%----------------------------------------------------------

\section*{\large \textrecipe}
\begin{table}[htp]
\rowcolors{2}{gray!25}{white}
\begin{tabular}{c p{3cm}p{3cm}clc}
\toprule
 Sr No & Drug & Dose  & Frequency & Duration & Remark \\ \midrule
1 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[5ex]

 2 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[7ex]

3 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[5ex]

 4 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[7ex]

5 &  &  & -~~ -~~ -  & x & before/with/after meals, at night  \\[5ex]

6 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[7ex]

7 &  &  & -~~ -~~ -  & x & before/with/after meals, at night \\[5ex] \bottomrule
\end{tabular}
\end{table}
\end{document} 

Producción:

ingrese la descripción de la imagen aquí

información relacionada