# Tag Info

3

The test file test.tex for the examples below is the file from the question: \documentclass{article} \usepackage[margin=0cm,paperheight=20cm,paperwidth=5.5cm]{geometry} \begin{document} \noindent hello world \end{document} The following options of dvipng work for me: dvipng -D300 -O 1in,1in -T 5.5cm,20cm test Result: test1.png identify test1.png ...

1

To strip all .png files with ImageMagick, you can simply run the following command find . -type f -name "*.png" -exec convert {} -strip {} \;

5

Step 1 Make sure you have installed ImageMagick. Step 2 For the sake of simplicity, I create converter.tex which embed your code inside as follows, % this file name is converter.tex % compile it with pdflatex -shell-escape converter.tex \documentclass[preview,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{diagram.tex} ...

4

Not exactly an answer to the question, but it is fun. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \draw[yellow,yslant=0.5] (0,0) rectangle (2,2); \node[yslant=0.5,anchor=center,opacity=0.3] at (1,1.5) {\includegraphics[width=2cm,height=2cm]{example-image-a}}; ...

3

There are several questions on the site which address filling a shape with an image in TikZ, for example: TikZ: Drawing regular hexagons with pictures inside How to clip an external image inside an ellipse We can adapt those solutions to your 3D shape. We use \clip to restrict to the front square of the cube, then add the image, and finally we draw the ...

Top 50 recent answers are included