23

As noted in the question, this is an issue in the way MiKTeX has integrated the latest LaTeX kernel change. The graphics package has been updated but not the LaTeX kernel, and this leads to the error. A temporary fix is to add the necessary definitions to your source file: luckily these are small \documentclass{article} \makeatletter \def\set@curr@file#1{% ...


16

The core of this issue has been fixed (on 2019-10-06) in MikTeX, but since the situation involves formats and is overall a bit tricky I wrote up a guide at https://github.com/MiKTeX/miktex-packaging/issues/131 explaining (roughly) what is happening here and what you can do if you are still suffering from this issue. This is copied pretty much verbatim from ...


10

Here's one possibility with metapost. For a macro to take an array as an argument, it is declared as a suffix argument, i.e. one that has suffixes which in this case are 0,1,2,.... The input array must start with index/suffix 0. \documentclass[border=10cm]{standalone} \usepackage{luamplib} \begin{document} \begin{mplibcode} vardef pairs(suffix P)= ...


10

see texdoc pdftex section 9 on graphics inclusion, but a simple example including a png file (jpg or pdf are similar) one \pdfximage{man.png} \pdfrefximage\pdflastximage two \pdfximage width .25\hsize{man.png} \pdfrefximage\pdflastximage three \bye


10

This uses plain TikZ with intersections library for the intersection point. Note that scope environment can be nested, several \clips are used for filling. If you want the rectangle with more rounded corners, then simply use [rounded corners=3mm] e.g., in the definition of \bb. I believe that pgfplots also can be easily drawn this, with suitable options in ...


9

The sequence of images with changing grades of blur would need to be prepared with an external software, such as ImageMagick.org. Here, https://ctan.org/lion/files/ctan_lion_350x350.png is used as the source image: for sigma in {0..10} do magick convert ctan_lion_350x350.png -blur 0x$sigma ctan_lion_350x350_blurred_$sigma.png done The <sigma> ...


9

