# Tag Info

1

Yes: Use latex (which will be pdftex in dvi-mode) and dvipdfm.

3

I think the answer for your first question is `No.' The reason for that is the standard output link of plain TeX goes: TeX → Dvi → PS For this historical reason, the dvi format only supports postscript specials, and inclusion of postscript graphic. So, the problem boils down to: How to convert PDF to EPS?

1

1


11

Actually my first answer was a little unfair. The behaviour of the xetex whatsit in vertical mode is very strange. Put it in hmode and it is far more reasonable. \tracingall \line{% \vtop{\hsize=.6\hsize Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tempor lectus sit amet laoreet convallis. Quisque at est lacinia, porttitor justo ...

2

In TeXShop, the Typeset menu includes a line Pdftex. Make sure that is ticked to run pdflatex instead of latex. If you wish to supply a bounding box explicitly to an \includegraphics command whilst specifying the width the syntax is \includegraphics[width=0.8\linewdith,bb=0 0 100 100]{figurefile} with options one set of square brackets and separated ...

5

You either need to specify the full path e.g.: \includepdf[pages={1-7}]{/home/bob/Documents/MyFolder/Resources/myfile.pdf} or specify it relative to the current directory e.g. suppose your document is /home/jane/mydirectory/mydoc.tex and you need to include /home/jane/myotherdirectory/Resources/myfile.pdf then: ...

1

You should be able to include by using \includegraphics{{/rdata/report/images/buckets.data.csv}.png} The curly braces isolate the correct extension - it hides the other dots from LaTeX.

2

The solution for png and jpg is: https://github.com/zerotoc/pdfinlimg. haven't found one for pdf (yet). (Thanks for pointing me into the correct direction, Jake!)

2

Expanding my comment, as requested by the OP, the idea is to force the bounding box of each figure to the region containing the included figure. This is easy, because the figure is included in a node. If the name of the node is c, for example, you only have to include the following path as part of the tikzpicture: \path[use as bounding box] (c.south west) ...

4

\includegraphics{file}\raisebox{5mm}{\makebox[0pt][l]{\hspace{-10mm}hello}} will write hello over the image. Adjust the lengths to taste.

0

You can use \resizebox calls in a tabular-like environment. \documentclass{article} \usepackage[margin=1cm]{geometry} % demo only \usepackage[demo]{graphicx} \usepackage{tabu} \begin{document} \begin{tabu}{X[m]X[m]X[m]X[m]X[m]X[m]} \resizebox{\hsize}{!}{\includegraphics[width=6cm, height=3cm]{}} & \resizebox{\hsize}{!}{\includegraphics[width=5cm, ...

2

I found a version of chi-ext.cls from 2008 on Github and another one from 2010 on code.google. So, I did a solution for each of them. You will see that the older one requires more "hand crafting", where the recent version provides a \teaser macro that takes the inclusion of some contet below the authors as an argument. However, for both versions the picture ...

3

My problem was that the default version of asymptote shipped with texstudio (or in the ubuntu repos) doesn't have support for rendering. When using the -render=4 flag, I got the warning: runtime: to support onscreen rendering, please install glut library, run ./configure, and recompile The solution to this was to install the following: sudo apt-get ...

1

This works correctly for me with TeX Live 2012 on Linux. \documentclass{book} \usepackage{graphicx} \begin{document} Lorem ipsum dolor sit amet, consectetur adipisici elit: \begin{centering} \includegraphics[width=.7\textwidth]{myimage.eps}\\ \includegraphics[width=.3\textwidth]{myimage.eps}\\ \includegraphics[width=1.0\textwidth]{myimage.eps}\\ ...

32

Edit A bug fixed (the outer equator midpoints was not calculated correctly, as pointed out by @Dror). MWE with Asymptote, file lattice.asy: size(200); import graph3; pen surfPen=rgb(1,0.7,0); pen xarcPen=deepblue+0.7bp; pen yarcPen=deepred+0.7bp; currentprojection=perspective(5,4,4); real R=2; real a=1; triple fs(pair t) { return ...

24

Are you thinking about something like this? \documentclass{standalone} \usepackage{asymptote} \begin{document} \begin{asy}[width=10cm,height=10cm] import graph3; import three; size3(200); currentprojection=orthographic(3,3,5); currentlight=light(gray(0.4),specularfactor=3,viewport=true, (-0.5,-0.25,0.45),(0.5,-0.5,0.5),(0.5,0.5,0.75)); int nb ...

3

The MWE package offers a nice solution: \documentclass{article} \usepackage{mwe}% or load ’graphicx’ and ’blindtext’ manually \begin{document} \blindtext \begin{figure} \includegraphics[width=.48\linewidth]{example-image-a}\hfill \includegraphics[width=.48\linewidth]{example-image-b} \caption{MWE to demonstrate how to place to images side-by-side} ...

22

Actually there are a number of ways of achieving what you are asking for. Without Using Any Package \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[!tbp] \centering \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower1.jpg} \caption{Flower one.} \end{minipage} \hfill ...

1

It seems this plot uses a fixed aspect ratio, so you have to follow that ratio to avoid clipping, for example, when the plot is too narrow. After some testing, a width/height ratio of 9:7 seems appropriate in this case. You can adjust the figure width/height according to this ratio, e.g. fig.width = 6, fig.height = 6 * 7/9. <<test, fig.width=9, ...

1

Here is my solution, open the nature.cls file and comment the last two lines. %\AtBeginDocument{\let\includegraphics\NAT@ignore} %\newcommand{\NAT@ignore}[2][]{} It seems to work now.

0

Currently I'm using hand-crafting approach. First I typeset the document without the picture and then I use \hsize for paragraphs that are fully narrow and combination of \hangindent, \hangafter for paragraphs that are partially noarrower. In this case I must manually specify how many lines of which paragraph are indented. For the picture I used package ...

0

With great thanks to the work of laclaro and Philip Ilten, I suggest the following alternative. I want to do something just very slightly different - I don't want LaTeX to do the text for me, as the text in my figures is often rather tightly sized/positioned, and I have a preference (on the basis of readability, not aesthetics) for sans serif in figures, ...

1

This more a non-answer than an answer, but anyway... I think that what you want is not possible unless some additional constraints are made on the text which "flows" into that page. Imagine that the last page before the one with the picture ends with a paragraph which does not fit in the page, and thus TeX decides to break it at some appropiate line. The ...

1

I see two problems you're trying to deal with: How to add a line break in the "city" field? How to (vertically) mid-align institution name and the logo & city name? The definition of the \cventry command involves a tabular* environment, and so it's not very friendly to the use of line breaks. To work around this, one can put both the logo and the ...

5

There are two things here You want this only for one page. You can use a minipage You want it for all pages. You can use background package. Only for one page \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{kantlipsum} \usepackage[a4paper,left=1in,right = 1in,top = 1in,bottom=1in]{geometry} %\pagestyle{empty} ...

2

When you do \usepackage[turkish]{babel} the symbol = has its catcode set to 13 (active). This causes problems with arguments such as width=\textwidth. You can prevent this behaviour by doing \usepackage[turkish,shorthands=off]{babel} Alternatively, if shorthands are important to you, you can temporarily switch them off. This only worked for me if I placed ...

3

The self-solution provided does not produce a -90 degree rotation. In fact, \includegraphics gives the same result as what was described for psfig.tex when the angle is -90. I can't find any psfig.tex; I'm not sure there even exists an official version by that name (and I looked back to TeXLive 2000). But psfig.sty works for me. It explicitly shifts the ...

4

You can do this with tikz and background packages too. Unlike wallpaper these two packages allow you to put the picture anywhere in the page. I have given an example with tikz below. \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{tikz} \usetikzlibrary{calc} \usepackage[margin=2.8cm]{geometry} \begin{document} ...

4

The command \ULCornerWallPaper doesn't accept any offset, but \CenterWallPaper does. You can use the lengths \wpXoffset and \wpYoffset to adjust the position in the page. In the example below I've set \addtolength{\wpXoffset}{-5.8cm} \addtolength{\wpYoffset}{12.5cm} but you will have to change these values to accomplish the positioning of your image. ...

0

My original question involved how can one reference, using the command (\ref{fig:Figure 1}), a multipage pdf (e.g. test.pdf that is say, 22 (or any number) of pages long) to be included at the end of your document. The "trick" is to label test1.pdf outside the \foreach loop so that the reference to test1.pdf is NOT incremented by the loop as in the ...

16

The bounding box info for the image says 0 0 100 100, so the image is 100bp high. The default resolution for dvips is 600dpi; scaling to 50% makes for 416.66667 pixels, truncated to 416. The height of the image is computed by TeX to be 50.1875pt, which is the same, but apparently EPS inclusion truncates, while rule positioning rounds. So if I compile % ...

8

This doesn't seem to have anything to do with pstricks. This seems to have to do with the image you're importing. Try the following: \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{graphicx} \newsavebox\IBox \setlength{\fboxrule}{4pt} \setlength{\fboxsep}{0pt} \savebox\IBox{\fbox{\includegraphics[scale=5.5]{example-grid-100x100pt}}} ...

2

We want to use tikz for every thing ;-) \documentclass[12pt]{article} \usepackage{tikz} \begin{document} ABC \tikz[baseline=(a.north)]\node[yscale=-1,inner sep=0,outer sep=0](a){ABC}; \includegraphics[width=3cm]{example-image} \tikz[baseline=(a.north)]\node[yscale=-1,inner sep=0,outer sep=0](a){\includegraphics[width=3cm]{example-image}}; \end{document} ...

Top 50 recent answers are included