# Tag Info

5

You should use \input rather than \include for cases such as this where it is not a whole part of a document which might be compiled alone (e.g. a chapter or section or something). See this question for details. Note, in particular, that you cannot use \include in the preamble. \documentclass{standalone} \input{preamble} \begin{document} ...

0

As others have pointed out, if you need to make changes after plotting, then SVG is an acceptable solution. If not, PDF, or better still: gnuplot's epslatex terminal will be best. See here, and if you can have also look at the explanation of this in the book "Gnuplot in Action", by P. Janert.

1

Do you need to make changes to the image at the SVG stage? If not then you could simply export your graph as a PDF following the instructions here. However, you may prefer to use GNUplot's epslatex output mode an input the figure that way, this would give you much better control over the text elements of the graph since the are controlled by LaTeX. ...

2

A simplified version from Peter Grill's answer to the question already linked by Steven B. Segletes, combined with the mechanisms of the background package (using the everypage hooks to draw under the text) could solve your need for (1.) absolute positioning of (2.) multiple images as (3.) watermarks. Code and example: \documentclass{article} ...

4

I used the background package to watermark versions of a document with \today. It uses tikz nodes which allows a lot of customizations but has useful default values so you don't have to care: MWE: \documentclass{article} \usepackage{lipsum} \usepackage{graphicx} \usepackage{background} \backgroundsetup{contents={\includegraphics[scale=0.4]{cc.png}}} ...

2

Actually, X11 is not erased but moved to /opt/X11. So, the simplest solution would probably be to manually add the symbolic link from /usr/X11 to /opt/X11: sudo ln -s /opt/X11 /usr/X11

3

Fixed after installing the latest XQuartz: http://xquartz.macosforge.org/landing/ The problem seems to be related to the fact that X11 was erased during the upgrade.

3

