[PATCH 10/10] styleguide: Tweak layout of 'Limitation' table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From cdfca8b81a7d4ee194272359d1775c0c343e0fbe Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Fri, 28 Jul 2017 16:46:48 +0900
Subject: [PATCH 10/10] styleguide: Tweak layout of 'Limitation' table

Move caption to top, and use nice ruled lines of "booktabs".

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 appendix/styleguide/styleguide.tex | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/appendix/styleguide/styleguide.tex b/appendix/styleguide/styleguide.tex
index 17a74d7..3e5746b 100644
--- a/appendix/styleguide/styleguide.tex
+++ b/appendix/styleguide/styleguide.tex
@@ -389,15 +389,20 @@ Table~\ref{tab:app:styleguide:Limitation of Monospace Macro}
 lists such limitations.
 
 \begin{table}[tbh]
-\centering\footnotesize
-\begin{tabular}{lll}
+  \renewcommand*{\arraystretch}{1.2}
+  \begin{floatrow}[1]
+    \ttabbox[\columnwidth]{
+\footnotesize
+\begin{tabular}{@{}lll@{}}\toprule
   Macro &  Need Escape & Should Avoid \\
-  \hline
+  \midrule
   \co{\\co}, \co{\\nbco} & \co{\\}, \%, \{, \} & \\
   \co{\\tco}  & \# & \%, \{, \}, \co{\\} \\
+\bottomrule
 \end{tabular}
-\caption{Limitation of Monospace Macro}
-\label{tab:app:styleguide:Limitation of Monospace Macro}
+}{\caption{Limitation of Monospace Macro}
+    \label{tab:app:styleguide:Limitation of Monospace Macro}}
+  \end{floatrow}
 \end{table}
 
 While \verb|\co{}| requires some characters to be escaped,
-- 
2.7.4


--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux