Questions tagged [tikzscale]

The tikzscale pack­age ex­tends the \in­clude­graph­ics com­mand to sup­port tikzpic­tures. It al­lows scal­ing of TikZ im­ages and PGFPlots to a given width or height with­out chang­ing the text size.

Filter by
Sorted by
Tagged with
0 votes
1 answer
42 views

why some tikz pics scale and some do not?

Was trying scale option to tikzpicture and found that on some pics it works and on some it does not. I do not know why. Here is MWE Here is the code \documentclass[12pt]{article} \usepackage{tikz} \...
Nasser's user avatar
  • 20.7k
2 votes
3 answers
172 views

Scaling externalized tikz pictures

I use the following answer in order to scale my tikzpictures. I'd now like to turn to the issue of externalizing figures. The problem is that the autoscale autoid option sometimes need 2 compilations ...
jowe_19's user avatar
  • 855
0 votes
2 answers
57 views

Just cannot get the tikz scaling right in a subfigure environment

I understand how to scale a single tikz picture either by \begin{tikzpicture}[scale = ] or \resizebox or \scalebox. However, this seems to collapse once I put them into a subfigure environment. This ...
trembling_hands's user avatar
1 vote
1 answer
70 views

Tikz Externalize: Manual up-to-date check

I'm using this macro to scale my pgfplots to a desired size: \newsavebox{\measuredSize} \newcounter{int} \newcommand{\resizeToMeasure}[3]{% \pgfmathsetmacro{\pgfplotswidthtarget}{#2}% \...
ValenStein's user avatar
1 vote
1 answer
93 views

tikzscale package not working with group plots

I'm trying to scale a pgfplots that uses group plots but something is not working properly. This is the MWE: \documentclass{article} \usepackage[% total={6in,9in},% body={111.5mm,185.6mm},% head=...
aaragon's user avatar
  • 3,019
3 votes
2 answers
256 views

Large tree fit to page

I'm trying to accomplish drawing a tree for a tic-tac-toe game. The output of the tree will be rather large, and I would like the page to auto scale the size of the tree as it grows with appropriate ...
Ziggy's user avatar
  • 416
0 votes
1 answer
91 views

Label This Stacked Cubes And Reduce Scale of the Second Major Scope

