-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cross referencing latex tables in elseveier quarto template #17
Comments
I'm not seeing an error with PDF rendering when I do use the following: format:
elsevier-pdf:
keep-tex: true
include-in-header:
text: |
\usepackage{multirow}
\usepackage{hyperref}
\usepackage[capitalise,noabbrev]{cleveref}
journal:
name: Forensic Science International
formatting: preprint
model: 3p
cite-style: authoryear When I use you example which includes Does that fix it for you as well? |
When I add |
I was rendering with the render button but with the command I have the same error. Here is the .log file: Also, when I use I get the following error:
Could it be that there is something wrong with where my packages are ? (knowing that it works fine when I am not using the elsevier template) |
That appears to be a problem with your table formatting. I removed some white space from the table definition to make mine work- but you can confirm this by simply leaving the other table skeleton with label and caption and omitting the table itself. If this renders it is likely just a problem with the way the table itself is defined. |
Removing the table itself removes the multirow error. This does not resolve the |
This is working fine for me: ---
title: "TITLE"
author:
- name: Myname
email: [email protected]
affiliations:
- id: JPA-ESC
name: School of Criminal Justice
department: Faculty of Law, Criminal Justice and Public Administration
address: University of Lausanne
city: Switzerland
state: Switzerland
postal-code: 1015
attributes:
corresponding: true
- name: name2
email: [email protected]
affiliations:
- id: CC-ESC
name: School of Criminal Justice
department: Faculty of Law, Criminal Justice and Public Administration
address: University of Lausanne
city: Switzerland
state: Switzerland
postal-code: 1015
abstract: |
BLABLABALA.
keywords:
- Toolmarks
- Review
date: last-modified
bibliography: Biblio.bib
format:
elsevier-pdf:
keep-tex: true
include-in-header:
text: |
\usepackage{multirow}
\usepackage{hyperref}
\usepackage[capitalise,noabbrev]{cleveref}
journal:
name: Forensic Science International
formatting: preprint
model: 3p
cite-style: authoryear
---
This is a test:
A dataset is created with comparisons from both classes. They are all stored in a dataframe (a matrix of numerical and non-numerical data) which has information for each comparison about the different scores that were calculated, the lag between the two profiles, and the class information (W or B as explained in \cref{Variabilities}).
```{=latex}
\begin{table}[]
\caption{Summary of the different variabilities when comparing marks from same or different tools and zones}
\label{Variabilities}
\begin{center}
\begin{tabular}{ll|cc|}
\cline{3-4}
& & \multicolumn{2}{c|}{\textbf{Tool}} \\ \cline{3-4}
& & \multicolumn{1}{l|}{\textit{Same}} & \multicolumn{1}{l|}{\textit{Different}} \\ \hline
\multicolumn{1}{|c|}{\multirow{2}{*}{\textbf{Zone}}} & \textit{Same} & \multicolumn{1}{c|}{W} & B \\ \cline{2-4}
\multicolumn{1}{|c|}{} & \textit{Different} & \multicolumn{1}{c|}{B} & B \\ \hline
\end{tabular}
\end{center}
\end{table}
``` |
Thanks! works fine for me as well. Any idea what can cause the I can't share it unfortunately, it calls for functions, .Rda, and JPG files. |
I'm honestly not sure- there isn't a specific thing that causes this. It could be:
If you could enable You can use |
@dragonstyle I sent you an email with the .tex file as the content is not yet published. |
I would like to cros reference a latex table in my text.
Originally I was not using the elsevier template and the solution I used was adding the following packages.
I can then cross ref a latex table using
\cref{Variabilities}
(because I have
\label{Variabilities}
in my table)I tried using the same idea in the elsevier template
But I always get the same error:
Any idea how I could work around this issue ?
The text was updated successfully, but these errors were encountered: