Page Layout ⇒ multiple column layout with different-sized columns
multiple column layout with different-sized columns
step Verify Description
1. [ ] Lorem lipsum dolor
2. [ ] Push button 1
...
I tried with tabbing, but on steps that had lots of text, the text ran off hte page. I tried modifying hanging indent and indent settings, but that got confusing as well, any suggestions for how to get this kind of layout?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
multiple column layout with different-sized columns
perhaps a tabular environment could be useful. Take a look at the following simple example (please note that the rows are numbered automatically):
Code: Select all
\documentclass{book}
\usepackage{array}
\usepackage{lipsum}% just to generate some text
\newcounter{mycont}
\begin{document}
\noindent\begin{tabular}{>{\stepcounter{mycont}\themycont.}l%
@{\hspace*{5pt}[\quad ]\hspace*{5pt}}p{.8\textwidth}}
\multicolumn{1}{l}{\bfseries Step} & \bfseries Verify Description\\
& Description for the first step.\\
& Description for the second step.\\
& \lipsum[1]\\
\end{tabular}
\end{document}multiple column layout with different-sized columns
Code: Select all
\documentclass{article}
\usepackage{enumitem,hyperref}
\begin{document}
\begin{Form}
\noindent step Verify Description%
\newlength{\steplen}
\settowidth{\steplen}{step}
\newlength{\verifylen}
\settowidth{\verifylen}{~Verify~}
\newlength{\boxlen}
\settowidth{\boxlen}{\CheckBox{}}
\newlength{\labellen}
\setlength{\labellen}{\steplen}
\addtolength{\labellen}{\verifylen}
\settowidth{\verifylen}{Verify}
\newlength{\bufferlen}
\setlength{\bufferlen}{\verifylen}
\addtolength{\bufferlen}{-1\boxlen}
\begin{enumerate}[label={\arabic*.\hspace{0.5\bufferlen}\CheckBox{}\hspace{0.5\bufferlen}},leftmargin=\labellen]
\item Lorem lipsum dolor
\item Push button 1
\item Wait for big explosion
\end{enumerate}
\end{Form}
\end{document}
If you're going to print these and and check the boxes with pen or pencil, I'd go with the simpler:
Code: Select all
\documentclass{article}
\usepackage{enumitem,bbding}
\begin{document}
\noindent step Verify Description%
\newlength{\steplen}
\settowidth{\steplen}{step}
\newlength{\verifylen}
\settowidth{\verifylen}{~Verify~}
\newlength{\boxlen}
\settowidth{\boxlen}{\Square}
\newlength{\labellen}
\setlength{\labellen}{\steplen}
\addtolength{\labellen}{\verifylen}
\settowidth{\verifylen}{Verify}
\newlength{\bufferlen}
\setlength{\bufferlen}{\verifylen}
\addtolength{\bufferlen}{-1\boxlen}
\begin{enumerate}[label={\arabic*.\hspace{0.5\bufferlen}\Square\hspace{0.5\bufferlen}},leftmargin=\labellen]
\item Lorem lipsum dolor
\item Push button 1
\item Wait for big explosion
\end{enumerate}
\end{document}
Re: multiple column layout with different-sized columns
multiple column layout with different-sized columns
multiple column layout with different-sized columns
What I am worried most about now is making these tables fit, since small tables will work fine, what about long ones? I can shrink the text, I guess, but other than that, I see no way out. I wish I could rotate the table, but since I am generating the LaTeX code from elsewhere, there is no way of determining ahead of time if I should rotate it or not, unless I throw some code to determine if the table will be too long.
Here is an example, using just a \textwidth. If the first column (Displayed Data) gets too long, the columns themselves will start to jam together. Now I see why they say LaTeX helps you structure your content and present it more concisely!
Code: Select all
\chapter{Equipment Operating Procedures}
Here is a sample 7-column table that could expand quite a bit:
\begin{tabulary}{\textwidth}{L L L L L L L L}
\toprule
\textbf{Displayed Data} & \textbf{Color} & \textbf{Size} & \textbf{Display Type} & \textbf{Display Label} & \textbf{Line Number} & \textbf{Data Just.} \\
\midrule
Displayed RPM Label & Cyan & Large & Display Only & RPM $<value>$ & Line Number 1-1 & R \\
\bottomrule
\end{tabulary}