看起来这个问题已经被问过很多次了,但由于我对乳胶还不熟悉,所以我无法解决我的问题。
我的 .tex 文档中有以下 longtable
\begin{longtable}{@{}lll@{}}
\toprule
\textbf{AU Number} & \textbf{FACS Name} & \textbf{Muscular Basis}\\
\midrule
0 & face & \\
1 & Inner Brow Raiser & frontalis (pars medialis) \\
2 & Outer Brow Raiser & frontalis (pars lateralis) \\
4 & Brow Lowerer & depressor glabellae, depressor supercilii, corrugator supercilii \\
5 & Upper Lid Raiser & levator palpebrae superioris, superior tarsal muscle \\
6 & Cheek Raiser & orbicularis oculi (pars orbitalis) \\
7 & Lid Tightener & orbicularis oculi (pars palpebralis) \\
8 & Lips Toward Each Other & orbicularis oris \\
9 & Nose Wrinkler & levator labii superioris alaeque nasi \\
10 & Upper Lip Raiser & levator labii superioris, caput infraorbitalis \\
11 & Nasolabial Deepener & zygomaticus minor \\
12 & Lip Corner Puller & zygomaticus major \\
13 & Sharp Lip Puller & levator anguli oris (also known as caninus) \\
14 & Dimpler & buccinator \\
15 & Lip Corner Depressor & depressor anguli oris (also known as triangularis) \\
16 & Lower Lip Depressor & depressor labii inferioris \\
17 & Chin Raiser & mentalis \\
18 & Lip Pucker & incisivii labii superioris and incisivii labii inferioris \\
19 & Tongue Show & \\
20 & Lip Stretcher & risorius w/ platysma \\
21 & Neck Tightener & platysma \\
22 & Lip Funneler & orbicularis oris \\
23 & Lip Tightener & orbicularis oris \\
24 & Lip Pressor & orbicularis oris \\
25 & Lips Part & depressor labii inferioris, or relaxation of mentalis or orbicularis oris \\
26 & Jaw Drop & masseter; relaxed temporalis and internal pterygoid \\
27 & Mouth Stretch & pterygoids, digastric \\
28 & Lip Suck & orbicularis oris \\
29 & Jaw Thrust & \\
30 & Jaw Sideways & \\
31 & Jaw Clencher & masseter \\
32 & [Lip] Bite & \\
33 & [Cheek] Blow & \\
34 & [Cheek] Puff & \\
35 & [Cheek] Suck & \\
36 & [Tongue] Bulge & \\
37 & Lip Wipe & \\
38 & Nostril Dilator & nasalis (pars alaris) \\
39 & Nostril Compressor & nasalis (pars transversa) and depressor septi nasi \\
41 & Glabella Lowerer & Separate Strand of AU 4: depressor glabellae (aka procerus) \\
42 & Inner Eyebrow Lowerer & Separate Strand of AU 4: depressor supercilii \\
43 & Eyes Closed & Relaxation of levator palpebrae superioris \\
44 & Eyebrow Gatherer & Separate Strand of AU 4: corrugator supercilli \\
45 & Blink & Relaxation of levator palpebrae superioris; contraction of orbicularis oculi (pars palpebralis) \\
46 & Wink & orbicularis oculi \\
\bottomrule
\end{longtable}
我只是想确保“肌肉基础”列中的文本不会超出我的页边距。“肌肉基础”列下的每一行文本可以有多行,但在同一行中。
答案1
\newcolumntype
这可以通过使用命令为最后一列定义列说明符并使用一个列宽参数来实现,如下所示。
\newcolumntype{C}[1]{>{\raggedright \arraybackslash\hspace{0pt}}m{#1}}
表示m{#1}
段落列的文本垂直对齐在中间(需要array
包)
C{7cm}
人们可以通过例如防止碰到页边距来决定最后一列的宽度。
代码
\documentclass{article}
%\usepackage[margin=1cm]{geometry}
\usepackage{longtable,array}
\usepackage{booktabs}
\begin{document}
\newcolumntype{C}[1]{>{\raggedright \arraybackslash\hspace{0pt}}m{#1}}
\begin{longtable}{@{}llC{7cm}@{}}
\toprule
\textbf{AU Number} & \textbf{FACS Name} & \textbf{Muscular Basis}\\
\midrule
0 & face & \\
1 & Inner Brow Raiser & frontalis (pars medialis) \\
2 & Outer Brow Raiser & frontalis (pars lateralis) \\
4 & Brow Lowerer & depressor glabellae, depressor supercilii, corrugator supercilii \\
5 & Upper Lid Raiser & levator palpebrae superioris, superior tarsal muscle \\
6 & Cheek Raiser & orbicularis oculi (pars orbitalis) \\
7 & Lid Tightener & orbicularis oculi (pars palpebralis) \\
8 & Lips Toward Each Other & orbicularis oris \\
9 & Nose Wrinkler & levator labii superioris alaeque nasi \\
10 & Upper Lip Raiser & levator labii superioris, caput infraorbitalis \\
11 & Nasolabial Deepener & zygomaticus minor \\
12 & Lip Corner Puller & zygomaticus major \\
13 & Sharp Lip Puller & levator anguli oris (also known as caninus) \\
14 & Dimpler & buccinator \\
15 & Lip Corner Depressor & depressor anguli oris (also known as triangularis) \\
16 & Lower Lip Depressor & depressor labii inferioris \\
17 & Chin Raiser & mentalis \\
18 & Lip Pucker & incisivii labii superioris and incisivii labii inferioris \\
19 & Tongue Show & \\
20 & Lip Stretcher & risorius w/ platysma \\
21 & Neck Tightener & platysma \\
22 & Lip Funneler & orbicularis oris \\
23 & Lip Tightener & orbicularis oris \\
24 & Lip Pressor & orbicularis oris \\
25 & Lips Part & depressor labii inferioris, or relaxation of mentalis or orbicularis oris \\
26 & Jaw Drop & masseter; relaxed temporalis and internal pterygoid \\
27 & Mouth Stretch & pterygoids, digastric \\
28 & Lip Suck & orbicularis oris \\
29 & Jaw Thrust & \\
30 & Jaw Sideways & \\
31 & Jaw Clencher & masseter \\
32 & [Lip] Bite & \\
33 & [Cheek] Blow & \\
34 & [Cheek] Puff & \\
35 & [Cheek] Suck & \\
36 & [Tongue] Bulge & \\
37 & Lip Wipe & \\
38 & Nostril Dilator & nasalis (pars alaris) \\
39 & Nostril Compressor & nasalis (pars transversa) and depressor septi nasi \\
41 & Glabella Lowerer & Separate Strand of AU 4: depressor glabellae (aka procerus) \\
42 & Inner Eyebrow Lowerer & Separate Strand of AU 4: depressor supercilii \\
43 & Eyes Closed & Relaxation of levator palpebrae superioris \\
44 & Eyebrow Gatherer & Separate Strand of AU 4: corrugator supercilli \\
45 & Blink & Relaxation of levator palpebrae superioris; contraction of orbicularis oculi (pars palpebralis) \\
46 & Wink & orbicularis oculi \\
\bottomrule
\end{longtable}
\end{document}