Style longtable equal to tabular
This commit is contained in:
parent
ca8d435ed9
commit
6bbd32adfe
2 changed files with 16 additions and 7 deletions
|
@ -8,15 +8,15 @@
|
||||||
(TeX-add-to-alist 'LaTeX-provided-package-options
|
(TeX-add-to-alist 'LaTeX-provided-package-options
|
||||||
'(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "autooneside=false") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("biblatex" "") ("float" "") ("xcolor" "table") ("xltabular" "") ("longtable" "") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("array" "") ("listings" "") ("csvsimple" "") ("hyperref" "")))
|
'(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "autooneside=false") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("biblatex" "") ("float" "") ("xcolor" "table") ("xltabular" "") ("longtable" "") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("array" "") ("listings" "") ("csvsimple" "") ("hyperref" "")))
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "lstlisting")
|
(add-to-list 'LaTeX-verbatim-environments-local "lstlisting")
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline")
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
|
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
|
||||||
|
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline")
|
||||||
(TeX-run-style-hooks
|
(TeX-run-style-hooks
|
||||||
"fontspec"
|
"fontspec"
|
||||||
"geometry"
|
"geometry"
|
||||||
|
@ -48,6 +48,7 @@
|
||||||
(TeX-add-symbols
|
(TeX-add-symbols
|
||||||
'("TitlePage" 1))
|
'("TitlePage" 1))
|
||||||
(LaTeX-add-environments
|
(LaTeX-add-environments
|
||||||
|
"oldlongtable"
|
||||||
"oldtabular")
|
"oldtabular")
|
||||||
(LaTeX-add-xcolor-definecolors
|
(LaTeX-add-xcolor-definecolors
|
||||||
"darkgray"
|
"darkgray"
|
||||||
|
|
|
@ -211,6 +211,14 @@
|
||||||
\let\endoldtabular\endtabular
|
\let\endoldtabular\endtabular
|
||||||
\renewenvironment{tabular}{\rowcolors{2}{sepia}{codeblue}\oldtabular}{\endoldtabular}
|
\renewenvironment{tabular}{\rowcolors{2}{sepia}{codeblue}\oldtabular}{\endoldtabular}
|
||||||
|
|
||||||
|
\let\oldlongtable\longtable
|
||||||
|
\let\endoldlongtable\endlongtable
|
||||||
|
\renewenvironment{longtable}{\rowcolors{2}{sepia}{codeblue}\oldlongtable}{\endoldlongtable}
|
||||||
|
|
||||||
|
% \setlength{\LTcapwidth}{\textwidth}
|
||||||
|
% \setlength{\LTleft}{0pt}
|
||||||
|
% \setlength{\LTright}{0pt}
|
||||||
|
|
||||||
% Set consistent spacing for all list types
|
% Set consistent spacing for all list types
|
||||||
% \setlist{nosep} % Removes vertical spacing
|
% \setlist{nosep} % Removes vertical spacing
|
||||||
\setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape}
|
\setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape}
|
||||||
|
|
Loading…
Add table
Reference in a new issue