ソースを参照

\MRTtabRepeatColumns as documented macro

master
コミット
4936df8021
3個のファイルの変更12行の追加2行の削除
  1. バイナリ
      Doc/doc_MRTbundle.pdf
  2. 10
    0
      Doc/tex/doc_MRTtab.tex
  3. 2
    2
      MRTtab/MRTtab.sty

バイナリ
Doc/doc_MRTbundle.pdf ファイルの表示


+ 10
- 0
Doc/tex/doc_MRTtab.tex ファイルの表示

@@ -286,6 +286,16 @@ provided:
286 286
   vertical skip which reveals the lines (issuing
287 287
   \verb|\noalign{\vskip\arrayrulewidth}|).  It is also used by \cs{MRTcline}.
288 288
 \end{describemacro}
289
+
290
+\begin{describemacro}{MRTtabRepeatCols}
291
+  This macro is to be used in column definitions of \env{tabular}s or
292
+  \env{array}s and other macros and environments using these internally (e.g.
293
+  \env{MRTtabular} and \env{MRTtable}). The effect is that the column
294
+  definitions which follow this macro are repeated indefinitely to match the
295
+  required columns for the tables body. E.g., \bverb|l \MRTtabRepeatCols c| does
296
+  set the first column left aligned and every following column centred. It has
297
+  to be preceded by at least one valid column definition.
298
+\end{describemacro}
289 299
 %<<<
290 300
 
291 301
 \section{Options}\label{sec:tab:options}%>>>

+ 2
- 2
MRTtab/MRTtab.sty ファイルの表示

@@ -27,7 +27,7 @@
27 27
 
28 28
 %% package variables >>>
29 29
 %%=============================================================================
30
-\newcolumntype{?}{!{\d@llarend&\span\@gobbletwo}}
30
+\newcolumntype{\MRTtabRepeatCols}{!{\d@llarend&\span\@gobbletwo}}
31 31
 \definecolor{tablegray}{gray}{0.85}
32 32
 \tl_new:N  \l_MRTtab_tmpa_tl
33 33
 \int_new:N \l_MRTtab_tmpa_int
@@ -141,7 +141,7 @@
141 141
     ,caption         .tl_set:N           = \l_MRTtab_table_cap_tl
142 142
     ,cap             .meta:n             = { caption = { #1 } }
143 143
     ,columns         .tl_set:N           = \l_MRTtab_table_col_tl
144
-    ,columns         .initial:n          = { l?c }
144
+    ,columns         .initial:n          = { l\MRTtabRepeatCols c }
145 145
     ,col             .meta:n             = { columns = { #1 } }
146 146
     ,env~begin       .tl_set:N           = \l__MRTtab_env_begin_tl
147 147
     ,env~end         .tl_set:N           = \l__MRTtab_env_end_tl

読み込み中…
キャンセル
保存