# Tag Info

7


2

The preferred option is to crop the whitespace from the PDF file directly. If for some reason this is not possible, I provide a few options in this answer. Using the bb option by design does overprinting. If you want the portion outside the specified bounding box to not be printed, you have to set the clip option or equivalently, use the starred form ...

0

Actually, Ulrike Fischer has given a brief answer (I up-voted her comment, accordingly), I will just detail it a bit. The only format you can include while compiling with latex is Encapsulated PostScript (EPS). Because an EPS file declares the size of the image, it makes it easy for systems like LaTeX to arrange the text and the graphics in the best way. ...

1

You can following the same type of precedures discussed in Subcaption vertical alignment and Vertically align different size images in a figure* environment. That is, capture the size of the larger image, and use its height to adjust the vertical position of the smaller image. \documentclass{article} \usepackage{geometry,graphicx} ...

4

You can start with \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{tikzpicture}[z={(3.85mm, -3.85mm)}] %\draw (0,0,0) -- (1,0,0) node {x}; %\draw (0,0,0) -- (0,1,0) node {y}; %\draw (0,0,0) -- (0,0,1) node {z}; \pgfmathsetmacro{\cubex}{2} \pgfmathsetmacro{\cubey}{2} \pgfmathsetmacro{\cubez}{2} ...

0

I would use ghostscript to remove the transparency once the pdf is generated, using gs -o converted.pdf -sDEVICE=pdfwrite -dHaveTransparency=false input_file.pdf

2

Here is a solution with some vertical padding. The cellspace package is done for that: it defines a minimal vertical spacing at the top and the bottom of cells in columns with a specifier prefixed with S. With the makecell package, you can have line breaks in cells, thus allowing for several aimges in a single cell: \documentclass{article} ...

3

You can use adjustbox package with export option. With this, you will get valin= as a key to \includegraphics. valign=c will do what you want. \documentclass{article} \usepackage[export]{adjustbox} \usepackage{array} \begin{document} \begin{table}[h] \centering \setlength{\extrarowheight}{1em} \begin{tabular}{c|l} \textbf{Verb} & \textbf{Example} ...

4

First it is graphicx not graficx \cventry has 7 arguments, you have given only six at some places. \cvitem has only 3 arguments, you gave six. \Csh{} is unknown for me, hence I have commented it. With all these corrections, here is your code: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage{graphicx} ...

3

The problem is unconnected to longtable the problem is that tabu X columns like the original tabularx X columns are set multiple times in trial runs to obtain the correct column widths. To avoid writing labels and other things multiple times the code disables \write and some other commands while making trial runs, so you can detect that and not make a ...

2

Both Andrew Cashner's and my proposition should work, the images are listed in the LoF, not as table and referenced as figures as well. \documentclass[a4paper, 11pt, oneside,demo]{Thesis} \usepackage{adjustbox} \usepackage{caption} \usepackage{booktabs} \begin{document} \listoftables \listoffigures %%% Andrew Cashner's way \begin{figure} \begin{center} ...

1

Works only for integer of semi integer values. \documentclass{report} \usepackage{tikz} \newcommand{\grade}[1]{% \begin{tikzpicture} \clip (1em-.3em,-.3em) rectangle (5em +.5em ,.3em); \begin{scope} \clip (1em-.3em,-.3em) rectangle (#1em +.5em ,.3em); \foreach \x in {1,2,...,5}{ \path[fill=red] (\x em,0) circle (.25em); } \end{scope} \foreach \x in ...

1

You missed the \usegdlibrary{trees}. For the inputenc error, if you only need English, you can remove lines 88 and 130 of the class file and make sure you change all non-English letters, like ö, in the class file also. For a more elegant solution to this, you can use the etoolbox package, which provides commands like \pretocmd with which you can ...

2

You can use \raisebox \documentclass{beamer} \title{Ackermann's function} \date{} \begin{document} \begin{frame}[t] \titlepage \raisebox{2mm}[0pt][0pt]{% \makebox[\textwidth][c]{\includegraphics[scale=0.35]{example-image-a}} } %% \raisebox{distance}[height][depth]{text} Name: ... Prof.: ... Subject: ... University: ... \end{frame} ...

1

You can use minipages \documentclass[english]{scrartcl} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{float} \usepackage[nochapters]{classicthesis} \usepackage[LabelsAligned, NoDate]{currvita} \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} \renewcommand{\cvheadingfont}{\LARGE} ...

0

I understand that the desired image only should appear inside title, so following solution makes use of \maketitlehook commands from titling package to build the title within two vertically centered minipages, one for title and author and the second one for the image. This way there's no need for setting different pages styles. \maketitle command is ...

1

It makes just as much sense to overlay an image from the bottom up as from the top down. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Large Colored Title Article % LaTeX Template % Version 1.1 (25/11/12) % % This template has been downloaded from: % http://www.LaTeXTemplates.com % % Original author: % Frits Wenneker (http://www.howtotex.com) % % License: % ...

1


1

Run with LuaLaTeX because of graphdrawing and change the \documentclass to some thing like article (as also suggested by fpast). The standalone was meant to be used for a single picture for example and not a running text. \documentclass{article} \usepackage{tikz} \usepackage{verbatim} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} ...

0

As already suggested, you can annotate the different parts of the figure using TikZ. However, sometimes it might even better to use numbers to reference the different parts and explain them in the figure caption. To easily get the precise relative positions (which is often quite tedious) and to generate LaTeX code automatically for such example as shown ...

3

This solution is based on making the unit of measurement on the x-axis equal to the width of the graphic, and the unit of measurement on the y-axis equal to the height of the graphic. That being the case, a coordinate like (1,1) would indicate the upper right corner of the graphic (north east in TikZese), (0.5,0.5) would be the geometric center of the ...

3

First solution with calc TiKZlibrary: \documentclass[a4paper,10pt]{scrreprt} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{geometry} \geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document} \begin{tikzpicture} \node[inner sep=0pt] (probe) at ...