I want to scale the second line of this tikzpicture to be smaller than the first row. I want to label the Tikzpicture just as the question Stacking 3D Cubes with Spacing ... \documentclass[10pt, ...
Daniel James's user avatar
0 votes
1 answer
108 views

How to scale a big graph

\begin{figure}[H] \begin{tikzpicture}[->, node distance = 2cm] \node[initial,state](A) {enter}; \node[state] (B) [below of=A]{1}; \node[state] (C) [below of=B]{2}; \node[state] (D) [right of=C] {i}...
user267662's user avatar
1 vote
2 answers
271 views

Overlapping Text Problem with Tikzpicture between Article and Beamer class

I'm completely new to Tikz... I draw the following tikzpicture thanks to exemple found on the internet: The code for Beamer class here: \documentclass[aspectratio=169,compress,8pt,svgnames,dvipsnames]...
zetyty's user avatar
  • 769
1 vote
1 answer
40 views

Can't use tikz-pic together with tikzscale

I am trying to use a tikz-picture containing pic-templates together with tikzscale, but when including the image via \includegraphics[]{} I get a variety of errors. On the other hand, when including ...
arc_lupus's user avatar
  • 1,761
0 votes
1 answer
91 views

Complex Plane plot scaling issue

I have made the attached picture in 2018. It full filled its purpose for my tutorial. Now I want to add it into my lecture notes. But the problem is that it is using overlay when I scale it down even ...
Raja Ali Riaz's user avatar
1 vote
1 answer
84 views

How to Scale the Display Size of a Cropped Image

The basis of the following code Cf. How can I clip an image via a bezier-path? Consider \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \newif\ifdeveloppath \tikzset{/...
DDS's user avatar
  • 8,491
0 votes
1 answer
60 views

Tikzscale fails for group plot with three elements, but works for two elements

For a custom figure I wanted to stack three figures on top of each other, to keep readability (multiple y axis) and comparability (all figures have the same x axis, the third figure is a combination ...
arc_lupus's user avatar
  • 1,761
0 votes
1 answer
155 views

Redefinition of \includegraphics for inclusion of default figure fails

In an earlier question (Automatic detection of Overleaf for fallback images) I wanted to automatically detect if I am on Overleaf or locally to choose fallback images when on Overleaf, or to re-...
arc_lupus's user avatar
  • 1,761
2 votes
1 answer
79 views

Problem with \tikzdeclarecoordinatesystem

I create a new coordinate system with \tikzdeclarecoordinatesystem. Compiles true when scale=1 and false otherwise. Why? Can you help me? Thanks alot. This is my code. \documentclass[tikz, border=2mm]{...
ducanh2021's user avatar
2 votes
0 answers
74 views

Tikzscale does not scale a figure when it contains addplot3

I wanted to implement a 3d-figure containing stacked 2d-layers, with an example below: I used the following code, with a main file: \documentclass{article} \usepackage{standalone} \usepackage{tikz} \...
arc_lupus's user avatar
  • 1,761
1 vote
1 answer
163 views

3 pgfplots plots, all in the same beamer frame

I have a beamer frame inside which I want to include a figure composed of 3 independent plots, like this: Please note that each one of these has completely different axis domain and unit vector ratio*...
tush's user avatar
  • 1,103
2 votes
1 answer
72 views

Similar package to tikzscale for pstricks?

For integrating figures drawn in tikz in my projects I use tikzscale such that I do not have to worry about font scaling (and can simply use \includegraphics{} for including figures. I also use ...
arc_lupus's user avatar
  • 1,761
1 vote
2 answers
279 views

About saving a drawing as a `tikz` file

This answer describes how to include a tikz file in your document, whether it is an article, a book or a beamer presentation. It works fine, up until the point that you call for some other libraries. ...
tush's user avatar
  • 1,103
0 votes
2 answers
184 views

How to center and scale a tikz picture at the same time for beamer

I need to scale donw a Tikz picture and center it on my frame (I am using Rmarkdown). I have tried several options: scalebox, transform canvas, adjustbox, scale, begin{center}, centering, etc... But ...
Guilherme Parreira's user avatar
4 votes
2 answers
160 views

Tikz edges drawn by foreach do not scale

I am using the following to create a small graph. I would like to scale the size, but the edges drawn within the foreach do not scale. \begin{tikzpicture}[scale=0.5] % problem <--- \...
Heather Guarnera's user avatar
1 vote
1 answer
51 views

Couldn't build example code from tikzscale

I'm trying to scale a tikzpicture to \textwidth like this question. And this answer suggests to use package tikzscale. I follow the document to build an example myself: %example.tex \documentclass{...
Rahn's user avatar
  • 486
1 vote
1 answer
91 views

tikzscale does not preserve clickable reference location with hyperref+cleveref

I am using tikzscale to shrink a tikz figure located in another .tikz file. While the color of the references is preserved, the reference clickable regions are no longer aligned with the text. When I ...
rosstex's user avatar
  • 115
4 votes
1 answer
703 views

Autoscale tikzpicture to maximum size possible on a page

Is it possible to scale a tikz figure to the maximum size possible for the page with the text that is present on it using some parameters? For example, are there some parameters such that \usepackage{...
NM_'s user avatar
  • 355
2 votes
1 answer
905 views

Problem with scaling entire tikzpicture with transform canvas

I read this. They suggest using transform canvas, which is rescaling but also it moves the picture where there is text (see figure). I also tried using \resizebox{}{} or \scalebox{}{}, bu that just ...
Schach21's user avatar
  • 201
0 votes
0 answers
36 views

Automatically create .tikz file after compiling .tex file of external tikz picture

I value the function of the tikzscale-package. A remaining issue is the neccesity of having to save an extra .tikz-file for every external tikz-picture nested in a .tex-file. So when wanting to make ...
kilsen's user avatar
  • 347
2 votes
1 answer
103 views

Rescaling icon made in TeX

A few days ago, I posted here about my tikz picture as an icon. So, you helped me and it worked. But now, I have some problem. I would like it to be rescaled so I could use it with command \bracket{}{}...
user avatar
1 vote
1 answer
222 views

Error bar doesn't scale according to y axis

I was building a graph with error bars for my thesis. However the values for error bars don't seem to scale according to the y axis and so the size is completely off. I'm not experienced with LaTeX, ...
Lilly Nguyen's user avatar
2 votes
2 answers
2k views

Create a groupplot with specific total width, font family, and font size

I want to use pgfplots to plot a groupplot who's width (8 cm), font family (Arial), and font sizes (10pt for the axis labels, 8pt for the tick labels) are specific. I've tried tikzscale to get the ...
12.yakir's user avatar
  • 419
1 vote
1 answer
164 views

Combining tikzexternalize with tikzscale and trim axis

Attempting to build the following results in pdflatex hanging and building the file over and over again forever: % !TEX options=--shell-escape \documentclass{article} \usepackage[english]{babel} \...
Eric's user avatar
  • 539
1 vote
1 answer
67 views

What is the relationship between given coordinates, scale, and obtained coordinates?

I have a pgfshape declared as \pgfdeclareshape{Curve1}{ \inheritsavedanchors[from=coordinate] \inheritanchor[from=coordinate]{center} \backgroundpath{ \begin{pgfscope} \pgftransformshift{\centerpoint}...
Federico's user avatar
  • 853
1 vote
0 answers
138 views

Scale tikz down including lines and arrowheads [closed]

I want to scale down a tikzpicture, so it fits on one page. With [thick,scale=0.6, every node/.style={transform shape} that works pretty well, except for line thickness and arrowheads. So I was trying ...
Quastiat's user avatar
  • 285
4 votes
1 answer
965 views

Draw dashed line with solid and empty circle using tikz

Problem: Trying to get empty circles to work with tikz and add text to the right of the circles. I have not been able to find the correct command for these two issues. Minimal Working Example (MWE): ...
kexxcream's user avatar
  • 2,775
1 vote
1 answer
1k views

minuscule text in a standalone environment

The {memoir} document class allows for text smaller than \tiny, with the \miniscule command, which can be useful, but I never find myself needing to write an actual memoir. I tend to use either {...
voices's user avatar
  • 2,029
2 votes
1 answer
71 views

tikz scale not congruence in Tex

I have code for a figure below \begin{tikzpicture}[scale=1,font=\footnotesize] \coordinate (A) at (0,0); \coordinate (B) at (0:1.5); \coordinate (C) at ([shift={(B)}]-50:1); \coordinate (D) at ([...
Cao Thành Thái's user avatar
6 votes
1 answer
631 views

pgfplots: set effective width of figure if no label given

How to ensure that the set width of pgfplot figure is correctly applied in case I do not have a label? Please consider the example below \documentclass{article} \usepackage{pgfplots,calc,...
bonanza's user avatar
  • 2,131
1 vote
1 answer
547 views

How to change the scale of a two-port

I'm a beginner at drawings in Tikz and I was making a diagram for a report, and a little problem came up: I need to change the scale of a twoport, I tried to do the following, but it hasn't worked... ...
Sebastián Maldonado's user avatar
5 votes
1 answer
121 views

Convince Arara to compile .tikz files

I have recently learned about the package tikzscale and find it to be a great solution to many issues I was having. However, using it requires the file containing the tikz code to have the extension ....
anthsts's user avatar
  • 384
0 votes
1 answer
226 views

Tikzscale - Unscalable Picture

I would like to use the package tikzscale to scale my picture. I use the following code \usepackage{graphicx} \usepackage{ifthen} \usepackage{tikz-cd} \usepackage{tikz} \usepackage{tikzscale} \...
mathstackuser's user avatar
2 votes
1 answer
651 views

Tikz: Style which only scale the text inside a node

I am looking for some possibility to only scale the text inside a node without using the commands like \tiny or \scriptsize. In my styleset I am using the line every node/.style={font=\scriptsize, ...
SRel's user avatar
  • 1,273
1 vote
1 answer
183 views

Patching tikzscale

I'm trying to patch the package tikzscale. Specifically, I want to remove the following lines from the package, as it does not constitute a useful error in my usecase[1]. \tikzscale@ifSizeDifference{\...
Firnagzen's user avatar
  • 111
2 votes
1 answer
344 views

How to match font size in TikZ figures and document text

I have the following two-column article, where I am resizing 3 TikZ figures inside subfigures as to fit them in a single column (code below). I want all the text in the TikZ figures (in this specific ...
jlnkls's user avatar
  • 139
2 votes
0 answers
131 views

Avoid that scaletikz scales text for subplots

Say I have the following tikzfigure, which contains 3 subplots (created using matlab2tikz) which is severely to large to fit on a page. \begin{tikzpicture} \begin{axis}[% width=3.878in, height=4....
Nicky Mattsson's user avatar
4 votes
1 answer
422 views

Problem with fill between and scale option in tikz environment

I have a problem when I try to scale my tikzpicture. The following code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{patterns} \usepgfplotslibrary{fillbetween} \...
Emanuele's user avatar
  • 143
1 vote
1 answer
66 views

Incompatibility between 'tikzscale' and tikz 'circuits' library

I want to include a figure containing an electrical circuit in my file. To ensure the correct filesize I use tikzscale includegraphics command. However, this yields an error for some of the elements ...
Paul Paulsen's user avatar
1 vote
1 answer
157 views

Scalable predefined parts of an image in Tikz

I am working on reusable image parts with Tikz. Thanks to the answer to TikZ 3.0---Multiple arguments for pic, I found out how to do macros with parameters. But, the problem with using predefined ...
Guido Kanschat's user avatar
0 votes
1 answer
463 views

Beamer - overlay makes tikzpicture move

The following code makes the first layer to be positioned differently (with horizontal bias) with respect to the second and third layers. If the colums and columns environments are removed, the three ...
Enlico's user avatar
  • 2,562
0 votes
1 answer
246 views

Externalization of tikz/pgfplots graphics included by tikzscale package with hyperref cross references

As the long title says, I'd like to include the following aspects in my LaTeX project. external library of TikZ to externalize possibly infinite compilation times due to both plane TikZ and huge ...
Enlico's user avatar
  • 2,562
6 votes
1 answer
3k views

How to use \scalebox to achieve a specific height in mm

Continuing my previous question: Is there a way to use \scalebox in a way that the logo scales to a specific height? I want to put a logo I created in Tikz into a rectangle that I also created in ...
NorrinRadd's user avatar
2 votes
1 answer
877 views

Is a combined use of subcaption, tikzscale and groupplots possible?

I am just trying to get the "everything in one". I would like to have figures using the groupplot library of pgfplots subcaption to be able to reference to every single plot inside the groupplot. See ...
marlam's user avatar
  • 524