我正在为我的大学编写 AUN(东盟大学网络)格式。但是,我不知道如何将“香港大学”、“电信系”等状态置于部分的中心,以及类似的 3 个表格?
下面是我设法创建的表示例的完整代码:
\documentclass[a4paper, 12pt]{article}
\usepackage[a4paper,tmargin=1.0cm, bmargin=1.5cm, lmargin=1.5cm, rmargin=1.5cm,landscape]{geometry}
\usepackage{comment}
\usepackage{fullpage}
\usepackage{xcolor}
\usepackage{amsmath,amsxtra,latexsym, amssymb, amscd}
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{color}
\usepackage{graphicx}
\usepackage{times}
\usepackage{booktabs}
\usepackage{multirow,bigstrut}
\usepackage{tabu}
\begin{document}
%Header-Make sure you update this information!!!!
\noindent
\large\textbf{UNIVERSITY OF HONGKONG} \hfill \textbf{DEPARTMENT OF TELECOMMUNICATION} \\
\normalsize FACULTY OF ELECTRICAL \& ELECTRONICS ENGINEERING \hfill Independence – Freedom – Happiness
\\
\hfill HongKong city, ………………………………
\begin{center}
\section*{ COURSE SYLLABUS}
\subsection*{DIGITAL IMAGE PROCESSING}
\subsection*{Course code: 402084}
\end{center}
\section{Information}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c}
\hline
No. of credits & 2(2,0) \\
% \hline
% \multicolumn{1}{|c|}{Time allocation} & Theory (hours) & 45 & Practice (hours) & 0 & Self-study (hours) & 90 \\
\hline
Prior-completion & N/A \\
\hline
Co-requisite & Digital Signal Processing \\
\hline
Programme & Bachelor in Electronics and Telecommunications Engineering
\\
\hline
\end{tabular}
\end{center}
\section{Course objectives (COs)}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c}
\hline
No. & Course Outcomes (COs) & Expected Learning Outcomes (ELOs) \\
\hline
1 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
2 & Understand how to design digital image processing algorithms. & ELO 4 \\
\hline
3 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
3 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
\end{tabular}
\end{center}
\结束{文档}
答案1
我已将标题居中对齐,并编辑了表格。
我用的是多列包和tabularx 包,它允许表格列具有不同的宽度(用 指定X
)。为了将这些列居中对齐,我定义了一个新的列说明符Y
,它的作用与 相同,X
但将它们居中对齐。这取自在 tabularx 和 X 列中居中。
此外,我删除了所有未使用的包。您可以根据需要重新插入它们。我添加了\MakeUppercase
大写文本的命令。
这是代码:
\documentclass[a4paper, 12pt]{article}
\usepackage[a4paper,tmargin=1.0cm, bmargin=1.5cm, lmargin=1.5cm, rmargin=1.5cm, landscape]{geometry}
\usepackage{fullpage}
\usepackage{times}
\usepackage{multirow}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X} % to center the columns
\begin{document}
% Header - Make sure you update this information!!!!
\begin{tabularx}{\textwidth}{cXc}
\large\textbf{\MakeUppercase{Your University}} & & \textbf{Your department} \\ % University and faculty are converted to UPPER case
\normalsize \MakeUppercase{Your Faculty} & & Independence – Freedom – Happiness \\
& & HongKong city, ………………………………
\end{tabularx}
\begin{center}
\section*{ \MakeUppercase{Course Syllabus}}
\subsection*{\MakeUppercase{Digital Image Processing}}
\subsection*{Course code: 402084}
\end{center}
\section{Information}
\begin{tabularx}{\textwidth}{|l|X|Y|X|Y|l|l|}
\hline
\textbf{No. of credits} & \multicolumn{6}{c|}{2(2,0)} \\
\hline
\textbf{Time allocation} & Theory (hours) & 45 & Practice (hours) & 0 & Self-study (hours) & 90 \\
\hline
\textbf{Prior-completion} & \multicolumn{4}{l|}{Digital Signal Processing} & \textbf{Prior-completion code} & 402070\\
\hline
\textbf{Co-requisite} & \multicolumn{4}{l|}{N/A} & \textbf{Co-requisite code }& N/A\\
\hline
\textbf{Programme} & \multicolumn{4}{l|}{Bachelor in Electronics and Telecommunications Engineering} & \textbf{Programme Code} & 700000\\
\hline
\end{tabularx}
\section{Course objectives (COs)}
\begin{center}
\begin{tabularx}{\textwidth}{|c|X|c|}
\hline
\textbf{No.} & \multicolumn{1}{c|}{\textbf{Course Outcomes (COs)}} & \textbf{Expected Learning Outcomes (ELOs)} \\
\hline
1 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
2 & Understand how to design digital image processing algorithms. & ELO 4 \\
\hline
3 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
3 & Understand the about Digital Image Processing: applications digital image processing, basic steps in digital image processing. & ELO 4 \\
\hline
\end{tabularx}
\end{center}
\end{document}