Questions tagged [latex]

LaTeX is a programming language used primarily for creating high quality academic written documents, slideshows and posters. LaTeX questions are often a better fit for the sister site "TeX - LaTeX" (https://tex.stackexchange.com). This includes questions on tools and other languages producing LaTeX code. The JavaScript libraries MathJax and KaTeX are off-topic on "TeX - LaTeX" and should be asked on Stack Overflow instead (and tagged accordingly).

Filter by
Sorted by
Tagged with
-2 votes
0 answers
10 views

\cite{DOI} for LaTeX? [closed]

It would be cool to be able to cite documents with dois' in LaTeX just like. \doicite{10.1126/science.abl8371} So that would mean that I search for a tool that generates the bibtex file from the latex ...
Raphael J.F. Berger's user avatar
0 votes
1 answer
16 views

Newline spacing issues in Latex Overleaf

so i will attach an image to show my issue, and also show the preamble.tex, styles.sty, and main document coee. So my issue is that i don't know exactly what to do, such there is a margin/space ...
Sermad NaJar's user avatar
1 vote
0 answers
21 views

kableextra header across multiple rows for pdf output

I have the following table that I try to reproduce using kableExtra. (any other package is also welcomed) My approach using add_header_above: My biggest problem is to take into account the ...
Julian's user avatar
  • 7,392
-2 votes
0 answers
21 views

I want replace every alternative in vsc with reg ex

Must replace every alternative element in my markdown code, using vasual studio code `$abc$` `$xyz$` need to skip the secodn $ and must replace 3rd one and seq goes on Result should ...
SEKHAR NAIDU Bathini's user avatar
0 votes
0 answers
13 views

Convert kable table in R to Latex source code

I made a relatively simple table in R using kable, which outputs the actual table. I would like to get the Latex source code so that I can add it to an overleaf document (as required for journal ...
SC2021's user avatar
  • 21
1 vote
1 answer
13 views

How do I align nodes of different heights to the bottom?

The following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart,chains} \begin{document} \begin{figure} \centering \begin{tikzpicture}[stack/.style={rectangle ...
jkb's user avatar
  • 2,418
1 vote
2 answers
18 views

How I can produce a png from a tizk tex file (with class standalone)?

I have the following LaTex file: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node[fill=yellow]{Hello World!}; \end{tikzpicture} \end{document} and I would like to get a ...
ramiboutas's user avatar
0 votes
1 answer
22 views

Calling a Python function repeatedly in LaTex table environment

I am an English teacher and for my online classes, I prepare a PDF with LaTeX which has the new vocabulary and grammar and other notes. Now I generally write the meaning of the words myself, however, ...
VoHooman's user avatar
0 votes
0 answers
13 views

Trying to create a bibliography and use in-text citations in LaTex apa7 using TexMaker

I'm trying to write a research article in LaTex that follows APA7. There's some problem with the .bib file, where something is going wrong with the source. I tried stripping down my article to the ...
Tyler's user avatar
  • 1
1 vote
0 answers
13 views

Using table of contents and chapterbib

I want to write an article with supporting info which includes a table of content. Also main text and supporting info should have separate bibliographies printed. For testing, I used this example and ...
Martin 's user avatar
  • 113
-2 votes
1 answer
49 views

when file reads space introduced between the characters in python, but actually space not in the contents [closed]

I am having the issue when file reading, when reads the file (tex files) in python, space is introduced in between the characters in the file content (see the screenshot) but actually in the input ...
TeX_learner's user avatar
0 votes
0 answers
19 views

automatically change the orientation of a single page to landscape in quarto

In my quarto file, I have a large table that I would like to print on a landscape-oriented page. I followed this answer (option 1, since I still want to the footnote space not to rotate). As it is, ...
RobertP.'s user avatar
  • 225
0 votes
0 answers
17 views

How to use array element in \ifthenelse?

For a small project I have to work with arrays as a data structure in latex. I've been spending hours and hours to make this work, but it just doesn't work. I've been trying many different ...
Frederic Hancke's user avatar
-1 votes
0 answers
17 views

Drawing a graph segment in tikz

I'm having trouble drawing a graph in Tikz. I want to make two nodes that are connected by an edge, and I want to surround them with other edges and dots in between them so that I show there are ...
VlakecTomaz's user avatar
0 votes
0 answers
9 views

how to create a references with Bibtex?

Hello everybody I'm trying to cite a website using Bibtex but I can't show the URL in the articule that I'm working this is my Bibtex cite: @misc{Briggs_EarthSky_2023, title={What is a galaxy? all you ...
Jasmir Aguilera's user avatar
1 vote
1 answer
34 views

gnuplot: How to determine version of pdf output

I export gnuplot as PDF as follows: gnuplot -e "set terminal cairolatex pdf ;set output 'file.tex';load 'file.gp'" Works fine but creates PDF version 1.7. All other material works with 1.5, ...
user2609605's user avatar
-2 votes
0 answers
21 views

Knap: Could not determine output type. Is one set for files?

I was setting up a nvim plugin. Knap plugin. I think i followed everything very carefully from the README file of the plugin.... but something went wrong.. When i press F5 it says "Could not ...
Shreyansh Singh's user avatar
0 votes
0 answers
6 views

Citation in biblatex produce an error resulting in missing bibliography

I am getting an error Citation 'McMahon2012' on page 1 undefined, and hence there is no bibliography printed at the end. I am using biblatex and structured my file after (https://www.overleaf.com/...
Lorad's user avatar
  • 1
-1 votes
0 answers
13 views

How to add a line break in LaTeX multicolumn heading?

I have the following table in latex which is centered: \multicolumn{1}{|c|}{\large \cellcolor{bleudefrance}\color{white}\textbf{very long sentence}} How can i make the column heading "very long ...
Beans On Toast's user avatar
-1 votes
0 answers
10 views

Remove space between bullet and sub bullet

I want to remove the space be tween the bullet and the sub bullet in latex Here is my code: \documentclass{resume} % Use the custom resume.cls style \usepackage[utf8]{inputenc} \usepackage{enumitem} \...
Elisheva Sherman's user avatar
0 votes
0 answers
36 views

Use Persian language with a custom font in pylatex

I want to create documentation using the pylatex library in Python. How can I do that? I have written the following minimal codes, but I can not get the output in Persian. from pylatex import Document,...
mohammad's user avatar
0 votes
1 answer
18 views

How to fix empty table of content in Pylatex?

I'm trying to generate a pdf file using pylatex and pdf latex. I have sections and subsection in my document and I want to create a table of contents like this: doc.append(NewPage()) doc.append(...
edche's user avatar
  • 610
0 votes
0 answers
26 views

LaTeX error : use of \@startpbox doesn't match its definition - TinyTex in R?

I'm using the tiny_tex package in R to generate a LaTeX document from a .Rnw file (Sweave) - I can produce basic LaTeX outputs, however when trying to make something more complex with the color.sty ...
Beans On Toast's user avatar
0 votes
0 answers
23 views

LaTeX error when trying to produce PDF in R using TinyTex

I am trying to produce a PDF written in LaTeX using an Rnw file. The Rnw file is trying to attach documents as a link, which requires the use of the LaTeX package attachfile2 which I have downloaded ...
Beans On Toast's user avatar
0 votes
0 answers
17 views

LaTeX issue on macOS: pdflatex and kpsewhich only work with sudo

Hello Stack Exchange community, I'm currently facing a perplexing issue with my LaTeX setup on macOS, and I'm seeking some guidance to understand and resolve the problem. Issue Description: When ...
T-Ray's user avatar
  • 227
0 votes
1 answer
56 views

Convert math expression to spoken words in python

I need to convert a mathematical expression into spoken words text, e.g "x^2" to "x to the power of 2" let's say, using python. For expression format, latex is a good but I do not ...
doog_math's user avatar
0 votes
1 answer
26 views

Julia docstrings not rendered properly to VS Code (via LaTeX?)

I am new to the Julia language and trying out docstrings in a VSCode Jupyter notebook """ fibonacci(n) Calculate the Fibonacci sequence up to the nth number. # Arguments - `n`: ...
clstaudt's user avatar
  • 21.6k
1 vote
1 answer
30 views

Choose font size for table of contents only in a rmarkdown-rendered pdf

How can I change the font size of the toc only when rendering an rmarkdown document as pdf? I am only aware of the fontsize: parameter in the YAML, but it changes the font size of the whole pdf ...
ForEverNewbie's user avatar
0 votes
0 answers
38 views

Proper Instructions to get Asymptote working in MikTeX LaTeX to create inline Graphs

I have installed MitTeX on W10. Asymptote is installed in MikTeX in folder ..\miktex\bin\x64\asy.exe When I start this on the command line, I can give an Asymptote command like draw((0,0)--(10,0)); ...
jeroen2009's user avatar
1 vote
1 answer
23 views

How to fill entire cell background in column headers in kableExtra when knitting to PDF?

I'm knitting a table to PDF with the kableExtra package in R Markdown, and I'm wondering if anyone has a solution to ensure the background colour of the column headers (black), column group headers (...
Ben_89's user avatar
  • 456
-1 votes
0 answers
20 views

How to delete a blank page in LaTex

I am currently writing a latex code for an article in which the article is A4 but there are tables that are in A3 size in the article. When I temporarily change the size of the paper for my tables (...
Mohammadreza Moghaddas Jafari's user avatar
0 votes
1 answer
17 views

WinEdtPDF giving invalid floating point exception after reboot (PC, Win 10/11, WinEdt 11.1)

I have been using the WinEdtPDF viewer with WinEdt V11.1 without issues. However, immediately after a reboot it now reports: Exception ElnvalidOp in module WinEdtPDF.exe at ...
Joan's user avatar
  • 21
-2 votes
0 answers
25 views

Uppercase for macro result

I have macros that alternate synonyms, for example, \newcount\thesince\thesince=0\relax \def\since{\ifnum\thesince=0{since}\else{therefore}\fi\space\thesince=\numexpr 1 - \thesince\relax} These ...
32seph's user avatar
  • 21
0 votes
0 answers
53 views

How do I include LaTeX characters in R code? [duplicate]

I am trying to label some axes of a ggplot I have made in R Markdown, and I would like to include (using LaTeX syntax) the symbol for Theta in the label. I have tried putting it inside dollar signs, ...
r4r4r4r4r4r4r4r4r4r4r4r4r4r4's user avatar
-1 votes
0 answers
22 views

LaTeX and Pandoc, splitting an align environment into multiple (still aligning) equation environments

I chose to ask here instead of TeX.SE due to the scope of this question being not only about TeX. I'm using Pandoc (with Quarto) to write a Tufte-style book, and I wish to be able to put marginnote's ...
Hypatia du Bois-Marie's user avatar
0 votes
1 answer
34 views

Coq code in LaTeX using lstcoq does not work

I want to format Coq code using the LaTeX package "lstcoq.sty". It used to work for me a few years ago, but now I get an error message when trying to use it again. The Coq code inserted in ...
Marcus's user avatar
  • 447
0 votes
0 answers
38 views

Missing character: There is no 5 ("35) in font nullfont LaTeX [Ln 1, Col 1]

i write a testing slide by latex with beamer, but get some warnings: Missing character: There is no 5 ("35) in font nullfont! LaTeX [Ln 1, Col 1] Missing character: There is no 1 ("31) in ...
XMan's user avatar
  • 29
0 votes
0 answers
30 views

Latex, Fitting table using tabularx package to the textwidth in the paper

I used the tabularx package to fit the table into my document. I checked the number of columns, but blank spaces are automatically generated.I want to expand the cells containing numeric text in ...
Daehyeon Kim's user avatar
0 votes
1 answer
26 views

RMarkdown to PDF: Full Cover Page with a pre-designed picture but I also need to write text at a specific place

I want to include this image as a cover-page: I want to include the Author details from YAML at the "Prepared By" Location. So far, this is my setup: --- title: "Report for `r params$...
Pss's user avatar
  • 611
1 vote
0 answers
36 views

Why \markboth command doesn't work in my overleaf?

I am preparing my conference paper and the conference committee provies a template in a word documents. But, I am comfortable with Latex. I am using Overleaf. In the template at the very beginning the ...
Md. Hasnain Ali's user avatar
0 votes
0 answers
17 views

VSCode latex duplicates the preview window after saving the file if the first preview window is not active

I am using VSCode with the extension latex-workshop on Ubuntu 22.04. No other extensions for latex are installed, nothing but some snippets are modified after the fresh installation. Suppose that I ...
Miles N.'s user avatar
  • 187
-1 votes
0 answers
14 views

Partial Table of Contents running off page

Partial Table of Contents running off page I've inherited a latex environment that includes a hefty cls file. If a part has to many sections and/or chapters then the PTC runs over the edge of the page....
cardboardboks's user avatar
1 vote
1 answer
15 views

Problems with envcountsect and addtocounter

I want to make a negative increment of an example-block in beamer because I want to revisit a previous example. The enumeration of the examples follows the section numbers. Unfortunately, this gives ...
Peter Jensen's user avatar
1 vote
0 answers
42 views

Insert \usepackage statements before hyperref, when exporting to Latex in org mode, on a file level

When exporting to Latex I want to include \usepackage statements in a specific org file. This is possible with #+LATEX_HEADER: or #+LATEX_HEADER_EXTRA:. The problem is that the packages I want to ...
deniel's user avatar
  • 11
1 vote
0 answers
38 views

LaText table shows vertical lines incorrectly

Hi there I'm new to LaText and working on a fairly nested table. I got pretty much everything sorted but, for some reason, I cannot figure out how to properly add vertical lines... This is an examples ...
Matteo's user avatar
  • 49
-1 votes
0 answers
38 views

Parsing LaTeX math expressions in JSON file

I'm trying to parse latex math equations into a python code via a json objects file { "math_equations": [ "g_{egm}= RT[{c}\\textrm{(ln)}c + + \\textrm{ln}]", "\\...
newstudent's user avatar
0 votes
0 answers
30 views

Render latex tables in xaringan presentation

I am trying to include a Latex table in my xaringan presentation built in an rmarkdown. However, the table does not render. My code is the following, taken from the online example showing how to ...
flâneur's user avatar
  • 645
-1 votes
1 answer
18 views

Indentation in Latex

In the following Latex code, I would like to indent second row from start of m\angle BTS in the first row, i.e. after \therefore in the first row. I tried with \phantom{\therefore}, but it does not ...
Ajit's user avatar
  • 11
-1 votes
0 answers
13 views

Latex:Use section titles as color input for cellcolor in table

I have written the following code in Latex: \definecolor{free time}{RGB}{75,175,234} \definecolor{work}{RGB}{255,253,84} \definecolor{eating}{RGB}{246,193,66} \definecolor{self care}{...
redlioness's user avatar
1 vote
1 answer
49 views

Watermark on all pages in a beamer presentation?

I would like to print a watermark on all pages in a beamer presentation: Frontpage/titlepage, table of contents, bibliography etc. All pages. With the code below, a watermark gets printed on the first ...
Peter Jensen's user avatar

1
2 3 4 5
226