New answers tagged graphics
0
votes
Scale image to page width?
I'm gonna turn a comment from Martin Scharrer, that worked well for my use case.
Use \includegraphics[width=\paperwidth,center]{...} with \usepackage[export]{adjustbox}. Simple and clean. Works well ...
4
votes
inserting image in overleaf
LaTeX flags this as an error and Overleaf marks the error in its user interface:
As the text in the red box says, the graphics package falls back to draft mode (which just places the filename in a ...
0
votes
Prevent figure* from starting a new page
I was able to get what I think you want by removing the twocolumn option in your document class and using the multicol package. I also had to switch to the extarticle documentclass since revtex4-2 ...
1
vote
How to make vector function graphs
Here is a lazy way to do it.
Matching your missing MWE, a simple thing is missing here, too: the axes ... but that is no big deal.
1. class standalone
It will have some advantages, see e.g. this ...
1
vote
Package keyval Error: scale=0.5 undefined
The posted code produces no error (if you have the image file).
To get the error shown you need to "hide" the = so it is seen as part of the key name, not the separator before the value.
\...
4
votes
Accepted
transform canvas command stops working when text is too small
If you want to use arbitrary font sizes, you need a scaleable font, e.g. by loading the lmodern package:
\documentclass[9pt]{beamer}
%\usepackage[utf8]{inputenc}
\usetheme{PaloAlto}
\usecolortheme{...
3
votes
Cellspace alternative to ltablex?
Instead of aging ltablex I would rather use newer longtblr of tabularray package (in the case if your table really need to span several pages). With it code for your table is simpler and a bit shorter:...
4
votes
Accepted
Cellspace alternative to ltablex?
I'd like to suggest that you replace the aging ltablex machinery with that of the newer xltabular package.
I'd further suggest that you (a) get rid of all vertical rules to give the table a more open ...
2
votes
Embedding \input in \caption
With \input{…\unskip} I get the same error message. After removing the \unskip something like:
\begin{filecontents*}{test-caption-a.tex}
This is a test caption for image a.
\end{filecontents*}
\...
2
votes
How to display a pair of figures with two sets of formulas undernath
Here is a paracol soloution. Interesingly, the redefinitions of \thefigure and \theequation were local to the column, so there was no point in using \pcol@currcol. Also, since one can not use global ...
5
votes
Accepted
I want to reduce the space after a figure
Let's first clear up two misconceptions.
Loading the parskip package (with a non-zero value of the parskip option) does not affect the whitespace gap between text paragraphs and the position of an in-...
3
votes
I want to reduce the space after a figure
The reason you get extra space is the use of the minipage which add the paragraph spacing, I think. I would recommend instead using the margin option from caption, which you are already loading, to ...
1
vote
I want to reduce the space after a figure
\documentclass[10pt, twoside, dvipsnames]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
%\usepackage{float}
\usepackage[position=below,belowskip=0pt plus 0pt minus 0pt,aboveskip=0pt]{...
5
votes
How to display a pair of figures with two sets of formulas undernath
To long for comment ...
Sorry, your question is not clear what you after. You should provide MWE, which show what you try so far. So, we can only gueassing. For example, are after the following?
MWE ...
2
votes
Cropping an inserted image around the center
What we can do in OpTeX:
\def\clipinpic#1#2#3{%
\setbox0=\hbox to#1{\picheight=#2\hss\inspic{#3}\hss}%
{\roundness=0pt \clipinoval .5\wd0 .5\ht0 \wd0 \ht0 {\box0}}%
}
\clipinpic{4cm}{5cm}{...
4
votes
Cropping an inserted image around the center
A LaTeX3 attempt, inspired by this answer, using the l3box module:
\cs_new_protected:Npn \john_trim_sides:nnn #1 #2 #3
{
\leavevmode
\hbox_set:Nn \l_tmpa_box {#1}
\dim_set:Nn \l_tmpa_dim
...
7
votes
Accepted
Cropping an inserted image around the center
This is easily achievable using \includegraphics' trim and clip option, together with an expandable calculation of the reduction via \fpeval.
\documentclass{article}
\usepackage[margin=1in]{geometry}...
4
votes
Accepted
Resizebox not scaling text in tikz image
You can forcefully scale your image by transforming the whole canvas:
\documentclass{beamer}
\usepackage{tikz}
\usepackage{lmodern}
\begin{document}
\begin{frame}
\frametitle{Circle Packing}
\...
2
votes
Can't compile .tex file after MacTeX 2017 last packages update
Just to answer based on the comments: with an old texlive, you can fix this by loading graphicx before babel. With a current texlive, your example compiles fine.
P.S. \usepackage[utf8]{inputenc} is no ...
Community wiki
4
votes
How can I include the labels to this tree?
A bit rude solution, but it works 😉. By adding names to nodes (where are needed) and labels to the nodes which are the most out of tree, you can get:
\documentclass{article}
\usepackage{forest}
\...
0
votes
Undesired blank space above and bellow image
Remove the % before the \vspace command, also add \vspace{-...cm} before and after other images, and adjust accordingly.
I assume you want your code to display in one page. Take a look at this.
\...
1
vote
Undesired blank space
You don't show important parts, such as the document class.
However, the following code should work in your setup. First, a couple of things to note:
never use \\ to end paragraphs;
there should be a ...
1
vote
Undesired blank space
I suggest you issue the instruction
\usepackage[export]{adjustbox}
in the preamble and change the code chunk
\noindent
\begin{minipage}[t]{0.79\textwidth}
\textbf{The project involves} the ...
0
votes
Undesired blank space
Instead of [t], try with the [b] or no option after \begin{minipage}.
The code you have supplied aligns the baseline of the [t]op line of the minipage with the surrounding text---hence the blank space....
4
votes
What are the best packages/commands for maintaining quality in resized images?
(la)tex is doing nothing here: exactly the same png data is repackaged as a pdf bitmap stream whatever width you specify. So changing packages will make no difference.
All that happens is the image is ...
0
votes
Column height in a table
Here's a solution that employs typographic struts to assure equal heights for rows 2 thru 4. It also uses an array environment instead of a tabular environment in order to eliminate the multitude of \(...
1
vote
What GUI applications are there to assist in generating graphics for TeX?
This is a copy of https://tex.stackexchange.com/a/730224/38080
Posting an answer here on behalf of the authors on https://github.com/Circuit2TikZ/CircuiTikZ-Designer/
The FAU designed a tool for ...
Community wiki
2
votes
tables side by side
Welcome to TeX.SE
As you are not providing any MWE, I've just shared my ideas only
\begin{table}
\begin{minipage}{0.45\textwidth}
.... first table matter
\end{minipage}\hfill%
\begin{minipage}{0.45\...
1
vote
insert image into a cell
I tried to make an answer directly based on the code snippet of the OP. However, I removed several \multicolumn{1}[...], which where defined to span over a single column and I think they are junk.
My ...
2
votes
Accepted
insert image into a cell
I would use tabularray to give a starting point:
\documentclass{article}
\usepackage{tabularray}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{tblr}{cell{1}{1,2}={r=2}{c},
vlines,
...
1
vote
Images and itemize in Beamer concurrently without jumping
You can use the built-in \begin{columns} of beamer to place your figures, instead of the subcaption package. There is no need for \uncover. The output is identical to that of the answer by @user194703....
Top 50 recent answers are included
Related Tags
graphics × 7234tikz-pgf × 1052
floats × 613
beamer × 419
tables × 352
pdftex × 328
pdf × 319
positioning × 307
includegraphics × 229
diagrams × 223
vertical-alignment × 216
captions × 211
subfloats × 199
horizontal-alignment × 196
pgfplots × 190
eps × 180
xetex × 154
spacing × 153
minipage × 129
scaling × 124
errors × 122
formatting × 114
graphs × 109
color × 100
lyx × 94