{scaling} is about scaling document elements. Use this tag in addition to other tags specifying what should be scaled.

learn more… | top users | synonyms

108
votes
10answers
23k views

Compile a LaTeX document into a PNG image that's as short as possible

I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
4
votes
1answer
113 views

Combine universal and existential quantfiers

I want to combine the existential and universal quantifiers so that the left part of the universal quantifier match the right of the existential. To do so I defined the command: ...
0
votes
1answer
31 views

Tikzpicture also scaling “dashed”, “dotted”, etc., patterns [duplicate]

I was wondering why predefined patterns like dashed, dotted, thick, etc., do not scaled when scaling the complete tikzpicture environment. Minimal Example: \documentclass{beamer} ...
0
votes
0answers
38 views

How to scale a figure including picture using tikzscale?

I'm having troubles with the tikzscale package. I'm trying to insert arrows above a picture. And, when I do so, I have the following error : "! Package tikzscale Error: Requested to scale unscalable ...
2
votes
1answer
32 views

Post process each entire page to move/resize contents

LaTeX beginner here. I am looking to physically print a rendered document on a size that is not 8.5 x 11. My printer can only handle that size, and does strange things to smaller pdf's. However. If I ...
4
votes
1answer
60 views

Crop an image in tikz using 2 points of reference and a height

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
4
votes
1answer
72 views

Asymptote: prevent label scaling in 3d perspective

Is there a simple way to prevent labels from scaling based on their distance to the camera in a perspective 3d view? (For example, see the first comment on this question or page 65 of this tutorial.) ...
4
votes
2answers
75 views

