Tag Info

New answers tagged

0

I'd use a simpler approach: \documentclass{article} \usepackage{graphicx} \newlength{\ftextheight} \newcommand{\setfactor}[1]{% \setlength{\ftextheight}{#1\textheight}% } \begin{document} \setfactor{0.15} \includegraphics[height=\ftextheight]{example-image} \includegraphics[height=0.5\ftextheight]{example-image} \end{document} The command ...


3

Evaluate the one factor first using a dimension expression \dimexpr: \documentclass{article} \usepackage{graphicx} \begin{document} \def\factor{0.15} \includegraphics[height=\factor\textheight]{example-image} \includegraphics[height=0.5\dimexpr\factor\textheight]{example-image} \end{document}


1

Save the picture into a box and use \wd\IBox: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \newsavebox\IBox \begin{document} \sbox\IBox{\includegraphics{esempio3024nuovo-1.eps}} \begin{tikzpicture}[xscale=\linewidth/\wd\IBox,yscale=1] \node at (0,0) {\usebox\IBox}; \end{tikzpicture} \end{document} or \node at (0,0) ...


17

Nobody told you because, simply, you can't do it. This runs without error: \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics[width=10pt plus 10pt minus 2pt]{example-image.pdf} \end{document} but this is not a sign that it does something according to your wish. Indeed, it's sufficient to look at the output: Your code ...


0

Great, thanks David, you put me on the right path. What I needed was: \left\{\begin{array}{l}x+y = z \\ 2x - 3y = yomamma \end{array}\right. The \right. performs the required matching of \left\{ without actually drawing a closing brace. \begin{array}{l} defines a left-justified array, and gets closed with \end{array}. The l (that's a lowercase "L") is ...


4

It's not clear the layout you want, I offer three possibilities below. Using LaTeX markup to keep it on topic for this site. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \left\{ x+y = z\right. \\ 2x - 3y = yomamma \end{align*} or \[ \left\{ \begin{aligned} x+y &= z \\ 2x - 3y &= yomamma ...


0

This can be achieved by putting your \includegraphics command inside of a \resizebox. \resizebox{\width}{1cm}{\includegraphics[scale=0.5]{e1.png}} will resize your graphic to maintain its original (after scaling) width, but have a height of 1cm. Here's an example: \documentclass{article} \usepackage{graphicx} \begin{document} ...


0

You also can use the medize environment, defined in the nccmath package: this size is ~80 % of displaystyle: \documentclass{beamer} \usepackage{nccmath} \begin{document} \begin{frame} \frametitle{XXX} \[ \begin{medsize}\begin{pmatrix} I_{\frac{k}{2} × \frac{k}{2}} & 0_{\frac{k}{2} × \frac{k}{2}} & 1_{\frac{k}{2} × 1} & E_{\frac{k}{2} × ...


1

The only tricky bit is that \resizebox puts you back into text style. \documentclass{beamer} \begin{document} \begin{frame} \frametitle{XXX} \[\resizebox{\textwidth}{!}{$\displaystyle\begin{pmatrix} I_{\frac{k}{2} \times \frac{k}{2}} & 0_{\frac{k}{2} \times \frac{k}{2}} & 1_{\frac{k}{2}\times 1} & E_{\frac{k}{2} \times (\frac{l}{2}-1)} & ...



Top 50 recent answers are included