# Tag Info

6

Indeed, compiling the example file with latex and dvipdfm gives the wrong result; I don't know why, but the support of EPS files within dvipdfm is not really good and also in other cases I had problems. For instance, when I was developing gmp, in order to get compatibility with XeLaTeX, that uses xdvipdfmx internally (which in turn is based on dvipdfm(x)), I ...

5

Package graphics provides \graphicspath that allows to specify further directories for the search path of image files: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{subfiles} \begin{document} Main file \graphicspath{{sub/}} \subfile{sub/sub.tex} \end{document} Or \graphcispath can be ...

4

4

Just the symbol: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[y=0.08em,x=0.08em,xscale=-0.25,yscale=--0.25, inner sep=0pt, outer sep=0pt] \path[fill=black,even odd rule] (487.6550,288.9690) .. controls (489.0610,278.5690) and (489.8700,267.9960) .. (489.8700,257.2330) .. controls (489.8700,128.0770) and (384.5990,23.3610) ...

2

I'll show you how to stack external files on top of one another in the manner you want, assuming you've got the ticks, axes labels and titles of the main square images in the external files. I used the file you linked in your comment for the bottom layer, and since there were no other ones (and the higher ones are different - no axes labels), I used some ...

0

As you can see here LaTeX only supports a limited set of graphics. If you can easily convert your graphml file to PDF or EPS, then convert it. Then you can use the trim option to \includegraphics{} to trim all the extra space around it: %trim option's parameter order: left bottom right top \includegraphics[trim = 10mm 80mm 20mm 5mm, clip, ...

0

You open the graphml with yEd and export it as example.eps. In LaTeX you can then do \usepackage{graphicx} \usepackage{epstopdf} ... \includegraphics{example} EPS is Encapsulated PostScript and this works with different ways creating the pdf including running pdflatex and latex. When using pdflatex epstopdf will create a pdf from the eps on the fly with ...

13

