# Tag Info

0

The trick is to configure the font size correctly right from Matplotlib. The correct script is the following. The font size is set to 10. In order to produce a correct graph, I add to downsize the figure with the figsize argument. import numpy as np import pylab as pl import matplotlib matplotlib.rcParams["text.usetex"] = True matplotlib.rcParams[&...

0

I was able to get the correct result by using the same font in the Inkscape figure and in the LaTeX document. Given that I use the default 10 point font size in LaTeX, I scaled the Inkscape figure so that the font size was set to 10 pt. To do this, I selected all the objects in the Inkscape figure with Ctrl+a, then used the tool to downscale the figure. I ...

0

I had a similar issue with a figure not showing up when using multicol I fixed with the help of this answer: https://tex.stackexchange.com/a/483689/152952 \usepackage{float} [...] \begin{figure}[H] [...] \end{figure}

1

@leandris has suggested I use the nicematrix package to this end. Based on a prelimimary look at the package it seems perfect (looks like I can use hvlines-except-corners with some phantom elements to get the desired effect quite easily).

0

So this is not quite perfect, but it's working. I am not quite sure why there are margins that require adjustwidth (and what margin is that, so I had to adjust the value manually). \begin{figure*}[t!] \begin{adjustwidth}{-15mm}{-15mm} \adjustbox{trim=0 0 {.5\width} 0,clip}{\includegraphics[width=2\paperwidth]{image.jpg}}% \end{adjustwidth} \end{...

2

Probably the following results in the desired output. Due to the use of [t] at the tabular and valign=t at the \includegraphics command, image and table are top aligned. You can of course adjust this if you want to vertically center or botto align both elements with respect to each other using c or b, respectively. \documentclass{article} \usepackage{...

2

I would use a minipage to create the two columns and then add the table in the first minipage and the image to the second one. \documentclass{article} \usepackage{graphicx} \usepackage{tabularx} \usepackage{enumerate} \begin{document} \begin{enumerate}[i] \item Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\\% \begin{minipage}{.5\...

0

A rough start point as an example -- Image and table side by side It uses two minipages (with respectively a width of 60% and 30% of \textwidth (so that it remains a 10% margin)) that are embedded in a figure environment in order to make it "float". (You could also use another minipage, or nothing at all.) The two minipages are vertically centered ...

1

\begin{figure}[ht] \centering \includegraphics[width=5cm]{./miscimages/1nng-example.png}\hfill \includegraphics[width=5mm]{./miscimages/2nng-example.png}\hfill \includegraphics[width=5cm]{./miscimages/3nng-example.png} \caption{\label{fig:knng} Generating some graphs} \end{figure} \begin{figure}[ht] \centering \includegraphics[...

7

With pgfplots and pgfplotstable: %\documentclass[]{article} \documentclass[margin=5pt, varwidth]{standalone} \usepackage{amsmath} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} \begin{document} % Input 1/2 ===== \newcommand\fxshow{e^{0.9x}-x^2} \pgfmathsetlengthmacro\mywidth{8.9cm} \tikzset{trig format=rad, declare function={...

0

Here I would like to add another format to complete this topic. \documentclass[11pt]{scrartcl} \usepackage{selinput} \usepackage[margin=2cm]{geometry} \usepackage{enumitem,varwidth} \usepackage[svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usepackage{lmodern} \parindent0em \begin{document} \section{SWOT Matrix - \emph{(Strengths, ...

2

There must be some problems (either in PDFKit or dvipdfmx) in supporting FlateDecode predictor filter for 16bit gray color images, which is used for SoftMask of blurred image. As a workaround for this problem, using the following dvipdfmx option should help -C 0x20 Alternatively, you can insert the following \special instruction (in the first page) \special{...

1

You can, but we don't know how wide your paper is?/how much margins you have?/or the documentclass used. However, here are some suggestions: Use a smaller (but still readable) fontsize, \footnotesize. Use sanserif shape as it is more readable at smaller fontsize, \sffamily. Shrink the inter-column space, \setlength{\tabcolsep}{2pt}. Add two @{}s around the ...

0


3

It works for me both with pdf latex and lualatex \documentclass{tufte-book} \usepackage{floatrow} \usepackage{graphicx} \setkeys{Gin}{width=\textwidth+\marginparsep+\marginparwidth,totalheight=\textheight,keepaspectratio} \usepackage{kantlipsum} \begin{document} Here is a figure that I would like to be fullwidth. \begin{figure*} \includegraphics{...

9

You can also use tikz-cd. Output Code \documentclass[tikz, margin=10pt]{standalone} \usepackage{tikz-cd} % if tikz is already loaded, you can also use \usetikzlibrary{cd} \begin{document} \begin{tikzcd}[row sep=2cm] & G(T) \arrow{dl}[swap]{\pi_1} \arrow[leftrightarrow]{dr}{\pi_2} & \\ X \arrow[rr] \arrow[ur, bend right=15,...

3

Just a general example of doing such like drawings-- if you want you can increase the bend angle of the arrow in the preamble \documentclass[tikz, margin=3.14159mm]{standalone} \usetikzlibrary{arrows.meta, calc, positioning, quotes} \begin{document} \begin{tikzpicture}[ node distance = 35mm, vertex/....

1

It looks like you want to draw a commutative diagram of some sort. There are packages which make this quite easy, e.g. diagxy or xymatrix.

1

This issue is that in your custom class you load scrbook with \LoadClass and pass the options there, but you load graphicx using \RequirePackage in your own class. This causes the package loading to be outside the scope of \LoadClass and therefore the option is not passed. You can check this when you uncomment \RequirePackage{graphicx} (and \RequirePackage{...

0

Here is an EPS file with script ell created with ROOT6.22/02 https://www.dropbox.com/s/03n8y8xjtxkalvz/ell1.eps?dl=0. I find the simplest approach is to use a bulk editor to replace STIX with STIXX in the eps files before conversion. This helps to remove the conflict between the version of STIXGeneral-Italic in ROOT (Version 0.9) and that included in TeXLive ...

2

Here an updated Python 3 code: #!/usr/bin/python3 import numpy as np import imageio matrix = imageio.imread('536ws.jpg', as_gray = True) x,y=matrix.shape mesh = ' ' for i in range(0,x): for j in range(0,y): mesh += '%d \t %d \t %d \n' % (i,j,matrix[i,j]) mesh += '\n' print(mesh) To get the .dat file: python3 extract....

0

The following should serve as a point to start from: \documentclass{article} \usepackage{geometry} \usepackage[demo]{graphicx} % remove demo option in actual document \usepackage{tabularx} \usepackage[column=0]{cellspace} \usepackage[export]{adjustbox} \usepackage{enumitem} \setlength{\cellspacetoplimit}{\tabcolsep} \setlength{\cellspacebottomlimit}{\...

0

This worked for me. \begin{figure} \centering \resizebox{\textwidth}{!}{\includegraphics{example.png}} \caption{CAPTION} \label{LABEL} \end{figure}

2

LaTex does not respect image orientation tags (which is as it should be). HTML in websites does not support the tag either so you can get the same troubles. If you take a picture on your phone or with some cameras, the camera injects an Exif orientation flag. The image is always stored in one particular orientation (e.g portrait with the top of the camera ...

0

You can use the xr package. Clean solution: In the main file, include the lines \usepackage{xr} \usepackage{subfiles} \externaldocument[M-]{\subfix{main}}% must appear after \usepackage{subfiles} In the subfiles, prefix all references that are supposed to show the same value as when typesetting the main document, with M-. This means: For labeling, you write ...

0

For a two column document, you need to use figure*. However, figure* only supports [tp] (and [b] with the dblfloatfix package), not [h]. Also note that it always moves to the next page, not the top of this page. The [b] option for subfigure will align the captions (last baseline), while the [t] option will align the bottoms of the images (first baseline). \...

0

It is simpler to do that with floatrow, more specifically its subfloatrow environment: \documentclass{article} \usepackage{graphicx} \usepackage{caption, subcaption, floatrow} \usepackage{mwe} \begin{document} \begin{figure}[h] \centering \begin{subfloatrow}[3] \centering \ffigbox[\FBwidth]{\caption{MNLI} \label{fig:pct}}{\...

0

This solution creates environment textbox (awful name) which takes an image as its argument (or a \parbox or minipage if needed). It differs from wrapfigure in that it will work with lists, but will not shape paragraphs. Since each \item is a separate paragraph, that should not be a problem. Just keep all your environments properly nested. You can use the ...

-1

I do not have the logo so used a dummy blank --remove the first line of the code in actuals when replacing The beamer template for title page can be changed with the help of \setbeamertemplate as described here -- Logo position of title page The line \centering{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic}\par\vskip1em specifically places the logo ...

1

\documentclass[12pt]{article} \usepackage{graphicx} \usepackage{eso-pic,adjustbox} \AddToShipoutPictureBG{% \AtPageCenter{% \adjincludegraphics[width=\paperwidth,height=\paperheight, keepaspectratio,valign=M,center=0pt]{example-image-a}% }} \begin{document} The universe is immense and it seems to be homogeneous, in a large scale, everywhere we ...

0

Easiest would be to move the image into position: \documentclass{moderncv} \usepackage{graphicx} \usepackage[utf8]{inputenc} \moderncvstyle{classic} \moderncvcolor{green} % Bullet point color % Page margins \usepackage[scale=0.8]{geometry} % Page margins % Your Information, please revise \name{Don}{Jones} \address{...

3

You can do footnotes in TikZ pictures the same way you do footnotes in tables or figures, i.e. either you use \footnotemark inside and \footnotetext outside or you wrap the text in a minipage to have the footnote placed directly underneath in the middle of the page. \documentclass{article} \usepackage{tikz} \setlength{\textheight}{3cm} % only for demo! \...

0

An alternative in Metapost. This is wrapped up in luamplib so compile with lualatex. \documentclass[border=5mm]{standalone} \usepackage{luamplib} \begin{document} \mplibtextextlabel{enable} \begin{mplibcode} beginfig(1); % define a unit for the points numeric u; u = 1cm; % define all the points, using the magic z macro and note the ' in ...

0

You can also define objects after the image and then offset them using negative vertical space. Because it follows after the image in the LaTeX source, it will be drawn on top of the image instead of underneath it. \includegraphics[...]{...} \vspace*{-20ex} % Tune this to the image height. \begin{center} Text \end{center} \vspace*{20ex} % The spacing above ...

-1

I did not experience a fix in the latest Inkscape release which is 1.0.1! The workarounds provided in this thread are not complete but work sometimes. I can always fix the pdf and the related crash when I move all objects, not only the text, to the first layer and remove all other layers, then tex compiles and the input of the image works. As others ...

0

I’m not aware of any LaTeX package that has Edvard Munch’s “The Scream.” However, LaTeX lets you include any picture you want, and that one is in the public domain. The approach I would recommend would be to download the clip art as a SVG, such as this one Thérèse found, crop the part of it you want with a program like Inkscape, and include the SVG graphic ...

1


Top 50 recent answers are included