# Tag Info

41

You can load the image into inkscape, choose Path | Trace Bitmap to obtain an svg file (using only 8 colors), and then use svg2tikz to convert the svg file to a tex file using tikz. The result is the image below. The tex source is too big to post here; it looks like this. \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{...

39

One rose...drawing with Mathcha.... \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] %uncomment if require: \path (0,439); %set diagram left start at 0, and has height of 439 %Shape: ...

36

Disclaimer: some pieces and facts in this answer may be inaccurate (most of the historical facts found around the web), so take it with a grain of salt (corrections welcome). The DVI format TeX's DVI format is the simplest possible format to produce typeset output: it knows only about boxes, glue and rules. A character is a box that references a glyph in a ...

14

You can use the decodearray={rmin rmax gmin gmax bmin bmax} option to \includegraphics (the default colour coding is decodearray={0 1 0 1 0 1}). \documentclass{article} \usepackage{graphicx} \begin{document} \noindent \includegraphics[decodearray={0 1 0 1 0 1},width=\textwidth]{ingmar.png}\\ \includegraphics[decodearray={1 1 0 1 0 1},width=\textwidth]{ingmar....

12

In fact the code of Fallum is almost complete. It is sufficient to precise the size, to useintersectionpoint instead of IP and at last to use xpart function. size(10cm); pair dynkinMark(real x, real y, string s = "", pen p = defaultpen, pair B = dir(45)) { if (s != "") { dot("$"+s+"$", (x,y), B, p); } else { dot((...

10

After checking user TrongVuong1998's answer, I went to the linked answer out of curiosity. And I discovered fontAwesome. So, here's my two cents to my own question: \documentclass{standalone} \usepackage{fontawesome} \begin{document} \fontsize{24}{0}\selectfont \faEye \end{document}

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,...

9

So here it is. Using my previous answers to two of your questions, here's a way to find intersections between lines defined between nodes: \node at (intersection of n2--n6 and n1--n3) (A) {}; is pretty straightforward to understand. You named your nodes n1 to n6, you then put a node named A (not mandatory to name it, but allow you to use it afterwards) at ...

8

Check the following code: \documentclass[border=0.1cm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections,calc} \begin{document} \begin{tikzpicture}[thick,yscale=0.8] % Axes \draw[-latex,name path=xaxis] (-1,0) -- (12,0) node[above]{\large $x$}; \draw[-latex] (0,-2) -- (0,8)node[right]{\large $y$};; % Function plot \draw[ultra thick, ...

8

A variation and completing of the @C.F.G. answer (+1): \documentclass[tikz, margin=6pt]{standalone} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[ arr/.style = {draw=#1, very thick}, dot/.style = {circle, fill=#1, outer sep=0pt}, dot/.default = black, ] \foreach \y [count=\i] in {-3.5,-1,1,3} { ...

8

I have created two eyes symbols with Mathcha➡TikZ that reproduce largely your picture that they can be used in text and in math mode. Your names are \frontaleye and \lateraleye. With \scalebox{<factor>} you can increase or decrease the size of the symbols. \documentclass[12pt]{article} \usepackage{amsmath,amssymb} \usepackage{tikz} \...

8

I'm the crazy author :-) of the some answers done with Mathcha that I export in TikZ. But it is important to know that this way that I adopt it is not very correct. It is necessary to know the pure TikZ and to write a correct code using the mind. I like to draw and I thought that, considering that there are many users who ask for very complicated drawings ...

8

Use polar coordinates (angle:distance). For a pentagon, the angles differ by 360/5 = 72 degrees. Since one node is supposed to be at angle 90 (north), the angles are computed from there as 18, 90, 162, 234, and 306 degrees. Lookup the \foreach loop as well as the \draw and \node commands in the TikZ manual. \documentclass[border=2pt]{standalone} \usepackage{...

8

TikZ offers lots of possibilities of "filters" (not what kids these days know as filters, please) to apply over an image by using PDF transparency layers. Section 23.3 (Blend Modes) of the TikZ manual explains this feature with the possible "blend modes": normal, multiply, screen, overlay, darken, lighten, color dodge, color burn, hard ...

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={...

7

If you use the dingbat package, you will get a frontal view of an eye by typing \eye.

7

The weights are automatically standardized. (Somehow I confused the name with "progress bar", please ignore this mistake) \documentclass{article} \usepackage{xcolor} \usepackage{expl3} \usepackage{tikz} \usepackage{amsmath, amssymb} \usepackage[inline]{enumitem} \usetikzlibrary{positioning,shapes.misc} \ExplSyntaxOn \clist_new:N \...

7

Very easy using MetaPost: \documentclass{standalone} \usepackage[latex,shellescape]{gmp} \begin{document} \begin{mpost}[name=nice] numeric u; u := 3cm; for i = 1 upto 5: for j = 1 upto i: if i <> j: draw (u*dir (72i+18)) -- (u*dir(72j+18)) withcolor if (abs(i-j) = 1) or (abs(i-j) = 4): red ...

7

A TikZ solution as you alluded to: \documentclass{report} \usepackage{tikz} \usepackage{mwe} % this package provides dummy images for illustration purposes \begin{document} \lipsum[1-2] % 1st image \clearpage \tikz[remember picture,overlay]{\node[]at(current page.center){\includegraphics{example-image-letter-numbered}};} % replace example-image* with ...

6

In MikTex, the memory size can be permanently increased by this way: 1, For Windows, Open a command Window and enter: initexmf --edit-config-file=latex For Ubuntu, try this: gedit .miktex/texmfs/config/miktex/config/latex.ini In the file opened (it may be empty), add: main_memory=12000000 Save the file and quit. Then in the command window, enter: initexmf ...

6

A short code for the left diagram with pstricks: \documentclass[svgnames]{article} \usepackage{pst-plot}% \usepackage{pst-node, multido} \begin{document} \begin{pspicture} \psaxes[yAxis = false, ticks=none]{-}(0,0)(-0.9,0)(7.9,0) \multido{\i=0+1}{8}{\psline[linestyle=dotted, linewidth=1pt](\i,0)(\i,2.4)} \pnodes{C}(0,1.4)(0,1)(1,1)(1,0.6)(2,...

6

Assuming that you want your imges horizontally and vertically centered inside of a fixed width column, I suggest the following: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{array} \usepackage[export]{adjustbox} \usepackage[column=0]{cellspace} \setlength{\cellspacetoplimit}{0.5\tabcolsep} \setlength{\cellspacebottomlimit}{\...

6

An alternative (for exercise), with using of the regular polygon shape and double loop: \documentclass[tikz, margin=3.141592]{standalone} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture}[ dot/.style = {circle, fill=black, inner sep=2pt, outer sep=0pt} ] \node (n) [regular polygon, regular polygon ...

6

The problem is that (1) several example images in the distribution like example-image or cow are in searchable paths and therefore can be loaded without a path, and (2) an image with the same name in the working directory has priority, but (3) if you don't specify the extension, LaTeX has to choose between all the available flavors of all available ...

6

Your syntax for sqrt is false: you are using braces instead of parentheses. \documentclass{beamer} \usepackage{pgfplots} \begin{document} \begin{frame} \begin{tikzpicture}[scale=0.7] \begin{axis}[ axis lines=middle, axis equal, samples = 200, xlabel = {$x$}, ylabel = {$y$}, ...

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