Tagged Questions
3
votes
2answers
87 views
Scaling tikz-cd labels
I'd like to scale a custom symbol drawn in tikz, such that it's the same size as surrounding text in a tikz-cd diagram.
For example, in the following code I'd like the box to the left of A_2 to be ...
6
votes
2answers
114 views
Scaling the sieve of Eratosthenes in TikZ
Consider the following code, taken from Alain Matthes' answer here.
Code
\documentclass{article}
\usepackage{tikz}
\makeatletter
\pgfutil@ifundefined{pgfmath@function@isprime}{%
...
5
votes
2answers
143 views
Argument to \input or \include statement?
I produce a lot of plots in Matlab which I export to TikZ with matlab2tikz. In matlab2tikz I can specify the plot width and height, for instance. This works out quite nicely, but as I write my ...
1
vote
1answer
44 views
Why does transform canvas change where the caption is?
I have a fairly large tikz diagram here:
\documentclass[12pt]{amsart}
\usepackage[all,cmtip]{xy}
\usepackage{rotating, tikz}
\usetikzlibrary{matrix,arrows}
\title{None}%
\begin{document}
...
4
votes
2answers
132 views
TikZ: different x, y scales but so that shapes maintain their aspects
I have some old pstricks code which I'm re-doing with TikZ. In my current picture, the x and y scales are different:
\begin{tikzpicture}[xscale=1.8,yscale=4]
However, this has the problem that ...
3
votes
1answer
94 views
Tikz Scaling and Positioning
I cannot scale the first picture. scale=0.6 does not work.
Also I cannot vertically align the picture. I want top of text and top of figure are same. See figures in the following examples.
...
2
votes
1answer
97 views
How to automatically scale inline TikZ code in subscripts?
I want to use inline TikZ code to create my own subscript symbol. For example something like
$V_{\tikz{ \draw [|->] (0,0) -- (2ex,0); }}$
The problem is that it is not scaled. The length of the ...
4
votes
1answer
236 views
\resizebox shifts tikzpicture up when in a subfloat environment
Why when I try to re-scale a tikz figure using \resizebox the baseline is shifted up (regardless of how small the scale factor is), and two horizontal floats are not aligned properly.
...
8
votes
2answers
174 views
Wrong place for hyperref link in scaled tikz picture
I have a TikZ picture with a node containing a minipage with an itemize environment; each item is a hyperref to other sections of the document.
When scaling the image (for example with ...
6
votes
1answer
570 views
Scaling tikz mindmaps within a beamer frame
I recently discovered tikz and I fell in love with it! However, I am having some annoying issues when I try to include a tikz mindmap in beamer. Problem is that I can't manage to have the mindmap ...
3
votes
4answers
306 views
How to scale a tikz picture?
I am using
\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\graphicspath{{images/}}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
...
0
votes
1answer
156 views
Changing scale using TeXgraph
I'm using TeXgraph to create figures and stuff, being a bit lazy and not wanting to code everything. I chose to export the code into tikz to use with tikzpicture. The outcome is great if I don't have ...
6
votes
1answer
298 views
Beamer with Tikzpicture. How to change scale of picture and distance between lines of nodes?
I am a beginner in LaTeX, trying to convert a presentation in beamer. I am experiencing difficulties with the scale option that does not seem to work, and I cound not find a way to reduce slightly ...
2
votes
2answers
919 views
how to set the canvas and font size in TikZ?
I am using TikZ to draw standalone pictures using the PreviewEnvironment (which cuts the PDF size around the picture). I then import the PDF figure inside LaTeX using \includegraphics.
Let say my ...
6
votes
1answer
418 views
LaTeX scaling tikzpicture does not work
The TikZ picture in the following code does not scale correctly. It overlaps with text. If I comment out transform canvas={scale=0.5} then it works correctly (but I would like to scale everything).
...
7
votes
2answers
376 views
Scale all TikZ images in a document by the same factor
Is it possible to scale all TikZ pictures in a document by the same factor globally?
Something like \usepackage[scale=0.9]{tikz} doesn't work.
3
votes
1answer
763 views
Tikz's picture: out of the page margin [duplicate]
Possible Duplicate:
How to scale a tikzpicture to \textwidth
Shrink figure only when necessary?
As you can see the third rectangle is out of the right margin...how can I fix this issue?
...
0
votes
1answer
745 views
Tikz's picture scaled and wrapped
I need to wrap the text around my tikz picture. But as you can see, scaling the picture give me problems about the position of the shaded axis between "pompa" and "turbina". How can i fix this ...
2
votes
1answer
216 views
Scaling tikzpicture with Babel spanish package
I have the following code:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes,arrows,positioning,chains}
...
11
votes
1answer
1k views
How to keep aspect ratio of marks in TiKZ plot when using different xscale and yscale?
I would like to scale my TiKZ plots using different scale for X axis and Y axis. The problem I had is the plot markers size are affected by the scale and do not maintain the aspect ratio. How do I ...
4
votes
1answer
661 views
Scaling and positioning TikZ figures in equation environments
I am trying to use TikZ figures as part of an equation, but I am only able make either the positioning or the scaling appear correctly.
For instance, giving my figures the correct size using ...
12
votes
3answers
2k views
Scaling a TikZ figure from an external file
I would like to insert figures which were created with TikZ to my LaTeX document.
I suppose that if I create the TikZ figure inside the document, that wouldn't be a problem - I'd just play with the ...
27
votes
3answers
4k views
pgfplots: how can I scale to text width?
This question led to a new package:
tikzscale
When I try to scale a plot with: width=\textwidth there is some horizontal space between the
start/end of the plot and the start/end of the ...
5
votes
1answer
136 views
Scaling isn't affecting a diagram made with the tqft package
I'm trying to make a drawing, part of which will use Andrew Stacey's tqft package. However, everything his package produces seems to be immune from scaling.
For example, the following code is my ...
11
votes
2answers
1k views
Shrink figure only when necessary?
I'm writing a report where I have generated and included several TikZ pictures which I also want to use in my beamer presentation. However, some of the pictures (but not all) which fit in the report ...
4
votes
1answer
342 views
What are the guidelines for making TikZ pictures properly scalable?
I've just started using TikZ for rendering figures for my Master thesis. I've made a few and they look good in the report. But when I tried using them in my presentation slides, some were too small ...
1
vote
1answer
978 views
Using scalable sizes for rectangles, circles and nodes in TikZ?
How do you define the size of a rectangle, circle or node in TikZ to be scalable, like when you position objects using (1, 2) and then apply scale=2? What I'm looking for is to be able to scale the ...
5
votes
1answer
452 views
Automagically scale Tikz-Picture AND use Externalization
I need to scale Tikz pictures automatically, and I do this using the following custom environment:
% Automagically scale a Tikz picture, so it has the desired (given) width.
% Does NOT scale line ...
6
votes
1answer
645 views
Scale tikzpicture to the remaining height of a beamer frame
Often in a frame (of beamer), I have some texts on the top and a resized tikzpicture on the bottom:
\begin{frame}
\frametitle{...}
some texts
...
some texts
\[\resizebox{!}{???}{
\begin{tikzpicture}
...
0
votes
0answers
237 views
How to resize 3 parts of a frame (of Beamer)? [closed]
I have split a slide into 3 parts: a block on the top, and 2 pictures on the bottom side by side:
\begin{block}{concretization}
\renewcommand{\arraystretch}{1.5}%
\resizebox{\textwidth}{!}{
...
...
37
votes
2answers
12k views
How to scale a tikzpicture including texts?
It seems that the scale option scales only the length of lines, but not the size of texts. For instance, 1 and true and not scaled in the following code.
\begin{tikzpicture}[thick, scale=0.6]
\draw ...
18
votes
3answers
3k views
How to scale Tikz drawings and text together?
I'm trying to build a diagram (a logo, actually) that I can scale easily through a parameter. I'd like to be able to scale both drawing and fonts through a single parameter.
Here's my current MWE, ...
9
votes
1answer
6k views
How to properly scale a TikZ/PGF picture which has a `\begin{axis}…\end{axis}`
Applying a scale option to a TikZ picture works great. It keeps the text the proper size and scales everything else. I would like to have the same behavior when using a \begin{axis}...\end{axis}.
...
9
votes
3answers
7k views
Scale TikZ figure to linewidth when relative positioning used
This question is a follow-up to How to scale a tikzpicture to \textwidth.
Unfortunately I haven't been a member long enough to post comments in that thread to ask for clarification.
I have some ...
9
votes
2answers
2k views
Why does fit not scale? (tikz)
I have a problem with the fit library in TikZ.
When I scale the figure (with the tikz scale command), the fit box doesn't!
Why is that? Could I somehow change it?
Example:
\documentclass{article}
...
40
votes
4answers
2k views
How to scale a tikzpicture to \textwidth
I would like to scale my tikzpicture to exactly (or a proportion of) the \textwidth
Of course I could play with the [scale=0.5] option until I found the right value, but I assume there must be an ...

