11,570 questions
0
votes
1
answer
33
views
Rendering a Quarto document in RStudio fails (command pdflatex not found, attempting install finding package for pdflatex) [closed]
I installed Miktex as a latex distribution for Quarto since my company was not allowing me to use the tinytex package. However, when I render a document like the minimal example below, RStudio tries ...
-2
votes
0
answers
9
views
LaTeX: How to set different geometry margins for different pages based on PDF background images? [migrated]
I'm creating example papers in LaTeX with different PDF backgrounds for different pages, and demo PDFs are given as follows:
First page: example-image-a.pdf
Odd pages (except first): example-image-b....
-1
votes
1
answer
23
views
wrapfig introducing whitespace when next to text divided by sections [closed]
I'm trying to have text wrap around other text or a figure as is supposed to be done with wrapfigure. However I'm encountering an issue where there is a lot of whitespace under the wrapfig when the ...
0
votes
1
answer
36
views
How to include extra information for LaTeX `\label{...}` that can be accessed by `\cref{...}` [closed]
The Goal
I'm trying to format software requirements in a tabular-like arrangement where every requirement has different properties/subheadings like it's Function, Description, ...
Every requirement ...
Tooling
0
votes
0
replies
10
views
Latex APA7 how to reverse table of contents and repeated title
The Apa7 document class places the table of contents after the repeated title. I am using the option manuscript (man)
My institute wants this the other way around so the leading pages of the document ...
2
votes
2
answers
86
views
Troubleshooting: A single regular expression matching nested braces usable for java and perl
I have a regular expression in an extension of java by florian ingerl
to parse a latex command,
\\\\DocumentMetadata(?<docMetadata>\\{(?:[^{}]|(?'docMetadata'))*\\})
but the important thing is ...
0
votes
0
answers
42
views
Table not compiling when leaving out one image
For some reason, when I try to compile this code it does not compile if I uncomment the line with the 5th image.
\begin{table}[ht]
\centering
\begin{tabular}{c m{4cm} m{7cm}}
\# & ...
2
votes
1
answer
26
views
Filter a table based on a string column
I am trying to filter a table in pgfplots as shown below. It does not compile and I guess this is because it is unable to correctly compare the strings. This example is based on the used guide. For ...
2
votes
1
answer
97
views
Matplotlib LaTeX text not respecting font family
I am trying to display a LaTeX-style equation in a Matplotlib plot using a custom font (Algerian). I want both the equation and the surrounding text to use the same upright (non-italic) font. Using ...
0
votes
0
answers
65
views
Vertical stub boarder line in gt table not removed in my pdf
I wanted to remove the vertical stub boarder line in my gt table. The line is removed in the notebook output, but it is not in the pdf. I have my MRE below. Any ideas what i should do?
---
title: &...
-1
votes
0
answers
17
views
LaTeX and tabluarray theme [migrated]
The table with the local settings works perfectly.
But if I want to have a theme = compact, it no longer works. I want to write lines 25 and 26 into a global theme and only customize the specific ...
0
votes
1
answer
75
views
How can I make sphinx latex builder add alt texts to sphinxincludegraphics?
I am tasked creating accessible documentation (PDF UA) from rst.
The idea was to use DocumentMetadata to enable tagging in general with something like a caption or :alt: to achieve this. However I ...
1
vote
1
answer
77
views
gt table output in quarto PDF duplicates header text and places it to the left of table body instead of above it
Here is a simple qmd file.
---
title: "Untitled"
format: pdf
---
```{r, echo=FALSE}
library(gt)
exibble |>
gt() |>
tab_header(title = "title")
```
My output looks like ...
0
votes
1
answer
50
views
splitting modelsummary in latex to several pages
I use modelsummary to export regression tables to latex.
However my normal workflow is as follows:
data("mtcars")
library(modelsummary)
modelsummary(lm(mpg~factor(disp)+factor(gear), ...
0
votes
0
answers
35
views
Launching Cygwin (mintty.exe) from Windows pdflatex (via shell escape) actually launches Windows' command prompt?
Disclaimer: This has been crossposted from the issue I opened on mintty's GitHub; I didn't really know whether to post it there, on UNIX Stack Exchange, or TeX Stack Exchange, since this involves ...
2
votes
0
answers
47
views
Forcing Markdown headers to custom numbering
I am trying to generate custom-named headers in PDF files from Markdown. I am using LaTeX and the Eisvogel template.
I want to edit the numbering of the Markdown headers, i.e., the single hash (#), ...
Tooling
0
votes
2
replies
64
views
How to have VS-code open latex project folder and pdf
I run a mac, and currently I'm set up so that when I double click on a main.tex file it opens in VS code. This is nice, but most of the time, I'd prefer it to open the entire folder in which the main....
1
vote
0
answers
41
views
How to achieve visual cursor movement in RTL String in VSCode
Is there a way to configure VSCode editor so that the cursor movement in RTL (right-to-left) strings in the editor would be visual rather that logical, i.e. so that once the cursor is in an RTL part ...
1
vote
1
answer
110
views
Problems creating a PDF with all truetype fonts
I'm working on a program to create a PDF of all TrueType fonts. The program causes an error relating to the Tooth&Nail.ttf font which prevents the PDF from being created. Other fonts produce ...
-1
votes
1
answer
63
views
Suppress latex warnings in vim-latex for package robust-externalize [closed]
I use vim-latex to edit LaTeX files. When compiling, usual warnings are suppressed.
If I use the package robust-externalize, they are not: I get a couple of (useless) windows, one of which says
/usr/...
0
votes
0
answers
19
views
MACTEX bbl mismatch?
I cannot get appropriate output on two bib file entries (actual bib file is about 1000 lines).
The output line does some backspace and is overwriting author names.
Must be something wrong there, but I ...
0
votes
0
answers
189
views
MiKTeX crashes with EPS
Would anybody know why does my image (EPS) causes LaTeX to crash?
\documentclass [a4paper, 10pt] {article}
\usepackage [brazilian] {babel}
\usepackage [ansinew] {inputenc}
\usepackage [T1] {fontenc}
\...
0
votes
0
answers
45
views
TexStudio macro running python script but writing return string in message box
I make my drawings in Krita while I write my report in TexStudio. In Krita I select part of the drawing and put it on the clipboard. I put my cursor in the .tex file at the desired position and run ...
3
votes
1
answer
152
views
Merge columns into multi line cells
In RMarkdown, I need to knit a table where columns A and B will be merged (if B is not null); in the merged columns, texts from A and B must be in different lines and styles. All columns must have ...
0
votes
1
answer
81
views
Is there a way to generate HTML and PDFs with selectable text in pandoc?
I am writing some documentation in Pandoc Markdown, and I would like a diagram to have selectable text in both the HTML and PDF output. I made the diagram in draw.io, so I can export it as a PDF or ...
0
votes
2
answers
77
views
How do I add a \usepackage line to the generated latex from an XSL when using Saxon 12?
Using Saxon 12.8, I can compile an XML source to a TEX file. I am using the XSL file for Latex from TEIC/Stylesheets to do this.
My XML source however has some math that will need the amsmath package. ...
1
vote
1
answer
76
views
R Markdown latex/pdf output conditional formatting with kableExtra outputting latex commands without evaluating them
Hard to come up with a handy short title for this question, sorry.
Background and Goal
I'm working on a PDF report using RMarkdown, and have need to conditionally format one of my tables. I've managed ...
0
votes
1
answer
44
views
Using structureitalicserif in tcolorbox, tcbox [closed]
I am using Beamer with the fonttheme structureitalicserif. I would like to have the same font in my tcolorbox titles. I haven't been able to find anything in the manuals nor online. Is this possible? ...
0
votes
0
answers
58
views
Combine Latin and Arabic/Hebrew script in pandoc to latex
I have a bunch of texts in pandoc which are generally written in English, but also contain Arabic and Hebrew text. The Hebrew text is just running text; as for Arabic, sometimes an Arabic character is ...
0
votes
0
answers
44
views
Sublime: Shortcut to always run specific group or file
I Always work with 3 windows for run a Latex file, in a specific group using Tinitex or Knitr in R (Repl).
In group 3 include commands (set working directory and name file latex) to render or compile ...
1
vote
1
answer
49
views
Seaborn fig_size = textwidth: figure much smaller than expected
I'm having an issue with setting the figure and font sizes in my seaborn plots to make sure that everything is the expected size and can be pasted into a Latex file for publication. Fig_size is set to ...
0
votes
0
answers
27
views
suggestSelection recentlyUsedByPrefix not working with James-Yu/LaTeX-Workshop
if I set
"editor.suggestSelection": "recentlyUsedByPrefix"
in my setting.json file it does not seem to work with James-Yu/LaTeX-Workshop.
The ordering of suggestions is unchanged. ...
1
vote
2
answers
114
views
How to change the power of two to be same font as rest of axis
I wish to use the default Pdflatex font (which I understand to be computer modern) for all of the text in my plots, as this is the same as I am using in my report. In an effort to have my figures be ...
0
votes
1
answer
184
views
Create a line type in LaTeX/TikZ as -\- and |-| that goes between two points [closed]
It is usually a problem to draw stepped lines between two points (A) -- (B).
I created a macro to do it, but it would be more elegant if there was a "line type" that will take care of it,
...
0
votes
0
answers
40
views
How to add labels to definition environment in bookdown and reference them correctly?
In R Bookdown, I would like to refer to a definition:
<!-- body or .Rmd file -->
The first definition is Definition \@ref(newterm) below:
::: {.definition #newterm name="new def 1"}
...
2
votes
1
answer
92
views
Custom div class in Quarto beamer output
I would like to know if it's possible to create a custom div class in a Quarto document with a beamer output format. I have tried with adding a custom environment with include-in-header: preamble.tex, ...
2
votes
1
answer
252
views
Using different tcolorbox colors with minted, depending upon the language
I am using minted to display my code in a LaTeX document. Those codes are displayed inside a tcolorbox. For that, I am using this :
\documentclass{article}
\usepackage{minted}
\usepackage{tcolorbox}
...
2
votes
0
answers
49
views
Matplotlib compiled .pgf output blurry
I am generating .pgf plots in matplotlib. Here a minimal example:
import matplotlib.pyplot as pyplot
import numpy.random as random
pyplot.matshow(random.random((20, 20)), interpolation="none&...
0
votes
1
answer
73
views
Сonfusion with module versions in lua: 5.1 module version into 5.3 interpreter
I need to use a SQLite database with Latex. After some searching, I came to the conclusion that the best way is to use LuaLatex with the luasql-sqlite3 module. The installation required me to install ...
1
vote
0
answers
86
views
Pandoc - user variables in included/inputted .tex or .sty files
I've setup an apparently quite unique setup in my Pandoc.
I'm using a latex template to convert markdown documentation into a styled PDF.
My intent is not to directly create my own template. I want to ...
1
vote
0
answers
37
views
Unexpected Content Placement in PDF Rendered from Quarto Document
When rendering a PDF from a Quarto document (using tinytex) content is showing up in unexpected places. I have containers that create essentially a 3-column layout with an image in the first column, a ...
1
vote
1
answer
143
views
Solid square in a proof
A similar question has been asked before but, I believe, I am trying something slightly different as I am trying to make adjustments using renewenvironment.
I am trying to obtain a solid square at the ...
1
vote
1
answer
169
views
Is there a way to partially remove minted highlighting in LaTex?
I am using LaTeX for writing a thesis, including the package minted to highlight code. In my case, it is Razor code, which means a mixture of html and C#.
The following code is an example for my ...
1
vote
1
answer
167
views
Changing the default colours and styles of equations using tcolorbox
I've been experimenting with the tcolorbox to create some LaTeX documents.
It is a wonderful package but I am struggling to see how to change the default colours around the displayed equation given in ...
0
votes
0
answers
54
views
lualatex rendering error: (pdf backend): cannot open file for embedding
I'm trying to run tinytex::lualatex() on a .tex file. I keep getting this error and, despite searching everywhere, I cannot figure out what it means:
! error: (pdf backend): cannot open file for ...
0
votes
0
answers
83
views
How to style a kableExtra when printed with latex
The example below works well and prints the table as expected as a plain kable, however, if I add kable_styling(latex_options = "striped") it crashes. See code below:
---
title: "Table ...
1
vote
1
answer
94
views
How to align two tables side by side
I can't quite align two tables side by side on Rmarkdown pdf. How can I resolve this?
Code below:
---
title: "Caption"
output: pdf_document
params:
runs:
- Late
...
6
votes
1
answer
67
views
Is it possible to use `lhs2tex` for it's `\eval{}` macro, but still use `minted` for formatting?
lhs2TeX has a powerful preprocessor, including useful macros like \eval{} for evaluating Haskell expressions. I'd like to use these features without having lhs2TeX also format code blocks or apply its ...
0
votes
2
answers
101
views
Bad display of LaTeX formula in a markdown cell in Jupyter-lab
I have a markdown cell holding some latex code with a math formula.
I get a somewhat disappointing resulting display, in particular the summation and infinity symbols looking rather small.
OTOH, if I ...
0
votes
0
answers
42
views
Getting continuedfloat to appear at the top of the next page
I'm using a continuedfloat to split a long table over two pages. For some reason I can't get the second part of the table to appear at the top of the next page.
\begin{table}
\renewcommand{\...