Tag Info

New answers tagged

1

The scale parameter only scales the coordinates. In order to scale the whole environment you have to use scalebox or resizeobox \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{figure} \scalebox{0.3}{% \begin{tikzpicture}[transform shape] \draw[very thick, dashed] (0,0) -- (10, 0); \end{tikzpicture} ...


2

You could do this in a 2-step process. First, create the full size PDF as usual, then include that PDF in a new Latex run using pdfpages. pdfpages allows scaling and offsets. sample.tex \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum \end{document} Final latex document that includes sample.tex. Play around with the scale and ...


8

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 example lets the image behave as it would have the height of the upper case letter H and the depth of g. \documentclass[12pt,a4paper]{article} ...


2

I've just realized that there is, in fact, a simple solution. First, a demonstration of what happens normally (a MWE if you will): settings.outformat="png"; settings.render=4; import three; size(4cm); currentprojection = perspective(2,0.7,0.8); path3 thecircle = circle(c=X, r=0.5, normal=X); surface cyl = extrude(thecircle, -2X); draw(cyl, ...


0

If you need the curly braces to stay "curvy" even if they're quite large, you may want to look into using the mtpro2 package and its \LEFTRIGHT macro. The smallest curly brace, on the left, is generated by \{; the largest curly brace is more than 5 cm tall! Note that all braces are "curvy", which is not the case if one uses \left\{... to generate them. ...


2

\left needs an accompanying \right (within the same group) in order for it to work as expected. The null delimiter . could be used to provide an accompaniment that shouldn't be printed (and may require some spacing correction). For fixed-height sizes, you can use \big, \Big, \bigg or \Bigg. Extensible delimiters require \left (or \mleft): ...


0

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{center} X\dotfill X \resizebox{\textwidth}{!}{% \includegraphics[height=1cm]{example-image} \includegraphics[height=1cm]{example-image-4x3}} \end{center} \end{document} The initial 1cm height is arbitrary, then scale the combined pair to text width.


0

This answer scales plot without scaling text. It uses environ package and a macro measuring tikz picture's size. I can't compare it with tikzscale, but wanted to post this alternative (there is also a link to an alternative without environ) which is missing in tikzscale documentation on this topic.



Top 50 recent answers are included