# Tag Info

1

The space you see is produced by \lineskip, which by default is 1pt (but in the minimal class is 0pt). Since most likely your images are higher than the baseline skip, the parameter will be used by the line breaking and boxing mechanism. See http://tex.stackexchange.com/a/96944/4427 for more information about \lineskip and when it comes into action. You ...

0

As separate images: with use of tabularx package: \documentclass[12pt]{article} \usepackage{tabularx} \usepackage{caption} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \usepackage[showframe]{geometry}% option 'showframe' is only for show page layout ... \begin{document} \begin{figure}[htb] \centering \begin{tabularx}{\textwidth}{*{2}{>{\...

2

Something like this perhaps? \documentclass{article} \usepackage{graphicx} \usepackage[most]{tcolorbox} \newtcolorbox{figbox}[1][]{enhanced jigsaw, sharp corners,halign=center,valign=center,boxsep=0pt,colback=white,equal height group=figs} \newtcolorbox{textbox}[1][]{enhanced jigsaw, sharp corners,halign=center,valign=top,boxsep=0pt,colback=white,equal ...

2

If you want to add \subcaptions then you will need the minipages. Otherwise, why bother? The \hfils provide equal spacing to the left, right and between. There is an automatic \hfil (actually \parfillskip) at the end of a paragraph. The tikzpictures default to bottom alignment. Using the baseline option will change that. \documentclass{article} \...

0

For PDF the engines and device drivers read the MediaBox, i.e. the dimensions of the included page. The Orientation is also used.

3

graphicx has been part of every latex distribution since 1994. Why do you say it is absent? I would recommend that you use this syntax. If you want to use graphics syntax (I wouldn't recommend it) then to scale a figure use: \resizebox{\textwidth}{!}{\includegraphics{fig1.jpg}}

0

Graphics drivers were recently reorganised. For a manual installation, the contents of the graphics-def package has to be installed in(texmf root)/tex/latex/graphics-def/. However the best solution is to use: TeX Live Package Manager (tlmgr) for TeX Live, TeX Live Utility for MacTeX, MiKTeX Package Manager (mpm) for MiKTeX.

2

There is only one problem with your code, which is using absolute coordinate (1in,-1in). While it is drawing paths TikZ uses absolute coordinates and when the diagram is completed, the whole figure is placed as a regular character. Instruction \node[anchor=north west] (a) at (1in,-1in) {\includegraphics[width=\coverpageimagesize, height=\...

1

I got it working by just adding shift={(current page.north west)} as an option for the image. That tells TikZ that the origin should be there. Also, note that the coordinate system in TikZ is just like in Geometry: positive values at the top and right, and negative ones at the left and bottom. I changed the node coordinates to point out that. Also, note ...

0

Here is just for the records. Thanks @JosephWright for your help! It was painful. Remember to download TeXLive from a verified site: http://tug.org/texlive/acquire-netinstall.html Here's the ISO one: https://www.tug.org/texlive/acquire-iso.html Hope that helps!!!

1

You just need to find an appropriate command to patch. For example, \documentclass{scrbook} \usepackage{graphicx,eso-pic,lipsum,etoolbox} \providecommand{\chapterhook}{} \makeatletter \patchcmd{\scr@startchapter}{\thispagestyle}{\chapterhook\thispagestyle}{\typeout{Patching chapter worked OK!}}{\typeout{Patching chapter failed! Oh no!!}} \newcommand*{\...

0

Like this, \documentclass[10pt]{article} \usepackage{graphicx} \usepackage{tikz} \usepackage{tikzpagenodes} \begin{document} \begin{tikzpicture}[remember picture,overlay,shift={(current page.south west)}] \node[anchor=south west] (0,0) {\includegraphics[width=\paperwidth,height=\paperheight]{pig}}; \end{tikzpicture} \end{document}

1

this wattmeter symbol looks very strange to me, never seen before. Nevertheless, you can use an empty source and some tikz-node to achieve it, e.g.: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \newcommand{\esourcetowattmeter}[1]{ \draw (#1)node{W}; \draw (#1.north) node[circle,draw,anchor=south,inner sep=0,fill=white,minimum ...

0

You need to have a look into the sources of class moderncv. Then you can find, that the code of header for style classic differes to the code of header for banking. In your case you need to change the code of header for banking. That is the reason you have to use: \patchcmd{\makehead} {\setlength{\makeheaddetailswidth}{0.8\textwidth}} {\setlength{\...

0

Change pdflatex to xelatex, it solves the problem for me.

1

There is nothing fancy about \graphicspath. You can use it in the preamble or within the document environment, and update it as you need it. Note that updating it from \graphicspath{{<pathA>}} to \graphicspath{{<pathB>}} will remove <pathA> from the selected graphics locations.

1

I also encountered this problem. pdfTex tells you to check the log, and there I found the follwoing: 2016-07-24 17:45:18,822+0200 INFO pdflatex - installing package graphics-def triggered by tex\latex\graphics-def\pdftex.def 2016-07-24 17:45:18,898+0200 INFO pdflatex - mpm: starting package maintenance... 2016-07-24 17:45:18,898+0200 INFO ...

0

To plot coordinates from a file use \addplot table [<column selection>]{<file name>}; If the optional argument for table is missing, the first column (with index 0) is used as x values and the second column (with index 1) is used as y-values. To plot f(x) with your file \begin{tikzpicture} \begin{axis} \addplot table {heat.txt}; \end{axis} \...

3

You can use the tall keyword to let the figure flow only around the following paragraph and let the rest continue after it. \useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=5cm] \starttext \placefigure[right,tall,none]{}{\externalfigure[ctanlion]} \input knuth \stoptext

4

I think you can use \flushsidefloatsafterpar or \flushsidefloats \setuppapersize[A4][A4] \useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=5cm] \starttext \placefigure[right,none]{}{\externalfigure[ctanlion]} \flushsidefloatsafterpar This text is placed left to the figure, which is exactly what I want. I would like this ...

1

You just need to create the legend before \addplot adds the default line definition. (I renamed the graph file when I copied it. Sorry about that.) \documentclass{article} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{loglogaxis} [ ...

2

Something like this perhaps (The special table design is left to the O.P. -- it depends on personal tastes) I've defined a simple key-value interface that takes the relevant entries as values and typesets. Since all is set in a group and preset to be empty, the default values are all empty. I also added a .lob file to be generated, i.e. a list of ...

3

It depends a lot on the type of overlapping you want. A simple way is negative space: \documentclass{article} \usepackage{graphicx} \begin{document} \hspace*{4cm}\includegraphics[width=5cm]{example-image-A}\hspace{-8cm}\includegraphics[width=5cm]{example-image-B} \end{document} In tikzpicture you can naturally do also overlaps.

1

One way is to redefine \thesubfigure as counter output, having \thefigure(\alph{subfigure}), but using \DeclareCaptionLabelFormat and \captionsetup is a cleaner and more flexibel way, in my point of view. Don't forget to call \captionsetup[sub]{labelformat=...}. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{caption} \...

1

The top margin value is not the same as headheight, as can be seen from the graphics (from geometry.pdf package documentation). There's a small \headsep value too, that serves as vertical spacing between the page header content and the real text body. \documentclass{article} \usepackage{graphicx} \usepackage{fancyhdr} \usepackage[headheight=65pt,tmargin=...

1

The answers here are pretty great if you just have a single equation you'd like to export. What if you have a list of equations in some file that you'd like to export? % equation 1 % $y = mx + b$ % equation 2 % e = \lim_{n \rightarrow \infty} \left ( 1 + \frac{1}{n} \right )^n You'd like to automatically export each of these equations to a separate ...

0

Not an exact solution, but a workaround. I wasn't happy with how much blank space Latex allowed between the two images. So I copied both images into MS word (or Google Docs), arranged them side-by-side, and used the Snipping Tool to create a "single" picture. What's seen below is a single .png file which is much easier to insert.

1

A solution with makecell, booktabs (to have some vertical padding around rules) and \raisebox: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{multirow, makecell, bigstrut, booktabs, float} \begin{document} \begin{table}[H] \centering \begin{tabular}{*{6}{c}} \toprule Graph & Situation & EV.diff. & Real.diff....

1

Showed picture you not obtain by showed code snippet ... it has to many errors. Edit: By help od Bernard answer I succeed to solve remedy in given MWE and now I'm able to provide complete solution. In it for centering of image I use TikZ picture option [baseline=(current bounding box.center)]. In ordinary cells work (to my opinion) very fine, but in \...

2

A tcbox (or a tcolorbox) were missing in this list. Some simple examples: \documentclass[a4paper]{article} \usepackage[most]{tcolorbox} \begin{document} \tcbox{\includegraphics[width=5cm]{frog}} \tcbox[colframe=green!30!black, colback=green!30]{\includegraphics[width=5cm]{frog}} \tcbox[sharp corners, boxsep=5mm, boxrule=1mm, ...

2

Your suggested solution won't really work if the references are supposed to be in order of appearance, since fixing a reference number will almost certainly make that reference end up out of order some of the time. But there's a simpler way to do this: use TikZ to annotate the figure; then you can include actual citations in the image annotations that will ...

1

Your description is somewhat vague, but I faced a similar problem in the past and solved it by rasterising the included pdfs using ImageMagick. You can try it as follows: convert -density 300 <input.pdf> <output.pdf> where the density parameter controls the rendering quality.

0

Here is a demonstration for \hangindent for 4 lines. I deliberately started the image at the baseline and used an image smaller than the gap. Note that wrapfigure normally adds a full \baselineskip above and below the image. \documentclass[a4paper,oneside]{memoir} \usepackage[inner=3cm,outer=3cm]{geometry} \usepackage[english]{babel} \usepackage[T1]{...

1

While some of the suggestions provide ways to avoid placing the actual image into the document, a number of them still require the image to be read from the disk or some such overhead. Since the desire was to avoid accessing the disk for each image, I instead propose redefining \includegraphicsas follows: \renewcommand\includegraphics[2][]{\fbox{Image}} ...

1

I found the problem. The image had resolution of 32767.00 pixels per inch. Changing it to 300 pixels/inch and compiling with tex4ht, same command, same latex file, now there is no error: >rm *.xbb rm: cannot remove ‘*.xbb’: No such file or directory >cat foo.tex \documentclass[11pt]{scrbook}% \IfFileExists{luatex85.sty}{\usepackage{luatex85}}{} ...

1

I found the problem. Somehow the images has resolution 1.98 pixels per inch Opened it and saved it back using PAINT.NET as 300 pixels per inch And now the compile error went away. So it looks like something was wrong in the image? I do not know how this happened.

1

In the case, that this figures are on the end of document, than the possible solution can be discontinuation of the twocolumn document format: \documentclass[11pt,twocolumn]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[pdftex]{graphicx} \usepackage{afterpage} \usepackage{subfig} \usepackage[a4paper, top=1.5cm, ...

2

You would get that just using latex, nothing to do with tex4ht, latex gives the warning that you quote Cannot determine size of graphic in image.xbb It has no information about the original size of the image so sets it to zero, so scaling then fails.

0


0

The essence of the problem is that from a LaTeX parsing point of view, \trimA \trimB \trimC \trimD has no spaces between the dimensions. One must add a space between the dimensions, here with \trimA{} \trimB{} \trimC{} \trimD{} to get it to be digested properly. I have little experience with the trim option myself, but it appears that it just adjusts the ...

1

Load pst-pdf as first package: \usepackage{pst-pdf} \usepackage{psfrag} \usepackage[runs=2, crop=off]{auto-pst-pdf} \usepackage{graphicx}

1

Ah, I think this should work... \documentclass{report} \usepackage{psfrag} \usepackage[runs=2, crop=off]{auto-pst-pdf} \usepackage{graphicx} \makeatletter \def\Gin@extensions{% .png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,% .PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,% %.eps% }% \makeatother \begin{document} \includegraphics[scale=1]...

5

See, if the following solution is acceptable to you: \documentclass[border=3mm,tikz]{standalone} \usetikzlibrary{calc,positioning, quotes} \makeatletter \def\tikzsavelastnodename#1{\let#1=\tikz@last@fig@name} \makeatother \newcommand\ppbb{path picture bounding box} \tikzset{% node distance=9mm and 12mm, shorten <>/.style = {% shorten ...

1

What about this? It uses two minipages (with respectively a width of 60% and 30% of \textwidth (so that it remains a 10% margin)) that are embedded in a figure environment in order to make it "float". (You could also use another minipage, or nothing at all.) The two minipages are vertically centered the one relatively to the other (cf. their [c] argument)...

2

Is this what you want? The trick is to put the graphic file in another \parbox, raise this box of –\height while making LaTeX believe it has 0 height, and finally to top-align the \parboxes \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[noheadfoot, nomarginpar, centering]{geometry} \usepackage{graphicx} \def\titre{ShopTurnXP} \def\...

1

You're making a paragraph consisting of: The rotated logo; the baseline is computed so that the image center doesn't move from the place it would be without rotation A rule; the baseline is at the bottom of the rule A \parbox[b], whose baseline coincides with the baseline of the last item in the box. Thus you can see that TeX respects the specifications, ...

2

You've set the \parbox vertical alignment - or anchor - to be on the [b]ottom and it's height is the entire \textheight. As such, the image's anchor - which is on the baseline is aligned with the bottom of the \parbox which sits at the bottom of the page. The easiest way out of this, without changing your template too much, is to use \raisebox{<height&...

3

For bitmap images (such as png) the files are copied as-is (and there is no way to change them in any way) and wrapped in a PDF object. Compression is done on-top as for other objects in a PDF file with the usual losless file compression of PDF. This is true for pdftex and xetex and probably still true for luatex.

1

You asked for advice on better ways to do it, and I cannot improve Christian Hupfers answer much, but here is a different way of doing it. This solution uses wrapfig to place some figures within the text itself. The text is wrapped around the images. I wouldn't advise on using this too much, though, as it might give the paper a cramped effect. But maybe use ...

1

Something like this: There's no need to use two figure environments -- using \caption twice for the individual images is more important. Please don't use \begin{center}...\end{center} inside a floating environment -- apply \centering instead! \documentclass{article} \usepackage[demo]{graphicx}% Remove the demo option for the real document \usepackage{...

Top 50 recent answers are included