Stack Overflow Forum » Latex
3 FOLLOWERS
An ultimate resource for all things Latex. Find discussions and ask questions on building a table, and formatting pages. Further, share rendering issues, and get solutions for the same.
Stack Overflow Forum » Latex
15h ago
Latex works in a latex editor but not as plot label.I am graphing a function using matplotlib.pyplot and I am using latex for the label. I am graphing a piecewise function and I am trying to label it by what the function is. The '{' that should be covering both lines of the piecewise function is only covering the first row and the second row starts before even the first row starts. Furthermore does not work at all when using & to align the rows.
Expected
Got
Using:
pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=latex)
Python 3.10.5
Code
import numpy as np
impo ..read more
Stack Overflow Forum » Latex
2d ago
enter image description hereso i wanna the items to be on the left ( on the blue not the red )
this is my code , any solution ?? \begin{table}[h] \centering \begin{tabular}{|m{4cm}|m{13cm}|} \hline \textbf{Cas d'utilisation} & « Consulter le site » \\ \hline \textbf{Acteur(s)} & Visiteur \\ \hline \textbf{Précondition} & Être connecté à l'Internet \\ \hline \textbf{Post-condition} & Il est possible pour le visiteur de choisir de s'inscrire sur la plateforme. \\ \hline \multicolumn{1}{|c|}{\textbf{Scénario principale}} & \begin{itemize} \item Le visiteur se connecte à l'Inte ..read more
Stack Overflow Forum » Latex
3d ago
I am creating a long table in latex and the problem is that there is too much space between the last column and the one before it. Here is my code and the picture of the table:
\begin{center}
\begin{longtable}[c]{c cc}
\caption{Graph embedding techniques: types, used models and algorithms \cite{cai2018comprehensive}.\label{long}}
\\
\hline
Graph Embedding Technique & Model Type & Algorithm\\ [0.5ex]
\hline
\multirow{11}{*}{Matrix factorization} & \multirow{6}{*}{Graph Laplacian Eigenmaps} & Isomap\\
~&~& ARE \cite{lin2005semantic}\\
~&~& LPP \cite{he2003loca ..read more
Stack Overflow Forum » Latex
4d ago
I have a thesis template that I can't compile on Texmaker. I imported this thesis from Overleaf and everything worked fine until a point where the compilation became too long and didn't display the PDF.
I took the folder and tried to compile it on Texmaker but it gave me too many errors. I'm attaching the main.tex file and the errors ..read more
Stack Overflow Forum » Latex
5d ago
I create a set of slides using rmarkdown. I add a figure using latex includegraphics which works as expected. But, when I add a figure generate via R code, the 'latex' figure disappears.
Minimal code example
---
title: "TITLE"
author: "JS"
subtitle: SUBTITLE
output:
beamer_presentation:
keep_tex: yes
ioslides_presentation: default
fontsize: 14pt
---
# Example
\begin{figure}[t]
\centering
\includegraphics[scale=0.25]{include_figure}
\end{figure}
---
# Add figure via R code
```{r, message = FALSE, warnings = FALSE, eval = TRUE, echo = TRUE}
plot(rnorm(100))
Any suggestions ..read more
Stack Overflow Forum » Latex
5d ago
I am writing my thesis and after i include an appendix the overleaf inserts new blank page, which is there for no obvious reason.
I tried using oneside and openany options in \documentclass[], also i used \clearpage and \let\cleardoublepage=\clearpage and i was expecting the page to dissapear, but it did not.
In my code there are multiple appendixes, but the problem is only after the first one. My code:
\appendix
\include{appendix1.tex}
\include{appendix2.tex}
\include{appendix3.tex ..read more
Stack Overflow Forum » Latex
6d ago
I am trying to implement this table into a bigger document but I am unable to do so. If I don't use \bottomrule then it works fine but when I try to add that line it gives the error "misplaced \noalign".
.tex File:
\documentclass{article}
\usepackage{csvsimple}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table}
\centering
\begin{tabular}{cccccc}
\toprule
\multirow{2}{*}{Substituent (R)} & \multicolumn{2}{c}{P} & \multicolumn{2}{c}{As} \\
\cmidrule(lr){2-3} \cmidrule(lr){4-5}
& C1 & C2 & C3 & C4 \\
\midrule
\csvreader{var.csv}{}{
\csvcoli &am ..read more
Stack Overflow Forum » Latex
6d ago
i am trying to render a rmarkdown document into PDF and i am getting an error message :
! Use of \@startpbox doesn't match its definition.
<inserted text> \@startpbox {
@{}ccc@{}}
l.241 \begin{longtable}[]{@{}ccc@{}}
what is this ?
below it says :
Error: LaTeX failed to compile The_Report_.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See The_Report_.log for more info.
Execution halted
the .log file says the same message.I have visited the site from yihui that suggests and i have updated the library.I do not have restrictions from g ..read more
Stack Overflow Forum » Latex
1w ago
I am using \cline to print a line in column 2, but my problem is with the spaces left in the intersection of the lines of the table. How can I fix it? Also, I used \cmidrule{} and the result was still the same ..read more
Stack Overflow Forum » Latex
1w ago
I'm trying to create a graph like this:
Wanted result
But I can only get it to look like this using legend text, but I want to put the text directly below the bar graphs (like 0ms, 50ms, 150ms)
My current try
My code:
\begin{figure}[ht]
\centering
\begin{tikzpicture}
\begin{axis}[
ybar,
bar width=20pt,
width=0.5\textwidth,
height=0.5\textwidth,
enlarge x limits=0.5, % dist between x bars
legend style={at={(0.5,-0.20)},anchor=north,legend columns=-1},
ylabel={Impact of latency on gameplay, 1-5},
symbolic x coords={Chess, Pong},
xtick=data,
ymin=1,ymax=5 ..read more