34
votes
Accepted
Setting table-width exactly to linewidth
I think you have two good choices and a (likely) dreadful choice:
Use a tabular* environment,
Use a tabularx environment (or its close cousin, tabulary)
Use the basic tabular environment and scale ...
33
votes
How to scale a tikzpicture including texts?
If you want to scale everything in your tikz picture, you could also place it within a \scalebox or \resizebox (from package graphics/x)
Examples:
\scalebox{0.6}{
[Your tikz goes here]
}
\resizebox{....
31
votes
beamer: How to align two images side by side and to scale them automatically to use whole slide?
If you want to add captions to it, I suggest:
\begin{frame}{Pixelweise Segmentierung}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
\...
20
votes
Accepted
Scaling tikz brace
Add this after decorations.pathreplacing is used. It will scale the brace if it is necessary.
\makeatletter
\let\pgf@decorate@@brace@brace@code@old\pgf@decorate@@brace@brace@code
\def\pgf@...
19
votes
Accepted
Why not scale elements that contain text
For good fonts, different font sizes don't only have a different size, but the actual shape of the letters is different.
Consider the following example:
\documentclass{article}
\usepackage{...
18
votes
Scale image to page width?
width=\columnwidth worked for me in a two-column document:
\begin{figure}
\includegraphics[width=\columnwidth]{myfigure.pdf}
\caption{My amazing figure}
\end{figure}
18
votes
Accepted
Really wide hat symbol
An alternative (and very simple) solution consists in using the package yhmath (which, as far as I was able to understand from its documentation, requires the amsmath package).
With such a package (i....
18
votes
Accepted
Inserting PNG file as is
This question cannot have general answer for ALL monitors.
The size of the PNG image on the screen depends on the screen resolution (e.g. 110.27 PPI (pixels per inch) for my MacBook), and on Retina (...
15
votes
Accepted
Little problem with xscale and tikzducks
The book is a node , and nodes are only transformed (rotated etc) if you use the transform shape key. But naturally this will also mirror the text, so you need reflectbox to get it back::
\...
15
votes
Why not scale elements that contain text
Scaling an element which contains text will result in an inconsistent font size compared to the rest of the document.
Especially automatic scaling to fit a table to the text width (\resizebox{\...
14
votes
Accepted
How to make the summation sign wider?
I don't think you want something like this
or
Code for the first image
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\newcommand{\widesum}[2]{%
\mathop{\vcenter{\hbox{\...
13
votes
Accepted
Arrows of arbitrary length
\documentclass[12pt]{article}
\begin{document}
Foo vv \parbox{.5cm}{\rightarrowfill} Bar $\rightarrow$ Baz
\end{document}
For lengths shorter than the default \rightarrow, you can go to TikZ:
\...
11
votes
In beamer, What's the "right way" to scale a slide element down to better fit?
To achieve a very similar goal I generally use the following:
\begin{frame}
\frametitle{Size changed}
\scalebox{0.8}{\begin{minipage}{1.20\textwidth}
... your content here ...
\end{minipage}}
\end{...
11
votes
Accepted
Knowing how much \resizebox scales
\resizebox is just \scalebox with a scale factor being the number that you ask for. So you can just persuade it to expose that number rather than just use it in a local group and discard it.
\...
11
votes
Accepted
LaTeX - how to detect scale of \includegraphics
If you specify both height and width keys, and specify keepaspectratio then the values are taken as upper bounds and the image is scaled so that both height and width fit within the specified areas, ...
11
votes
Accepted
Recreate textlogo
The official logo is available as svg here
https://uit.no/ressurs/uit/webmain/img/Navnetrekk_norsk.svg
If you take the first three paths from that file they draw UiT
<path fill="#231F20" d="M13,...
10
votes
TikZ: the scale option changes font size
If your tikzpicture only contains a PGFPlots axis, you can move the scale=2 to the axis options: that way, the font sizes aren't affected.
\documentclass[a4paper]{article}
\usepackage{tikz}
\...
10
votes
Why does pdfTeX use character expansion instead of line scaling?
The first versions of pdftex actually implemented font expansion by way of horizontal scaling (as outlined in this TUGboat article). It was only later (with version 0.14f, I guess) that expansion was ...
9
votes
Accepted
Crop an image in tikz using 2 points of reference and a height
Package adjustbox
Your preamble already contains package adjustbox. It provides the features you need for trimming and clipping
I am not sure, which spacing is needed around the image. The following ...
9
votes
Accepted
Automatically fit the graphics in the remaining space of a Beamer slide
One way is to define a new command which takes as arguments the frame content before the image, the file name of the image and, optionally, any frame content following the image. So that these can be ...
9
votes
how to scale each dimension of an image with different ratio
There are several ways to go about this.
In the graphicx package you can specify:
\includegraphics[width=<dim>,height=<dim>]{<file name>}
You can also use
\scalebox{<...
9
votes
How do I draw on images embedded with \includeimage in TikZ with pixel accuracy?
You're trying the right thing, but the coordinate calculation syntax is a bit limited: it expects the factor for stretching the vector to appear at the start of the expression. So you could use
\...
8
votes
Really wide hat symbol
I tried some of these except the {mtpro2} since for submitting articles that might not be acceptable by publishers!
As I was not satisfied by the previous methods mentioned above, I tried to tailor ...
8
votes
using underbrace without having left( and right) scale
I prefer \smash[b]:
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
Here could be text.
\[
\left(2,\smash[b]{\underbrace{\frac{5}{3}}_{\mathclap{\approx 1....
8
votes
Automatically fit the graphics in the remaining space of a Beamer slide
Following code shows an alternative solution using tcolorbox package and its space to option.
space to = macro saves (after several compilations: two or more) into macro the difference between box ...
8
votes
Accepted
8
votes
Part of the standalone tikzpicture gets scaled when pasting it in a document
The problem are different font sizes (12pt in the main file and default 10pt font size in the diagram file as you use \textwidth to size your polygon and this length depends on the document default ...
8
votes
Accepted
Scale down verbatim environment even further
This way? See: How to get an even smaller font size than \tiny?.
\documentclass{beamer}
\usepackage{graphicx}
\usetheme{default}
\usepackage{float}
\usepackage{tikz}
\usepackage{amsfonts}
\...
8
votes
Accepted
Are \onehalfspacing and {spacing}{1.5} Supposed to Yield Different Results?
The environment name is onehalfspace, not onehalfspacing AND, it is (for a 10pt document) equivalent to \begin{spacing}{1.25}.
\documentclass{book}
\usepackage{setspace}
\usepackage{lipsum}
\begin{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scaling × 671tikz-pgf × 180
graphics × 122
fontsize × 63
tables × 54
math-mode × 43
fonts × 43
beamer × 38
pgfplots × 37
floats × 31
symbols × 23
pdftex × 17
positioning × 16
boxes × 16
adjustbox × 16
horizontal-alignment × 15
width × 15
margins × 11
fontspec × 11
rotating × 11
minipage × 10
nodes × 10
includegraphics × 10
diagrams × 9
pstricks × 9