5

There are two ways atleast for doing this. First using subcaption and its subfigure environment and two using groupplots library of pgfplots. First using grouplots: \documentclass[border=5]{standalone} \usepackage{pgfplotstable} \pgfplotsset{width=10cm,compat=1.9} \usepgfplotslibrary{groupplots} \begin{document} \pgfplotstableread[col ...

3

Here is an attempt using shorten. I have extended the red line in both directions. However, to add legend, you have to do some more work otherwise, the legend line gets extended too. Here, I have defined a custom legend image and used it. \documentclass{standalone} \usepackage{pgfplotstable} \pgfplotsset{width=12cm,compat=1.9} \usepackage{filecontents} ...

4

I am not sure if you are searching really for long side captions, but otherwise, this is a way using minipages for the main text and adjustbox package to have top aligned images: \documentclass[a4paper]{article} \usepackage[export]{adjustbox}% \usepackage{lipsum,graphicx} \parskip1em \def\capR#1#2{\includegraphics[width=.3\linewidth,valign=t]{#1}% ...

2

Normally the figure is lower than the start of the text, although obviously the start of the document is an exception. So to align the top of the figure to the top of the text you will need to either raise the figure or lower the text by \baselineskip. One can force the wrapfigure to terminate using \WFclear, but you sill need to space down far enough to ...

0

figure means float and floats are designed to, well, float. LaTeX puts there where it thinks best. If you don't want them to move, don't use a figure environment. You can use the \captionof command from caption or capt-of for the captions. \documentclass{article} % Specifies the document class \usepackage[demo]{graphicx} % To use graphics and ...

3

Just change this: \includegraphics{yourfigurefilename} with this: \includegraphics[draft = True]{yourfigurefilename}.

0

This can be achieved with the PGFPlots package. Example: http://pgfplots.net/tikz/examples/2d-functions-in-3d/

2

There are predefined anchor names for the node image, therefore you can use: (image.south west) instead of (image.bottom left) (image.north east) instead of (image.top right) Also coordinates can be specified as intersections of perpendicular lines: (8, 0 |- image.north) instead of (8, image.top) (8, 0 |- image.south) instead of (8, image.bottom) (10, ...

4

graphics doesn't do a "lookup with wildcard extension" it just loops through a known list of extensions and searches for each possibility in turn. You can do the same on the commandline For example $for e in png eps pdf; do kpsewhich example-image.$e; done returns /usr/local/texlive/2014/texmf-dist/tex/latex/mwe/example-image.png ...

7

Just for fun, with Plain TeX: \obeylines\obeyspaces\let =\ \tt\catcode`\_=11 lol _________ c ____________ | |---------------------------->| | | lol | ______ | lol2 |----> thanks! | |-----------> | lol3|-------->| | |________| |_____| ...

9

Try to understand this one. It's just one possibility. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning,arrows.meta} \begin{document} \begin{tikzpicture}[block1/.style={draw, minimum width=3cm, minimum height=1.8cm}, block2/.style={draw, minimum width=1cm, minimum height=.8cm}, >=Stealth] ...

4

\documentclass[tikz, border=2mm]{standalone} \begin{document} \begin{tikzpicture} \begin{scope}[shift={(-2,0,0)}] \draw[->] (0,0,0)--(1,0,0) node[right]{$x$}; \draw[->] (0,0,0)--(0,1,0) node[above]{$z$}; \draw[->] (0,0,0)--(0,0,1) node[below left]{$y$}; \end{scope} \foreach \i in {1,...,5}{ \draw[fill=yellow!80!black] (0,\i,0) -- ...

1

Have you tried this? \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel={Motifs}, ylabel={Value}, xtick={1,2}, xticklabels={\includegraphics[scale=0.05]{example-image-a},\includegraphics[scale=0.05]{example-image-b} } ] \addplot+ ...

1

Use c column type instead of p type, use [t] for inner tabular and use \raisebox for the picture. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{table}[h!] \centering \begin{tabular}{c c } \begin{tabular}[t]{c c c | c c } \hline $S$ & $R$ & $CLK$ & $Q_{t+1}$ \\ \hline 0 & 0 & X & $Q_t$ \\ ...

1

An unusual short answer from me: The import package is 'only' suitable for importing/inputting/including subdocuments, which in turn might have basically any valid LaTeX code (few exceptions remain, of course). It allows for setting remote paths but the \subimport or \import command cannot be used as a replacement for \includegraphics or \includepdf ...

7

Here's an answer based on the idea in my comment of last year; while it does not directly answer your general question about a union of paths, it does show that MP can get close to drawing your characters directly. And note that penpos certainly does allow you to vary the slant of the pen as the stroke moves, indeed that's the whole point of it. Here's ...

1

I solved the problem: the trick is use \parbox{..} e.g.: \parbox{5cm}{ \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0) { \includegraphics[scale=0.8]{image} }; \end{tikzpicture} \figcaption{label: lol.}}

2

If the confusion matrix, as produced by the code given in the earlier answer, is too large for your taste (even though it fits easily inside the available space), you could either edit the code to reduce the various dimensions by, say, 20 percent, or you could place the code inside a \scalebox{0.8}{<code for confusion matrix>} directive. The code ...

0

This can't be done when including image files with \includegraphics: graphicx has no interface to whatever the code was that originally produced the figure. However, it can be done if you integrate your graphics drawing with the TeX code itself. I don't know much MP, but here is an example with another drawing package. This shows a TikZ/pgf solution, using ...

3

Here is a TikZ simpler solution using the command \addtobeamertemplate{headline}{}{}. \addtobeamertemplate{headline}{}{% \begin{tikzpicture}[remember picture,overlay] \node at([shift={(.25\paperwidth,-.42)}]current page.north) {\includegraphics[height=.5cm,width=.7cm]{logo}}; \end{tikzpicture}} Only the vertical position should be manually adjusted for ...

1

Very raw, but should serve as starting point. Only thing remaining is to calculate the vertical length of the box accurately (now bit large). You can play with \@tempdimb=5mm% , if you have only one section. %% Help logo top right code \documentclass{beamer} %% Use warsaw theme \usetheme{Warsaw} \makeatletter \ifbeamer@compress ...

6

It is the the length of the paths you are using. \documentclass{article} \batchmode \usepackage{graphicx} \newcount\zz \begin{document} \def\z{} \loop \edef\z{\z/} \includegraphics{/c/tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/..% /tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/../tmp/\z house.png}\par %\includegraphics{/c/tmp/\z ...

5

The subfigure package is deprecated; you should use either the subfig or the subcaption package. Here's a solution based on the capabilities of the subcaption package. Each subfigure environment is assigned a width of 0.3\textwidth to have some whitespace between adjacent subfigures. \documentclass{article} \usepackage{subcaption} ...

0

Just a heads-up, you definitely need to include the trailing /: \graphicspath{{./figures}} won't work but \graphicspath{{./figures/}} will. In case anyone else is scratching their head about this when they should be writing more dissertation sections...

2

You can use the newfloat package to create a floating environment graph for graphs. MWE \documentclass[a4paper,12pt, hidelinks]{report} \usepackage[czech]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mwe} % for 'example-image' \usepackage{newfloat} \DeclareFloatingEnvironment{graph} \addto\captionsczech{% ...

1

<shameless plug> May I suggest the paper Leyla and I wrote some time ago about inclusion of plots generated by outside programs in LaTeX? Here is it: http://www.tug.org/TUGboat/tb34-3/tb108veytsman.pdf </shameless plug>

3

An alternative is package resizegather, which shrinks equations of environment gather of package amsmath to \linewidth, if the equation is too large: \documentclass{article} \usepackage{amsmath} \usepackage{resizegather} \begin{document} \hrule % show text width \begin{gather}\label{model3_coef} y_{t}^{3} = -145.071 - 0.003*x_{t-1}^{7} + ...

4

The parameter for \resizebox is in text mode. Thus you need to explicitly go into math mode: Code: \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \label{model3_coef} \resizebox{0.91\hsize}{!}{% \$y_{t}^{3} = -145.071 - 0.003 x_{t-1}^{7} + 0.459 x_{t}^{6} + 0.001 x_{t-1}^{8} -5.071 ...

Top 50 recent answers are included