
\begin{flushright} % \begin{tabular}{p{.5\textwidth}} % \hrulefill \\ % \hrulefill \hrulefill \end{tabular} \end{flushright} flushright, tabular and \hrulefill inserted automatically. To do this, we define new lines : \newenvironment{lines}[1][\textwidth] % { \newcolumntype{E}{>{}p{#1}<{\hrulefill}} % \hrulefill \begin{flushright} % flushright \begin{tabular}[h]{E} % tabular } {\end{tabular}\end{flushright} } \begin{lines}[.5\textwidth] \\ \\ \\ \\ .\\ , \\ \rule{2cm}{0.25pt} â„– \\ % \rule \end{lines} 
\fbox , but how to make an empty box of the desired size, say 3 millimeters? Ways for sure a lot. You can use the minipage environment, which allows you to specify the width and height: \begin{minipage}[c][0.3cm]{0.3cm}\quad\end{minipage} , or you can use the low-level \vbox and \hbox: \vbox to 3mm {\vfil \hbox to 3mm{} \vfil} . In any case, I don’t want to write so much code every time, so let's make a new \ chkbox command and pass the text to it with the argument, which should be placed next to the checkbox. % \: , % \parbox , % calc \newcommand\chkbox[1]{\fbox{\begin{minipage}[c][0.3cm]{0.3cm}\quad\end{minipage}}\:\parbox[t]{\linewidth - 0.3cm}{#1} } \begin{tabular}{p{.17\textwidth}p{.25\textwidth}p{.25\textwidth}p{.3\textwidth}} % \chkbox{} & \chkbox{ \\ } & \chkbox{ } & \parbox[t]{.3\textwidth}{ \\ \hrulefill} \\ \end{tabular} 
\underset macro from the amsmath package: % ", " $\underset{\text{(, )}}{\underline{\hspace{0.5\textwidth}}}$ 
\hdashrule macro from the dashrule package: % 1 , 2 , % " 3 1 " \hdashrule[-2mm]{\textwidth}{1pt}{3mm 1mm} \rule command, which has the same syntax, except for the absence of the last argument (line pattern). Two solid lines of different thickness is easy to do: \rule{\textwidth}{.5mm} \rule{\textwidth}{.25mm} \hrule with the line breaks, but it's easier to use the \hrule and install kerning: \hrule height 1pt\kern 2pt \hrule height 0.25pt Source: https://habr.com/ru/post/207364/
All Articles