How to make chapter*, section* and subsection* appear in the table of contents

I need to produce a PDF document in which I need some "chapters" (along with its sections and subsections) to be non-numbered but still included in the ToC. This is for my master thesis. I'm using...

Converting PDF to CMYK (with identify recognizing CMYK)

I am having much trouble to get ImageMagick's identify to, well, identify a PDF as CMYK. Essentially, let's say I'm building this file, test.tex, with...

Emacs ,org, beamer - No definition for class `beamer' in `org-export-latex-classes'

I am following this tutorial, and I am getting this error, when I try to export the presentation to latex: No definition for class `beamer' in `org-export-latex-classes' Note: I installed emacs...

knitr's kframe producing errors in LaTex, no shadecolor for code chunks

I am using R's knitr and LaTeX to create a pdf. Technic Center gives "!Undefined control sequence" for Build Output errors. Technic Center indicates that lines with \begin{kframe} and...

LaTeX Error: `xcolor.sty' not found when including tikz

my preamble is currently looking like...

asterisk is appearing when using collapse rows

In the rmarkdown file below I am trying to use collapse rows. IN this case there is only 1 row but in other cases there will be more than 1 row. When you run the file you will see an asterisk and...

Error: Missing $ inserted when using kable

I am attempting to output a latex table using r markdown, kable, and kableExtra. I needed to use conditional logic to add colors to my table with cell_spec. But with the pdf output, it shows latex...

Generating a plot with tikzDevice and ggplot2

I can't get tikzDevice to work with ggplot2. I have taken a mwe from another question: https://tex.stackexchange.com/questions/322091/plotsizes-plotting-with-ggplot2-in-r-and-using-tikzdevice But...

Harvard citation format in R markdown

I am using R markdown for a document, however I just have to do some minor tweaks to my citations. Firstly, is there a package which will put my BibTeX references in Harvard format? And secondly,...

R markdown, trouble with \rowcolor in kable_styling()

Having some trouble with kable_styling() in R markdown. https://haozhu233.github.io/kableExtra/awesome_table_in_pdf.pdf has a great vignette on styling tables in Rmd files to pdf but still having...

R kable linebreak cutting off striped color

Below is a code example. My issue is that the background color for the rows with the linebreak are being cut short. Any idea how to fix this? I tried limiting the column width and that did the...

Jupyter download as pdf

How can I solve this problem when I want to download as pdf through Jupyter? nbconvert failed: PDF creating failed, captured latex output: Failed to run "['xelatex', './notebook.tex', '-quiet']"...

kableExtra won't compile with full_width and XeLaTeX

Having full_width = T in my kable function results in the error: ! You can't use `\relax' after \the. \[email protected] ...optime {\the \pdfelapsedtime ...

LaTeX NiceMatrix: Error when using large matrices with Block-Command

First of all, hey guys and thanks - after years of finding good answers on StackOverflow, I finally created an account to ask my first question :-) The problem occurs when using the...

Problems between kable and rmarkdown::render in a for loop

I am trying to create multiple reports and knit them to a pdf in R. I have a script that generates the dataframe that I want to knit. Then, I have a for loop that splits the data corresponding to...

How to eliminate brackets from caption for subfigures in latex?

The problem I have is that when I compile the image caption is displayed with brackets "[fig...

Package inputenc - Unicode character not set up for use with LaTeX - knitting to pdf wih xelatex fails in RStuio

I have an exotic problem with RMarkdown and knitting a pdf. Knitting html and word documents works fine. I'm running RStudio Version 1.2.5033 and TeX 3.14159265 (TeX Live 2019 Gentoo Linux). I...

Keep failing to generating a table in Rmarkdown beamer with the following error message

I am trying to create the following table (attached below) within rmarkdown beamer (Rstudio). It initially worked but since I updated R (3.6.3) and Rstudio, it hasn't worked. I also updated all...

Latex Commands with URL

I am having trouble adding a URL to the Linkedin command. I want it to essentially print the Linkedin logo, text that I want to be explicitly seen, and a URL that the user will be redirected to...

Custom LaTeX template for bookdown

I've recently upgraded my computer with new OS, new version of R (4.0) and consequently all packages. When trying to compile a bookdown document to pdf that used to work, I now get the error...

Pandoc Markdown to Latex PDF: table with alternating row colors?

I would like to have a table, in the (xe)latex PDF output of a Markdown document via pandoc, with alternating row colors - as noted...

Pandoc - Support for a custom input latex environment

I am using a single unified LaTeX doc to create problem sets and solutions: \item What is one plus one? \begin{soln} The answer is "two". \end{soln} In LaTeX, I define...

Combining longtable, booktabs, and xcolor in LaTex, layout problems

I am trying to create a nice-looking table over multiple pages in LaTeX. For that, I am using longtable to divide the table in different pages of the document, booktabs to give it a nicer look,...

r markdown latex compiling error (Undefined color `gray!6') with function in jtools package

I get a compiling error when trying to render an R markdown script as pdf. Knitting the markdown file with content below with the knit button in RStudio, or running the command...

Using LaTeX Beamer for a presentation, does anyone know how to remove the border from the frame title on the references slide?

** Updated question with MWE I am currently using a custom background template image and at the end of my presentation, I want to display the citations that I used. However, I cannot seem to...

Merging column header in latex table created by kable in Rmarkdown

I have created a latex table as below using kable in Rmarkdown: --- output: pdf_document header-includes: - \usepackage{xcolor} --- ```{r, message=FALSE, warning=FALSE,...

How to adapt a LaTex beamer theme to apply it in an rmarkdown::beamer_presentation

I would like to apply a LaTex beamer theme in an rmarkdown::beamer_presentation. The custom themes contains a beamerthemeTHEMENAME.sty, beamercolorthemeTHEMENAME.sty, beamerfontthemeTHEMENAME.sty,...

Adding a letterhead to an RMarkdown PDF

I'm trying to replicate a report using RMarkdown/LaTeX. Is it possible to add a letterhead to the top of a page in a similar way to the image I've attached? Hoping to find a solution where I can...

Add new line to table cell in rmarkdown kable. Linebreak \n not working for latex output

I am creating a longtable in rmarkdown, which is text heavy. I'm setting the column width using column_spec to space text over multiple lines, but would like to insert manual line breaks to...

! LaTeX3 Error: Mismatched LaTeX support files detected. (LaTeX3) Loading 'expl3.sty' aborted! (LaTeX3)

I can't compile my R Markdown files with knitr. The error message I get is the following: ! LaTeX3 Error: Mismatched LaTeX support files detected. (LaTeX3) Loading 'expl3.sty'...