I don't think TikZ is needed. There may be easier ways of doing this but I'd go with (something like)... \documentclass[varwidth, border=.75in]{standalone} \usepackage{lipsum} \usepackage{xcolor} \usepackage{graphicx} \begin{document} {\Large\bfseries Title} \emph{Subtitle} \vskip1ex \valign{&\vfil#\cr \hsize=0pt ...

5

Put the content of minipage inside a node. You can get rid of minipage and use node itself. \documentclass{article} \usepackage{lipsum}% \usepackage{fullpage}% %% use geometry instead \usepackage{tikz}% \usepackage{graphicx}% \begin{document} \begin{tikzpicture} \node[inner sep=0pt,outer sep=0pt,text width=0.5\textwidth](a){% ...

1

Other way is following the @Bernard's indication. In addition i added the caption package for fine tuning the captions moreover of the command \captionof{...}{...} to put captions outside of tables or figures. I think you should put something like \usepackage{cuted} \usepackage{caption} \captionsetup[figure]{textfont={bf,large}} in the preamble, and ...

2

Perhaps something like this, I include teh figure both as a single column figure and as a double column figure spreading across the next page. I also removed all formatting commands from inside section heads, and removed the "manual" section numbering. \documentclass[10pt, conference]{IEEEtran} \usepackage[demo]{graphicx}% so it makes black blobs ...

4

I think you could use \pagetotal for this. Subtract it from \textheight to get the amount of space remaining. \documentclass[10pt]{article} \newdimen\spaceleft \spaceleft=\textheight \multiply\spaceleft by -1 \usepackage{lipsum} \begin{document} \lipsum[1-3] \advance\spaceleft by \pagetotal \multiply\spaceleft by -1 \typeout{Space on last page:} ...

2

It is error-prone, but I'm not sure hacking the .bst is the way to go: seems like a lot of work for a very specialized use. I might simplify your approach with something like: \newcommand{\picnbib}[2]{% % #1 = picture call ; #2 the bibliography reference (NB: I used biblatex) \begin{columns} \begin{column}{0.4\textwidth} \begin{center} ...

0

A PSTricks solution: \documentclass{article} \usepackage{pstricks-add} \def\pathLabelVert(#1)#2{ \psline(!2 #1 mul 6)(!2 #1 mul 0) \uput[270](!2 #1 mul 0){#2}} \def\pathLabelHori(#1)#2{ \psline(!6 2 #1 mul)(!0 2 #1 mul) \uput[180](!0 2 #1 mul){#2}} \begin{document} \begin{pspicture}(-0.5,-0.5)(6.35,6.4) \psaxes[labels = none, ticks = ...

3

Here, I \smashed the graphic, so that it appears to TeX to take up zero vertical space. If you need it higher, let me know. \documentclass{article} \usepackage[demo]{graphicx} \title{ \leavevmode\smash{\includegraphics[width=0.5\textwidth]{logo}}\\ The Title } \author{% The Author } \date{\today} \begin{document} \maketitle \end{document}

1

On second thought, specifying clickable areas by absolute coordinates is too much work. \documentclass[11pt]{beamer} \usepackage{graphicx} \usepackage{caption} \usepackage{mwe} \begin{document} \begin{frame}{Demo} \hypertarget{Demo}{} \centering \hyperlink{demo1}{% \includegraphics[width=0.45\textwidth,height=0.35\textheight]{example-image}} \hfil ...

1

You have got: source PDF target PDF The PDF format is a box and I have no idea how you produce this source PDF. My guess is that the source PDF contains the graphs in a format which can not be used directly by pdfLaTeX, but "fortunately" there is a background software included in your TeX-installation, which produces a large jpg or an eps file from your ...

6

\documentclass[tikz]{standalone} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture}[arrowmark/.style 2 args={decoration={markings,mark=at position #1 with \arrow{#2}}}] \draw[-latex] (-1,0) -- (6,0)node[right]{$x$}; \draw[-latex] (0,-1) -- (0,6)node[above left]{$y$}; \draw[dashed] (6,2) -- (0,2)node[left] {$\xi$}; \draw[dashed] ...

1

\usepackage{animate} \usepackage{graphicx} \graphicspath{{Images/}} should suffice.

6

May be some thing like this: \documentclass{article} \usepackage{colortbl} \usepackage{arydshln,graphicx,xcolor,array} \begin{document} \arrayrulecolor{magenta}% \setlength{\arrayrulewidth}{1pt}% \begin{tabular}{c;{2pt/2pt}c|} \includegraphics[width=3cm]{example-image-a} & \includegraphics[width=3cm]{example-image-b} \end{tabular} ...

0

Based on my answer at What are the ways to position things absolutely on the page?, I provide this MWE, and use \atxy{}{}{} to place the image at (0,0) on the page. The only quirk is that you must place the residual page text lower on the page manually, to avoid overlap. Here, I used a \vspace. \documentclass[10pt,a4paper]{report} ...

1

Do not use a self-defined Marco for this. Use the features of the caption package. Use \captionsetup{} inside a figure if you don't want to set global options. \usepackage{caption} \captionsetup{ labelfont=bf, font={small, sf}, }

5

When \backgroundpath is used in a shape definition it will overwrite any previous background-path specification inherited or otherwise. The actual code for the rectangle background path is: \pgfpathrectanglecorners {\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}} ...

0

Try PDFfiller.com. It allows you to add logo and pics to pdfs without a problem. http://goo.gl/anNWbq Its not very expensive and I think you can get a free trial if you ask for it.

3

As Martin pointed out in his answer, you can just use width=\textwidth to size a previously created image to the width of the text. I think what your question is asking though, is at what dimensions should you create/export graphics such that they fill the text width at native size; that is, without using width, height, etc. options with \includegraphics. ...

2

Ulimately, the maximum size is the size of the paper you are specifying, e.g. letter or a4paper. The dimensions of the paper is stored in the lengths \paperwidth and \paperheight. If you want to limit the image to the size of the text block, you don't need any calculations as the text block is of size \textwidth times \textheight. Thus, you can insert an ...

0

gs -o /dev/null -sDEVICE=bbox Input.pdf yields %%BoundingBox: 0 0 702 399 \includegraphics[bb=0 0 702 399]{Input.pdf}

2

The easiest work around is to create a first version of the file figures/graph.pdf by hand (e.g., by running the dot command yourself from the command line). After that latexmk will detect any further changes in the .dot file and remake the .pdf file automatically when necessary. This is obviously undesirable. The problem is that information on the ...

3

The short answer is that if you add baseline=(current bounding box.center) to your tikzpicture environments then they will be vertically centered around their midpoint with the result that your equation should be properly aligned. In fact, with your example this does not quite work because you are typsetting this in an unusual way. First, displayed ...

4

As the error message shows the file is trying to do \catcode \endlinechar 5 to normalize end of line handling while looking in an EPS file for BoundIngBox comments It (I) wasn't expecting you to have done \endlinechar=-1\relax so this ends up trying to set the catcode of character -1 which produces the error you show. I assume you can do ...

1

Something like this? \documentclass{article} \usepackage[demo]{graphicx} \usepackage{titling} \begin{document} \title{Title} \author{Author} \begin{titlingpage} \begin{minipage}{.5\linewidth} \maketitle % this should be on the left \end{minipage} \begin{minipage}{.5\linewidth} \includegraphics{images/img1.pdf} % ...

2

I've had good luck making diagrams using graphviz and then importing those graphics. Below is from the web page and there is a gallery with source. The Graphviz layout programs take descriptions of graphs in a simple text language, and make diagrams in useful formats, such as images and SVG for web pages; PDF or Postscript for inclusion in other documents; ...

3

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[] \node[label=west:X,circle,fill,inner sep=1.5pt] (n1) at (0,0) {}; \node[label=east:Y,circle,fill,inner sep=1.5pt] (n2) at (1,0) {}; \draw (n1) -- (n2); \end{tikzpicture} \end{document}

8

Not sure why TikZ is considered overkill. The following looks quite straight forward, although it requires LuaLaTeX: \documentclass[tikz,border=5]{standalone} \usetikzlibrary{graphs,graphdrawing,arrows.meta} \usegdlibrary{circular} \begin{document} \tikz[>=Stealth]\graph [simple necklace layout, nodes={circle, draw}, node sep=1cm]{ a, b, c, d, e; a ...

4

I'd use the standalone class for this: \documentclass{standalone} \usepackage{booktabs} \begin{document} \begin{tabular}{lcr} \toprule Left & Center & Right \\ \midrule 1 & 2 & 3 \\ \bottomrule \end{tabular} \end{document} At least on OS X, building to a PDF and using pdf2ps results in a PostScript file that has a BoundingBox directive, ...

2

PNG is the currently preferred format for losslessly-encoded bitmap images. While the basic PNG format is fairly simple, PNG files can contain various optional metadata. Libpng is the library that most applications use to read PNG files. One of the pieces of metadata that a PNG file can contain is an ICC profile, a bunch of data that says how RGB pixel ...

2

OK. I compiled and installed TiKZit in order to retrieve the rest of the default preamble. The only thing I don't know is what the definition of newstyle should be. I guess this is your own. Here, I've just made it the same as simple but in green rather than black. \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz} ...

2

The easiest is to use flushright rather than center and perhaps pad as \begin{flushright} \includegraphics{foo}\hspace*{2cm} \end{flushright} If you knw the graphic width you can exactly centre if needed, eg: \begin{flushright} \includegraphics[width=4cm]{foo}\hspace*{\dimexpr(\textwidth-4cm)/2} \end{flushright}

3

You need to declare the layers and the two missing styles. Not sure what the style defintions should be so I just set them to draw thick lines: Code: \documentclass{article} \usepackage{tikz} %% -------------------------------------- Declare the layers \pgfdeclarelayer{nodelayer} \pgfdeclarelayer{edgelayer} \pgfsetlayers{edgelayer,nodelayer,main} %% ...

0

A simple solution could be a float figure environment with option [h](here), if you are prepared to the fact that sometimes the floats can float, even with this option, and perhaps too munch. This has been discussed in many questions on this site. This could be seem a advantage or a disadvantage. In the latter case, this can be avoided completely with the ...

6

In my opinion the only sensible option is to center the images with respect to the overall margin. \documentclass{article} \usepackage[demo]{graphicx} % demo is just for the example \usepackage{showframe,lipsum} % just for the example \makeatletter \newenvironment{center*} {\list{}{\leftmargin=-\@totalleftmargin}\centering\item\relax} {\endlist} ...

3

For one 'upper' and one 'lower' level, it's possible to give the shifting explicitly as the sum of \labelwidth \leftmargin However, the leftmargin changes with each level of nesting -- one has to correct the values. Thanks to the answer by egreg, I realized, that there are predefined \leftmargini to \leftmarginvi commands, corresponding to the level ...

5

Package subfigure is obsolete for a long time. Use a modern alternatve like package subcaption: \documentclass{article} \usepackage{subcaption} \usepackage{mwe} \begin{document} \begin{figure} \begin{subfigure}{.49\textwidth} \centering A nice little title \includegraphics[width=\linewidth]{example-image-a} \caption{a ...

0

I found one solution but its not very attractive: We can use \put command from overpic package to do this such as: \usepackage[abs]{overpic} \begin{figure*}[t] \graphicspath{ {./images/} } \centering \subfigure[Original]{\put(10,60){Title 1} \includegraphics[]{2_o.eps}} \subfigure[Modified]{\put(10,60){Title 2} \includegraphics[]{2_k.eps}} \caption{Two ...

2

It's possible that you are trying include .eps files and run with pdflatex. This is impossible because pdflatex doesn't support inclusion of .eps files. You have at least two options to solve this problem: Follow the "compilation path" latex -> dvips -> ps2pdf (or if your document has Bibliography and/or Table of Contents latex -> bibtex (or biber if you ...

0

one of the related articles had what appears to be the answer. Wrapfigure apparently creating dummy space on a following page I needed to add \leavevmode to the end of my wrapfill macro: \makeatletter \def\wrapfill{\par \ifx\parshape\WF@fudgeparshape \nobreak \ifnum\c@WF@wrappedlines>\@ne \advance\c@WF@wrappedlines\m@ne ...

0

I had a very similar issue using CorelDraw 7. I found that when I changed texnic center to convert in the following order the problem went away Latex -> PS -> PDF instead of Latex -> DVI -> PDF.

3

You can use \tikzset{inststyle/.append style={ drop shadow={top color=gray, bottom color=white}, rounded corners=2.0ex } to change the style of the \newinst. Here it is shown applied only to the Browser: Notes: I don't know the official pgf-umlsd way to wrap the text, but using a \parbox sure works. I added the \tikzset within a ...

3

Another presentation, as a bar chart, with the pst-bar package: \documentclass[12pt, pdf, x11names]{article}% \usepackage{filecontents} \usepackage{pst-bar} \newpsbarstyle{mine}{fillstyle=solid, fillcolor=Thistle3!30!,linecolor=Thistle4} \begin{document} \sffamily \begin{pspicture}(-1,-1)(6,5)% \psset{xunit=3, mathLabel=false}% \psgrid[gridlabels=0, ...

4

With pgfplots, using symbolic x coords. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{tikzpicture} \begin{axis}[ symbolic x coords={Method 1,Method 2, Method 3}, xtick={Method 1,Method 2, Method 3}, ytick={1.454,2.14,4.23}, xticklabel style={rotate=-90}, only marks, % removes ...

Top 50 recent answers are included