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

learn more… | top users | synonyms

135
votes
11answers
39k 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 ...
0
votes
0answers
28 views

Use “length without unit” as scale parameter

I'd like to have a number variable in Latex to be used for the scale parameter in an includegraphics command (for example, to let all finite state machine pictures be scaled to the same size). This ...
34
votes
2answers
770 views

What is truecm?

In examples found around the web, some people specify lengths such as width=5truecm with \includegraphics or the geometry package. How is this different from regular 5cm?
5
votes
2answers
161 views

Optical sizes and how to use them (luaTeX, possibly XeTeX)

I know of the OTF "optical sizes" feature, but I don't know how to use it properly. How can I check which optical sizes are available for my font? E.g. I have Adobe Caslon Pro which has the ...
17
votes
2answers
27k 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 ...
2
votes
1answer
71 views

Symbol not in line with text

I'm using this solution of this question for printing a warning sign. But the text and the Symbol are vertically not correct algigned aligned in my special case. I want to have the same lower ...
2
votes
0answers
18 views

Scaling axis in addplot

When using the following code \documentclass[border=1cm]{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[...
14
votes
5answers
240 views

Store and reproduce effective graphics scaling

When an image's length is scaled to a variable length, say \textwidth, how can I determine the effective scaling factor? \includegraphics[width=\textwidth]{image.pdf} I would like to use it to ...
2
votes
1answer
41 views

Scale lowercase symbol to uppercase height

I would like to type a company name which contains a greek letter, e.g. Name\:$\alpha$, but I would like the lowercase greek symbol to be the size of a capital letter, which I have hacked using Name\:...
4
votes
1answer
101 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. \...
0
votes
0answers
30 views

In beamer, What's the “right way” to scale a slide element down to better fit?

I want to scale down an element in a slide so that it fits the width and/or height better. I'm willing to reduce the font size, use something like a scalebox/resizebox, or anything similar (not space ...
3
votes
2answers
69 views

Scaling tikz figures in beamer latex

I have the following example: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
1
vote
1answer
38 views

Latex PGFplots Standalone including option build scales

As asked here I set up a template for plots that can be used with standalone and included into the main document. 1 remaining problems is that the cropping does not crop enough of the whitespace ...
1
vote
2answers
73 views

Is it possible to scale the entire title page?

I am creating a booklet which has now a rather fancy title page with various fonts, font sizes, horizontal and vertical spacings, images embedded etc. It looks nice, but somehow the margins (let me ...
2
votes
1answer
48 views

Resize or scale displaymath environment

I would like to resize the two schemes I made with the displaymath environment. However, I cannot find anything helpful. I'd like to fit both schemes into one page. My code is the following: \...
2
votes
0answers
46 views

Downseizing of Din-A4 manuscript to special format

I've created my manuscript with the following document class and options: \documentclass [fontsize=12pt,paper=a4,headsepline,plainheadsepline,headinclude,twoside,open=right,DIV=14,BCOR=10mm] {scrbook}...
4
votes
1answer
104 views

How to use EB Garamont Font with KOMA Script Font Size 16pt

I am using the ebgaramond package in my scrbook document. As a base font size I want to use 16pt but when I compile the document I get warnings like the following: LaTeX Font Warning: Font shape `...
1
vote
1answer
53 views

Enlarging the table

How to enlarge this table? Thank you in advance \begin{table}[ht] \large \centering \begin{tabular}{c|c||*{8}{c|}} \multicolumn{2}{c}{} & \...
0
votes
2answers
112 views

How do you scale image to fit size of the paper?

I am making a presentation on beamer and I am struggling with image I don't understand: scale;line width;text height on positioning the image. Especially when I add caption it gets messed up. How do I ...
99
votes
4answers
168k 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.
0
votes
0answers
30 views

Using TexStudio on external monitor

I am trying to use TexStudio on an external monitor which resulted in scaling issues. I found the following solution: "Instead of specifying the commandline argument, you may alternatively place a ...
3
votes
1answer
3k views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). \...
6
votes
2answers
4k views

Scaling in CircuiTikZ

When scaling a circuit with the scale option: \begin{circuitikz}[scale = 'some_scale_factor'] all the coordinates are well scaled but not the components. How to correctly scale the whole scheme?
3
votes
1answer
302 views

Can't scale x-Axis to textwidth

I want to plot some measured values. The y-axis contains the the voltage and the x-axis time stamps. I used matlab2tikz to create this plot: If I want to plot the graph, the x-axis is not scaled to ...
5
votes
3answers
102 views

Automatically resize tabular to avoid it being pushed to next page

Context My document has one title phrase and one table containing texts. I would like to have them both on one page. The table's content may change (sometimes more or less 2-or-3-lines-texts cells),...
4
votes
1answer
69 views

Best way to scale a tikzpicture with matrices

I had the following figure in a document that I am looking to put in some beamer slides. The figure in question is to wide to fit in the slides, so I am looking to scale everything, by say, a factor ...
2
votes
2answers
72 views

Side-by-side figures with caption, specify height but use whole textwidth

I found this answer which does exactly what I want except the fact that I can't use a caption for my figures: Forcing subfigures to have same height and take overall X% of linewidth in LaTeX I want ...
4
votes
1answer
3k views

\scalebox doesn't compile

I want to scale down an equation and after trying lots of examples found on the internet I still cannot compile or see what is wrong. My code looks like: \usepackage{graphicx} .... \scalebox{0.7}{ \...
3
votes
2answers
55 views

How do I scale mathbbol symbols?

I have need of blackboard bold Greek symbols so am using the mathbbol package. I would prefer to have the symbols at 1.1 design size, say. How do I arrange to scale all the bbol symbols by this factor?...
2
votes
2answers
54 views

overlappings when texgyrepagella is used with stmaryrd

Consider running xelatex or lualatex on the following code: \documentclass[compsoc]{IEEEtran} \usepackage{unicode-math} \setmathfont[Extension=.otf]{texgyrepagella-math} %\usepackage{mleftright} % no ...
3
votes
1answer
39 views

How to attach properly spaced subscripts to a rotated symbol?

I'd like to attach letters to my rotated symbol and then shrink it down. However, when I do this, the spacing is very much different than when I do the same exact thing to the original symbol. Is ...
3
votes
1answer
89 views

How to scale a tikz graph

I would like to enlarge a diagram made with the \graph command, because the arrows at the current scale look too short to me. The options I have tried, however, seem to have no effect. I have tried ...
2
votes
1answer
44 views

Dashed or dotted scalable right brace in math mode wanted

How to to typeset a right brace which scales similarly to the left one in the "cases" environment and is dashed or dotted at the same time? The code below is almost ok---except that the curly bracket ...
1
vote
0answers
25 views

Fixing horizontal axis in pgfplots [duplicate]

I have the following plot and I would like to have the horizental axis fixed, but it scales and therefore I cannot see the details of the values between 0-50. To be more specific, in the horizental ...
11
votes
4answers
1k views

Sloped Tikz node with rotation and scale

There should be an easy way to place a sloped node along a path. Using sloped works great (as in the black text). However, if there is a rotate= applied then the text is no longer along the path (as ...
3
votes
2answers
55 views

pdfsavepos and scalebox

For aligning the notes in a beamer presentation (using PGFPages to put the notes page directly next to the presentation slides) at the same vertical position where the text was outputted, I use ...
74
votes
6answers
12k 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 ...
8
votes
2answers
257 views

How do I draw on images embedded with \includeimage in TikZ with pixel accuracy?

I want to draw on an image which I embedded using \includeimage: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0) {\...
8
votes
2answers
4k views

\hat and \widehat look terrible: fixing width and better positioning?

I want to make the use of quantum mechanical operators explicit in my text using \hat{A} or \widehat{A}. The problem is that depending on the symbol under the accent it looks either misplaced or too ...
19
votes
4answers
37k views

How to align two images side by side and to scale them automatically to use whole slide?

I have two images. How do I align them side by side and scale them so that both of them together occupy the whole horizontal space in a beamer presentation? \begin{frame} \frametitle{Inconsistency} \...
2
votes
2answers
57 views

Automatically make three brackets the same size

I would like to do something like left[ and right], but with an additional | in between which automatically has the same size as the left/right. This comes from the way I denote conditional ...
1
vote
1answer
113 views

How to scale figures and table to text width?

I'm inserted figures and tables in my document in the following way: \begin{figure}[!htbp] \centering \includegraphics[width=110mm]{figure.jpg} \caption{The caption.} \label{fig:label} \end{figure} \...
4
votes
2answers
74 views

How to autoscale and autoalign a TikZ picture to the surrounding text?

I'm designing some icons with TikZ to be used in my text. As a working example for this question let's a take a simple arrow: \tikz[->]{\draw[>=stealth] (0,0)--(1,0);} How can I treat this ...
12
votes
4answers
4k views

How to scale all fonts (in the whole document) by certain factor or percentage?

Is there a way to scale the font size of all text in a LaTeX document by a certain factor, something like \scalealltext{factor=0.95}? Edit: Text should reflow, so as to fit (a bit) more text on a ...
25
votes
3answers
23k views

Make two figures aligned at top

I am inserting two graphs (of different size) in the following way: \begin{figure}[H] \begin{center} \includegraphics[scale=0.5]{graph1.eps} \includegraphics[scale=0.3]{graph2.eps} \caption{\label{...
3
votes
2answers
109 views

Tikz: Creating narrow arrow heads / disproportionate scaling

I want to use arrow heads that look like the triangle 45, but due to my technical background I would like to get the opening angle smaller (and overally smaller in relation to the line width). My MWE ...
1
vote
1answer
59 views

How can I use resizebox within a custom environment (or is there a better way to scale an environment's contents)?

I'd like to create a custom environment that automatically expands my syntactic trees to a specific width. I am using the xparse LaTeX3 syntax for my environments. Relevant Snippet: I would like to ...
1
vote
1answer
49 views

Why are minumum width and minimum height options not affected by scale?

I have noticed that when I use the scale option in a TikZ picture, the values of minimum width and minimum height are not scaled. A MWE (both pictures are exactly the same, only the scale parameter ...
1
vote
1answer
51 views

Cache math content in savebox and account for math style

I am using Create a \savebox in a Group and have it available outside of group to cache some math content. However, I realized that there may be a case where the same math content needs to be cached ...
14
votes
1answer
179 views

Why does pdfTeX use character expansion instead of line scaling?

In order to achieve better spacing and line breaking, pdfTeX can expand fonts. The user decides how much stretching and shrinking is allowed for each desired font, and in what increments. However, ...