# Tag Info

0

Please note that I do not read Dutch and so I have no idea if this is sensible in terms of the documentation. Caveat emptor ... Do you want something like this? \documentclass[a7paper,print,10pt,grid=rear]{kartei} %Voor info googelen op 'LaTeX kartei' %a7paper: bepaalt hoe groot de fiches worden. a6-a7-a8-a9 zijn de opties %grid: geeft aan of er ...

1

Please try this \documentclass{article} % This package can handle pdf files. \usepackage{pdfpages} % This can handle images in jpg or other formats. \usepackage{graphicx} \begin{document} % Choose width and other options. \begin{figure} \includegraphics[width=\textwidth]{map.jpg} \caption{Map figure included in jpg format - Graphicx package} ...

0

The problem was that I included the package in the preamble (which in my case is quite long) twice. A better version to the code above would be: \section*{Figures} \begin{figure}[h] \centering% \includegraphics[scale=0.3]{my_image.pdf}% \caption{Applications count}% \end{figure}

6

You can do this using TikZ to control the opacity. For example, \documentclass{beamer} \usepackage{tikz} \begin{document} \newcount\opaqueness \begin{frame} \animate<2-100> \animatevalue<1-100>{\opaqueness}{0}{100} \begin{colormixin}{\the\opaqueness!averagebackgroundcolor} \begin{center} \begin{tikzpicture} \node ...

3

You can patch the command to replace the file name by some other text \documentclass{article} \usepackage[draft]{graphicx} \usepackage{xpatch} \makeatletter \xpatchcmd\Gin@setfile{\expandafter\strip@prefix\meaning\@tempa}{Image removed}{}{} \makeatother \begin{document} \includegraphics[width=\textwidth]{example-image} \end{document} Edit To center the ...

2

You can wrap the include graphics command in your own command, which includes a conditional to test whether to display graphics or an alternate text. It would be better to use the same conditional that graphicx uses in draft mode, but just to demonstrate I've used a simple \newif command. Xparse allows you to define a command with two optional arguments ...

0

If I understood your question, you don't need external scripts to achieve the same result. So let's say you have a PDF consisting of 25 pages. I started a loop using \foreach that iterates each page and wraps it in a \minipage. Every 4 pages, it will insert a \newpage using modular arithmetic. The only thing I didn't manage to do is to make the lower the ...

1

Do you want something like this? \documentclass{scrbook} \usepackage{wrapfig} \usepackage{chemfig} \usetikzlibrary{fit} \usepackage{kantlipsum} \newcommand{\namemole}[1][]{% \chemfig{% ...

2

Question I) If you do not need separate captions, simply place both images in one figure. Question II) Getting an image and text side by side is a bit more complicated, but luckily there are packages like wrapfig which do the trick. To learn how this works, have a look at the documentation http://texdoc.net/texmf-dist/doc/latex/wrapfig/wrapfig-doc.pdf ...

1

