All theorem environments support an optional argument for a theorem's name or a note. In the following example, I use the thmtools
package to format the note. (The amsthm
package still provides some underlying functionality, but I prefer thmtools
' key-value-syntax.)
\documentclass{article}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheoremstyle[%
within=section,%
spaceabove=10mm,%
spacebelow=10mm%,
headfont=\bfseries,%
headpunct={},%
postheadspace=\newline,%
notefont=\normalfont\itshape,%
notebraces={--~}{},% punctuation before and after the note
]{definitionstyle}
\declaretheorem[style=definitionstyle,name=Definition]{mydef}
\usepackage{lipsum}
\begin{document}
\section{foo}
\begin{mydef}[The answer of the universe and everything]
\lipsum[1]
\end{mydef}
\end{document}
![enter image description here](https://i.stack.imgur.com/2wwpv.jpg)
This seems to work. BTW, the manual says that only one Form is allowed. Also, you don't need all those negative \hspace
if you don't add a gap to begin with.
It should be noted that the default character size (charsize
) is 10pt and the effective \baselineskip
for forms is about 11.5pt.
\documentclass[pagesize=pdftex,DIV=16]{scrartcl}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}
\newsavebox\TBox
\begin{document}
\begin{Form}
\section*{Application for xxx}
\sbox\TBox{Name: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox,height=\baselineskip]%
{Name: \strut}\\[1ex]
\sbox\TBox{Organization: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]%
{Organization: \strut}\\[1ex]
\sbox\TBox{Address: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]%
{Address: \strut}\\[1ex]
\sbox\TBox{Postal code: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr0.5\linewidth-\wd\TBox]{Postal code: \strut}
\sbox\TBox{ Abcd: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr0.5\linewidth-\wd\TBox]{Abcd: \strut}\\[1ex]
\sbox\TBox{E-mail: }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{E-mail: \strut}
\bigskip
\noindent\begin{tabular}{@{}l}
Question \hspace*{1cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
Last question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[0.2cm]
\end{tabular}
\sbox\TBox{Motivation: }%
\noindent\TextField[multiline,backgroundcolor=gray!20,borderwidth=0,width=\dimexpr \linewidth-\wd\TBox,height=115pt]%
{\strut\raisebox{104.5pt}{Motivation:} }
\end{Form}
\end{document}
Best Answer
For my exams, I use:
It's simple. (That said, I will look at the package that @lockstep mentioned.)