emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Non-appearance of tables in PDF export under \listoftables
@ 2017-06-26 14:16 Sharon Kimble
  2017-06-26 15:50 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2017-06-26 14:16 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 6210 bytes --]


I'm having great difficulty in getting my tables to show up in
'\listoftables', the 'Table' header shows in my pdf but nothing else
related to tables in the preamble after the TOC.

Taking this table as an example -

--8<---------------cut here---------------start------------->8---
#+LABEL: tab:table1
#+NAME: tab:table1
#+CAPTION: Previous versions of this document
#+ATTR_LATEX: :booktabs t :placement [H]
| *Title*                   | *Version* | *Published*     |
|-------------------------+---------+---------------|
| Hormones 2016           |     1.5 | May 2016      |
| Hormones 2017           |     1.6 |               |
--8<---------------cut here---------------end--------------->8---

Which is exported to latex as this -

--8<---------------cut here---------------start------------->8---
\section{Previous versions}
\label{sec:orgd5daa04}
\begin{table}[H]
\centering
\begin{tabular}{lrl}
\toprule
\textbf{Title} & \textbf{Version} & \textbf{Published}\\
\midrule
Hormones 2016 & 1.5 & May 2016\\
Hormones 2017 & 1.6 & \\
\bottomrule
\end{tabular}
\caption{\label{tab:org2f5a19c}
Previous versions of this document}

\end{table}
--8<---------------cut here---------------end--------------->8---

I am using my own latex-class called 'my-report' which is like this in
my config.org -

--8<---------------cut here---------------start------------->8---
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes
             '("my-report" "\\documentclass{report}
               [NO-DEFAULT-PACKAGES]"
               ;;[EXTRA]"
               ;;("\\part{%s}" . "\\part*{%s}")
               ("\\chapter{%s}" . "\\chapter*{%s}")
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
               ("\\paragraph{%s}" . "\\paragraph*{%s}")
               ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
              ;; (custom-set-variables '(org-export-allow-bind-keywords t))
--8<---------------cut here---------------end--------------->8---

And here is my main preamble -

--8<---------------cut here---------------start------------->8---
#+TITLE: Hormones 2017\\
# #+TITLE: Part 1
#+AUTHOR: Sharon Kimble\\
#+AUTHOR: (S.E.N., R.G.N)\\
#+AUTHOR: redacted
#+DATE: \today \\
#+DATE: Build - 2017.\thevernum
#+STARTUP: fnadjust
#+LaTeX_class: my-report
#+LATEX_CLASS_OPTIONS: [a4paper,11pt,oneside,openany,british,svgnames,dvipsnames]
#+latex_header: \usepackage[a4paper,left=25mm,right=25mm,top=25mm,bottom=30mm,footskip=5mm,headsep=2mm]{geometry}
#+latex_header: \input{/home/boudiccas/research/hormones17/titlepage}
# #+LATEX_CLASS_OPTIONS: [british,svgnames,dvipsnames]
#+latex_header: \usepackage[backend=biber,style=authoryear,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex}
#+LATEX_HEADER: \addbibresource{/home/boudiccas/research/hormones17/hormones17.bib}
#+latex_header: \input{/home/boudiccas/research/codebase}
#+latex_header: \makeindex[title=General Index,options=-s ./index.ist,columnseprule,intoc]
#+latex_header: \makeindex[name=horm,title=Index of Hormones,options=-s ./index.ist,columnseprule,intoc,columns=2]
#+latex_header: \makeindex[name=side,title=Index of Hormones Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
#+latex_header: \makeindex[name=other,title=Index of Other Drugs Side-Effects,options=-s ./index.ist,columnseprule,intoc,columns=2]
#+latex_header: \makeindex[name=inter,title=Index of Interactions,options=-s ./index.ist,columnseprule,intoc,columns=2]
# #+latex_header: \makeindex[name=sti,title=Index of STI's,options=-s ./index.ist,columnseprule,intoc,columns=2]

#+latex_header: \usepackage{hyperref}
#+latex_header: \hypersetup{linktoc=all,colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}}
# #+latex_header: \hypersetup{linktoc=all,colorlinks,linkcolor={black},citecolor={black},urlcolor={black}}
#+latex_header: \usepackage[toc,nopostdot,style=listgroup]{glossaries}
#+latex_header: \input{hormones17.glos}
#+latex_header: \makeglossaries
#+latex_header: \glsenablehyper
#+latex_header: \renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}}
#+latex_header: \usepackage{todo}
#+latex_header: \usepackage[firstpage]{draftwatermark}
#+LaTeX_header: \setcounter{secnumdepth}{0}
#+latex_header: \setcounter{tocdepth}{1}
#+latex_header: \usepackage{everypage}
#+latex_header: \usepackage{booktabs}
#+include: /home/boudiccas/research/header.org
#+latex_header: \usepackage{textgreek}
#+latex_header: \usepackage{pifont}
#+latex_header: \usepackage{upgreek}
#+latex_header: \usepackage{longtable}


#+latex_header: \setlength{\parskip}{5pt} % gap between paragraphs
#+latex_header: \setlength{\parsep}{0pt} % space between paragraphs within an item
# #+latex_header: \setlength{\headsep}{5pt} % the vertical length between the header and the top of the text area
#+latex_header: \setlength{\topskip}{0pt} % between header and text
#+latex_header: \setlength{\topmargin}{0pt} % gap above header
#+latex_header: \setlength{\topsep}{0pt} % space between first item and preceding paragraph
#+latex_header: \setlength{\partopsep}{0pt} % extra space added to \topsep when environment starts a new paragraph
# http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html
#+latex_header: \linespread{0.9}

# #+OPTIONS: H:6 \n:nil ::t |:t ^:t f:t tex:t
#+OPTIONS: H:7 toc:t \n:nil ::t |:t ^:t f:t tex:t
# #+LaTeX_header: \setcounter{secnumdepth}{0}
# #+OPTIONS: toc:1


# #+LATEX: \tableofcontents
# #+LATEX: \listoftables
# #+LATEX: \listoffigures

#+TOC: tables

\dominitoc
--8<---------------cut here---------------end--------------->8---

Can anyone please help me to get '\listoftables' working please, I just
feel like I'm going round in circles at the moment and not achieving
anything, and its so frustrating

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Non-appearance of tables in PDF export under \listoftables
  2017-06-26 14:16 Non-appearance of tables in PDF export under \listoftables Sharon Kimble
@ 2017-06-26 15:50 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2017-06-26 15:50 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I'm having great difficulty in getting my tables to show up in
> '\listoftables', the 'Table' header shows in my pdf but nothing else
> related to tables in the preamble after the TOC.
>

I would take a look at the TeX file produced during export and try to debug it
that way.

FWIW, a (vastly reduced) example works fine for me:

--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \usepackage{booktabs}

#+TOC: tables

* Tables
#+LABEL: tab:table1
#+NAME: tab:table1
#+CAPTION: Previous versions of this document
#+ATTR_LATEX: :booktabs t :placement [H]
| *Title*                   | *Version* | *Published*     |
|-------------------------+---------+---------------|
| Hormones 2016           |     1.5 | May 2016      |
| Hormones 2017           |     1.6 |               |
--8<---------------cut here---------------end--------------->8---

-- 
Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-26 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-26 14:16 Non-appearance of tables in PDF export under \listoftables Sharon Kimble
2017-06-26 15:50 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).