LaTeX: remove left margin of listing inside a table

Using LaTeX, I need to show some code snippet inside a table. Here is an example of what I'm trying to do: \begin{document} Par exemple : \begin{center} \begin{tabular}{lp{5cm}l} \hline Méthode...

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...

How can I make Org-mode export to LaTeX with a specific preamble?

When I do C-c C-e l to export an Org file to LaTeX it produces a document with a particular preamble. Instead of this particular preamble I would like it to use a preamble of my choice. Say that I...

How to obtain the same font(-style, -size etc.) in matplotlib output as in latex output?

I have one .tex-document in which one graph is made by the python module matplotlib. What I want is, that the graph blends in to the document as good as possible. So I want the characters used in...

Pandoc and foreign characters

I've been trying to use Pandoc to convert some Markdown into a PDF file. This is a sample that Pandoc will not convert for me: # Header! ## Sub Header themselves derived respectively from the...

Internal section link fails in beamer output of pandoc markdown

I have tried the answer to this question, but I can't get the internal section links in Pandoc to work with the Latex Beamer output. Following the Pandoc Documentation, I have created this minimal...

Latex : bibliography with `natbib` package

I am trying to write my report and I have this problem with natbib package. I am using overleaf and I am getting the same error: LaTeX Error: Can be used only in preamble. See the LaTeX manual...

How to define a cellsize in LaTeX for wraptable?

I have created the following table in LaTex with wrap table from Package wrapfigure. \documentclass[a4paper,11pt,oneside,numbers=noendperiod,setspace,parskip=half]{scrbook} \usepackage[ngerman,...

Matplotlib - Setting a tick label's background colour

I have a subplot and its tick labels overlap with the data. I would like to set the x-tick labels to have a background colour (e.g. white). Currently I have only been able to find how to change...

docker run error: Unable to access jarfile

Docker image is built but when I want to run it, it shows this error: Error: Unable to access jarfile rest-service-1.0.jar My OS is Ubuntu 18.04.1 LTS and I use docker build -t doc-service &...

Matplotlib have mathtext equation and bold special unicode characters in same text object

As part of a project I'm working on, I need to have both bold text in Hebrew and mathtext equations inside a Matplotlib text artist. But, I need the mathtext equations to be rendered using the...

Include latex package option before documentclass in RMarkdown beamer presentation

I am trying to compile the following beamer presentation in rmarkdown. But when it tries to render rmarkdown document an error occurs ! LaTeX Error: Option clash for package xcolor. I searched...

How to fix wrong table labelling in Latex?

I am currently writing a report with many labels. All of them are working very well (section, figure, equations, ...) but not the labels of tables. Indeed, as I refer to any table, the pdf shows...

The latex package "indentfirst" not working in R-markdown

I am trying to indent the first line after a section header using the indentfirst package but it is not working. --- title: "Evaluation of Coaching Teachers by Program" header-includes: -...

How do you get org-mode to export a wide or long table so it's readable in PDF?

I'm creating various tables in org mode using R and want to include them in an export to PDF. Some of these tables are too wide for a standard page, and some may be too long. I've figured out...

How to knitr beamer slides using Frankfurt theme without loosing navigation circles

After updating R and packages my beamer slides using Frankfurt theme no longer include the navigation circles at the top. A mock Rmd file to demonstrate: --- title: "Untitled" output: ...

"Error Producing PDF" when markdown contains a horizontal rule: --- or ***

When my Markdown file contains a horizontal rule --- or *** I receive an error regarding \Linethickness -> \Protect I understand there have been issues with MiKTeX recently, however I am unsure...

Bold and italic label of axis

How to write this x in xlabel bold and italic? import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties ...

How to change the color of bullet-points in default environments in beamer?

I am making a beamer presentation using \usetheme{Aalborg} and I want to create blocks for definitions, theorems, remarks, exercises, proofs, examples etc. It seems that the default...

LaTeX Error when knitting a PDF in R Markdown (elsarticle)

I am trying to knit a document in R Markdown (using the elsarticle documentclass) The following error appears. output file: Hirst_18276806_finmetrics.knit.md tlmgr search --file --global...

Bold title - subplots

I have a script for subplot with params that set font. How to do an exception to have fig1.set_title bold? Thank you import numpy as np import matplotlib.pyplot as plt import matplotlib as...

Is tcolorbox compatible with tabular, tabularx?

Some combination betwen tcolorbox, listing and tabularx tabular do not compile. Is it possible to solve problem between tabular tabularx and tcolorbox and tabularx and listing? Is tcolorbox...

How add header and footer to all pdf in a folder

I have following file called addfooter.tex to add header and footer in a pdf...

"!pdfTeX error: pdflatex.exe (file tcst1000): Font tcst1000 at 1200 not found" in MikTeX2.9

I am using MikTeX 2.9 (up-to-date) with TeXStudio. A file that compiled correctly in March 2019 now fails with the following error message: !pdfTeX error: pdflatex.exe (file tcst1000): Font...

How to export inline quotations from emacs org mode to latex csquotes syntax?

I would like to export inline quotations in an org-document to \enquote{} commands. The csquotes package then ensures French quotation marks « » are used in the resulting pdf document. I am well...

Can't put Python listing in LaTeX

I'm trying to put a Python listing into a \fbox\parbox but I always get errors. Here is my code: \documentclass[12pt]{article} % Packages \usepackage[utf8]{inputenc} % support for...

How to get Beamer Rmarkdown appendixnumberbeamer package to work to not count appendix pages?

I am trying to compile a Beamer presentation in Rmarkdown that counts slides, but doesn't count slides in the appendix. The same question has been asked here before:...

Delete abstract from rticles::elsevier_article

I'd like to knit an article to a PDF document without an abstract. If I just leave out the abstract part in the YAML header, the Abstract headline is still produced in the document. Is there a way...

Warning: set it to a single string instead

What does this warning mean? How can I get rid of this? Support for setting the 'text.latex.preamble' or 'pgf.preamble' rcParam to a list of strings is deprecated since 3.3 and will be removed two...

Unable to compile a Rmarkdown file on Arch Linux

I'm having a problem compiling a simple Rmarkdown file, and I'm clueless about the solutions. Here is the problem: Document I want to compile It's a simple document without R code, just text. In...