# Tag Info

## Hot answers tagged graphics

8

LaTeX is so not designed for this kind of document. But if you must, must. \documentclass{article} \usepackage{graphicx} \begin{document} \setlength\unitlength{1cm} \vspace*{\fill} \noindent \begin{picture}(0,0)\bfseries\large \put(4,3){\includegraphics{house}} \put(0.5,5){\parbox{5cm}{\raggedright If you are feeling generous I'd like a house, ...

7

I apologize to the OP for providing not a TikZ-only solution, but there are already three good TikZ-only answers and a future reader of this question may have use of my answer relying upon the tcolorbox package (which is actually based on TikZ). With the current version 3.30 (2014/11/17), a really short answer can be given using the \tcbincludegraphics ...

6

the class apparently sets up \small to set \spaceskip which seems wrong in general and is a disaster inside a tikzpicture You can avoid the problem by moving \small or you can reset \spaceskip: \documentclass[twoside,a4paper]{tufte-handout} %\documentclass{article} %uncomment this to see what's happening \usepackage{tikz} \begin{document} ...

5

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}

5


5

Here is a solution (with double inclusion of picture): \documentclass[twoside,a4paper]{tufte-handout} \usepackage{blindtext} \usepackage{tikz} \usepackage{graphicx} \usepackage{calc} \newcommand*{\ClipSep}{0.4cm}% \begin{document} \marginnote{% \begin{tikzpicture} \node [inner sep=0pt,draw=white](a) {\includegraphics[width=\linewidth]{example-image}}; ...

5

Different frog ;-) from internet. The proposed solution utilizes the current bounding box information to draw 4 arcs at 4 corners and fill them with white color. The radius of the corners is defined by \r that can be adjustable. Code \documentclass[twoside,a4paper]{tufte-handout} \usepackage{blindtext} \usepackage{tikz} \usepackage{graphicx} ...

4

How about a path picture? Then the clipping is done for you. However you have to get the height of the image first which I did by putting it into a temporary box. It is probably more efficient to set the minimum width and minimum height keys to \wd\tmpbox and \ht\tmpbox+\dp\tmpbox respectively, but I just used \phantom. ...

4

Trimming of PDF images The program pdfcrop calls ghostscript to calculate the visible area of the image and writes a PDF file with the new bounding box without the white space margins: pdfcrop fig.pdf This writes fig-crop.pdf. Also a different output file name can be specified, see pdfcrop's options. Then the cropped image is inserted in LaTeX: ...

4

Since the file name encoding seems to be UTF-8, the file name needs to be reencoded from Latin-1 to UTF-8. This is also supported by package grffile: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{graphicx} \usepackage[encoding,filenameencoding=utf8]{grffile} \begin{document} \includegraphics{Bäckerstraße} \end{document} Alternatively ...

3

\documentclass{book} \usepackage{graphicx} \makeatletter \def\Demo{% \def\Ginclude@graphics##1{% \rule{\@ifundefined{Gin@@ewidth}{150pt}{\Gin@@ewidth}}% {\@ifundefined{Gin@@eheight}{100pt}{\Gin@@eheight}}}} \makeatother \begin{document} \begin{figure} \centering\Demo \includegraphics[width=8cm,height=5cm]{Koala_whatever}% \caption{My ...

3

Add \usepackage{tikz} to your preamble, and this at the end: \printbibliography \thispagestyle{empty} \begin{tikzpicture}[remember picture,overlay] \node[anchor=south east] at ([shift={(2.3in,-1.3in)}]current page.south east){\includegraphics[scale=0.3]{images/LoveNalle}}; \node[] at ([shift={(0cm,2in)}]current page.south ...

3

The URL is not specifying a location of an image to TeX, it is specifying what the PDF reader should do when the user clicks on the link. You have \includegraphics{hbv} so tex needs a file of that name in its search path.

3

The PDF standard does not provide a means for displaying remote images from URLs at viewing time. So \includegraphics cannot embed these. But the Adobe Supplement to the ISO 32000 defines the RichMedia Annotation. It is implemented in AdobeReader on Windows and MacOSX and allows playing media (embedded or from URL). Here is an example, using ...

3

Actually it's the other way round:-) the path mechanism is implemented for \input and \includegraphics locally sets it to the value given in \graphicspath . So most efficient is don't use \graphicspath just set TEXINPUTS="D:/work/figures;" before you run latex which will add that folder to the start of the search path. Or, if you want to use the ...

2

Running the tikzpicture by itself causes the 800 to get clipped. Expanding the y limits via enlarge y limits = {abs=0.7}, will fix that. Additionally you can use \raisebox to adjust the alignment. Note, the first argument of \raisebox moves the baseline, which has no effect. The second argument changes the (apparent) height. The 3.05cm was obtained by ...

2

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 ...

2

todonotes has a facility to show missing figures. \documentclass{article} \usepackage{todonotes} \begin{document} \begin{figure}[htb] \missingfigure[figwidth=0.7\textwidth]{My first figure} \missingfigure[figheight=6cm]{} \end{figure} \end{document}

2

Like todonotes does, you could just include some TikZ rectangle. I made some macro for you, which gets the dimensions of the actual picture and sets them to the dummy node: % arara: pdflatex \documentclass{article} \usepackage{graphicx} \newif\ifdraft \drafttrue %\draftfalse \newsavebox\imagebox \usepackage{xparse} \DeclareDocumentCommand \includedraftpic ...

2

Here's a solution that adds a noincl key: \documentclass{article} \usepackage{graphicx,etoolbox} \makeatletter \define@key{Gin}{noincl}[true]{% \lowercase{\Gin@boolkey{#1}}{draft}% \lowercase{\Gin@boolkey{#1}}{noincl}% } \newif\ifGin@noincl \patchcmd{\Gin@setfile}{\hb@xt@}{\noinc@box{#3}}{}{} \def\noinc@box#1#2#3{% \ifGin@noincl ...

1

You can slightly change this answer to not display the filename and use it as a command: \documentclass{book} \usepackage{picins} \usepackage{graphicx} \makeatletter \newcommand{\imagedraftmode}{ \def\Ginclude@graphics##1{% \parpic(\Gin@@ewidth,\Gin@@eheight)[d]{}\picskip{0}}% } \makeatother \begin{document} \begin{figure} \centering \imagedraftmode ...

1

You need to declare extensions which should LaTeX try when including graphics. You can use \DeclareGraphicsExtensions in the custom config file: \Preamble{xhtml} \DeclareGraphicsExtensions{.jpg,.png,.gif,.svg} \begin{document} \EndPreamble save this as myconfig.cfg and compile with htlatex filename myconfig LaTeX now should try each of jpg, png, gif ...

Only top voted, non community-wiki answers of a minimum length are eligible