Tag Info

Hot answers tagged

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


5

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

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


5

Put this just before the \begin{document} \makeatletter \renewcommand*{\makeletterclosing}{ \@closing\\[3em]% {\includegraphics[width=2cm]{example-image-a} \par \bfseries \@firstname~\@lastname}% \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% {\color{color2}\itshape\enclname: \@enclosure}}} \makeatother Change ...


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

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

Here is another answer that uses a box and tikz. To make this look different, I have used a macro \myclippedpic. \documentclass[twoside,a4paper]{tufte-handout} \usepackage{blindtext} \usepackage{tikz} \newcommand*{\ClipSep}{0.4cm}% \newbox\tmpbox \newcommand{\myclippedpic}[1]{% \setbox\tmpbox=\hbox{\includegraphics[width=\linewidth]{#1}}% ...


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

With a bit of care you can set the float placement parameters to prevent floats within the region, here I set totalnumber to 0. It is a global setting so you need to explicitly set it back at the end, you can not use a group to restore things. Also because of its global nature and the timing of the page breaking sometimes a bit of care needs to be taken into ...


3

The reference point of an image is on its bottom edge and the default reference point of a tabular or array is its vertical centre, which is why your image shows the bottom edge of the image in line with the array's centre. Use \begin{array}[b] so the reference point for the array is on its bottom row, or use \raisebox to move the reference point of 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 ...


1

Another option is to load \usepackage[export]{adjustbox} and use valign=c in \includegraphics[keepaspectratio=true,width=.2\paperwidth,valign=c]{example-image-a} Code: \documentclass{beamer} \usepackage[export]{adjustbox} \begin{document} \begin{frame}\frametitle{Transportation polytope constraints} A $\nu$-index transportation polytope is a polytope ...


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