You're forgetting outer sep. Don't be obsessed by end-of-lines! ;-) \documentclass[12pt,oneside,a4paper]{book} \usepackage{tikz} \usepackage[font+=footnotesize, subrefformat=parens]{subcaption} \newcommand{\customcaption}[2]{{% \begin{tikzpicture} \node[ anchor=south west, inner sep=0, outer sep=-0.2pt, fill=black, ...

3

How's this? \begin{figure}[!htb] \centering \includegraphics[scale=0.5]{14-1Ex2.png} % or put scale whatever you want \end{figure}

2

The explanation is the image is laid on the base line, so you have to use `\raisebox{ a minimal vertical padding between the above and below rules: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \usepackage{graphicx} % \usepackage{array, booktabs, longtable, cellspace} \renewcommand\cellspacetoplimit{5pt} ...

2

PDF/A is a standard for long-time archiving. It requires that all resources are embedded like fonts and color profiles. Also it restricts the language features. Advanced features like transparency or interactive features (JavaScript, some annotations, ...) are forbidden, which might be displayed differently in different viewers. A reasonable algorithm would ...

1

You also can use the plain TeX macro package insbox: \documentclass[12pt]{article} \usepackage[demo]{graphicx} \usepackage[verbose]{wrapfig} \input{insbox} \begin{document} %% Tight margins \setlength{\intextsep}{0pt} %% Does not work \section*{Curricula Vitae} % \InsertBoxL{0}{\includegraphics[width=96pt,height=22pt]{example-image}}[-1]\noindent ...

1

pdfpages builds up on graphicx and can handle png too: \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf{example-image.png} \end{document} includes on my system: <D:/MiKTeX2.9/tex/latex/mwe/example-image.png>] and gives this page:

3

The trim works on the original picture as it is easy to test: \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics[clip,trim=3cm 0cm 0cm 0cm]{example-image-A} \includegraphics[clip,trim=3cm 0cm 0cm 0cm,width=2cm]{example-image-A} \includegraphics[clip,width=2cm,trim=3cm 0cm 0cm 0cm]{example-image-A} \end{document}

4

Just drop those dreadful figure environments -- if it is not meant to float anyway, just use \includegraphics and a \captionof{figure}{caption text}\label{foo} etc. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{blindtext} \title{Theory on Ducks} \author{Paulo Roberto Massa Cereda (PhD. in Duckumentation)} \begin{document} ...

0

In cases, when a some page in text should have completely different layout, seems to be the best way to make this page separately (for example by help of document class standalone or extracting content with preview package) and than include it as pdf page: \includepdf[<options>]{file.pdf} In your case (as you said in your comment): ...

0

No. When a page of a PDF is included in a PDF by any of the TeX engines/device drivers it is always included completely; no destructive cropping or other manipulation is done.

2

From the PDF/A rules: Transparent objects and layers (Optional Content Groups) are not permitted. Link Try using a different cropping tool that removes the margins rather than moving them to an Alpha layer for transparency.

1

Use \psdot(! 1.1007960524213434E10 44.984471028928745) Then it will be read as PostScript coordinates. However, for the environment pspicture and the macro \psplot you have to change the coordinates. But the export from Geogebra is complete unusable!

4

Captions of subfigures should be inside subfigure environment. Try if the following MWE gives, what you like to obtain: \documentclass{article} %\usepackage[catalan]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[a4paper, top=1.75truecm,bottom=1.75truecm, left=1.75truecm,right=1.75truecm]{geometry} ...

4

Try to use a \parbox{...} inside of the \fbox{...} and leave an empty line after two of the \includegraphics statements. \documentclass{elsarticle} \usepackage{graphicx} \begin{document} \begin{figure}[h] \centering \fbox{ % \parbox{0.7\textwidth}{% \centering \includegraphics[scale=0.25]{ente} \includegraphics[scale=0.25]{ente} ...

0

Your question is after editing little bit more clear, however the MWE, which would show, what you looking for, is still missing. Si I anticipate, that you probably like to obtain something like this: MWE: \documentclass[twocolumn]{article} \usepackage{graphicx} \usepackage{lipsum} \usepackage{subcaption} \begin{document} \begin{figure}[h] ...

3

The file name can be specified with the path: \includegraphics{Figures/A/a.pdf} \includegraphics{Figures/B/a.pdf} Or the graphics path can be set by: \graphicspath{{Figures/A/}} \includegraphics{a}% Figures/A/a.pdf \includegraphics{b}% Figures/A/b.pdf ... \graphicspath{{Figures/B/}} \includegraphics{a}% Figures/B/a.pdf \includegraphics{b}% ...

0

This worked for me (May 2016): \begin{biography}[ { \includegraphics[width=1in,height=1.25in,clip,keepaspectratio]{my-face.jpg} } ] {John Smith} received a B.S. and M.S. in blah blah blah... \end{biography} I'm using the file ieeeconf.cls which begins %% IEEEtran.cls 2002/11/18 version V1.6b %% ... I think you can download it here.

2

Here is a better MWE to test the basic spacing. If you trimmed your pdf to exactly the textheight minus subsection heading it will probably still generate an empty page. You can test around with the rule sizes below, .9\textheight gave me no empty pages. If you found a good value, adapt your \includegraphics with the optional height argument as shown below. ...

0

I solved it myself by providing the graphicspath arguments with both the paths relative to the subfile and from the mainfile as so: \graphicspath{{chap/chapter1/fig/}{fig/}} This way, both the subfile and the mainfile is able to find the correct folder for the figures.

1

In answer to your questions about \linewidth: \documentclass{beamer} \newsavebox{\tempbox} \begin{document} \begin{frame}{size values} paper width = \the\paperwidth\par paper height = \the\paperheight\par text width = \the\textwidth\par text height = \the\textheight\par line width = \the\linewidth\par \savebox{\tempbox}{\fbox{test area}} ...

6

Use a TikZ matrix. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,decorations.pathreplacing,matrix,positioning} \colorlet{lightblue}{blue!60!white} \colorlet{darkgreen}{green!60!black} \begin{document} \begin{tikzpicture}[ >={Triangle[]}, font=\ttfamily, b/.style = {lightblue,fill=lightblue!40}, g/.style = ...

0

Some folks at Matplotlib have spent a lot of time thinking about this. There is an excellent talk here: https://www.youtube.com/watch?v=xAoljeRJ3lU Summary: Nathaniel Smith and Stéfan van der Walt designed a colourmap called Parula that, in an optimal sense, differentiates sequential data in a visually proportional way, projects well to grayscale and is ...

3

use scope environement \documentclass[border=5mm]{article} \usepackage{tikz} \usetikzlibrary{lindenmayersystems} \begin{document}% \def\trianglewidth{2cm}% \pgfdeclarelindenmayersystem{Sierpinski triangle}{ \symbol{X}{\pgflsystemdrawforward} \symbol{Y}{\pgflsystemdrawforward} \rule{X -> X-Y+X+Y-X} \rule{Y -> YY} }% \tikzset { ...

1

This answer has already been answered to some extent by clemens with his additional last comments on that other post on guitar tablature typesetting. This is just a way of tackling the issue and to solve the problem with more detail and later on it may be proper to close or erase this post, due to lack of attention or perhaps usefulness. Summing up, it's ...

2

Especially if you have pictures of different sizes, I find using scale very difficult. Either determine the size of an image by giving its height or width, e.g. \includegraphics[width=...]{...} or \includegraphics[height=...]{...} This can either be done in absolute values like width=3cm or relative values width=.33\textwidth, which makes the image ...

3

A tcbraster from tcolorbox package is another option to automatically compose figures (or boxes) over a page. \documentclass[a4paper]{article} \usepackage[margin=1cm]{geometry} \usepackage[most]{tcolorbox} \pagestyle{empty} \begin{document} \begin{tcbraster}[raster equal height, raster halign=center, blank, raster columns=3, graphics ...

6

You can load the libraries angles, quotes and then use the pic option. I have applied some modifications to your code, for example, the axis lines are now equally long, and the label for the X axis is added together with the \draw command. Output Code \documentclass[margin=10pt]{standalone} \usepackage{amsmath} \usepackage{tikz} ...

13

Inserting a graphic into a TeX document has two parts: Making sure that from the TeX 'point of view' the space is allowed for correctly Telling the driver (via the appropriate \special or related engine-dependent primitive) to actually place the image in the output Some parts of this process are independent of the driver whilst of course the lowest-level ...

1

At the top of an eps file, you will find the bounding box, a sequence of four numbers which define the left, lower, right and upper edges of the image (in that order). In this masterpiece, the bounding box is 0 0 200 200. %!PS-Adobe-2.0 EPSF-2.0 %%Title: pumpkin.eps %%BoundingBox: 0 0 200 200 /tri {newpath 0 0 moveto 10 0 lineto 0 20 lineto -10 0 lineto ...

4

As I commented, the reason it does not work when you substitute the text directly from \FLIPARG into \usqrt is that it places an optional argument (of \scalebox) within an optional argument of \sqrt. The LaTeX parsing algorithm cannot handle that type of syntax. To move the index down, I did a simple \raisebox on the flipped index. It is not as simple as ...

2

Change the pseudolength sigbeforevskip (default is 2\baselineskip) to your needs. Example: \makeatletter \@setplength{sigbeforevskip}{.5\baselineskip} \makeatother Code: \documentclass{scrartcl} \usepackage{scrletter} % Package import declarations \usepackage{graphicx} % Include graphics for LaTeX \makeatletter ...

1

I've played with the EPS file you linked in the comment above. As you said, after conversion the white grid is showing up in the PDF and even in the PNG after using convert -density 300x300 branin.eps branin.png The only thing I know to get rid of the grid is to convert to a very high resolution PNG and then scale the PNG down. The white grid gets ...

4

Here's an implementation with a patched and redefined \includegraphics. Currently, the width of the filename is not accounted for, but one can do that by changing the T argument to F in the \stackengine argument list. The underset gap of the filename is currently 3pt. Note that the filename is generated properly, regardless of whether the extension was ...

4

The main part of the code you quote is \setbox\z@\hbox{\csname Ginclude@#1\endcsname{#3}}% which calls \Ginclude@xxx where xxx is the file type (determined from the extension or passed as an key to \includegraphics) so if xxx is eps this will call \Ginclude@eps and if the driver specified (in an option or set in graphics.cfg) is dvips then dvips.def will ...

1

Ok, here we go... I figured you could figure how to plop the graphic element up top. %------------------------------------------------------------------------ ---------------- % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS %------------------------------------------------------------------------ ---------------- \documentclass{scrartcl} ...

4

A quick hack, not really customizable so far... Redefine \@seccntformat for \section, this displays the section number in the section header and add some change for \addcontentsline. \documentclass{book} \usepackage{xpatch} \usepackage{tikz} \makeatletter \renewcommand{\@seccntformat}[1]{% \ifstrequal{#1}{section}{% \shapecircle% }{% ...

2

- won't be the problem (unless you are using a language that declares it to be a babel shortcut) but spaces in filenames are evil:-) If you must have spaces, it probably works to quote them as \graphicspath{% {"C:/Users/Username/Documents/Project 1 - Project Title/Project Writeup/Project/Graphics/"}% } but not having spaces is good. Also the grffile ...

1

It is unlikely to be related to the disk type. I note that the typeset file path in your top image has dropped the accented u and shows Sade so most likely tex isn't understanding the character encoding used in filenames.

3

The ICO format is an extension of the BMP graphics format in Windows. For the latter, it was already asked here if they can be included in LaTeX documents. Since the answer back then was negative (without conversion), the same applies here as well. Note that ICO files can include multiple versions of an icon, so take care to convert the right one. XeLaTeX ...

4

You can use a \makebox if you want the graphics to stick out on both sides: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{graphicx,lipsum} \begin{document} \lipsum[1] \centering \makebox[\linewidth]{\includegraphics[width=1.5\linewidth]{example-image}} \end{document}

2

Seems to work if you add \protect before \includegraphics, i.e. \section{Habilitaciones por (valided by) \protect\includegraphics[height=1cm,valign=c]{example-image-16x10}} To use the valign=c key, which aligns the image vertically centered on the line, you need to add \usepackage[export]{adjustbox} to the preamble. \documentclass[10pt,a4paper]{moderncv} ...

Top 50 recent answers are included