caption stringlengths 0 6.77k | code stringlengths 99 1.67M | image imagewidth (px) 384 384 | pdf unknown | uri stringlengths 21 143 | origin stringclasses 11
values | date timestamp[us]date 2006-11-08 00:00:00 2023-09-26 14:45:35 |
|---|---|---|---|---|---|---|
How to add a few points to the "current page text area" of tikz?
This is my code:
[CODE]
It is positioned right at the top right corner of the page text area. I want to position it a bit lower (by 10pt) and a bit to the left (by 15pt). How do I do this? | \documentclass{article}
\usepackage{tikzpagenodes}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east] at ([xshift=-15pt,yshift=-10pt]current page text area.north east) {Hello};
\end{tikzpicture}
\end{document} | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617034 | tex.stackexchange.com | 2021-09-28T12:28:47.397000 | |
Tikz: consider coordinates like matrices of nodes
TL;DR: Is it possible to use coordinates notation, but matrix of nodes-like behavior to have columns adapt to width of content?
Explaination
I'm using tikzit to draw some plots with nodes:
[IMG]
However, as you can see, some nodes are really far appart (the first ones)... | \documentclass{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds,positioning}
\usetikzlibrary{shapes,shapes.geometric,shapes.misc}
\pgfdeclarelayer{edgelayer}
\pgfdeclarelayer{nodelayer}
\pgfsetlayers{background,edgelayer,nodelayer,main}
\begin{document}
\tikzstyle{Z}=[minimum size=3mm, font={\footnotesize\bold... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzNyA3IDAgUi9GNDAgOCAwIFIvRjM0IDkgMCBSPj4vUHJvY1NldFsvUERGL1RleHRdPj4KZW5kb2JqCgo1IDAgb2J... | https://tex.stackexchange.com/a/617920 | tex.stackexchange.com | 2021-10-06T06:54:54.653000 | |
How to draw the internal circuits of an operational amplifier?
I'm trying to do the next schematics about the 741 opamp:
[IMG]
but I don't know where to anchor the first transistor or even which should be done first, and how to do the transistor with double emitter. I'm looking for a start.
[CODE]
[IMG]
Thanks.
UPDA... | \documentclass[tikz,border=1cm]{standalone}
\usepackage[american currents]{circuitikz}
% This code is from Claudio Fiandrino https://tex.stackexchange.com/a/65792/154390
% Ads new label styles to allow aditional labels like two line descriptions.
\makeatletter
\ctikzset{lx/.code args={#1 and #2}{
\pgfkeys{/tik... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmQGNhMS4wPDwvY2EgMT4+Pj4KZW5kb2JqCgoyIDAgb2JqCjw8Pj4KZW5kb2JqCgozIDAgb2JqCjw8L3BnZnByZ2JbL1BhdHRlcm4vRGV2aWNlUkdCXT4+CmVuZG9iagoKNCAwIG9iago8PC9Db2xvclNwYWNlIDMgMCBSL1BhdHRlcm4gMiAwIFIvRXh0R1N0YXRlIDEgMCBSL0ZvbnQ8PC9GMjIgNyAwIFIvRjI0IDggMCBSL0YyNyA5IDAgUi9GMjYgMTAgMCBSL0YyMyAxMSA... | https://tex.stackexchange.com/a/617221 | tex.stackexchange.com | 2021-09-29T18:58:06.547000 | |
Silly problem: font in y labels do not change
I never encountered these problems, in a plot I am able to set the font size and family of labels in the x-axis. With the same command I am able to set the size of the font of labels in the y-axis but not the family. Also commands "bar width=" and "column sep=" are not obe... | \documentclass[border=5pt, preview]{standalone}
\usepackage[usernames,dvipsnames]{xcolor}
\usepackage{tikz,pgfplots}
\usepackage{sansmath}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=5cm,
bar width=0.2cm,
axis line style={Gray},
... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzNCA3IDAgUi9GNDcgOCAwIFI+Pi9Qcm9jU2V0Wy9QREYvVGV4dF0+PgplbmRvYmoKCjUgMCBvYmoKPDwvVHlwZS9... | https://tex.stackexchange.com/a/617280 | tex.stackexchange.com | 2021-09-30T09:58:14.403000 | |
How to add a few points to the "current page text area" of tikz?
This is my code:
[CODE]
It is positioned right at the top right corner of the page text area. I want to position it a bit lower (by 10pt) and a bit to the left (by 15pt). How do I do this? | \documentclass{article}
\usepackage{tikzpagenodes}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east] at ([shift={(-15pt,-10pt)}]current page text area.north east) {Hello};
\end{tikzpicture}
\end{document} | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617034 | tex.stackexchange.com | 2021-09-28T12:28:47.397000 | |
TikZ positioning: align nodes along bottom edge
I have the following code:
[CODE]
which generates the following:
[IMG]
How might I change it such that all the stacks are aligned along their bottom edges to show the matrix stacks growing (I have already tried this with anchor=south, but clearly that doesn't work), with... | \documentclass{standalone}
\usepackage{tikz}
\usepackage{amsmath,amsfonts,physics}
\usetikzlibrary{shapes.multipart,positioning}
\begin{document}
\begin{tikzpicture}[stack/.style={rectangle split, rectangle split parts=#1, draw, anchor=south},auto]
\node (LMA) [stack=1,label=below:{\texttt{LM(A)}}] {
\nodep... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0Y0NCA3IDAgUi9GNTAgOCAwIFI+Pi9Qcm9jU2V0Wy9QREYvVGV4dF0+PgplbmRvYmoKCjUgMCBvYmoKPDwvVHlwZS9... | https://tex.stackexchange.com/a/617802 | tex.stackexchange.com | 2021-10-05T09:36:14.153000 | |
TikZ positioning: align nodes along bottom edge
I have the following code:
[CODE]
which generates the following:
[IMG]
How might I change it such that all the stacks are aligned along their bottom edges to show the matrix stacks growing (I have already tried this with anchor=south, but clearly that doesn't work), with... | \documentclass{standalone}
\usepackage{tikz}
\usepackage{amsmath,amsfonts,physics}
\usetikzlibrary{shapes.multipart,positioning}
\begin{document}
\begin{tikzpicture}[
stack/.style={rectangle split, rectangle split parts=#1, draw, anchor=south west},
auto,
dist/.style={xshift=10mm}
]
\node (LMA... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0Y0NCA3IDAgUi9GNTAgOCAwIFI+Pi9Qcm9jU2V0Wy9QREYvVGV4dF0+PgplbmRvYmoKCjUgMCBvYmoKPDwvVHlwZS9... | https://tex.stackexchange.com/a/617801 | tex.stackexchange.com | 2021-10-05T09:30:22.977000 | |
How to keep base-line based distance before (tikz) environment?
I have an environment (tikzpicture) that tries to occupy a height equal to the multiple of the current line height / baselineskip (I need this to be pixel-perfect, so in a multicol-setup the baselines match up in all columns before/after the image).
The f... | \documentclass[openany]{book}
\usepackage{tikz}
\setlength{\fboxsep}{-0.5pt}
\setlength{\fboxrule}{0.5pt}
%\setlength{\lineskip}{0cm}
%\setlength{\parskip}{1pt}
\newcommand{\tikzmark}[1]{\tikz[overlay, remember picture, baseline={(#1.base)}]
\node[inner sep=0pt, line width=0pt] (#1) {\phantom{Tg}};}
\begin{document... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUi9GMjIgOCAwIFI+Pi9Qcm9jU2V0Wy9QREYvVGV4dF0+PgplbmRvYmoKCjUgMCBvYmoKPDwvVHlwZS9... | https://tex.stackexchange.com/a/617298 | tex.stackexchange.com | 2021-09-30T13:27:45.803000 | |
How to add a few points to the "current page text area" of tikz?
This is my code:
[CODE]
It is positioned right at the top right corner of the page text area. I want to position it a bit lower (by 10pt) and a bit to the left (by 15pt). How do I do this? | \documentclass{article}
\usepackage{tikzpagenodes}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east, fill=yellow] at (current page text area.north east) {Hello};
\node[anchor=north east, fill=red] at ([shift={(-15pt,-10pt)}]current page text area.north east) {Hello};
\end{tikzpictu... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617034 | tex.stackexchange.com | 2021-09-28T12:28:47.397000 | |
Using tikz, how would I draw a heptagon with area 7?
How could I draw, using tikz, a regular heptagon of area 7 sq.units? | \documentclass[tikz,border=5mm]{standalone}
\usepackage{amsmath}
\begin{document}
% for maths
\begin{tikzpicture}
\node{$S=\dfrac{nr^2\sin\left(\frac{360}{n}\right)}{2}$ \quad implies\quad $r=\sqrt{\dfrac{2S}{n\sin\left(\frac{360}{n}\right)}}$};
\end{tikzpicture}
\begin{tikzpicture}
\def\n{7} % number of sides of a... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNyA3IDAgUi9GMjQgOCAwIFIvRjIzIDkgMCBSL0YxNyAxMCAwIFIvRjI2IDExIDAgUj4+L1Byb2NTZXRbL1BERi9... | https://tex.stackexchange.com/a/616342 | tex.stackexchange.com | 2021-09-22T19:19:08.167000 | |
Horizontal row separation line in tikz matrix (like \hline in tabular)
In this question tikz-matrix-as-a-replacement-for-tabular a nice solution was given to let the matrix in tikz behave like tabular.
In this solution cell/.style={rectangle} was used to draw lines around every cell. But usually, however, I'd rath... | \documentclass{article}
\usepackage{nicematrix,booktabs,tikz}
\begin{document}
\begin{NiceTabular}{ccc}[name=A]
\toprule
one & two & three \\
\midrule
four & five & six \\
seven & eight & nine \\
\bottomrule
\end{NiceTabular}
\hspace{2cm}
{\renewcommand{\arraystretch}{1.4}
\begin{NiceTabular}{ccc}[hvlines,name=B]
one... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617628 | tex.stackexchange.com | 2021-10-03T16:32:28.577000 | |
Coloured background on part of a page
I am trying to colour the background of the top fifth of a page. I thought that I should use eso-pic and tikz for this, and came up with the following:
[CODE]
This adds the background to the bottom of the page. How can I put it at the top?
I would also be happy to hear suggestions... | \documentclass{scrbook}
\usepackage{eso-pic}
\usepackage{tikz}
\usepackage{lipsum}
\begin{document}
%
\AddToShipoutPictureBG{%
\AtPageUpperLeft{\begin{tikzpicture}[overlay]
\node[rectangle, fill = blue, minimum width = \paperwidth,outer sep=0pt, minimum height = 0.2\paperheight, anchor =north west]{};
\end{tikzpictu... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzMyA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617502 | tex.stackexchange.com | 2021-10-02T12:04:47.313000 | |
Drawing a paper-folding model
I am using the following modified code from the answer to this post.
[CODE]
[IMG]
I am trying to imitate the following drawing.
[IMG]
But I`ve got stuck in completing the diagram; because there is always a third point present (as A5, A7, A8, A17, A22).
Drawing the remaining triangles over... | \documentclass[10pt,a4paper]{article}
\usepackage{geometry}
\geometry{a4paper, left=10mm, right=10mm, top=10mm, bottom=10mm}
\usepackage{verbatim}
\usepackage[bookmarks=false,colorlinks,linkcolor=black,urlcolor=blue,citecolor=blue, plainpages=false,pdfpagelabels,breaklinks,linktocpage]{hyperref}
\usepackage{tikz,xparse... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L1MvR29Uby9EWzYgMCBSL0ZpdF0+PgplbmRvYmoKCjYgMCBvYmoKPDwvVHlwZS9QYWdlL0NvbnRlbnRzIDggMCBSL1Jlc291cmNlcyA3IDAgUi9NZWRpYUJveFsxMCAzOSA1ODcgODEyXS9QYXJlbnQgMTQgMCBSL1J... | https://tex.stackexchange.com/a/614851 | tex.stackexchange.com | 2021-09-10T06:16:22.170000 | |
Unique font for the whole tikz graphic
With the tikzpicture environment, I want to have a single font (helvetica) for all the elements of the graphic. On the sample code given below, only the legend and the axis labels take the helvetica font.
Thank you in advance for your interest in my request.
Code sample
[CODE]
Re... | \documentclass[a4paper,12pt,oneside,final,french]{book}
\headheight = 15pt
\usepackage[margin=2.5cm, left=3cm, top=2.5cm, bottom=2.5cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{xcolor}
\definecolor{Noir50}{RGB}{50, 50... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzNiA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/616568 | tex.stackexchange.com | 2021-09-24T10:20:21.880000 | |
How to solve error placing a node with a picture in a slide
I would like to ask how to solve the compiling error of this beamer code:
[CODE]
The file VS.jpg is this:
[IMG]
The error at compiling is:
Package tikz Error: Cannot parse this coordinate. | \documentclass{beamer}
\usepackage{multicol}
\usepackage{pgfplots}
\usepackage{tikz}
\usetikzlibrary{positioning}
\graphicspath{{_figs/}}
\usepackage{graphicx}
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{frame numbering}[fraction]
\useoutertheme{metropolis}
\useinnertheme{metropolis}
\usefonttheme{... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgoxMCAwIG9iago8PC9TL0dvVG8vRChPdXRsaW5lMC4xKT4+CmVuZG9iagoKMTIgMCBvYmoKPDwvRFsyNyAwIFIvWFlaIDI4LjM0NiAyNzIuMTI2IG51bGxdPj4KZW5kb2JqCgoxMyAwIG9iago8PC9UaXRsZSAxNCAwIFIvQSAxMCAwIFI... | https://tex.stackexchange.com/a/611288 | tex.stackexchange.com | 2021-08-19T13:30:25.603000 | |
How do I change the radius of circle in a node in tikz style?
I have the following example:
[CODE]
I want to change the radius of vertice in tikz style. How to do it?
Thanks for the help. | \documentclass[]{beamer}
\usetheme{Darmstadt}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{frame}{}
\begin{tikzpicture}[>=latex]
\tikzset
{
vertex/.style={circle, inner sep=0pt, outer sep=0pt, minimum width=1cm,fill=black!10},
selected vertex/.sty... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmc21hc2syMDw8L1NNYXNrPDwvUy9MdW1pbm9zaXR5L0cgMjAgMCBSPj4+Pj4+CmVuZG9iagoKMiAwIG9iago8PD4+CmVuZG9iagoKMyAwIG9iago8PC9wZ2ZwcmdiWy9QYXR0ZXJuL0RldmljZVJHQl0+PgplbmRvYmoKCjEwIDAgb2JqCjw8L1MvR29Uby9EWzEyIDAgUi9GaXRdPj4KZW5kb2JqCgoxMiAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGVudHMgNDQgMCBSL1Jlc29... | https://tex.stackexchange.com/a/616278 | tex.stackexchange.com | 2021-09-22T11:46:31.727000 | |
Controlling the highlight of dates and separation in a vertical timeline
I would like to use the solution of Timeline shared in several Beamer frames to
make a vertical timeline, that is, with the arrow pointing to the bottom of the slide.
[CODE]
I would like also to know how to show two dates (e.g. 2009 and 2012) wit... | \documentclass{beamer}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{} % removes navigation symbols at the bottom left
\usepackage{tikz}
\usetikzlibrary{overlay-beamer-styles}
\usetikzlibrary{arrows.meta}
\tikzset{
highlight on/.style={alt={#1{fill=red!80!black,color=red!80!black}{fill=gray!... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgoxMCAwIG9iago8PC9TL0dvVG8vRFsxMiAwIFIvRml0XT4+CmVuZG9iagoKMTIgMCBvYmoKPDwvVHlwZS9QYWdlL0NvbnRlbnRzIDE0IDAgUi9SZXNvdXJjZXMgMTMgMCBSL01lZGlhQm94WzAgMCAzNjIuODM1IDI3Mi4xMjZdL1RyYW5... | https://tex.stackexchange.com/a/612440 | tex.stackexchange.com | 2021-08-29T17:53:06.013000 | |
How can I get the 12th node aligned and size the rest properly?
I am experimenting with the graphdrawing library from tikz and produced this graph:
[IMG]
How can I align the node 12 such that it is one the same height with node 10?
And also, why are nodes 10,11,12 bigger than the rest? I would prefer them to have the ... | \documentclass[margin=2mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{circular,layered}
\begin{document}
\begin{tikzpicture}
\graph[
simple necklace layout,
node distance = 1cm,
nodes={circle,draw,minimum width=1cm}, % <-- added here
layered layout,
horizontal... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YxNSA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/614910 | tex.stackexchange.com | 2021-09-10T15:01:53.080000 | |
How to make a controlled timeline in horizontal line
I would like to use the code in this solution Controlling the highlight of dates and separation in a vertical timeline which plot a vertical timeline, to make a horizontal timeline with the same configuration possibilities such as control distance between labels, sh... | \documentclass{beamer}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{} % removes navigation symbols at the bottom left
\usepackage{tikz}
\usetikzlibrary{overlay-beamer-styles}
\usetikzlibrary{arrows.meta}
\tikzset{
highlight on/.style={alt={#1{fill=red!80!black,color=red!80!black}{fill=gray!... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgoxMCAwIG9iago8PC9TL0dvVG8vRFsxMiAwIFIvRml0XT4+CmVuZG9iagoKMTIgMCBvYmoKPDwvVHlwZS9QYWdlL0NvbnRlbnRzIDE0IDAgUi9SZXNvdXJjZXMgMTMgMCBSL01lZGlhQm94WzAgMCAzNjIuODM1IDI3Mi4xMjZdL1RyYW5... | https://tex.stackexchange.com/a/614366 | tex.stackexchange.com | 2021-09-06T19:18:22.170000 | |
How to draw a path in a surface with tikz/pgf?
Is possible to draw a "random" path in a surface like those Callen's graph? Have a library on tikz to do this?
Like draw a surface with tikz-3dplot and draw a line, or a curve, in this surface.
Example:
[IMG] | \documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}[scale=2,declare function={f(\x,\y)=-1*((\x*\x)+((\y*\y+100)));}]
\begin{axis}[
title={Título qualquer},
xlabel=$\mu_2$, ylabel=$\mu_1$,
small,
x dir=reverse
]
\addplot3[
... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzNyA3IDAgUi9GMzMgOCAwIFIvRjM1IDkgMCBSL0Y0MCAxMCAwIFIvRjM0IDExIDAgUi9GMjQgMTIgMCBSPj4vUHJ... | https://tex.stackexchange.com/a/616111 | tex.stackexchange.com | 2021-09-20T21:39:51.890000 | |
Smooth connections between segments of a graph
I try to replicate the following graph
[IMG]
My very manual attempt is not pretty since curves are not properly connected.
Some of you speak path and controls much better than I do. A litte help on these would be much appreciated.
My question
How can I get the blue and gr... | \documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,intersections,decorations.markings}
\pgfdeclarelayer{background}
\pgfsetlayers{background, main}
\tikzset{test/.style n args={3}{
postaction={
decorate,
decoration={
markings,
mark=between ... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNCA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/617031 | tex.stackexchange.com | 2021-09-28T12:02:51.603000 | |
Trying to plot a parametric curve using tikz
[CODE]
[IMG]
See above my code for the Folium of Descartes. My question is, how do I make it look like the folium. I tried to increase the samples, but after I put 600, I get an error (dimension too large) | \documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
trig format plots=rad,
axis equal, axis x line=middle, axis y line=
middle, xlabel={$x$}, ylabel={$y$},xmin=-3,xmax=3,ymin=-4,ymax=4]
\addplot [domain=-1:180, smooth,samples=2000, re... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzMCA3IDAgUi9GMjQgOCAwIFIvRjI3IDkgMCBSPj4vUHJvY1NldFsvUERGL1RleHRdPj4KZW5kb2JqCgo1IDAgb2J... | https://tex.stackexchange.com/a/616109 | tex.stackexchange.com | 2021-09-20T21:28:35.167000 | |
Circle relation table in latex
I want to draw a picture like this in latex, i use xelatex with chinese, which start with
[CODE]
Could someone told me how to tackle it? thanks
[IMG] | \documentclass{article}
\usepackage[UTF8]{ctex}
\usepackage{tikz}
\begin{document}
{% Begin scope to ensure \myCircleRadius won't disturb the rest of the document
\def\myCircleRadius[#1]{\draw (-#1,0) circle [radius=#1];}
\begin{tikzpicture}[scale=1] % Adapt the scale to enlarge the whole picture without enlarging... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YyNSA3IDAgUj4+L1Byb2NTZXRbL1BERi9UZXh0XT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGV... | https://tex.stackexchange.com/a/616138 | tex.stackexchange.com | 2021-09-21T08:17:49.557000 | |
Complex Plane plot scaling issue
I have made the attached picture in 2018. It full filled its purpose for my tutorial. Now I want to add it into my lecture notes. But the problem is that it is using overlay when I scale it down even using transform shape, the things get distorted. If somebody can help to scale the pic... | \documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{arrows.meta}
\usepackage{steinmetz}
\usepackage{xcolor}
\usepackage{background}
\usepackage{amsmath,mleftright}
\usepackage{xparse}
\NewDocumentCommand{\evalat}{sO{\big}mm}{%
\IfBooleanTF{#1}
{\mleft. #3 \mright|_{#4}}
... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmQENBLjU8PC9DQSAuNT4+L3BnZkBjYS41PDwvY2EgLjU+Pj4+CmVuZG9iagoKMiAwIG9iago8PD4+CmVuZG9iagoKMyAwIG9iago8PC9wZ2ZwcmdiWy9QYXR0ZXJuL0RldmljZVJHQl0+PgplbmRvYmoKCjQgMCBvYmoKPDwvQ29sb3JTcGFjZSAzIDAgUi9QYXR0ZXJuIDIgMCBSL0V4dEdTdGF0ZSAxIDAgUi9Gb250PDwvRjM5IDcgMCBSL0YzNiA4IDAgUi9GMjkgOSAwIFI... | https://tex.stackexchange.com/a/617051 | tex.stackexchange.com | 2021-09-28T14:38:41.957000 | |
Modifying pgfplots 3d surface
I'm trying to modify a surface in pgfplots to get something similar to a Matlab result. The image below is what I want to achieve.
[IMG]
The code I used:
[CODE]
[IMG]
So basically what I'm trying to do is to remove the bottom of the pgfplots surface. The ellipse is defined by -2<x<2 and -... | \documentclass[border=1 cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[colormap/viridis, view={40}{50}]
\addplot3[surf, shader=faceted interp, samples=25, domain=-3:3] {x^2+4*y^2};
\addlegendentry{\(x^2+4y^2\)}
\clip[preaction={fill=white}] plot[domain=... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L1NoYWRpbmdUeXBlIDQvQml0c1BlckNvb3JkaW5hdGUgMjQvQml0c1BlckNvbXBvbmVudCAxNi9CaXRzUGVyRmxhZyA4L0NvbG9yU3BhY2UvRGV2aWNlUkdCL0RlY29kZVstMTYzODQgMTYzODQgLTE2Mzg0IDE2Mzg... | https://tex.stackexchange.com/a/617131 | tex.stackexchange.com | 2021-09-29T03:41:24.230000 | |
CircuiTikZ American voltage signs not vertically aligned with unicode-math
I am creating a circuit diagram, and noticed that the voltage signs are not aligned vertically.
I have manually added the red overlay to highlight the issue.
[IMG]
I used XeLaTeX through LaTeXmk, and here is the code:
[CODE]
If I remove the uni... | \documentclass{standalone}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}
\ctikzset{voltage=raised}
\draw (0.5,1) node[draw,red,thin,inner sep=1pt]{$-$}
(1,1) node[draw,red,thin,inner sep=1pt]{$+$};
\draw (0, 0) to[R=$R_1... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmQGNhMS4wPDwvY2EgMT4+L3BnZkBDQTAuNTw8L0NBIC41Pj4vcGdmQGNhMC41PDwvY2EgLjU+Pj4+CmVuZG9iagoKMiAwIG9iago8PD4+CmVuZG9iagoKMyAwIG9iago8PC9wZ2ZwcmdiWy9QYXR0ZXJuL0RldmljZVJHQl0+PgplbmRvYmoKCjQgMCBvYmoKPDwvQ29sb3JTcGFjZSAzIDAgUi9QYXR0ZXJuIDIgMCBSL0V4dEdTdGF0ZSAxIDAgUi9Gb250PDwvRjIxIDcgMCB... | https://tex.stackexchange.com/a/609342 | tex.stackexchange.com | 2021-08-02T18:32:44.133000 | |
How to disable Auto-Adjustment of Tikzpictures?
I've made a script which converts a latex code into an animation, but the thing that is rendered readjusts it's sizes for best fitting in the frame, I want to turn this off as the animation flickers when rendered.
Here is the latex Code:
[CODE]
Here, the *#type-g 1:120 2... | \documentclass[aspectratio=169]{beamer}
%\usepackage{tikz}
\usepackage{tkz-euclide}
\setbeamertemplate{navigation symbols}{}
\setlength{\parindent}{0pt}
\begin{document}
\begin{frame}
\begin{center}
\begin{tikzpicture}[scale=0.7]
\useasboundingbox (-3.5,-5.5) rectangle (7.5,5.5);
\tkzDefPoint(2,0){A}\tkzDefPoint(0,0){... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmQENBMC41PDwvQ0EgLjU+Pi9wZ2ZAY2EwLjU8PC9jYSAuNT4+Pj4KZW5kb2JqCgoyIDAgb2JqCjw8Pj4KZW5kb2JqCgozIDAgb2JqCjw8L3BnZnByZ2JbL1BhdHRlcm4vRGV2aWNlUkdCXT4+CmVuZG9iagoKMTAgMCBvYmoKPDwvUy9Hb1RvL0RbMTIgMCBSL0ZpdF0+PgplbmRvYmoKCjEyIDAgb2JqCjw8L1R5cGUvUGFnZS9Db250ZW50cyAxNCAwIFIvUmVzb3VyY2VzIDE... | https://tex.stackexchange.com/a/608880 | tex.stackexchange.com | 2021-07-29T05:45:23.193000 | |
Timeline with callouts?
I'm scratching my head on this one and may update it with a solution if someone doesn't beat me..
I'm looking to build a timeline (plain horizontal using https://github.com/ArneMeier/timeline) but want to add events with line/arrow callouts including pictures instead of the default rounded rect... | \documentclass[border=3mm]{standalone}
\usepackage{fontspec}% for LuaLaTeX only
\setsansfont{Roboto}% for LuaLaTeX only
%\usepackage{txfonts}
\usepackage{tikz}
\usetikzlibrary{calendar,shapes.geometric,backgrounds,positioning}
\newcommand{\Divisor}{\draw[white,very thin] (-2*\daywidth,2pt) -- +(0,\timeLineHeigth-4pt);... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L1R5cGUvWE9iamVjdC9TdWJ0eXBlL0Zvcm0vRm9ybVR5cGUgMS9QVEVYLlBhZ2VOdW1iZXIgMS9QVEVYLkluZm9EaWN0PDwvUHJvZHVjZXIocGRmVGVYLTEuNDAuMjApL0NyZWF0b3IoVGVYKS9DcmVhdGlvbkRhdGU... | https://tex.stackexchange.com/a/609586 | tex.stackexchange.com | 2021-08-04T21:27:30.527000 | |
Generating calendars for the next 10 years
I use the following modified code (from the pgf manual) to generate a calendar.
Is it possible to modify the code to generate calendars for the next 10 years, each in a separate dodecahedron model.
[CODE]
[IMG] | \documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{geometry}
\geometry{a4paper, left=4mm, right=10mm, top=20mm, bottom=5mm}
\usetikzlibrary{calendar,folding}
\NewDocumentCommand{\dodecalendar}{m}{
\begin{tikzpicture}[transform shape,
scale=1.25,%to make text fit the 2.5cm-line-length face
... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzNiA3IDAgUi9GMzQgOCAwIFI+Pi9Qcm9jU2V0Wy9QREYvVGV4dF0+PgplbmRvYmoKCjUgMCBvYmoKPDwvVHlwZS9... | https://tex.stackexchange.com/a/613858 | tex.stackexchange.com | 2021-09-02T16:20:04.323000 | |
Compilation problem with calligraphy TikZ library
I tried to reproduce Andrew Stacey's graph from the question "Creating this vectorised watermark in TikZ", but I get several error messages and no PDF file is produced.
However, if I use Overleaf, it works perfectly, I don't understand why. Maybe Overleaf uses an old v... | \documentclass{article}
% \url{https://tex.stackexchange.com/q/427775/86}
% \url{https://tex.stackexchange.com/q/616249/86}
\usepackage{tikz}
\usetikzlibrary{calligraphy,spath3}
\ExplSyntaxOn
\cs_generate_variant:Nn \spath_split_at:NNnn {ccvn}
\tikzset{
spath/.cd,
split~ at~ into/.code~ n~ args={4}{
\__tik... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDwvcGdmQENBLjM1PDwvQ0EgLjM1Pj4vcGdmQGNhLjM1PDwvY2EgLjM1Pj4+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L1R5cGUvWE9iamVjdC9TdWJ0eXBlL0Zvcm0vR3JvdXA8PC9TL1RyYW5zcGFyZW5jeS9JIHRydWUvSyBmYWxzZT4+L0JCb3hbMCAwIDM0MC4... | https://tex.stackexchange.com/a/616716 | tex.stackexchange.com | 2021-09-25T19:06:20.727000 | |
Tikz 3d plot transfer function
This is a follow-up question to this
I have plotted the graph with online help of different resources (code and picture attached)
Now the problems are:
It is not correcting plotting the curve in the y-z plane the red line and give this error message
Package pgfplots Error: Sorry, you can... | \documentclass[border=1cm]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{calc,math}
\pgfplotsset{compat=newest}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{arrows}
\pgfplotsset{every tick label/.append style={font=\huge}}
\pgfkeys{/pgf/declare function={H(\x,\y) = 3*((((((\x)^2-(\y)^2+3*(\x)+2)^2+((2*\x*\y)+3*\y)... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvRm9udDw8L0YzOSA3IDAgUi9GMzMgOCAwIFIvRjQ0IDkgMCBSPj4vUHJvY1NldFsvUERGL1RleHRdPj4KZW5kb2JqCgo1IDAgb2J... | https://tex.stackexchange.com/a/615952 | tex.stackexchange.com | 2021-09-19T10:21:20.343000 | |
Square root of a function "misbehaves" near the x-axis
I'm trying to plot height lines of a function of the form $H(x,y)=y^2+u(x)$, by taking multiple plots of $\pm\sqrt{c-u(x)}$. The problem is that for some values $c$ the domain is tricky and not easily computable. I tried to bypass this problem by plotting $\pm\max... | \documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[
declare function = {u(\x) = 0.5*pow(\x-2,3)-\x+4;}
]
\draw[->] (-0.5,0)--(4.5,0);
\draw[->] (0,-2.2)--(0,2.2);
\clip (-0.5,-2.2) rectangle (4,2.2);
\def\samp{2000}% <<--
\foreach \c in {0,0.8,...,3.6}
{
\draw plot... | "JVBERi0xLjUKJcK1wrYKCjEgMCBvYmoKPDw+PgplbmRvYmoKCjIgMCBvYmoKPDw+PgplbmRvYmoKCjMgMCBvYmoKPDwvcGdmcHJnYlsvUGF0dGVybi9EZXZpY2VSR0JdPj4KZW5kb2JqCgo0IDAgb2JqCjw8L0NvbG9yU3BhY2UgMyAwIFIvUGF0dGVybiAyIDAgUi9FeHRHU3RhdGUgMSAwIFIvUHJvY1NldFsvUERGXT4+CmVuZG9iagoKNSAwIG9iago8PC9UeXBlL1BhZ2UvQ29udGVudHMgNiAwIFIvUmVzb3VyY2VzIDQgMCB... | https://tex.stackexchange.com/a/614533 | tex.stackexchange.com | 2021-09-07T19:54:39.767000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.