B
B
Boris Dergachev2015-10-15 11:45:30
TeX
Boris Dergachev, 2015-10-15 11:45:30

How to write captions for underscore lines?

I draw up documents that require handwriting after printing, for example:

_________________ / руководитель отдела /
    (подпись)

Insert text below the underline. I do this with the following code:
\newlength{\mytextsize} % определяем высоту шрифта
\makeatletter
\setlength{\mytextsize}{\[email protected] pt}
\makeatother

% ...

% внутри строки, где нужен текст под линией подчёркивания, создаём minipage, состоящий из двух строк
\begin{minipage}[t][2\mytextsize][t]{2in} % размер minipage равен удвоенному размеру основного шрифта
  \underline{\hspace{2in}}\\ % линия подчёркивания на два дюйма
  \centering
  \small(подпись)
  \vspace{\mytextsize} % отступ minipage для выравнивания линии подчёркивания с базовой линией остального текста
\end{minipage}~/~руководитель отдела~/

I don't like a few things:
  • Because the signature is written in a smaller font, then double the size for the minipage is overkill. Visually large line spacings are obtained. Calculating the font size for both small and normalsize is cluttering.
  • There are a lot of places in the document where you need to label the lines below, a lot of code.

Is there an easy solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrei, 2015-10-29
@oren

I usually just make a table:

\begin{tabular}{lp{2em}l} 
    \hspace{5cm}   && \hspace{4cm} \\\cline{1-1}\cline{3-3} 
    Место, Дата     && Подпись 
  \end{tabular}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question