Using \pic definition. pics/lines/.style args={#1-#2-#3}{ Our pic command has three parameters. First parameter (#1) : x coordinate. Second parameter (#2) : Magnitude of vector. Third parameter (#3) : If this parameter is equal to 1001 or more one, the label of vector is x_max else is equal to 0, the label is x_min. For normal labeling, give any number, ...


9

You need nothing special: \documentclass{article} \usepackage[export]{adjustbox} % also loads graphicx \begin{document} \begin{figure}[htp] \centering \makebox[1em][l]{A}% \includegraphics[width=0.25\textwidth,valign=t]{example-image-1x1}\hspace{1pt}% \includegraphics[width=0.25\textwidth,valign=t]{example-image-1x1}\hspace{1pt}% \includegraphics[width=0....


8

I just found the tikzpeople package which draws really nice characters. \documentclass[tikz]{standalone} \usepackage{tikz} \usepackage{tikzpeople} \begin{document} \begin{tikzpicture}[] \node[bride,minimum size=1.5cm] (T) at (-1,0) {}; \node[groom,mirrored,minimum size=1.5cm] (N) at (1,0) {}; \end{tikzpicture} \end{document}


8

Set them in equivalently-sized boxes. This is easily supported using \eqmakebox[<tag>][<align>]{<stuff>}; this sets <stuff> in a box of maximum width across all <tag>s (with a conditional <align>ment: left, centre (default) or right-aligned): \documentclass{article} \usepackage{amsmath,eqparbox} \begin{document} This ...


7

Derived from @Daniel, this is a version that works on multipage pdfs: convert -density 150 input.pdf -colorspace gray -linear-stretch 3.5%x10% -blur 0x0.5 -attenuate 0.25 +noise Gaussian output.pdf This command will: decrease the definition of the output pdf to 150 instead of 72 as the default (-density option, you can increase it and increase the -linear-...


7

Here is a starting point with the great tcolorbox package. It has all the ornaments in black and yellow-greenish lines; the other background graphics could be added the same way if you have enough patience, after you've decided whether, and if so, how, they should adapt to the frame dimensions. In the examples below, I define a tcolorbox skin called ...


7

In the (complete) TeXLive distribution there is an interesting utility called pdftoppm that can convert PDF to PNG whith some options (e.g., on my Windows machine C:\texlive\2018\bin\win32\pdftoppm.exe). The undeniable advantage is that there is no need to install anything. Running cmd with pdftoppm -help, you get the following output that informs how the ...


7

Another idea (not yet packaged in a command) with a sidebyside tcolorbox \documentclass[border=1mm]{standalone} \usepackage[utf8]{inputenc} \usepackage{hyperref} \hypersetup{pdfborder={0 0 0}} \RequirePackage[usenames,tables]{xcolor} \definecolor{ABlue}{HTML}{127bca} \definecolor{LHScolor}{HTML}{555555} % -------------------- % Text blocks % --------------...


7

With only basic tools: \documentclass{article} \usepackage{float} \usepackage[table, svgnames]{xcolor} \usepackage{hhline, array} \begin{document} \begin{table}[H] \centering\setlength{\extrarowheight}{1pt} \begin{tabular}{|c|c|c|} \hhline{|---|} \noalign{\vskip \dimexpr1.5ex + 1pt-0.4pt\relax} \hhline{>{\arrayrulecolor{Crimson}}--->{\arrayrulecolor{...


7

For starting point I use Dr. Manuel Kuehner' answer (since it use simpler diagram). With help of the fit TikZ library: \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{fit} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture} \begin{axis}[name=PLOT, width = 80mm, height= 60mm, xmin = -1.2, xmax = 2.2, ymin = -...


7

Some comments and suggestions: When typesetting images using the \includegraphics instruction, it's usually not a good idea to use absolute size instructions, such as width=50mm, or a dimension that's a function of the original image size, such as scale=0.5. (For sure, never use both a fixed absolute width and a scale option.) It's a really good idea, ...


6

Well, you could use the halloweenmath package: a package that draws mathematical symbols that look like witches, pumpkins, ghosts, and bats is surely also capable of drawing a simple tree graph! The advantage of this approach is that you will automatically benefit (well, almost so…) of the machinery of the halloweenmath package; in particular: the symbols ...


6

With minipage You can also do this using a minipage: Here's the corresponding LaTeX code where the image appears at the same time¹ as the third text item: \documentclass{beamer} % No "Figure:" prefix for image captions \usepackage{caption} \captionsetup[figure]{labelformat=empty} % Define appearance of the slides \usetheme{Rochester} \usecolortheme{...


6

If I understand correctly, the PDF->image step is not done by LaTeX, but by an external call to convert (part of ImageMagick suite). So maybe this is off-topic, but... Basically, once you have installed it, you should be able to use this command (at least in Linux, I think it will be the same in other OSs): convert -density 300 -background white -alpha ...


6

\documentclass{report} \pagestyle{empty} \usepackage[a3paper, landscape]{geometry} \usepackage{circuitikz} \usepackage{graphicx} \begin{document} \begin{tikzpicture}[overlay, remember picture] \draw[blue] (current page.center) ++(-20,14) coordinate (NW) % using 40x28cm because A3 has 420x297 -- ++(40,0) coordinate (NE) --...


6

To expand on Ulrike's comment, here is a quick and dirty example on how to clip an external image that is directly taken from the pgf manual \documentclass[12pt,a4paper]{article} \usepackage{graphicx,tikz} \begin{document} \begin{tikzpicture}[path image/.style={ path picture={ \node at (path picture bounding box.center) { \includegraphics[height=3cm]{#1} };}...


6

Another solution clipping images included as nodes: \documentclass[tikz,border=2mm]{standalone} \begin{document} \begin{tikzpicture} \begin{scope} \path[clip] (0,0)--++(0:3.5cm)--++(75:3cm)-|cycle; \node[anchor=south west] {\includegraphics[width=6cm]{Q7xB7}}; \end{scope} \begin{scope} \path[clip] (6,0)--++(180:2.3cm)--++(75:3cm)-|cycle; \node[anchor=south ...


Only top voted, non community-wiki answers of a minimum length are eligible