# Tag Info

0

In addition to Steven B. Segletes' answer, I have made a modification that offers to separate scaling-relevant from scaling-irrelevant arguments, so that, for example, a trimmed image can be used as the scaling base: \usepackage{graphicx,fp} \newcount\scaledwidth \newcount\unscaledwidth \newcommand{\SetTrimIncludegraphics}[3]{% % #1: scaling, #2: trimming ...

3

You can use \resizebox with the height given as the same height as a capital letter, e.g. A: \documentclass{article} \usepackage{graphicx} \newlength{\CapLen} \AtBeginDocument{\settoheight{\CapLen}{A}} % after \normalsize \begin{document} N\resizebox{!}{\CapLen}{$\alpha$}ME \end{document}

3

Here I introduce \SetIncludegraphics[]{} for the reference image whose purpose is to compute the \myscale while setting the image. What it does (in temporary boxes) is compare the results of the \includegraphics with and without the application of the optional argument. The \myscale is computed as the ratio of the widths of two images with vs. without the ...

3

With expl3 facilities, you can easily get the scaling factor: \documentclass{article} \usepackage{graphicx} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\setscale}{mmm} {% #1 is the object to scale, % #2 the width to scale to, % #3 the name for the scale factor \hbox_set:Nn \l_tmpa_box { #1 } \tl_clear_new:c {l_douba_scale_#3_tl} \...

5

The following example defines \setscalewidth[<options>]{<image} (and \setscaleheight) to set the scale used by LaTeX when including an image using \includegraphics[<options>]{<image>}: \documentclass{article} \usepackage{xparse,graphicx} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff \makeatletter \newcommand{\...

5

Here is my try:  The three images have different widths (big, medium and small), but the star has the same size on each. I used \settowidth to get the original image width, and \pgfmathsetmacro to divide the dimentions (answere by Matthew Leingang here helped me). \documentclass{article} \usepackage{graphicx} \usepackage{pgf} \begin{document} \newlength{\...

3

You can also use forest which optimizes trees sizes. I've changed slide distribution and distributed its contents in two columns. \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{forest} \begin{document} \begin{frame} \frametitle{Example: AVL Trees} \begin{columns} \column{.5\...

2

transform canvas seems to mess things up for some reason, but you don't need that, nor the resizebox. Just reduce the font size of the nodes, the level distance and the sibling distances. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} \frametitle{Example: AVL Trees} \textbf{2.} Consider the following tree $T$: \begin{tikzpicture}[...

1

Your standalone file uses fontsize=12pt while the main document uses KOMA's default which is 11pt. So the letters and numbers must be larger with mode=build than with mode=tex. The value of compat should be the same in both the main and the standalone file. But you forgot \pgfplots{compat=newest} in the standalone file. If there is no compat set the ...

1

Here, I first save the original geometry, Then, I place the page one contents in a saved \vbox, then change the geometry and present a scaled version of the box. Finally, I restore the original geometry for the next page. EDITED to apply \centering to \scalebox, as noted by OP. Note: I employ \savegeometry{} and \loadgeometry{}, but as runartrollet notes, ...

1

Using \scalebox is not always that pretty. Although you said that you didn't want to change the font for every field, this is exactly what I suggest you do. It keeps the font sizes consistent through your documents, and for the title, there really isn't that many fields. Have a look at Wikisbooks' article on font sizing for the different macros for the sizes....

1

You can vastly simplify your code: the minipages are not needed, nor the center environments. Also, a figure environment can contain any number of \caption commands, so you just need one (and definitely no [H] option). Apply a \footnotesize command as soon as the figure environment starts. I also fixed the appearance of text subscripts to be upright. \...

Top 50 recent answers are included