Skip to main content

New answers tagged

2 votes
Accepted

How to prevent lost float error in table, in poster environment?

To answer the original question: in a poster usually you don't want tables and figures to float, because then you don't have fine-grained control of where the figure appears - or it may even be lost ...
Marijn's user avatar
  • 38.9k
1 vote

Resizebox and table in springer class

The sn-jnl class automatically uses threeparttable in order to make the caption to use the same line width as the tabular it refers to. This means that the people in charge of the class don't want ...
egreg's user avatar
  • 1.1m
4 votes

Resizebox and table in springer class

How can I ... have a table (single column) inside a resizebox with caption at the top in a springer document ? Whatever else you do, never ever use \resizebox on tabular-like material. If your ...
Mico's user avatar
  • 515k
1 vote
Accepted

overlayarea and image shading in beamer not working correctly when combined

You can use \node<2->{...} to remove the image from the first overlay: \documentclass{beamer} \usetheme{Boadilla} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ opinvisible/....
samcarter_is_at_topanswers.xyz's user avatar
2 votes

Is it possible to invert/substitute the colors of included graphics?

One can use: \includegraphics[width=4cm,decodearray={1 0 1 0 1 0}]{images/amande_noir.png} decodearray basically takes for each color component (here RGB, so 3) a tupple (a,b): 0 in the original ...
tobiasBora's user avatar
  • 8,964
3 votes

How to invert the color of an image

One can use: \includegraphics[width=4cm,decodearray={1 0 1 0 1 0}]{images/amande_noir.png} decodearray basically takes for each color component (here RGB, so 3) a tupple (a,b): 0 in the original ...
tobiasBora's user avatar
  • 8,964
3 votes
Accepted

\AddToShipOutPicture on every second page

You just have to add a condition on when the image is included. The easiest would be to condition on the whether the page number is odd or even: \ifodd\value{page} % <page value is odd> \else ...
Werner's user avatar
  • 607k
1 vote
Accepted

Plot only a small element of area of a surface with pgfplots

You might want to change your POV. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{width=10cm, compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=center,axis ...
John Kormylo's user avatar
  • 81.2k
2 votes

How to create a curved cylinder in TikZ with a custom base shape?

Based on this post by a missing old contributor @Marmot, an implementation that accommodates 3D transformations that allows using tikz-3dplot, then, to recreate the volume I had nothing left but to ...
J Leon V.'s user avatar
  • 12.9k
3 votes
Accepted

Probem in counting all figures in a folder

In a current latex you can use l3sys-query to iterate over all the files matching a pattern such as *.jpg or *.png (or folder_1/picture_*.jpg) \documentclass{article} \usepackage{l3sys-query} \...
David Carlisle's user avatar
7 votes

How to create a curved cylinder in TikZ with a custom base shape?

New Version (with dashed line) Adaptations added a parameter height draw the lower half of the shape plus two vertical lines again within a scope, with [yshift=-\height] (It would also be possible ...
dexteritas's user avatar
  • 9,361
4 votes
Accepted

Tikz Border Problem

\documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \node (foo) [text width=6cm,inner sep=0.4cm]{\textbf{\...
samcarter_is_at_topanswers.xyz's user avatar
0 votes

How to get equations and picture side by side?

Here is a paracol colution. And yes, paracol can handle unequal column widths. \documentclass{book} \usepackage[export]{adjustbox} \usepackage{nccmath} \usepackage{graphicx} \usepackage{paracol} \...
John Kormylo's user avatar
  • 81.2k
1 vote

How to get equations and picture side by side?

I'd use aligned inside \[...\] (or equation* which is the same) with a Knuthian trick for obtaining flush left and flush right in the display. \documentclass{book} \usepackage{amsmath} \usepackage{...
egreg's user avatar
  • 1.1m
1 vote

I want this type of layout design for my document

Here is a TikZ-less version; you can play around with the parameters as you wish. It has the side effect of going right through the page number, but I suspect you don't actually want the page numbers ...
karlh's user avatar
  • 774

Top 50 recent answers are included