我目前正在制定技术规范,以便在网站上构建客户空间。我需要估算创建每个步骤所需的时间。因此,有两个子主题需要考虑Registration
:Login
。因此,我们的想法是创建一个单独的表,即表格太宽,包含以下信息:
登记:
- 选择计划和偏好 --> 预计 25 小时
- 个人信息 --> 预计 25 小时
- 预览和付款 --> 预计 25 小时
登录:
- 创建仪表板 --> 预计 100 小时
- 创建客户空间 --> 预计 20 小时
- 创建“我的订单” --> 预计 25 小时
- 创建“消息”——> 预计 40 小时
我该如何修改以下代码,使其可以显示在三列上?或者简单地说,我该如何改进它,使其看起来更美观?
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{natbib}
\usepackage{url}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{parskip}
\usepackage{fancyhdr}
\usepackage{vmargin}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{ragged2e}
\hypersetup{
colorlinks=true, linkcolor=cyan
}
\newcommand{\firstcol}[1]{%
\bfseries
\begin{tabular}[t]{@{}l@{}}
#1
\end{tabular}%
}
\setmarginsrb{3 cm}{2.5 cm}{3 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}
\begin{document}
\section{Schedule}
Here is an estimate of the time at each step for the creation of a client-space for the website \url{www.test.com}.
\begin{center}
\begin{tabularx}{\textwidth}{lX}
\toprule
\firstcol{Registration} &
Select Plan \& Preferences : 25 hours estimate\\
Personal information : 25 hours estimate\\
Preview \& Payment : 25 hours estimate\\
\addlinespace
\firstcol{Login} &
Create dashboard : 100 hours estimate\\
Create the client-space : 20 hours estimate\\
Create 'My orders' : 25 hours estimate\\
Create 'Messages' : 40 hours estimate\\
\bottomrule
\end{tabularx}
\end{center}
\end{document}
答案1
只是一个建议:
\documentclass[12pt]{article}
\usepackage[english]{babel}
%\usepackage{natbib}
\usepackage{url}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
%\usepackage{graphicx}
%\graphicspath{{images/}}
%\usepackage{parskip}
%\usepackage{fancyhdr}
\usepackage{vmargin}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{ragged2e}
\hypersetup{
colorlinks=true, linkcolor=cyan
}
\newcommand{\firstcol}[1]{%
\bfseries
\begin{tabular}[t]{@{}l@{}}
#1
\end{tabular}%
}
\setmarginsrb{3 cm}{2.5 cm}{3 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}
\begin{document}
\section{Schedule}
Here is an estimate of the time at each step for the creation of a client-space for the website \url{www.test.com}.
\begin{center}
\begin{tabular}{llc}
\toprule
\multicolumn{2}{c}{\textbf{Creation Phase}} & \textbf{Estimaded Hours}\\
\midrule
\multicolumn{2}{l}{\textbf{Inscription}} \\
& Select Plan \& Preferences & 25\\
& Personal information & 25\\
& Preview \& Payment & 25\\
\addlinespace
\midrule
\multicolumn{2}{l}{\textbf{Connexion}} \\
& Create dashboard & 100\\
& Create the client-space & 20\\
& Create 'My orders' & 25\\
& Create 'Messages' & 40\\
\bottomrule
\end{tabular}
\end{center}
\end{document}
答案2
另一个想法(没有表格):
\documentclass[12pt]{article}
\usepackage{bchart}
\begin{document}
\begin{bchart}[step=10,max=100,width=.6\linewidth,plain]
\bclabel{\bfseries Creation Phase}
\smallskip
\bcbar[value=\em Inscription]{}
\smallskip
\bcbar[label=Select Plan \& Preferences]{25}
\bcbar[label=Personal information]{25}
\bcbar[label=Preview \& Payment]{25}
\smallskip
\bcbar[value=\em Login]{}
\smallskip
\bcbar[color=orange, label=Create dashboard]{100}
\bcbar[color=orange, label=Create the client-space]{20}
\bcbar[color=orange, label=Create 'My orders']{25}
\bcbar[color=orange, label=Create 'Messages' ]{40}
\bcxlabel{\bfseries Estimated Hours}
\end{bchart}
\end{document}
答案3
像这样吗?
\begin{tabularx}{\textwidth}{>{\bfseries}XXr}\toprule
Registration&
Select Plan \& Preferences & 25 hours estimate\\
& Personal information & 25 hours estimate\\
& Preview \& Payment & 25 hours estimate\\[1ex]
Login &
Create dashboard & 100 hours estimate\\
& Create the client-space & 20 hours estimate\\
& Create `My orders' & 25 hours estimate\\
& Create `Messages' & 40 hours estimate\\ \bottomrule
\end{tabularx}