# Tag Info

## New answers tagged graphics

0

It is a bit unclear what you actually want, but perhaps something like this \documentclass[12pt]{article} \usepackage{graphicx} \renewcommand\arraystretch{1} \begin{document} \begin{figure} \tabcolsep=0pt \tiny \noindent \begin{tabular}{cccccccccc} \begin{tabular}[b]{cc} \includegraphics[width=0.0625\textwidth]{example-image-golden} & \includegraphics[...

0

You should avoid blank lines when using subfigures. You can remove the \hfills if you want your graphics centered. Also note that your labels should be unique. \documentclass{report} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure}[!h] \centering \caption[My caption]{Mycaption} \begin{subfigure}{0.25\textwidth} ...

0

Use package \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{subfigure} \usepackage{subfloat} \usepackage{float} Then code like: \begin{figure*}[ht!] \centering \subfigure[] { \label{subfig:lab1} \includegraphics[width=.3\textwidth]{figures/1.pdf} % .png .jpg ... ...

0

\documentclass[draft]{IEEEtran} \newcommand{\latexiie}{\LaTeX2{\Large$_\varepsilon$}} \usepackage{cite} \graphicspath{{./pics12/}} \usepackage{mathtools, cuted} \usepackage[margin=1in]{geometry} \usepackage{setspace} \usepackage[latin1]{inputenc} \usepackage[scriptsize]{subfigure} %---------------------------------------------------------------------- \...

3

How about this? \documentclass{article} \usepackage{amsmath,amssymb,graphicx} \usepackage{xcolor} \newcommand{\myRed}[1]{\color{red}#1} \begin{document} \begin{enumerate} \item \phantom{abc} \begin{figure}[h] \centering \includegraphics[scale=0.45]{hyperbola 1.jpeg} %\caption{Caption} \label{fig:...

3

You can use the following template to create a document consisting of an equally-sized image per page: \documentclass{article} \usepackage{geometry}% For page geometry/layout specification \usepackage{etoolbox}% For list processing/management \usepackage{eso-pic}% For exact placement of content in the foreground/background \usepackage{graphicx}% For ...

0

What about the following approach? The images in the upper row are scaled while keeping their aspect ratio, the ones in the lower row are distorted (which I doubt is really the output you'r interested in): \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \noindent \includegraphics[max height=6cm,max width=0.7\...

0

You not provide any information about caption of figures in minipages. If I assume, that images has not own caption, than a possible solution is: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure} \setkeys{Gin}{width=0.45\linewidth} \includegraphics{example-image-duck}%{fig1} \hfill \includegraphics[height=4cm]{example-image-...

0

After some more research I found a solution, by delaying my redefinition to the beginning of my document: \AtBeginDocument{% \LetLtxMacro{\includegraphicsorig}{\includegraphics} \RenewDocumentCommand{\includegraphics}{O{} m }{% \ifdefined\TestFigures% \includegraphicsorig[#1]{example-image-a}% \else% \includegraphicsorig[#1]{#2}% \...

3

As Ingmar suggests, one of many options is to draw the separators with tikz. It's better to use a macro to avoid repeating code too. I can't see your picture well enough, but you can get an idea and change the following example as you need. \documentclass{article} \usepackage {lipsum} % for dummy text \usepackage {tikz} \newcommand{\oldsep} {% \begin{...

1

More or less the only effect of using ht here \begin{figure}[ht!] is to remove the option p which is by default allowed and means to put the float on a page on its own with no text. So delete [ht!] or to explicitly force that it goes on a float page use [p]

-1

Looks like similar problems were reported here with pdftex before. A few suggestions to localize or work-around the problem. 1 ) Can you find the .png somewhere on your computer? If so, try including a local copy. 2 ) May be it's somewhere inside the current or an old pdftex distribution. Perhaps re-install this package OR run with network access during a ...

4

A fun way of drawing shapes like this: \documentclass{article} \usepackage{tikz} \usepackage{expl3} \begin{document} \ExplSyntaxOn % #1: radius % #2: angle % #3: scale \cs_set:Npn \graph_circ_point:nnn #1#2#3 { \fp_eval:n {(#1) * cos(#2) * (#3)}, \fp_eval:n {(#1) * sin(#2) * (#3)} } \fp_new:N \l_graph_center_ang_fp \fp_new:N \l_graph_step_ang_fp \...

3

\documentclass{article} \usepackage{fontspec} % use xelatex or lualatex ! \begin{document} \Huge \newfontfamily{\estrellas}{PizzaDude Stars} % Free for personal use only % https://www.1001fonts.com/pizzadude-stars-font.html \makebox[8em][s]{\estrellas K L M \fbox{N} O P Q} \end{document}

1

Here is a quick fix. THE MWE should produce three identical images and one smaller image. Note that \includelimit only supports size changes. BTW, this also answers the linked question. Also, do not use \dimen0 with \includegraphics. \documentclass{standalone} \usepackage{graphicx} \newcommand{\includelimit}[2][]% will get bad results with [rotate] {\...

0

you might want to change the way you import your subfiles \input just copies the text content of B.tex into A.tex before compiling. That makes A look for the graphicspath in it's home directory (which is /A/) \include (I think) creates aux files for every sub-file and therefore might be able to find the correct subpath (for example /A/B/Bimages/) I DID NOT ...

0

Ok after a couple of days I came up with a solution that works for me using the good old TIKZ package (even though tizk is pretty hard going for a newbie like me). It may not be the best but it works for my requirements. Pity hvfloats package cant scale images - that package is awesome otherwise. In this solution, I have added page bleed to 3 sides where ...

1

If you have some fluency with Tkiz, you could include it in the text as mentioned at Tikz picture inline.

5

It's just an image. Generate it as you would any other figure, paying attention to the scale and font sizes, then incorporate it with \includegraphics, not using a figure environment. To generate this I: made the graph in LibreOffice saved as a PDF opened it in Inkscape stripped it down the the essentials resized to 12pt high, keeping the aspect ratio (...

3

You don't need tikz for this. With a current LaTeX you can simply use the shipout hook: \documentclass{article} \usepackage{geometry,fancyhdr,graphicx} \geometry{showframe} \begin{document} \pagestyle{fancy}\lhead{lhead} Why is text before the background picture disappeared? \AddToHookNext{shipout/background} {\put(0,-\paperheight) {\includegraphics[width=...

2

Using the options anchor=north, inner sep=0pt seems to place it at the correct spot: I have included the showframe package so that it is clear where the normal text would go. Note: The small gray border is an artifact of the image capture process. Code: \documentclass{article} \usepackage{tikz} \usepackage{showframe} \begin{document} \begin{tikzpicture}[...

1

\detokenize{} around the filename worked for me. Example: \includegraphics{\detokenize{file name including \% sign.png}}.

0

It's easy with {NiceTabular} of nicematrix. \documentclass[landscape]{article} \usepackage{geometry} \geometry{left=1cm,right=1cm} \usepackage{xcolor} \usepackage{nicematrix,tikz} \begin{document} \begin{center} \begin{NiceTabular}{*{24}{c}}[first-row,first-col,hvlines,columns-width=auto,name=A] \CodeBefore \arraycolor{lightgray} \Body edge & 0 &...

0

My approach to big problems are the small solutions. I changed the inner and outer margins to check better that two parts are aligned. \documentclass[a4paper,twoside,]{book} \usepackage[top=25.4mm,bottom=25.4mm,left=15.4mm,right=25.4mm]{geometry} \usepackage{graphicx} \begin{document} (page 1 ) \newpage \begin{figure}[p] \vspace{2cm} \begin{minipage}[c][.8\...

2

As of mid-2021, a new version of the package hvfloat, by Herbert Voß, has been available on CTAN. In addition to the ability to split wide pictures onto two facing pages, this package can rotate images and captions, and handle both single- and two-column pages with ordinary floats and the * forms. A well-illustrated article is scheduled to appear in TUGboat ...

0

A few observations: You could define a special pagestyle for the first page (I assume that you want this header only on the first page). You can do this with \fancypagestyle. But it would require to have a different \headheight on this page, different from the other pages. It can be done, but it is tricky. Therefore I advise to put this header in the ...

8

You're making things needlessly complicated: the plain TeX insbox macro package can do what you want, and it works fine here. It defines an \InsertBoxR command which takes two mandatory arguments: the number of lines unshortened before the box is inserted, and the box inserted, and one optional argument: the number of supplementary shortened lines, in case ...

0

See, if the stfloats package can help: \documentclass[twocolumn]{article} \usepackage{lipsum} \usepackage{balance} \usepackage{graphicx} \usepackage{stfloats} \begin{document} \lipsum[1-14] \balance \begin{figure*}[b] \centering \makebox[\textwidth]{\includegraphics[width=.9\paperwidth, height=120pt]{example-image-a}} \label{fig:Fig5} \end{figure*} \lipsum[...

0

a figure* always goes to at the earliest the following page, but you can move it earlier in the source so that it appears on the page you need. \documentclass[twocolumn]{article} \usepackage{lipsum} \usepackage{balance} \usepackage{graphicx} \begin{document} \lipsum[1-14] \balance \begin{figure*}[tb] \centering \makebox[\textwidth]{\includegraphics[width=...

-1

See page 44 in the texbook: See also e.g. here: Is there a simple way to get the Bourbaki dangerous bend symbol (without extra)? or here: https://en.wikipedia.org/wiki/Bourbaki_dangerous_bend_symbol .

2

GIF images are not supported by TeX at the engine level (I'm not even sure if the PDF format allows GIFs), so there's nothing packages can do to work around that. The best you can do is to convert the GIF to a supported format and include that instead. Here's graphics rule for including graphics files with .gif extension that will include the first frame of ...

0

graphicx tries loading without graphics path first, putting images in your local texmf is similar to distributing them via ctan to texlive etc. best to give them package-specific names Alternatively you can avoid using graphicspath and use \includegraphics{./Figures/file.png} then the local one will be used.

1

This is not a LaTeX solution but I've recently found a way of producing moderately-sized Manhattan plots as vector graphics exported to PDF with the R packages sf and ggplot2. These can then easily be included in a LaTeX document. Similarly to what @Steven Endres suggested, my approach is to perform a union of overlapping points so as to decrease the ...

7

Nowadays you would make something like that in TikZ. I don't use it on a regular basis so there will surely be better ways, but here is an idea: \documentclass{article} \usepackage{tikz} \newcommand{\mydangersymbol}[1]{% \begin{tikzpicture}[baseline=(x.base)] \draw[rounded corners=.01em] (-.05em,-1.3em)rectangle(.05em,.9em); \draw[...

1

This is a default behavior of elsarticle for some reason. In the main text file there are some options %%\documentclass[preprint,12pt]{elsarticle} %% Use the option review to obtain double line spacing %% \documentclass[authoryear,preprint,review,12pt]{elsarticle} %% Use the options 1p,twocolumn; 3p; 3p,twocolumn; 5p; or 5p,twocolumn %% for a journal ...

1

this error shown up : ! Package pdftex.def Error: File `ZVC-N4-1-3.png' not found: Can it be that you have your graphics in a separate directory, say img/? If so, this should resolve it: \includegraphics[width=20pc,height=15pc]{img/ZVC-Galactic-_1.png} (Please notice the new file name.)

1

\chapter*{Certificate of Approval} \begin{figure}[t!] \centering \includegraphics[width=0.6\textwidth]{newlogo.png} \label{fig:my_label} \end{figure} Some text here This did the trick for me.

4

If you save the equation in a boxed minipage \sbox2, you can \stackinset it into the figure. \documentclass{article} \usepackage{stackengine,graphicx} \begin{document} $$E=mc^1$$ \begin{figure}[ht] \sbox2{\begin{minipage}{100pt} $$E=mc^2$$ \end{minipage}} \stackinset{r}{20pt}{t}{20pt}{\copy2} {\...

1

This is the thread that came up when I was looking for the same problem. My issue was that I had defined the document class as: \documentclass[a4paper,11pt,draft]{article} Removing the draft part finally allowed the images to show.

3

\documentclass{article} \usepackage{circuitikz}% loads tikz automatically \usepackage{wrapfig} \newcommand\atikzpicture{% \begin{tikzpicture}[baseline=(Q.B)]%baseline is the base of Q \draw (0,0) to[short, o-] ++(0.5,0) node[npn, anchor=base](Q){}; \end{tikzpicture} } \begin{document} Basically a Ti\emph{k}Z picture is a box, and ...

0

It seems the noweb distributed by the OS is built to use AWK. I downloaded the noweb and built it using icon. Now the html page shows the correct image.

1

\documentclass{article} \usepackage{tikz} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{center} \begin{tikzpicture} \draw[draw=black,fill=cyan] (0,0) rectangle ++(5,2); \node at (2.5,1) {hello there}; \end{tikzpicture} \end{center} \lipsum[1] \end{document}

2

Here is a start for you! \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture}[font=\ttfamily,>=latex,line width=.8pt] \def\a{3.5} \def\b{1.2} \path[nodes={draw,minimum height=5mm,minimum width=12mm}] (0,0) node (P) {PRED} ++(\a,0) node (E1) {EXPR} ++(0,-\b) node (E1t) {=} +(-.2*\a,-\b) node (E1t1) {a} +(.2*\a,-\b) node ...

Top 50 recent answers are included