Using symbol “{” in big size

I want to use to symbol { in big size and I tested $\left\{$ but it is not functional. So, I need to help for writing this symbol.
1
vote
1answer
23 views

Side by side figures adjusted to have equal height

I have two graphics of different dimensions which I would like to put into my document side by side such that: The two figures are scaled to have the same height. The two figures take up the entire ...
42
votes
4answers
13k 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 ...
56
votes
5answers
5k 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 ...
0
votes
1answer
45 views

Longtable & scalebox

I have a very long table which i decided to make smaller using scalebox (successfully) and also split into two pages using longtable. However, no matter how hard I try, I cannot run those two things ...
1
vote
1answer
39 views

Setting table-width exactly to linewidth

I'm trying to create a table with exactly the same width as the surronding text. I would expect that the command \resizebox{\linewidth}{!}{..table..} should do the job. However, the tables width is ...
2
votes
1answer
40 views

Maximum figure width when using bmcart class

I am writing a paper for a journal and have to use the bmcart class of the BioMed Central template found here (direct link to ZIP file). I am using it with two columns: ...
9
votes
2answers
16k views

Really wide hat symbol

Is there any way to get a hat wider than widehat? Why doesn't \widehat{abcdefghijklmnopqrstuvwxyz} really go over all of it?
2
votes
0answers
53 views

Tikz node centers with scaling

Can you explain why TikZ places the node center incorrectly in this MWE? I expect the red node to overlap the black one entirely, but it does not. If I remove the scaling, the problem goes away. ...
1
vote
0answers
26 views

Minimize size of a figure (tikz - pgf) in LaTeX [duplicate]

I'm using MikTeX and WinEdt for writing an IEEE conference paper. To create a neural network structure I used this code : \begin{figure} \begin{tikzpicture}[ init/.style={ draw, circle, inner ...
11
votes
2answers
13k views

Fitting tables into beamer

I have some tables in my presentations that are rather big. I found out how to use \resizebox to fit them into my page. Unfortunately this only works for tables that are wide. For long tables, my ...
70
votes
4answers
97k views

Scale image to page width?

I use \inclugraphics[scale=TRYING TO GUESS THE NUMBER FOR PAGE WIDTH]{...} but I find this errorsome, is there some ready flag to set the image to page width? I usually use PNG and JPG photos.
2
votes
1answer
141 views

Scaling (and annotating) images in a rotated matrix of tikz nodes, scaled to page size?

In the MWE below, which currently results with this output (click for full-res): ... I want to: Arrange four images in 2 rows, 2 columns, for which I've used a \matrix of \tikz nodes, Have them ...
4
votes
2answers
239 views

TiKZ matrix of objects

I am drawing diagrams which consist of grids, some cells of which are filled with circles, like this: I created this picture with \begin{tikzpicture}[scale=0.6] \draw[shift={(0.5,0.5)}] (0,0) ...
2
votes
1answer
35 views

Scaling images when inputting a tex file

I am using Xcircuit to produce images which creates an eps picture and has latex symbol which is overlays on top of it. I would like to be able to scale the image as well as the symbols. i tried the ...
2
votes
1answer
501 views

LaTeX Table Generator

I'm new in Latex and I should deal with huge number of tables in different ways and limited time, for that I used LaTeX Table Generator website to make the process easier. Could you guys tell me what ...
16
votes
2answers
2k views

High precision \includegraphics for LaTeX

\includegraphics produces boxes whose witdth and height are about 0.5pt off: \usepackage{graphicx} ... \setbox0\hbox{\includegraphics[width=\textwidth,height=\textheight]{mypic}} \showthe\textheight ...
20
votes
1answer
11k views

Best figure size adjustment when dealing with different image sizes

I have a script which automatically creates a beamer presentation with several .ps images, each one inserted in a distinct frame. Those images consist on graphs built using GraphViz. The script is ...
3
votes
1answer
221 views

How to align and scale pdf in the same way

I have a big image in PDF and I use software to split that PDF into 5 equal pieces. I am using pdflatex to insert each pdf in a separate page with \includegraphics by the same scale factor. I need to ...
1
vote
1answer
95 views

Latex: Figure is too large for PDF

I am a graduate student working on a research paper. I am using WinEdit 8.1. I am new to latex but I am almost finished with the paper. I am have issue inserting a picture into the document. ...
11
votes
2answers
20k views

Resize table and caption

I usually apply a \scalebox to resize things, but I always stumble upon the fact that I cannot simply include a \caption{...} in the \scalebox. As an alternative to \scalebox, I found I may use ...
1
vote
1answer
72 views

Importing .pdf image created by Inkscape UNSCALED [closed]

I created a simple drawing in Inkscape, which I exported as .pdf to include it into a LaTeX file. In the image I want to have a nice 5mm grid. (Created using Extensions->Render->Grids...) If I ...
1
vote
1answer
72 views

LaTeX figure labeling using overpic: rescaling problems

I am using the overpic package to lay over different pictures in LaTeX. I am also labeling the axes of the figure using \put. The problem is say I have labeled the figure correctly. Now, sometime ...
1
vote
1answer
96 views

\resizebox and page sizes

What is the exact operation and syntax for resizing an object? I am writing a macro package for printing on multiple paper sizes, including A4 2-column, eBook-size, portrait and 9inx6in WEB browsable ...
0
votes
0answers
97 views

Text scaling for beamerposter

I am making a poster for a conference using the beamerposter package. I have made my own style file. However, I am unable do decide what would be the right scaling for the poster to be seen well. I ...
0
votes
0answers
27 views

scaling position of a graphic image in a table

I am trying to scale an image of a circle in the left of the exercise , the exercise is written in form of a table made of 3 columns, one for the points, the second is for the question and I want the ...
5
votes
2answers
103 views

Preserving font size in scalebox

I'm using a scalebox around a picture. There's text inside it. I'd like the text size to keep constant even if I change the scale factor. \scalebox{0.5}{ \begin{picture}(360,255)(0,0)% ...
2
votes
1answer
136 views

How to scale algorithm to fit in one frame and centered in the frame at same time?

Originally, the algorithm is too long to fit in the frame. If I use the \scalebox{0.8}{}, it can fit in the frame but doesn't look like to be centered in the frame. Here is the code and output. First ...
6
votes
2answers
144 views

Why do these TikZ intersections scale incorrectly?

In the following MWE, the shaded region scales incorrectly. The problem seems to involve the intersection calculations. What's the problem here? Here's the MWE, without scaling: ...
36
votes
2answers
5k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
1
vote
2answers
138 views

Keepaspectratio option for tikz picture

In my current document I have both pictures from file and tikz pictures. For the output I use both, landscape (for screen reading) and portrait (for print). For pictures loaded from file i use the ...
9
votes
1answer
765 views

Scale .pgf image but preserve font size

Using Matplotlib, I generated a .pgf image. import matplotlib matplotlib.rcParams.update({"pgf.texsystem": "pdflatex"}) from matplotlib.pyplot import subplots, show from numpy import linspace x = ...
2
votes
1answer
91 views

Passport photographs using resize

\documentclass{article} \usepackage{graphicx} \usepackage{calc} \usepackage{ifthen} \newlength{\oH} \newlength{\oW} \newlength{\rH} \newlength{\cH} \newcommand\PrintImage[3]{% width, height, image ...
2
votes
2answers
118 views

\textwidth within \resizebox

I want to the final row of a table to display the notes, spanning across all columns, using \multicolumn{#}{p{\textwidth}}{}. This does not work properly in connection with resize, because textwidth ...
2
votes
0answers
41 views

Trying to print to 11x17 as a book, but scale pages with booklet, margin problems

I'm trying to print a book to be bound in signatures for a finished size of 6x9 inches. My printer duplexes but only prints 11x17. I used the booklet package and set source to 6x9, but when the ...
4
votes
2answers
124 views

Two-lined brace in tikz node

I want to produce a timeline in the tikzpicture environment that looks like this: But my code, gives me the following: So I need the brace around both lines of my node! My code now looks as ...
2
votes
0answers
111 views

pgf plots, barplot, irregular spacing between bars/columns

I've created a (grouped) bar plot with three groups of bars/columns, but it would be great if the space between the first and the second group would be a bit larger than the space between the second ...
3
votes
3answers
58 views

Rescale tabular within math environment

I have made two tabulars, inside a pmatrix, inside a math environment (displaymath). The outcome doesn't fit on the page, does anybody know how I can scale my code, so that it fits? ...
4
votes
2answers
65 views

Calculate image sizing factor

How can I multiply a length e.g. \textwidth with two factors? Other way to express what I want to do is, How can I apply more than one mathematical expression within \includegraphics command? ...
2
votes
1answer
90 views

TikZ xscale \linewidth/width

I have a series of eps picture to be included in a LaTeX document. They need to be stretched to fit the linewidth, without mantaining their ratio. This solution works perfectly: ...
0
votes
0answers
119 views

Scale font sizes – match text font (Comfortaa) and math font

Before I start, I want to note that I don't know very much about (La)TeX's font system and find it to be very confusing and not very well-documented. I've read the "fntguide", but that only gives very ...
9
votes
1answer
1k views

Why has no one told me I can use rubber lengths for graphics? Is that bad?

I just had a thought. Quite commonly when I define a figure graphics I write something like: \begin{figure}[btp] \centering \includegraphics[width=0.95\textwidth] ...
2
votes
1answer
467 views

Horizontal character spacing using \resizebox

I have some LaTeX code that uses the \resizebox command to make some hipster text, but the compiled letters are not completely flush to each side. There is a slight space on each side of the line as ...