From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Booktabs in new LaTeX exporter Date: Fri, 28 Dec 2012 07:27:57 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TodjX-0004xC-Mw for Emacs-orgmode@gnu.org; Fri, 28 Dec 2012 12:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TodjR-00043Y-6i for Emacs-orgmode@gnu.org; Fri, 28 Dec 2012 12:28:35 -0500 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:36066) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TodjQ-00043M-M8 for Emacs-orgmode@gnu.org; Fri, 28 Dec 2012 12:28:29 -0500 In-Reply-To: (RCY's message of "Fri, 28 Dec 2012 05:50:34 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: RCY Cc: Emacs-orgmode@gnu.org Aloha RCY, Here is a (too long) working example that shows how to pass attributes. See especially :align, where you've passed a symbol instead of a string. Note that the new exporter is still in contrib and that at this stage in its life is documented in the code and in some messages and announcements that Nicolas Goaziou sent to the mailing list. It is still necessary to refer to these scattered sources to learn about the new exporter. #+caption: ^{14}C age determinations from coastal habitation activities #+attr_latex: :environment "tabularx" :width "\\textwidth" :booktabs t :ali= gn "YlYYcrY" :font "\\footnotesize" :placement "[htb!]" #+name: tab:dates-coastal-habitation-activities | *Event* | *Lab* | *Site* | *Material* = | *Age* | *Label* | *Reference* | |---------------------+----------+-------------------+---------------------= -----------+----------+---------+-------------| | Habitation activity | \beta-142515 | 50--10--04--22265 | /Chenopodium oah= uense/ | 210 \pm 40 | \theta_{57} | [[textcite:dye03:_revis_arc= haeol_inven_survey_kaihol][;;ref]] | | Habitation activity | \beta-142517 | 50--10--04--22204 | /Lagenaria sicer= aria/ | 140 \pm 40 | \theta_58 | [[textcite:dye03:_revis_archa= eol_inven_survey_kaihol][;;ref]] | | Habitation activity | \beta-256583 | PHH-13 | /Aleurites moluc= cana/ nutshell | 440 \pm 40 | \theta_{59} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-243704 | MKI-25 | /Osteomeles anth= yllidifolia/ | 240 \pm 40 | \theta_{60} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240446 | MKI-1A | /Aleurites moluc= cana/ nutshell | 230 \pm 40 | \theta_{61} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240674 | MKI-2C | /Aleurites moluc= cana/ nutshell | 220 \pm 40 | \theta_{62} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240448 | MKI-56 | /Aleurites moluc= cana/ nutshell | 190 \pm 40 | \theta_{63} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240447 | MKI-23A | /Aleurites moluc= cana/ nutshell | 180 \pm 40 | \theta_{64} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240675 | MKI-11A | /Aleurites moluc= cana/ nutshell | 150 \pm 40 | \theta_65 | [[textcite:field11:_resid_chr= on_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-276160 | MKI-69 | /Caesalpinia/ cf= . /bonduc/ | 90 \pm 40 | \theta_66 | [[textcite:field11:_resid_chr= on_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-240449 | MKI-56 | /Aleurites moluc= cana/ nutshell | 40 \pm 40 | \theta_67 | [[textcite:field11:_resid_chr= on_househ_subsis_emerg][612;;ref]] | | Habitation activity | \beta-276158 | KAL-46 | /Caesalpina/ cf.= /bonduc/ | 160 \pm 40 | \theta_{68} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][613;;ref]] | | Habitation activity | \beta-256576 | MKE-105 | /Chamaesyce/ cf.= /multiformis/ | 360 \pm 40 | \theta_{69} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][613;;ref]] | | Habitation activity | \beta-256573 | MKE-104 | /Chamaesyce/ cf.= /multiformis/ | 250 \pm 40 | \theta_{70} | [[textcite:field11:_resid_c= hron_househ_subsis_emerg][614;;ref]] | hth, Tom RCY writes: > Hi, > Thanks for looking into this. I tried your suggestions but I am still > having the problem. It seems that some but not all attributes I set are > recognized. So in the example below it sets sideways table but ignores the > booktabs and positioning attributes. > > #+LATEX_CLASS: article > #+LATEX_HEADER: \usepackage{booktabs} > ----org-file----- > * Test > #+CAPTION: Test table > #+attr_latex: :booktabs t :align |r|l| :float sidewaystable > |----+----| > | 1 | 2 | > |----+----| > | A1 | A2 | > | B1 | B2 | > | C1 | C2 | > |----+----| > > -----latex buffer----- > : > \begin{sidewaystable}[htb] > \caption{Test table} > \begin{center} > \begin{tabular}{ll} > \hline > 1 & 2 \\ > \hline > A1 & A2 \\ > B1 & B2 \\ > C1 & C2 \\ > \hline > \end{tabular} > \end{center} > \end{sidewaystable} > ------------------------- > > On Thu, Dec 27, 2012 at 8:42 PM, Thomas S. Dye wrote: > >> Hmm, >> >> It works like a charm here. >> >> I add booktabs like this: >> >> (add-to-list 'org-export-latex-packages-alist '("" "booktabs")) >> >> Also, I noticed you have \[PACKAGES]. I don't escape the opening brace: >> >> (add-to-list 'org-e-latex-classes >> '("koma-article" >> "\\documentclass{scrartcl} >> [NO-DEFAULT-PACKAGES] >> [PACKAGES] >> [EXTRA] >> \\let\\itemize\\compactitem >> \\let\\description\\compactdesc >> \\let\\enumerate\\compactenum >> \\bibliography{local} >> \\newcommand{\\rc}{\\textsuperscript{14}C} >> \\newcolumntype{Y}{>{\\RaggedRight\\arraybackslash}X}" >> ("\\section{%s}" . "\\section*{%s}") >> ("\\subsection{%s}" . "\\subsection*{%s}") >> ("\\subsubsection{%s}" . "\\subsubsection*{%s}") >> ("\\paragraph{%s}" . "\\paragraph*{%s}") >> ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) >> >> hth, >> Tom >> >> RCY writes: >> >> > Hi, >> > I had tried t but then removed it when it did not work and the >> > documentation seemed to indicate that :booktabs was a toggle. >> > I tried your suggestion to add (setq org-e-latex-tables-booktabs t) to >> the >> > .emacs file but I am still getiing \hline. I did make sure to get the >> > latest version from git and I am running emacs 24.3.50.1. >> > >> > Thanks. >> > >> > >> > On Thu, Dec 27, 2012 at 7:17 PM, Thomas S. Dye wrote: >> > >> >> Aloha RCY, >> >> >> >> You can have this in your setup to enable booktabs globally: >> >> >> >> (setq org-e-latex-tables-booktabs t) >> >> >> >> Or, you can give a table this attribute: >> >> >> >> #+attr_latex: :booktabs t >> >> >> >> I think your example should work if you add the t after :booktabs. >> >> >> >> hth, >> >> Tom >> >> >> >> RCY writes: >> >> >> >> > I am trying to use the booktabs package for tables in the new >> exporter, >> >> > however I am unable to get \toprule, etc instead of \hrule >> >> > I would appreciate any suggestions to fix this. >> >> > >> >> > As a minimal example, I started emacs -q, and evaluated the followi= ng: >> >> > >> >> > (setq org-install-dir "~/.emacs.d/src/org-mode") >> >> > (add-to-list 'load-path (concat org-install-dir "/contrib/lisp")) >> >> > (add-to-list 'load-path (concat org-install-dir "/lisp")) >> >> > (require 'org-e-latex) >> >> > >> >> > (add-to-list 'org-e-latex-classes >> >> > '("article" >> >> > "\\documentclass[11pt]{article} >> >> > \[DEFAULT-PACKAGES] >> >> > \[PACKAGES] >> >> > \[EXTRA]" >> >> > ("\\section{%s}" . "\\section*{%s}") >> >> > ("\\subsection{%s}" . "\\subsection*{%s}") >> >> > ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) >> >> > >> >> > -----org.file----------- >> >> > #+LATEX_CLASS: article >> >> > #+LATEX_HEADER: \usepackage{booktabs} >> >> > * Test >> >> > #+ATTR_LATEX: :booktabs >> >> > #+CAPTION: Test table >> >> > |----+----| >> >> > | 1 | 2 | >> >> > |----+----| >> >> > | A1 | A2 | >> >> > | B1 | B2 | >> >> > | C1 | C2 | >> >> > |----+----| >> >> > >> >> > ------latex-buffer from org-export-latex-as-buffer------- >> >> > % Created 2012-12-27 Thu 18:44 >> >> > \documentclass[11pt]{article} >> >> > \usepackage[utf8]{inputenc} >> >> > \usepackage[T1]{fontenc} >> >> > \usepackage{fixltx2e} >> >> > \usepackage{graphicx} >> >> > \usepackage{longtable} >> >> > \usepackage{float} >> >> > \usepackage{wrapfig} >> >> > \usepackage{soul} >> >> > \usepackage{textcomp} >> >> > \usepackage{marvosym} >> >> > \usepackage{wasysym} >> >> > \usepackage{latexsym} >> >> > \usepackage{amssymb} >> >> > \usepackage{hyperref} >> >> > \tolerance=3D1000 >> >> > \usepackage{booktabs} >> >> > \providecommand{\alert}[1]{\textbf{#1}} >> >> > >> >> > \title{tst} >> >> > \author{RC} >> >> > \date{\today} >> >> > \hypersetup{ >> >> > pdfkeywords=3D{}, >> >> > pdfsubject=3D{}, >> >> > pdfcreator=3D{Emacs Org-mode version 7.9.2+}} >> >> > >> >> > \begin{document} >> >> > >> >> > \maketitle >> >> > >> >> > \setcounter{tocdepth}{3} >> >> > \tableofcontents >> >> > \vspace*{1cm} >> >> > \section{Test} >> >> > \label{sec-1} >> >> > >> >> > \begin{table}[htb] >> >> > \caption{Test table} >> >> > \begin{center} >> >> > \begin{tabular}{ll} >> >> > \hline >> >> > 1 & 2 \\ >> >> > \hline >> >> > A1 & A2 \\ >> >> > B1 & B2 \\ >> >> > C1 & C2 \\ >> >> > \hline >> >> > \end{tabular} >> >> > \end{center} >> >> > \end{table} >> >> > >> >> > \end{document} >> >> > I am trying to use the booktabs package for tables in the new >> >> > exporter, however I am unable to get \toprule, etc instead of \hrule >> >> > >> >> > I would appreciate any suggestions to fix this. >> >> > >> >> > As a minimal example, I started emacs -q, and evaluated the followi= ng: >> >> > >> >> > (setq org-install-dir "~/.emacs.d/src/org-mode") >> >> > (add-to-list 'load-path (concat org-install-dir "/contrib/lisp")) >> >> > (add-to-list 'load-path (concat org-install-dir "/lisp")) >> >> > (require 'org-e-latex) >> >> > >> >> > (add-to-list 'org-e-latex-classes >> >> > '("article" >> >> > "\\documentclass[11pt]{article} >> >> > \[DEFAULT-PACKAGES] >> >> > \[PACKAGES] >> >> > \[EXTRA]" >> >> > ("\\section{%s}" . "\\section*{%s}") >> >> > ("\\subsection{%s}" . "\\subsection*{%s}") >> >> > ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) >> >> > >> >> > -----org.file----------- >> >> > #+LATEX_CLASS: article >> >> > #+LATEX_HEADER: \usepackage{booktabs} >> >> > * Test >> >> > #+ATTR_LATEX: :booktabs >> >> > #+CAPTION: Test table >> >> > |----+----| >> >> > | 1 | 2 | >> >> > |----+----| >> >> > | A1 | A2 | >> >> > | B1 | B2 | >> >> > | C1 | C2 | >> >> > |----+----| >> >> > >> >> > ------latex-buffer from org-export-latex-as-buffer------- >> >> > % Created 2012-12-27 Thu 18:44 >> >> > \documentclass[11pt]{article} >> >> > \usepackage[utf8]{inputenc} >> >> > \usepackage[T1]{fontenc} >> >> > \usepackage{fixltx2e} >> >> > \usepackage{graphicx} >> >> > \usepackage{longtable} >> >> > \usepackage{float} >> >> > \usepackage{wrapfig} >> >> > \usepackage{soul} >> >> > \usepackage{textcomp} >> >> > \usepackage{marvosym} >> >> > \usepackage{wasysym} >> >> > \usepackage{latexsym} >> >> > \usepackage{amssymb} >> >> > \usepackage{hyperref} >> >> > \tolerance=3D1000 >> >> > \usepackage{booktabs} >> >> > \providecommand{\alert}[1]{\textbf{#1}} >> >> > >> >> > \title{tst} >> >> > \author{RC} >> >> > \date{\today} >> >> > \hypersetup{ >> >> > pdfkeywords=3D{}, >> >> > pdfsubject=3D{}, >> >> > pdfcreator=3D{Emacs Org-mode version 7.9.2+}} >> >> > >> >> > \begin{document} >> >> > >> >> > \maketitle >> >> > >> >> > \setcounter{tocdepth}{3} >> >> > \tableofcontents >> >> > \vspace*{1cm} >> >> > \section{Test} >> >> > \label{sec-1} >> >> > >> >> > \begin{table}[htb] >> >> > \caption{Test table} >> >> > \begin{center} >> >> > \begin{tabular}{ll} >> >> > \hline >> >> > 1 & 2 \\ >> >> > \hline >> >> > A1 & A2 \\ >> >> > B1 & B2 \\ >> >> > C1 & C2 \\ >> >> > \hline >> >> > \end{tabular} >> >> > \end{center} >> >> > \end{table} >> >> > >> >> > \end{document} >> >> > >> >> >> >> -- >> >> Thomas S. Dye >> >> http://www.tsdye.com >> >> >> > Hi, >> > >> > I had tried t but then removed it when it did not work and the >> > documentation seemed to indicate that :booktabs was a toggle. >> > I tried your suggestion to add (setq org-e-latex-tables-booktabs t) >> > to the .emacs file but I am still getiing \hline. I did make sure to >> > get the latest version from git and I am running emacs 24.3.50.1. >> > >> > Thanks. >> > >> > >> > On Thu, Dec 27, 2012 at 7:17 PM, Thomas S. Dye wrote: >> > >> > Aloha RCY, >> > >> > You can have this in your setup to enable booktabs globally: >> > >> > (setq org-e-latex-tables-booktabs t) >> > >> > Or, you can give a table this attribute: >> > >> > #+attr_latex: :booktabs t >> > >> > I think your example should work if you add the t after :booktabs. >> > >> > hth, >> > Tom >> > >> > >> > >> > RCY writes: >> > >> > > I am trying to use the booktabs package for tables in the new >> > exporter, >> > > however I am unable to get \toprule, etc instead of \hrule >> > > I would appreciate any suggestions to fix this. >> > > >> > > As a minimal example, I started emacs -q, and evaluated the >> > following: >> > > >> > > (setq org-install-dir "~/.emacs.d/src/org-mode") >> > > (add-to-list 'load-path (concat org-install-dir >> > "/contrib/lisp")) >> > > (add-to-list 'load-path (concat org-install-dir "/lisp")) >> > > (require 'org-e-latex) >> > > >> > > (add-to-list 'org-e-latex-classes >> > > '("article" >> > > "\\documentclass[11pt]{article} >> > > \[DEFAULT-PACKAGES] >> > > \[PACKAGES] >> > > \[EXTRA]" >> > > ("\\section{%s}" . "\\section*{%s}") >> > > ("\\subsection{%s}" . "\\subsection*{%s}") >> > > ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) >> > > >> > > -----org.file----------- >> > > #+LATEX_CLASS: article >> > > #+LATEX_HEADER: \usepackage{booktabs} >> > > * Test >> > > #+ATTR_LATEX: :booktabs >> > > #+CAPTION: Test table >> > > |----+----| >> > > | 1 | 2 | >> > > |----+----| >> > > | A1 | A2 | >> > > | B1 | B2 | >> > > | C1 | C2 | >> > > |----+----| >> > > >> > > ------latex-buffer from org-export-latex-as-buffer------- >> > > % Created 2012-12-27 Thu 18:44 >> > > \documentclass[11pt]{article} >> > > \usepackage[utf8]{inputenc} >> > > \usepackage[T1]{fontenc} >> > > \usepackage{fixltx2e} >> > > \usepackage{graphicx} >> > > \usepackage{longtable} >> > > \usepackage{float} >> > > \usepackage{wrapfig} >> > > \usepackage{soul} >> > > \usepackage{textcomp} >> > > \usepackage{marvosym} >> > > \usepackage{wasysym} >> > > \usepackage{latexsym} >> > > \usepackage{amssymb} >> > > \usepackage{hyperref} >> > > \tolerance=3D1000 >> > > \usepackage{booktabs} >> > > \providecommand{\alert}[1]{\textbf{#1}} >> > > >> > > \title{tst} >> > > \author{RC} >> > > \date{\today} >> > > \hypersetup{ >> > > pdfkeywords=3D{}, >> > > pdfsubject=3D{}, >> > > pdfcreator=3D{Emacs Org-mode version 7.9.2+}} >> > > >> > > \begin{document} >> > > >> > > \maketitle >> > > >> > > \setcounter{tocdepth}{3} >> > > \tableofcontents >> > > \vspace*{1cm} >> > > \section{Test} >> > > \label{sec-1} >> > > >> > > \begin{table}[htb] >> > > \caption{Test table} >> > > \begin{center} >> > > \begin{tabular}{ll} >> > > \hline >> > > 1 & 2 \\ >> > > \hline >> > > A1 & A2 \\ >> > > B1 & B2 \\ >> > > C1 & C2 \\ >> > > \hline >> > > \end{tabular} >> > > \end{center} >> > > \end{table} >> > > >> > > \end{document} >> > > I am trying to use the booktabs package for tables in the new >> > > exporter, however I am unable to get \toprule, etc instead of >> > \hrule >> > > >> > > I would appreciate any suggestions to fix this. >> > > >> > > As a minimal example, I started emacs -q, and evaluated the >> > following: >> > > >> > > (setq org-install-dir "~/.emacs.d/src/org-mode") >> > > (add-to-list 'load-path (concat org-install-dir >> > "/contrib/lisp")) >> > > (add-to-list 'load-path (concat org-install-dir "/lisp")) >> > > (require 'org-e-latex) >> > > >> > > (add-to-list 'org-e-latex-classes >> > > '("article" >> > > "\\documentclass[11pt]{article} >> > > \[DEFAULT-PACKAGES] >> > > \[PACKAGES] >> > > \[EXTRA]" >> > > ("\\section{%s}" . "\\section*{%s}") >> > > ("\\subsection{%s}" . "\\subsection*{%s}") >> > > ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) >> > > >> > > -----org.file----------- >> > > #+LATEX_CLASS: article >> > > #+LATEX_HEADER: \usepackage{booktabs} >> > > * Test >> > > #+ATTR_LATEX: :booktabs >> > > #+CAPTION: Test table >> > > |----+----| >> > > | 1 | 2 | >> > > |----+----| >> > > | A1 | A2 | >> > > | B1 | B2 | >> > > | C1 | C2 | >> > > |----+----| >> > > >> > > ------latex-buffer from org-export-latex-as-buffer------- >> > > % Created 2012-12-27 Thu 18:44 >> > > \documentclass[11pt]{article} >> > > \usepackage[utf8]{inputenc} >> > > \usepackage[T1]{fontenc} >> > > \usepackage{fixltx2e} >> > > \usepackage{graphicx} >> > > \usepackage{longtable} >> > > \usepackage{float} >> > > \usepackage{wrapfig} >> > > \usepackage{soul} >> > > \usepackage{textcomp} >> > > \usepackage{marvosym} >> > > \usepackage{wasysym} >> > > \usepackage{latexsym} >> > > \usepackage{amssymb} >> > > \usepackage{hyperref} >> > > \tolerance=3D1000 >> > > \usepackage{booktabs} >> > > \providecommand{\alert}[1]{\textbf{#1}} >> > > >> > > \title{tst} >> > > \author{RC} >> > > \date{\today} >> > > \hypersetup{ >> > > pdfkeywords=3D{}, >> > > pdfsubject=3D{}, >> > > pdfcreator=3D{Emacs Org-mode version 7.9.2+}} >> > > >> > > \begin{document} >> > > >> > > \maketitle >> > > >> > > \setcounter{tocdepth}{3} >> > > \tableofcontents >> > > \vspace*{1cm} >> > > \section{Test} >> > > \label{sec-1} >> > > >> > > \begin{table}[htb] >> > > \caption{Test table} >> > > \begin{center} >> > > \begin{tabular}{ll} >> > > \hline >> > > 1 & 2 \\ >> > > \hline >> > > A1 & A2 \\ >> > > B1 & B2 \\ >> > > C1 & C2 \\ >> > > \hline >> > > \end{tabular} >> > > \end{center} >> > > \end{table} >> > > >> > > \end{document} >> > > >> > >> > >> > -- >> > Thomas S. Dye >> > http://www.tsdye.com >> > >> > >> >> -- >> Thomas S. Dye >> http://www.tsdye.com >> > Hi, > > =C2=A0Thanks for looking into this. I tried your suggestions but I am sti= ll > having the problem. It seems that some but not all attributes I set > are recognized. So in the example below it sets sideways table but > ignores the booktabs and positioning attributes. > > #+LATEX_CLASS: article > #+LATEX_HEADER: \usepackage{booktabs} > ----org-file----- > * Test > #+CAPTION: Test table > #+attr_latex: :booktabs t :align |r|l| :float sidewaystable > =C2=A0|----+----| > =C2=A0| 1 =C2=A0| 2 =C2=A0| > =C2=A0|----+----| > =C2=A0| A1 | A2 | > =C2=A0| B1 | B2 | > =C2=A0| C1 | C2 | > =C2=A0|----+----| > > -----latex buffer----- > : > \begin{sidewaystable}[htb] > \caption{Test table}=C2=A0 > \begin{center} > \begin{tabular}{ll} > \hline > =C2=A01 =C2=A0 & =C2=A02 =C2=A0 \\ > \hline > =C2=A0A1 =C2=A0& =C2=A0A2 =C2=A0\\ > =C2=A0B1 =C2=A0& =C2=A0B2 =C2=A0\\ > =C2=A0C1 =C2=A0& =C2=A0C2 =C2=A0\\ > \hline > \end{tabular} > \end{center} > \end{sidewaystable} > ------------------------- > > On Thu, Dec 27, 2012 at 8:42 PM, Thomas S. Dye wrote: > > Hmm, >=20=20=20=20=20 > It works like a charm here. >=20=20=20=20=20 > I add booktabs like this: >=20=20=20=20=20 > =C2=A0 (add-to-list 'org-export-latex-packages-alist '("" "booktabs")) >=20=20=20=20=20 > Also, I noticed you have \[PACKAGES]. =C2=A0I don't escape the opening > brace: >=20=20=20=20=20 > =C2=A0 (add-to-list 'org-e-latex-classes > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("koma-articl= e" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\\docu= mentclass{scrartcl} > =C2=A0 =C2=A0 =C2=A0 [NO-DEFAULT-PACKAGES] > =C2=A0 =C2=A0 =C2=A0 [PACKAGES] > =C2=A0 =C2=A0 =C2=A0 [EXTRA] > =C2=A0 =C2=A0 =C2=A0 \\let\\itemize\\compactitem > =C2=A0 =C2=A0 =C2=A0 \\let\\description\\compactdesc > =C2=A0 =C2=A0 =C2=A0 \\let\\enumerate\\compactenum > =C2=A0 =C2=A0 =C2=A0 \\bibliography{local} > =C2=A0 =C2=A0 =C2=A0 \\newcommand{\\rc}{\\textsuperscript{14}C} > =C2=A0 =C2=A0 =C2=A0 \\newcolumntype{Y}{>{\\RaggedRight\\arraybacksla= sh}X}" >=20=20=20=20=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sec= tion{%s}" . "\\section*{%s}") > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sub= section{%s}" . "\\subsection*{%s}") > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sub= subsection{%s}" . "\\subsubsection*{%s}") >=20=20=20=20=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\par= agraph{%s}" . "\\paragraph*{%s}") > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sub= paragraph{%s}" . "\\subparagraph*{%s}"))) >=20=20=20=20=20 >=20=20=20=20=20 >=20=20=20=20=20 > hth, > Tom >=20=20=20=20=20 > RCY writes: >=20=20=20=20=20 > > Hi, > > =C2=A0I had tried t but then removed it when it did not work and the > > documentation seemed to indicate that :booktabs was a toggle. > > I tried your suggestion to add =C2=A0(setq > org-e-latex-tables-booktabs t) to the > > .emacs file but I am still getiing \hline. I did make sure to > get the > > latest version from git and I am running emacs 24.3.50.1. > > > > Thanks. > > > > > > On Thu, Dec 27, 2012 at 7:17 PM, Thomas S. Dye > wrote: > > > >> Aloha RCY, > >> > >> You can have this in your setup to enable booktabs globally: > >> > >> =C2=A0 (setq org-e-latex-tables-booktabs t) > >> > >> Or, you can give a table this attribute: > >> > >> #+attr_latex: :booktabs t > >> > >> I think your example should work if you add the t after > :booktabs. > >> > >> hth, > >> Tom > >> > >> RCY writes: > >> > >> > I am trying to use the booktabs package for tables in the new > exporter, > >> > however I am unable to get \toprule, etc instead of \hrule > >> > I would appreciate any suggestions to fix this. > >> > > >> > As a minimal example, I started emacs -q, and evaluated the > following: > >> > > >> > =C2=A0 =C2=A0(setq org-install-dir "~/.emacs.d/src/org-mode") > >> > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-install-dir > "/contrib/lisp")) > >> > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-install-dir "/l= isp")) > >> > =C2=A0 =C2=A0(require 'org-e-latex) > >> > > >> > =C2=A0 =C2=A0(add-to-list 'org-e-latex-classes > >> > =C2=A0 =C2=A0'("article" > >> > =C2=A0 =C2=A0"\\documentclass[11pt]{article} > >> > =C2=A0 =C2=A0\[DEFAULT-PACKAGES] > >> > =C2=A0 =C2=A0\[PACKAGES] > >> > =C2=A0 =C2=A0\[EXTRA]" > >> > =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}") > >> > =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsection*{%s}") > >> > =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > >> > > >> > -----org.file----------- > >> > #+LATEX_CLASS: article > >> > #+LATEX_HEADER: \usepackage{booktabs} > >> > * Test > >> > #+ATTR_LATEX: :booktabs > >> > #+CAPTION: Test table > >> > =C2=A0|----+----| > >> > =C2=A0| 1 =C2=A0| 2 | > >> > =C2=A0|----+----| > >> > =C2=A0| A1 | A2 | > >> > =C2=A0| B1 | B2 | > >> > =C2=A0| C1 | C2 | > >> > =C2=A0|----+----| > >> > > >> > ------latex-buffer from org-export-latex-as-buffer------- > >> > % Created 2012-12-27 Thu 18:44 > >> > \documentclass[11pt]{article} > >> > \usepackage[utf8]{inputenc} > >> > \usepackage[T1]{fontenc} > >> > \usepackage{fixltx2e} > >> > \usepackage{graphicx} > >> > \usepackage{longtable} > >> > \usepackage{float} > >> > \usepackage{wrapfig} > >> > \usepackage{soul} > >> > \usepackage{textcomp} > >> > \usepackage{marvosym} > >> > \usepackage{wasysym} > >> > \usepackage{latexsym} > >> > \usepackage{amssymb} > >> > \usepackage{hyperref} > >> > \tolerance=3D1000 > >> > \usepackage{booktabs} > >> > \providecommand{\alert}[1]{\textbf{#1}} > >> > > >> > \title{tst} > >> > \author{RC} > >> > \date{\today} > >> > \hypersetup{ > >> > =C2=A0 pdfkeywords=3D{}, > >> > =C2=A0 pdfsubject=3D{}, > >> > =C2=A0 pdfcreator=3D{Emacs Org-mode version 7.9.2+}} > >> > > >> > \begin{document} > >> > > >> > \maketitle > >> > > >> > \setcounter{tocdepth}{3} > >> > \tableofcontents > >> > \vspace*{1cm} > >> > \section{Test} > >> > \label{sec-1} > >> > > >> > \begin{table}[htb] > >> > \caption{Test table} > >> > \begin{center} > >> > \begin{tabular}{ll} > >> > \hline > >> > =C2=A01 =C2=A0 & =C2=A02 =C2=A0 \\ > >> > \hline > >> > =C2=A0A1 =C2=A0& =C2=A0A2 =C2=A0\\ > >> > =C2=A0B1 =C2=A0& =C2=A0B2 =C2=A0\\ > >> > =C2=A0C1 =C2=A0& =C2=A0C2 =C2=A0\\ > >> > \hline > >> > \end{tabular} > >> > \end{center} > >> > \end{table} > >> > > >> > \end{document} > >> > I am trying to use the booktabs package for tables in the new > >> > exporter, however I am unable to get \toprule, etc instead of > \hrule > >> > > >> > I would appreciate any suggestions to fix this. > >> > > >> > As a minimal example, I started emacs -q, and evaluated the > following: > >> > > >> > =C2=A0 =C2=A0(setq org-install-dir "~/.emacs.d/src/org-mode") > >> > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-install-dir > "/contrib/lisp")) > >> > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-install-dir "/l= isp")) > >> > =C2=A0 =C2=A0(require 'org-e-latex) > >> > > >> > =C2=A0 =C2=A0(add-to-list 'org-e-latex-classes > >> > =C2=A0 =C2=A0'("article" > >> > =C2=A0 =C2=A0"\\documentclass[11pt]{article} > >> > =C2=A0 =C2=A0\[DEFAULT-PACKAGES] > >> > =C2=A0 =C2=A0\[PACKAGES] > >> > =C2=A0 =C2=A0\[EXTRA]" > >> > =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}") > >> > =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsection*{%s}") > >> > =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > >> > > >> > -----org.file----------- > >> > #+LATEX_CLASS: article > >> > #+LATEX_HEADER: \usepackage{booktabs} > >> > * Test > >> > #+ATTR_LATEX: :booktabs > >> > #+CAPTION: Test table > >> > =C2=A0|----+----| > >> > =C2=A0| 1 =C2=A0| 2 | > >> > =C2=A0|----+----| > >> > =C2=A0| A1 | A2 | > >> > =C2=A0| B1 | B2 | > >> > =C2=A0| C1 | C2 | > >> > =C2=A0|----+----| > >> > > >> > ------latex-buffer from org-export-latex-as-buffer------- > >> > % Created 2012-12-27 Thu 18:44 > >> > \documentclass[11pt]{article} > >> > \usepackage[utf8]{inputenc} > >> > \usepackage[T1]{fontenc} > >> > \usepackage{fixltx2e} > >> > \usepackage{graphicx} > >> > \usepackage{longtable} > >> > \usepackage{float} > >> > \usepackage{wrapfig} > >> > \usepackage{soul} > >> > \usepackage{textcomp} > >> > \usepackage{marvosym} > >> > \usepackage{wasysym} > >> > \usepackage{latexsym} > >> > \usepackage{amssymb} > >> > \usepackage{hyperref} > >> > \tolerance=3D1000 > >> > \usepackage{booktabs} > >> > \providecommand{\alert}[1]{\textbf{#1}} > >> > > >> > \title{tst} > >> > \author{RC} > >> > \date{\today} > >> > \hypersetup{ > >> > =C2=A0 pdfkeywords=3D{}, > >> > =C2=A0 pdfsubject=3D{}, > >> > =C2=A0 pdfcreator=3D{Emacs Org-mode version 7.9.2+}} > >> > > >> > \begin{document} > >> > > >> > \maketitle > >> > > >> > \setcounter{tocdepth}{3} > >> > \tableofcontents > >> > \vspace*{1cm} > >> > \section{Test} > >> > \label{sec-1} > >> > > >> > \begin{table}[htb] > >> > \caption{Test table} > >> > \begin{center} > >> > \begin{tabular}{ll} > >> > \hline > >> > =C2=A01 =C2=A0 & =C2=A02 =C2=A0 \\ > >> > \hline > >> > =C2=A0A1 =C2=A0& =C2=A0A2 =C2=A0\\ > >> > =C2=A0B1 =C2=A0& =C2=A0B2 =C2=A0\\ > >> > =C2=A0C1 =C2=A0& =C2=A0C2 =C2=A0\\ > >> > \hline > >> > \end{tabular} > >> > \end{center} > >> > \end{table} > >> > > >> > \end{document} > >> > > >> > >> -- > >> Thomas S. Dye > >> http://www.tsdye.com > >> > > Hi, > > > > =C2=A0I had tried t but then removed it when it did not work and the > > documentation seemed to indicate that :booktabs was a toggle.=C2=A0 > > I tried your suggestion to add=C2=A0=C2=A0(setq > org-e-latex-tables-booktabs t) > > to the .emacs file but I am still getiing \hline. I did make > sure to > > get the latest version from git and I am running emacs > 24.3.50.1. > > > > Thanks. > > > > > > On Thu, Dec 27, 2012 at 7:17 PM, Thomas S. Dye > wrote: > > > > =C2=A0 =C2=A0 Aloha RCY, > > > > =C2=A0 =C2=A0 You can have this in your setup to enable booktabs gl= obally: > > > > =C2=A0 =C2=A0 =C2=A0 (setq org-e-latex-tables-booktabs t) > > > > =C2=A0 =C2=A0 Or, you can give a table this attribute: > > > > =C2=A0 =C2=A0 #+attr_latex: :booktabs t > > > > =C2=A0 =C2=A0 I think your example should work if you add the t aft= er > :booktabs. > > > > =C2=A0 =C2=A0 hth, > > =C2=A0 =C2=A0 Tom > > > > > > > > =C2=A0 =C2=A0 RCY writes: > > > > =C2=A0 =C2=A0 > I am trying to use the booktabs package for tables = in the > new > > =C2=A0 =C2=A0 exporter, > > =C2=A0 =C2=A0 > however I am unable to get \toprule, etc instead of= \hrule > > =C2=A0 =C2=A0 > I would appreciate any suggestions to fix this. > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > As a minimal example, I started emacs -q, and evalu= ated > the > > =C2=A0 =C2=A0 following: > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(setq org-install-dir "~/.emacs.d/src/= org-mode") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-in= stall-dir > > =C2=A0 =C2=A0 "/contrib/lisp")) > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-in= stall-dir > "/lisp")) > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(require 'org-e-latex) > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'org-e-latex-classes > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0'("article" > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0"\\documentclass[11pt]{article} > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[DEFAULT-PACKAGES] > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[PACKAGES] > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[EXTRA]" > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsection*{%= s}") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubsect= ion*{%s}"))) > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > -----org.file----------- > > =C2=A0 =C2=A0 > #+LATEX_CLASS: article > > =C2=A0 =C2=A0 > #+LATEX_HEADER: \usepackage{booktabs} > > =C2=A0 =C2=A0 > * Test > > =C2=A0 =C2=A0 > #+ATTR_LATEX: :booktabs > > =C2=A0 =C2=A0 > #+CAPTION: Test table > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > =C2=A0| 1 =C2=A0| 2 | > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > =C2=A0| A1 | A2 | > > =C2=A0 =C2=A0 > =C2=A0| B1 | B2 | > > =C2=A0 =C2=A0 > =C2=A0| C1 | C2 | > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > ------latex-buffer from org-export-latex-as-buffer-= ------ > > =C2=A0 =C2=A0 > % Created 2012-12-27 Thu 18:44 > > =C2=A0 =C2=A0 > \documentclass[11pt]{article} > > =C2=A0 =C2=A0 > \usepackage[utf8]{inputenc} > > =C2=A0 =C2=A0 > \usepackage[T1]{fontenc} > > =C2=A0 =C2=A0 > \usepackage{fixltx2e} > > =C2=A0 =C2=A0 > \usepackage{graphicx} > > =C2=A0 =C2=A0 > \usepackage{longtable} > > =C2=A0 =C2=A0 > \usepackage{float} > > =C2=A0 =C2=A0 > \usepackage{wrapfig} > > =C2=A0 =C2=A0 > \usepackage{soul} > > =C2=A0 =C2=A0 > \usepackage{textcomp} > > =C2=A0 =C2=A0 > \usepackage{marvosym} > > =C2=A0 =C2=A0 > \usepackage{wasysym} > > =C2=A0 =C2=A0 > \usepackage{latexsym} > > =C2=A0 =C2=A0 > \usepackage{amssymb} > > =C2=A0 =C2=A0 > \usepackage{hyperref} > > =C2=A0 =C2=A0 > \tolerance=3D1000 > > =C2=A0 =C2=A0 > \usepackage{booktabs} > > =C2=A0 =C2=A0 > \providecommand{\alert}[1]{\textbf{#1}} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \title{tst} > > =C2=A0 =C2=A0 > \author{RC} > > =C2=A0 =C2=A0 > \date{\today} > > =C2=A0 =C2=A0 > \hypersetup{ > > =C2=A0 =C2=A0 > =C2=A0 pdfkeywords=3D{}, > > =C2=A0 =C2=A0 > =C2=A0 pdfsubject=3D{}, > > =C2=A0 =C2=A0 > =C2=A0 pdfcreator=3D{Emacs Org-mode version 7.9.2+}} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \begin{document} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \maketitle > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \setcounter{tocdepth}{3} > > =C2=A0 =C2=A0 > \tableofcontents > > =C2=A0 =C2=A0 > \vspace*{1cm} > > =C2=A0 =C2=A0 > \section{Test} > > =C2=A0 =C2=A0 > \label{sec-1} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \begin{table}[htb] > > =C2=A0 =C2=A0 > \caption{Test table} > > =C2=A0 =C2=A0 > \begin{center} > > =C2=A0 =C2=A0 > \begin{tabular}{ll} > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > =C2=A01 =C2=A0 & =C2=A02 =C2=A0 \\ > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > =C2=A0A1 =C2=A0& =C2=A0A2 =C2=A0\\ > > =C2=A0 =C2=A0 > =C2=A0B1 =C2=A0& =C2=A0B2 =C2=A0\\ > > =C2=A0 =C2=A0 > =C2=A0C1 =C2=A0& =C2=A0C2 =C2=A0\\ > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > \end{tabular} > > =C2=A0 =C2=A0 > \end{center} > > =C2=A0 =C2=A0 > \end{table} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \end{document} > > =C2=A0 =C2=A0 > I am trying to use the booktabs package for tables = in the > new > > =C2=A0 =C2=A0 > exporter, however I am unable to get \toprule, etc = instead > of > > =C2=A0 =C2=A0 \hrule > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > I would appreciate any suggestions to fix this.=C2= =A0 > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > As a minimal example, I started emacs -q, and evalu= ated > the > > =C2=A0 =C2=A0 following: > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(setq org-install-dir "~/.emacs.d/src/= org-mode") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-in= stall-dir > > =C2=A0 =C2=A0 "/contrib/lisp")) > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'load-path (concat org-in= stall-dir > "/lisp")) > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(require 'org-e-latex) > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0(add-to-list 'org-e-latex-classes > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0'("article" > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0"\\documentclass[11pt]{article} > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[DEFAULT-PACKAGES] > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[PACKAGES] > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0\[EXTRA]" > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsection*{%= s}") > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubsect= ion*{%s}"))) > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > -----org.file----------- > > =C2=A0 =C2=A0 > #+LATEX_CLASS: article > > =C2=A0 =C2=A0 > #+LATEX_HEADER: \usepackage{booktabs} > > =C2=A0 =C2=A0 > * Test > > =C2=A0 =C2=A0 > #+ATTR_LATEX: :booktabs > > =C2=A0 =C2=A0 > #+CAPTION: Test table > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > =C2=A0| 1 =C2=A0| 2 | > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > =C2=A0| A1 | A2 | > > =C2=A0 =C2=A0 > =C2=A0| B1 | B2 | > > =C2=A0 =C2=A0 > =C2=A0| C1 | C2 | > > =C2=A0 =C2=A0 > =C2=A0|----+----| > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > ------latex-buffer from org-export-latex-as-buffer-= ------ > > =C2=A0 =C2=A0 > % Created 2012-12-27 Thu 18:44 > > =C2=A0 =C2=A0 > \documentclass[11pt]{article} > > =C2=A0 =C2=A0 > \usepackage[utf8]{inputenc} > > =C2=A0 =C2=A0 > \usepackage[T1]{fontenc} > > =C2=A0 =C2=A0 > \usepackage{fixltx2e} > > =C2=A0 =C2=A0 > \usepackage{graphicx} > > =C2=A0 =C2=A0 > \usepackage{longtable} > > =C2=A0 =C2=A0 > \usepackage{float} > > =C2=A0 =C2=A0 > \usepackage{wrapfig} > > =C2=A0 =C2=A0 > \usepackage{soul} > > =C2=A0 =C2=A0 > \usepackage{textcomp} > > =C2=A0 =C2=A0 > \usepackage{marvosym} > > =C2=A0 =C2=A0 > \usepackage{wasysym} > > =C2=A0 =C2=A0 > \usepackage{latexsym} > > =C2=A0 =C2=A0 > \usepackage{amssymb} > > =C2=A0 =C2=A0 > \usepackage{hyperref} > > =C2=A0 =C2=A0 > \tolerance=3D1000 > > =C2=A0 =C2=A0 > \usepackage{booktabs} > > =C2=A0 =C2=A0 > \providecommand{\alert}[1]{\textbf{#1}} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \title{tst} > > =C2=A0 =C2=A0 > \author{RC} > > =C2=A0 =C2=A0 > \date{\today} > > =C2=A0 =C2=A0 > \hypersetup{ > > =C2=A0 =C2=A0 > =C2=A0 pdfkeywords=3D{}, > > =C2=A0 =C2=A0 > =C2=A0 pdfsubject=3D{}, > > =C2=A0 =C2=A0 > =C2=A0 pdfcreator=3D{Emacs Org-mode version 7.9.2+}} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \begin{document} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \maketitle > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \setcounter{tocdepth}{3} > > =C2=A0 =C2=A0 > \tableofcontents > > =C2=A0 =C2=A0 > \vspace*{1cm} > > =C2=A0 =C2=A0 > \section{Test} > > =C2=A0 =C2=A0 > \label{sec-1} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \begin{table}[htb] > > =C2=A0 =C2=A0 > \caption{Test table}=C2=A0 > > =C2=A0 =C2=A0 > \begin{center} > > =C2=A0 =C2=A0 > \begin{tabular}{ll} > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > =C2=A01 =C2=A0 & =C2=A02 =C2=A0 \\ > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > =C2=A0A1 =C2=A0& =C2=A0A2 =C2=A0\\ > > =C2=A0 =C2=A0 > =C2=A0B1 =C2=A0& =C2=A0B2 =C2=A0\\ > > =C2=A0 =C2=A0 > =C2=A0C1 =C2=A0& =C2=A0C2 =C2=A0\\ > > =C2=A0 =C2=A0 > \hline > > =C2=A0 =C2=A0 > \end{tabular} > > =C2=A0 =C2=A0 > \end{center} > > =C2=A0 =C2=A0 > \end{table} > > =C2=A0 =C2=A0 > > > =C2=A0 =C2=A0 > \end{document} > > =C2=A0 =C2=A0 > > > > > > > =C2=A0 =C2=A0 -- > > =C2=A0 =C2=A0 Thomas S. Dye > > =C2=A0 =C2=A0 http://www.tsdye.com > > > > >=20=20=20=20=20 > -- > Thomas S. Dye > http://www.tsdye.com >=20=20=20=20=20 > --=20 Thomas S. Dye http://www.tsdye.com