# Tag Info

3

The matplotlib PGF backend saves as raw PGF. What you probably want instead is pgfplots, which you can get using matplotlib2tikz, assuming your plots aren't too complex and all the features are supported. Sample Python script for creating figure: from pylab import * from matplotlib2tikz import save as tikz_save x = linspace(0, 10, 101) plot(x, sin(x)) ...

7

I suggest defining the scale factor as a macro \imagescale (say). This way, a single change will affect everything: \documentclass{article} \usepackage[export]{adjustbox}% http://ctan.org/pkg/adjustbox \newcommand{\imagescale}{0.2} \begin{document} \begin{enumerate} \item \includegraphics[scale=\imagescale,valign=t]{example-image} \item ...

2

use \scalebox{0.7}{\parbox{\linewidth}{% ... }} Otherwise you'll get two paragraphs inside scalebox. However, two equation environments can be replaced by one of the align environments from amsmath.

3

you have two unwanted spaces. Use \documentclass{article} \usepackage{graphicx} \usepackage{showframe} %% just for demo \begin{document} \begin{table} \resizebox{\textwidth}{!}{% \begin{tabular}{*{14}{|c}|}%%{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}\hline One & Two &Three & Four & Five & Six & Seven & Eight & Nine & Ten ...

4

\resizebox should work provided you put \usepackage{graphicx}. But here is a better option with adjustbox package. With this, you can resize only if the table goes beyond \textwidth, otherwise not. \documentclass{article} \usepackage{adjustbox} \usepackage{graphicx} \usepackage{showframe} %% just for demo \begin{document} \begin{table}[h!] \centering ...

3

dirtree is just text, so you could use \scalebox and friends but it's usually better with text just to select a smaller fontsize as that gives more regular output. so \footnotesize or \small or whatever. I used \small here, I also fixed several other spacing issues (you need to allow space for the fbox rules and padding when allocating the width to the ...

4

that cannot work, because all PSTricks objects have inside TeX a width and height of 0pt. That is the reason why you can't expand "nothing" to 1x1. This will work: \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}[showgrid](10,10) \psscaleboxto(1,1){\rule{5cm}{5cm}} \psframe*[unit=0.2,linecolor=red](5,5)(10,10) ...

0

The answer to this depends on what your purpose is in saving the xscale. There are two possibilities that I can think of: You want to know what was passed in via xscale. You want to know the xscale of the current scope. The first is quite easy, the second depends on what you mean by xscale. The reason that the first isn't trivial is because TikZ does ...

1

As Andrew says, you can use the transform matrix, which is an accumulation of all transformations currently applied to the current scope. The relevant details are found in Sections 104.2.1 and 104.2.4 of the PGF Manual (v3.0.0). I defined a command \getmytransformmatrix that stores PGF's internal representation of the transform matrix into the macros \mya, ...

0

I am writing a report and facing similar problem. I want to included a long table (spreading over many pages) in the appendix of the report. The tale contains around 100 columns but only four rows. I want to include maximum columns in a page. I am using the following latex command line. I would be grateful for a favorable consideration. \begin{landscape} ...

Top 50 recent answers are included