One option using TikZ; the fit library was used just to draw the outer frame; depending on the actual requirements, this can be done without the library (see second example code below): \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture}[ mytext/.style={ draw, text width=#1, align=center, minimum ...

1

use subfigure ! How about this code : \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{figure} \centering \begin{subfigure}[b]{0.5\textwidth} \includegraphics[width=\textwidth]{pic1} \end{subfigure} \begin{subfigure}[b]{0.5\textwidth} ...

0

0

This compiles fine for me: \documentclass{article} \usepackage{graphicx} \usepackage{caption} \begin{document} \begin{figure} \centering \begin{minipage}{.5\linewidth} \centering \includegraphics[width=.4\linewidth]{image} \captionof{figure}{A figure} \label{fig: test1} \end{minipage}% \begin{minipage}{.5\linewidth} \centering ...

8

I followed the procedure described in Creating Logo with Fancy Font to create the S-logo as a vector graphic: Now you can add a \skype command to the moderncv interface, specifically the casual theme: \makeatletter % defines one's skype (optional) % usage: \skype{<email adress>} \newcommand*{\skype}[1]{\def\@skype{#1}} ...

2

The picture environment exported from jPicEdt is really peculiar, as it builds a line by placing multiple short segments next to each other; the result is a jagged line. You can resize your picture by changing \unitlength: \documentclass[12pt]{article} \begin{document} \begin{figure}[htbp] \centering \setlength{\unitlength}{2pt} % double the size ...

4

Here is some dirty way: \documentclass{beamer} \usetheme{Warsaw} \usepackage{tikz} \usetikzlibrary{fadings} \setbeamertemplate{background}{% \begin{tikzpicture} \path (0,0) rectangle (\paperwidth,\paperheight); \begin{scope} \clip (0,0.5\paperheight) rectangle (\paperwidth,\paperheight); \path[scope fading=north,] (0,0.5\paperheight) rectangle ...

1

\includegraphics{a}\includegraphics{b}\includegraphics{c}\includegraphics{d} Will put 4 images side by side in any LaTeX class.

6

Quoting from the beamer package documentation In beamer, a presentation consists of a series of frames. So, you need \begin{frame}{<frametitle>} and \end{frame}. \documentclass{beamer} \begin{document} \begin{frame}{A nice slide} \begin{exampleblock}{This is an example} Some text \end{exampleblock} \begin{block}{Solution:} \begin{itemize} ...

5

The variable containing the paths is \Ginput@path, so you can define \makeatletter \newcommand\appendtographicspath[1]{% \g@addto@macro\Ginput@path{#1}% } \makeatother and \appendtographicspath{{../images/}} should do. Remember the braces around the path; you can add several paths. This addition is global. You might want to extend the macro for ...

2

\begin{center} \includegraphics[width=.4\textwidth]{a} \includegraphics[width=.4\textwidth]{b} \includegraphics[width=.4\textwidth]{c} \includegraphics[width=.4\textwidth]{d} \end{center} \caption{ 4 figures}

2

You can use epspdftk, the gui interface to Siep Kroonenberg's epspdf .texlua script. It exists both for Windows and Linux and does everything (converting and cropping the resulting .pdf) in one step. I'll take the example of one of my old graphic files, produced with pstricks and pst-eps, that had a (very) badly computed bounding box. The procedure is very ...

9

Basically, this is using the example of the stackengine documentation, adapted for use in math mode with the addition of \stackMath in the preamble. The routine you want is \stackinset which has 6 arguments, \stackinset{H-anchor}{H-offset}{V-anchor}{V-offset}{inset}{underlying anchor image}. As shown here, it can be nested and the insets themselves can be ...

0

Make sure that the computer where the perseon is opening your tex file has graphics package installed. In Fedora Linux when using texlive for example it is necessary to have the teclive-graphics, which can be installed via YUM. rememebr that this is a similar case to send a tex file without dependencies such as a document class when writing a conference ...

3

Method A: Dealing directly with PostScript Since you're dealing with PostScript images, one option might be to use GhostView; I've done so successfully in the past. As an example, consider tiger.eps. Open tiger.eps using GhostView. Show the bounding box if you wish to see the extent of the existing whitespace: Position the cursor on to identify the ...

1

Firstly, the GIMP does appear to be an adequate and convenient tool for the job. EPS files seem to include a default resolution, which is what the GIMP displays when you open an EPS file, so don't change it: Next, you can easily use your cursor to find one of two defining coordinates. In this example we do the top-left coordinate. You can see the ...

1

You can add a tooltip to a graphic: \documentclass[a4paper]{minimal} \usepackage{graphicx} \usepackage{pdfcomment} \begin{document} \pdftooltip{\includegraphics[scale=2]{chemie}}{tooltip} \end{document} If you want the graphic to be the tooltip, i'm afrais that's not possible. A PDF tooltip is text only! You may achive something like this by using OCG ...

0

You can use use the insbox set of generic macros: it has an \InsertBoxC command that, at the point of insertion, first terminates the current line of text, then places the content of its argument (centred) and lastly continues the text. For the caption and label referencing, you can use the captionof command from the caption package. So in your case, this ...

0

A late answer, different in spirit from the previous ones: to be more illustrative, the successive positions of the square do not touch each other and the square has thick sides. This forces to cheat a little with the parameters of the trajectory of point A, such as elliptic arcs instead of (but very close to) the real arcs. I used pstricks. ...

6

Doesn't generalize very well, but... \documentclass[tikz,border=5]{standalone} \begin{document} \begin{tikzpicture}[x=4cm,y=.5cm, >=stealth] \foreach \i [evaluate={% \x=\i<4 ? \i : (\i<16 ? 1 : (\i<22 ? 2 : 3)); \y=\i<4 ? 1 : (\i<16 ? 2-\i : (\i<22 ? 11-\i : 15-\i)); }] in {1,...,23} \node (text-\i) at (\x,\y) {Text \i}; ...

6

A PSTricks solution: \documentclass{article} \usepackage{pstricks} \usepackage{multido} \begin{document} \begin{pspicture}(8,8.1) \psline{->}(0,0)(8,3) \psline{->}(0,7)(8,4) \multido{\iA = 1+3, \iB = 1+1}{3}{\rput(\iA,8){Text~\iB}} \multido{\r = 5.975+-0.45, \i = 4+1}{12}{\rput(1,\r){Text~\i}} \multido{\r = 4.625+-0.45, \i = ...

6

Something like this? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} % Line of Text \node at (0,7) {Text 1}; \node at (4,7) {Text 2}; \node at (8,7) {Text 3}; % First column of Text \node at (0,5.5) {Text 4}; \node at (0,5) {Text 5}; \node at (0,4.5) {Text 6}; \node at (0,4) {Text 7}; \node at ...

3

It is enough to write something before \includegraphics, e.g. mbox{}. \FloatBarriercould do nothing since you do not have a float — which would make no sense in a theorem environment. I suggest you centre your image and use the \captionof command from the caption package. Here is a code with a figure inclusion that can be referenced: ...

2

You can use the cellspace package, that ensures a minimal vertical spacing between the top of a cell and the bottom of the above cell, and symmetrically between its bottom and the top of the below cell. It works with most column types but not with \multirow. To activate this feature it suffices to write an S before the type of one column ; I chose the text ...

5

Give some vertical space substituting \tabularnewline with \\[1.25ex]. MWE: \documentclass{article} \usepackage{array,multirow,booktabs} \usepackage[demo]{graphicx} \begin{document} \begin{table}[!htb] \centering \begin{tabular}{m{1.5cm}c ccccc} \toprule & & $1024 \times 1024$ & $512 \times 512$ &$256 \times 256$ & $128 \times 128$ ...

1

I would use this approach. I've installed GraphViz, modified the system PATH (Windows) and I created a standalone PDF file using dot which is cropped afterwards. We could use dot2tex tool and the dot2texi package. The advantage is you are getting TikZ code out of the dot file, the disadvantage is you need Python and EasyInstall to get it work. It isn't easy ...

1

The problem is that \includegraphics inside a tabular leaves no space above the image, so it abuts the dividing line. Here, I use the \addvbuffer macro of the verbatimbox package to add a 3pt buffer above (and 0pt below) the image, and call that new form \Includegraphics, with a cap I. \documentclass{report} \usepackage{longtable} ...

12

Thank you all for your help and suggestions. Here is what I found which helped with my problem. I had a braille font installed, but it was not the correct braille font for the printer I was using, ViewPlus Tiger Cub. After installing the Tiger Software Suite (TSS), many braille fonts were added as system fonts. I was told at work that I needed to use the ...

0

The issue arose because, when using dvipdfm(x) I was not specifying: \usepackage[dvipdfmx]{graphicx} and just had \usepackage{graphicx} Previously I thought it was enough to do: \def\pgfsysdriver{pgfsys-dvipdfm.def}

4

You should almost never specify natwidth and natheight (especially for pdf files) but if you do specify them they should Be lengths ie have units 10in or 5cm or whatever. If you omit the units it defaults to bp for compatibility with BoundingBox syntax. The intention of those keys was to tell (classic) LaTeX the size of image files that it could not read. ...

0

I found a way by adjusting the minpage's width: \begin{figure} \centering \begin{minipage}[t]{.45\textwidth} \centering \includegraphics[scale=FIGURE1_SCALE]{images/Figure1.pdf} \caption{My Figure1 Caption} \end{minipage}\hfill \begin{minipage}[t]{.3\textwidth} \centering \includegraphics[scale=FIGURE2_SCALE]{images/Figure2.pdf} \caption{My Figure2 Caption} ...

3

Tailor made for a \stackinset: \documentclass{article} \usepackage{stackengine} \def\mycirc{\kern3.5pt\raisebox{3pt}{\stackinset{l}{}{c}{}{\circle{5}}{\circle*{3}}}} \begin{document} E\mycirc B \end{document}

7

Ultra simple: \documentclass{article} \newcommand*\mycircle{\textcircled{\textbullet}} \begin{document} This symbol is (for unknown reasons) represented by \mycircle. The symbol \mycircle{} is (for unknown reasons) not represented by anything. \end{document}

5


5

One option using TikZ (adjust the settings to suit your needs): \documentclass{article} \usepackage{tikz} \newcommand\mycircle{% \begin{tikzpicture}[baseline=-1ex] \draw (0,0) circle [radius=5pt]; \fill (0,0) circle [radius=3pt]; \end{tikzpicture}% } \begin{document} A\mycircle B \end{document}

2

Here's a miniature generalized function in Metapost to draw these paths. Decorate as required. prologues:=3;outputtemplate:="%j%c.eps"; % Corner of Rotated Polygon vardef corp(expr n,size) = save p; pair p[]; p[0]=(0,0); p[0] for i=1 upto n-1: hide(p[i] = p[i-1] rotatedabout((size*i,0),-360/n)) {((size*i,0)-p[i-1]) rotated 90} .. ...

6

This answer generalizes the number of vertexes of the regular polygon and defines macro \RotateRegularPolygon with the number of vertexes as argument. If the optional argument is false, then only the arcs for point A are drawn. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{decorations.markings} ...

11

Here's the first one: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \def\side{1cm} \tikzset{ smalldot/.style={ circle, fill, inner sep=1.2pt } } \begin{document} \begin{tikzpicture}[ decoration={ markings, mark=at position 0.5 with {\arrow{>}} } ] \draw (0,0) -- ++(0,\side) --++(4*\side,0) -- ...

1

\documentclass[t]{beamer} \setbeamerfont{frametitle}{size=\fontsize{24}{28},series=\bfseries} \setbeamercolor{frametitle}{fg=black} \setbeamercolor{bgcolor}{fg=black,bg=blue!20} \pgfdeclareimage[width=\paperwidth]{mybackground}{back.pdf} \setbeamertemplate{background canvas}{% \begin{picture}(30,273) ...

0

Solved by using the Float Package: \documentclass[journal,twoside]{IEEEtran} \usepackage[spanish,english]{babel} \usepackage{circuitikz} \usepackage[justification=centering]{caption} \usepackage{float} \begin{document} \title{Minimal Working} \maketitle \begin{figure}[H] \centering \includegraphics[scale=0.2444]{MultiplierSimulationI.png} \caption{\small ...

3

Do you want it like this? \documentclass{article} \usepackage{showframe} %% just for demo \usepackage[export]{adjustbox} \begin{document} \begin{figure}[htbp] \includegraphics[width=\dimexpr\linewidth+2cm\relax,right]{example-image} \end{figure} \end{document} Another show: \documentclass{book} \usepackage{showframe} %% just for demo ...

4

Gonzalo showed how to use subcaption package to solve the problem. This also uses that package, but shows how stacks and \subcaptionbox can be used to increase the inter-image gap arbitrarily, using the \setstackgap{S}{length} command. By using the \subcaptionbox variant of subcaption, arbitrary placement of the figures is possible, as also shown in this ...

8

subfigure is an obsolete package which shouldn't be used anymore. You can use subfig or subcaption instead. Below, an example using \subcaptionbox from subcaption: \documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \subcaptionbox{$n = 10$ steps\label{cw_10}}{% ...

Top 50 recent answers are included