またXの夜。@nawi0718の質問を見かけて、「はい、TikZで絵が描けるよ」って答えられるなーと思って。ヘッダーに朝比奈みくるがいたから、さっとこの絵を描いてみたよ。彼女の恥ずかしがり屋で控えめな性格が好き。 もしかしてtikzってお絵かきできますか — William Jones (@nawi0718) April 7, 2025 座標を取得するために、元の画像に座標グリッドを重ねてみた。 \documentclass[tikz,border=10pt]{standalone} \begin{document} \begin{tikzpicture} \foreach \i in {1,…,7} { \node at (\i,-0.2) {\i}; \node at (-0.2,\i) {\i};} \node[opacity=0.3] at (3,4) {\includegraphics[scale=2]{mikuru.png}}; \draw[step=0.5, dotted] (0,0) grid (7,8); \draw[step=1] (0,0) grid (7,8); \end{tikzpicture}… Continue Reading →
Packt Publishing currently offers all three of their LaTeX books with a 15% discount. From Packt at LinkedIn: Special Offer Alert! For a limited time, get your print copy on Packt with an exclusive discount! Use code: LEARNLATEX15 at checkout… Continue Reading →
TeX Live 2025 was released today. All engines now create PDF-1.7 in LaTeX and plain format, with older formats (like 1.5 and 1.4) still supported. MacTeX 2025 is now also available, coming with TeXShop 5.49, and working with the latest… Continue Reading →
On X (Twitter), Juan Carlos aka @jcponcemath posts math content frequently. I saw hist post about the Aizawa attractor, a spherical-shaped attractor made from 6 parameters (a, b, …, f). Three equations generate a trajectory from an initial point. I… Continue Reading →
Doraemon is a blue robot cat from the 22nd century. He was sent to the 20th century to help Nobi Nobita. On his stomach, he has a four-dimensional pocket where he keeps all kinds of gadgets, no matter how big… Continue Reading →
I saw a beautiful parametric plot on X (Twitter) by Juan Carlos, that looks like a rose, done in Desmos. Parametric surface: Rose #mathematics #surfaces #marthart #desmos https://t.co/bxFsJuKIzN pic.twitter.com/Uls6ZgWF2Y — ∞ 𝕁uan ℂarlos (@jcponcemath) February 3, 2025 Challenge accepted! I’ll… Continue Reading →
On X (Twitter), I saw a post by @clcoding demonstrating making area charts in Python. As I knew that we can do them easily with pgfplots, I did the same. We can use the ‘fillbetween’ library as follows: We can… Continue Reading →
On X (Twitter), I saw a post by @ThePhysicMemes making fun of a bear running on a jumping ball. I used this occasion to generate periodic plots with an if-condition, demonstrating also how functions can be declared: This LaTeX document… Continue Reading →
Mathieu aka @miniapeur posted another meme on X (Twitter). It contained a 3D plot of a wavy function. So I did a similar plot, but for roundness and rotational symmetry parametrized it differently so it won’t have these edgy corners…. Continue Reading →
I saw Gabriel’s Horn on X (Twitter) posted by @sonukg4india. Looks nice, so let’s plot it ourselves. We can use pgfplots to draw Gabriel’s horn quickly in LaTeX: pic.twitter.com/aoDjL3vwHw — LaTeX.org (@TeXgallery) February 3, 2025 \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture}… Continue Reading →
I saw tomoq’s star-shaped plot on X (Twitter), together with a pretty big implicit function definition: How to plot this? An easy way is to consider the left side as a function z=f(x,y) in three dimensions, and that equation would… Continue Reading →
The TeX Users Group (TUG) meeting 2025 will take place in Trivandrum, Kerala, India, from July 18-20 (Fri-Sun), 2025. It is hosted by TeXFolio, an institutional member and sponsor of the TeX Users Group. Conference information and the registration form… Continue Reading →
Original drawing by Daniel Littmann on X/Twitter, here drawn in TikZ. I used the hobby library for smooth open or closed paths, “to” paths with in and out angles for further smooth paths with a certain looseness, all nodes set… Continue Reading →
X/Twitterで、こちらの投稿を@884_96さんによって見かけました。 (4) の木構造が気に入ったので、素早くこの図を作成しました: Screenshot コードは以下の通りです: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[every node/.style = { execute at begin node = $, execute at end node = $}, level distance = 1cm, level 1/.style = {sibling distance = 2cm}, level 2/.style = {sibling distance… Continue Reading →
The Heaviside step function, also called the unit step function, is named after Oliver Heaviside. Its value is zero for negative arguments and one for positive arguments. It can be used to represent a signal that is first switched off… Continue Reading →
\documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{angles,calc,decorations.markings} \begin{document} \begin{tikzpicture}[thick, draw only after/.style = { preaction ={decorate, decoration={markings,mark=at position 0 with {\pgfmathsetmacro\mypoff{\pgfdecoratedpathlength*#1}\xdef\mypoff{\mypoff} \pgfmathsetmacro\mypl{\pgfdecoratedpathlength}\xdef\mypl{\mypl}}}}, postaction={draw, dash pattern = on 0pt off \mypoff on \mypl}}] \coordinate (o) at (0,0); \coordinate (a1) at (0.72, 1.33); \coordinate (a2) at (0.72,… Continue Reading →
\documentclass[border=10pt,tikz]{standalone} \usepackage{dsfont} \usetikzlibrary{angles, decorations.pathmorphing} \begin{document} \tikzset{smallcircle/.style = {circle, draw, fill=white, inner sep=2pt}} \def\r{1.2} \newcommand*{\U}[5]{% \path (#2,#3) coordinate (0) +(#4:\r) coordinate (1) +(#5:\r) coordinate (2) pic[thick, draw = red!80!black, angle radius=\r cm] {angle = 1–0–2} pic[thick, draw = black, angle radius=\r… Continue Reading →
In November 2024, a translation of the TikZ book written by Stefan Kottwitz has been released by Asakura Publishing. 2024年11月に、Stefan Kottwitz著のTikZに関する書籍の翻訳版が朝倉書店から発売されました。LaTeXで画像を作るための実用的な入門書。TikZにより数学、科学、技術論文に図や画像を簡単に入れられる。アイデアやデータを可視化してプロフェッショナルな図表やプロットを2次元でも3次元でも表示できるようになるために。 本書の内容: TikZ.jp See also: Original Source by Stefan Kottwitz
On X (Twitter), I saw a post by Ben Levinstein asking if any AI could do a good job turning hand-drawn diagrams into TikZ equivalents. I guess AI is not ready for this yet, but I can show how I… Continue Reading →
On X/Twitter, I saw a drawing by 黄餅もち. It is pretty easy to do in TikZ, so I quickly made this drawing, using LuaLaTeX: The code is: \documentclass[tikz,border=10pt]{standalone} \usepackage{luatexja-fontspec} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[edge from parent fork right, grow=east, every node/.style={draw}] \node… Continue Reading →
On X/Twitter, I saw a drawing by toshᴉzumi. It’s pretty complex, well made, I like it very much. I had a few thoughts how I would adjust it a bit to my taste. toshᴉzumi shared the code, so I played… Continue Reading →
I saw a question on X/Twitter by とと about drawing certain circles, partially filled, together with aligned equations. So, I quickly wrote some TikZ code to demonstrate how such drawings can be done. This is the result: And this is… Continue Reading →
I saw a question on X/Twitter by @ritsudesu_yoro about drawing arrows and adding labels to chemical equation. @RARARARAICHUUU recommended doing it in TikZ, and I fully agree with this suggestion. So I wrote quickly some TikZ code to demonstrate how… Continue Reading →
The periodic table is a huge chart that organizes all known chemical elements by their atomic number and other properties. It makes it easy to see their relationships by grouping similar ones together. This table is essential for chemists and… Continue Reading →
PGFplots.netの開始後、私はpgfplotsでさらに実験をしました。私がいつものように各グラフィックソフトウェアで行うように、フラクタルをどのように表現できるか、そしてそれによって有用または興味深い側面があるかどうかを考えました。ここでは速度やメモリスペースは二次的なもので、時間とともに容量は変わります。 私が興味を持っているのは、例えば 反復的に定義された関数を渡してプロットできるか イテレーション数のように、カラーマップ(colormaps)を利用できるか イテレーション関数システム(IFS、バーンズリー・ファーンなど)のように、幾何学的変換がうまく使えるか 三次元でも可能か 以下では、Luaで実装されたアルゴリズムを使用してマンデルブロ集合をプロットします。LaTeXで表現すると、以下のようになります: 次のコードはLuaとpgfplotsを使用した実装です: %!TEX lualatex \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm, compat=1.18} \usepackage{luacode} \begin{luacode} function mandelbrot(cx, cy, imax, smax) local x, y, x1, y1, i, s x, y, i, s = 0, 0, 0, 0 while (s <=… Continue Reading →
私はフラクタル風景を生成し、LaTeXなどで利用可能な機能を活用したいと考えています。 アプローチ: Luaを使用してダイヤモンド・スクエア・アルゴリズムによる風景の計算 pgfplotsを使用して出力することで、多様な表示オプションが利用できる メッシュを使用したサーフェスプロット Colormapを使用して色付けを行う:海面下は青、山は緑、雪は白、高度によって色が変わる この解決策は、Marc Lepageによる実装でダイヤモンド・スクエア・アルゴリズムを使用しています。Luaコードはもちろん外部に配置することもでき、それが推奨されています。ここでは扱いやすさのためにドキュメント内に残しています。 Luaでの計算 pgfplots Surface-Plotで出力し、colormapを使って色付け(海、山、雪)、viewで視点設定 シード値を変更してバリエーションを加えることができます。これはTerrain関数を呼び出すときの最初のパラメータです。viewだけを変更したい場合はこれを保持します。shader=interpは色を補間しますが、完璧には見えないかもしれません。 計算には時間がかかります。テスト時にはマトリックスの次元やメッシュ行(次元+1)の値を小さくすることがよいでしょう。 \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \usepackage{luacode} \begin{luacode*} function terrain(seed,dimension,options) — inner functions come from the Heightmap module — Module Copyright (C) 2011 Marc Lepage local max, random = math.max,… Continue Reading →
リンデンマイヤーシステム、通称L-システムは、「置換システム」です:ある(グラフィック)オブジェクトの部分が、最も単純な場合にはその縮小されたオブジェクト自体に置き換えられます。これが繰り返され、例えば再帰的に行われます。これにより、非常に複雑なフラクタル構造が生まれ、同時に非常にシンプルに定義されることがあります。 最も単純な例はコッホ曲線で、スノーフレーク曲線とも呼ばれます。知らない人は、Wikipediaのリンクをフォローしてください。:-) ここでは説明するつもりはありませんが、TikZを使って最も簡単に生成する方法を簡単に示します。 基本となるのは、線を引いたり角度を変えるなどの単純なグラフィック操作のためのシンボルです。これらのシンボルは文字列に指定され、この文字列の一部は「生産ルール」によって段階的に置換されます。文字列はどんどん長くなり、最後にこの図が描かれます。 TikZマニュアルでは、第55章でこれらのルールが説明されており、それはリンデンマイヤーシステム図書館を記述しています。これは、そのようなオブジェクトとルールを簡単に宣言するための構文を提供し、描画を行います。 動機づけとして、以前TeXample.netに書いたいくつかの例が含まれるドキュメントがあります。見るとわかるように、4つの例のそれぞれがシンプルに定義されています。私はさらに、TikZでさらに加工できることを示すために、派手な色やグラデーションを加えました。 \documentclass{article} \usepackage{tikz} \usetikzlibrary{lindenmayersystems} \usetikzlibrary[shadings] \pgfdeclarelindenmayersystem{Koch curve}{ \rule{F -> F-F++F-F}} \pgfdeclarelindenmayersystem{Sierpinski triangle}{ \rule{F -> G-F-G} \rule{G -> F+G+F}} \pgfdeclarelindenmayersystem{Fractal plant}{ \rule{X -> F-[[X]+X]+F[+FX]-X} \rule{F -> FF}} \pgfdeclarelindenmayersystem{Hilbert curve}{ \rule{L -> +RF-LFL-FR+} \rule{R -> -LF+RFR+FL-}} \begin{document}… Continue Reading →
ここでは、繰り返し関数システム、略してIFSについて扱います。ここでは繰り返し変換が行われます。空間が何度も自分自身にマッピングされます。このプロセスにはさまざまなマッピング規則があり得ます。理想的にはこれを無限に行い、すべての間で不変である空間内の集合を考察します。この集合はフラクタルになる可能性があります! 理論はさておき、Wikipediaで基本的な内容を、そして素晴らしい本でより深く理解することができます。では、これをどのように生成するのでしょうか? 最も簡単な方法は「カオスゲーム」と呼ばれるものです。一点を取り、その点に一つの変換を適用します。変換によって不変である点集合に関わるため、目的の点は集合内に落ちなければなりません。この新しい点でプロセスを繰り返し、何千回も繰り返して図が浮かび上がるまで続けます。 それでは、有名なバーンズリー・ファーンでこれを実行しましょう! しかし、どうやって? ループとアフィン変換を計算する能力が必要です。pgfmathでこれは可能ですが、私の見解では読みにくいです。そのため、通常のプログラミング言語を統合できる利点を活かしてLuaを使用します。これにより、コーディングは簡単になります。パラメータは行列に書き込まれます。つまり、変換パラメータとカオスゲームの変換選択の確率です。点を走らせましょう! 翻訳にはLuaTeXと忍耐が必要です。試行錯誤やパラメータの調整をするときは、最初は反復回数を少なくしてください。 % !TEX lualatex \documentclass[tikz,border=10pt]{standalone} \usepackage{luacode} \begin{luacode*} function barnsley(iterations,options) local x = math.random() local y = math.random() local m = { 0.0, 0.0, 0.0, 0.16, 0.0, 0.0, 0.01, 0.85, 0.04, -0.04, 0.85, 0.0, 1.6,… Continue Reading →
While a word cloud is a pretty picture made of words, it’s a tool that can visualize the importance of topics or keywords, or how often a word appears in a text. Bigger words indicate higher frequency. Word clouds can… Continue Reading →
Die zweite, verbesserte und erweiterte Ausgabe des LaTeX Cookbook ist diesen Monat, März 2024, in englischer Sprache erschienen. Die erste Ausgabe, veröffentlicht in 2015, wurde überarbeitet und die Code-Beispiele wurden aktualisiert, um mit den neuesten Klassen und Paketen von LaTeX… Continue Reading →
The second, improved, and extended edition of the LaTeX Cookbook was published this month, March 2024. The first edition, published in 2015, has been revised, and the code examples have been updated to work with the latest classes and packages… Continue Reading →
That’s the hippo from the tikzlings package with a thought bubble and a toy lightsaber serving as a flagpole for the flag of his homeland Malawi, done with the worldflags package. \documentclass[tikz,border=10pt]{standalone} \usepackage{tikzlings} \usepackage{worldflags} \begin{document} \begin{tikzpicture} \hippo[body=brown!60!black, lightsaber=brown, think={\textsf{The end}}]… Continue Reading →
This is from my tweet here, an example illustrating the tikzbricks package that I featured in the fun section of my new TikZ book. (It shall be released in July, you can follow me on Twitter for updates.) \documentclass[tikz,svgnames,border=20pt]{standalone} \usepackage{tikzbricks}… Continue Reading →
Dienstag abend hat die LaTeX Community Twitter erfolgreich durchgespielt: es wurde das Level erreicht, dass LaTeX in Deutschland auf Twitter trendet, den Abend lang. Und zwar in der korrekten Schreibweise, wichtig. Keine andere Sache. Was ist passiert? Wir haben uns… Continue Reading →
That’s an English translation a German blog post that you can find here: LaTeX.net/verein. I’d like to support promoting becoming a new member of DANTE e.V. because I wish to see more LaTeX friends here. February 8, 2022: More than… Continue Reading →
An English translation of this post is here: LaTeX.net/members. Da ich mir mehr LaTeX-Freunde für unseren Verein DANTE e.V. wünsche, möchte ich die Werbung von Neumitgliedern mit einem LaTeX-Buch unterstützen. 8. Februar 2022: Mehr als 10 Bücher verfügbar. Warum DANTE-Mitglied… Continue Reading →
Heute, am Donnerstag, 13. Januar 2022, gibt es den ersten Berliner LaTeX-Stammtisch des Jahres 2022, um 19 Uhr. Nur für Berliner? Weiß nicht, hab ich gerade auf Twitter gefragt. Weil es ist ja online mit jitsi-meet auf dieser Adresse: https://meet.ffmuc.net/LaTeXStammtischBerlin… Continue Reading →
Antioch Sanders told us on LaTeX.org about his new project that he called extexify. That’s a browser extension for finding LaTeX symbols by drawing them with mouse or finger on the display. It is inspired by detexify, but works integrated… Continue Reading →
A Lorenz system by Henri Menke: % !TEX lualatex \documentclass[tikz]{standalone} \usepackage{luacode,pgfplots} \begin{luacode*} — Differential equation of Lorenz attractor function f(x,y,z) local sigma = 3 local rho = 26.5 local beta = 1 return {sigma*(y-x),-x*z + rho*x – y,x*y – beta*z}… Continue Reading →
Another flower without comment. function source is here. \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \renewcommand*{\r}{(sin(4*u)^3 + cos(2*u)^3 + sin(6*v)^2 + cos(6*v)^4)} \begin{document} \begin{tikzpicture} \begin{axis}[ view = {120}{310}, hide axis, colormap = {flower}{ color(0cm) = (yellow); color(4cm) = (yellow!70!red); color(8cm) = (red!60!black); color(12cm) =… Continue Reading →
Without much comments a flower, or a Parametric Breather Pseudospherical Surface. \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \pgfplotsset{trig format plots=rad} \begin{document} \begin{tikzpicture} \begin{axis}[ view = {60}{-60}, hide axis, colormap = {flower}{% color(0cm) = (yellow); color(4cm) = (orange); color(8cm) = (red!40!black); color(12cm) = (red!80!black);… Continue Reading →
That’s from my German blog TikZ.de. Recently I played with the sine function, that “wave” that everybody knows in cartesian coordinates. Let’s take a look at a 3d polar complex sine made plot. In polar coordinates the sine function is… Continue Reading →
That plot is from my German blog TikZ.de. I planned to model this nice cake: (Foto by Guido Draheim). Like a cruller, just, ehm, more digital and mathematical. How do we draw it? Let’s think of a cross-section. In polar… Continue Reading →
Die DANTE-Frühjahrstagung fand wegen der Corona-Kontaktbeschränkungen komplett online statt. Auch die Herbsttagung wird virtuell stattfinden, über die Plattform „Online Schule Saarland“. Das Programm, vom 17. bis 19. September 2021: Freitag, 17.9.: ab 19:30 Uhr Vorabendtreff Samstag,18.9.: ab 9 Uhr Begrüßung… Continue Reading →
The following text is in German because it’s about the German language user group meeting 2021. Im vergangenen Jahr sind leider beide DANTE-Tagungen wegen der Pandemie ausgefallen. Die Frühjahrstagung fand wegen der Kontaktbeschränkungen komplett online statt. Auch die Herbsttagung wird… Continue Reading →
The following text is in German because it’s about the German language user group meeting 2021. Im vergangenen Jahr sind leider beide DANTE-Tagungen wegen der Pandemie ausgefallen. Die Frühjahrstagung fand wegen der Kontaktbeschränkungen komplett online statt. Auch die Herbsttagung wird… Continue Reading →
MacKichan Software, Inc. stopped it’s business on June 30, 2021. Their products Scientific WorkPlace (SWP), Scientific Word, and Scientific Notebook, that are based on LaTeX, will not be sold or supported anymore. The future plan for Scientific Word is to… Continue Reading →
StackExchange, bekannt als StackOverflow, ist an Prosus verkauft worden für 1,8 Milliarden Dollar. Das beinhaltet die TeX StackExchange Q&A Seite (TeX.SE). Prosus ist ein Technology-Investor und eine Holding Company die bereits Unternehmen wie Udemy, Codecadamy und Brainly (“Your 24/7 homework… Continue Reading →
© 2025 TeX.social