texlive[73717] Master/texmf-dist: tikz-decofonts (3feb25)
commits+karl at tug.org
commits+karl at tug.org
Mon Feb 3 21:55:37 CET 2025
Revision: 73717
https://tug.org/svn/texlive?view=revision&revision=73717
Author: karl
Date: 2025-02-03 21:55:37 +0100 (Mon, 03 Feb 2025)
Log Message:
-----------
tikz-decofonts (3feb25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.pdf
trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.tex
trunk/Master/texmf-dist/tex/latex/tikz-decofonts/tikz-decofonts.sty
Modified: trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.tex 2025-02-03 20:55:28 UTC (rev 73716)
+++ trunk/Master/texmf-dist/doc/latex/tikz-decofonts/tikz-decofonts-doc.tex 2025-02-03 20:55:37 UTC (rev 73717)
@@ -10,6 +10,7 @@
\usepackage[scale=0.875]{cabin}
\usepackage{tikz-decofonts}
\usepackage{fancyvrb}
+\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{tabularray}
\usepackage{fontawesome5}
@@ -28,8 +29,8 @@
\hypersetup{pdfborder=0 0 0}
\usepackage[margin=2cm]{geometry}
\setlength{\parindent}{0pt}
-\def\TPversion{0.1.1}
-\def\TPdate{04/01/2025}
+\def\TPversion{0.1.2}
+\def\TPdate{03/02/2025}
\usepackage{tcolorbox}
\tcbuselibrary{breakable,skins,hooks,listingsutf8}
@@ -47,7 +48,7 @@
keywordstyle={\color{violet}},%
classoffset=2,%
alsoletter={-},%
- morekeywords={\tkzbrush,\tkzink,\tkzpixl,\tkzpixletter,\tkzpixlquote},%
+ morekeywords={\tkzbrush,\tkzink,\tkzpixl,\tkzpixletter,\tkzpixlquote,\tkzcomicbubble},%
keywordstyle={\color{green!50!black}},%
classoffset=3,%
morekeywords={},%
@@ -77,7 +78,7 @@
keywordstyle={\color{violet}},%
classoffset=2,%
alsoletter={-},%
- morekeywords={\tkzbrush,\tkzink,\tkzpixl,\tkzpixletter,\tkzpixlquote,\tkzbicolor},%
+ morekeywords={\tkzbrush,\tkzink,\tkzpixl,\tkzpixletter,\tkzpixlquote,\tkzbicolor,\tkzcomicbubble},%
keywordstyle={\color{green!50!black}},%
classoffset=3,%
morekeywords={color,lines,scale,height,offseth,offsetv,thick,gridcolor,gridafter,nospaceafter,border,colors,style,intdelta,paralcolors},%
@@ -140,7 +141,7 @@
\begin{tabular}{c}
\texttt{Cédric Pierquet}\\
{\ttfamily c pierquet -- at -- outlook . fr}\\
- \texttt{\url{https://github.com/cpierquet/tikz-decofonts}} \\
+ \texttt{\url{https://forge.apps.education.fr/pierquetcedric/packages-latex}} \\
\end{tabular}
\end{center}
@@ -215,7 +216,7 @@
Loaded packages are \texttt{tikz}, \texttt{xintexpr}, \texttt{simplekv}, \texttt{listofitems} and \texttt{xstring}.
-Loaded \texttt{tikz.librairies} are \texttt{decorations}, \texttt{decorations.pathreplacing}, \texttt{calc}, \texttt{positioning}, \texttt{bbox}, \texttt{arrows.meta} and \texttt{bending}.
+Loaded \texttt{tikz.librairies} are \texttt{decorations}, \texttt{decorations.pathreplacing}, \texttt{calc}, \texttt{positioning}, \texttt{bbox}, \texttt{arrows.meta}, \texttt{shapes.callouts} and \texttt{bending}.
\smallskip
@@ -411,11 +412,56 @@
\tkzbicolor[colors=orange/teal,style=ellips]{\samplenum}
\end{DemoCode}
+\pagebreak
+\subsection{Comic bubble}
+
+\begin{DemoCode}{listing only}
+%style tikz
+\tikzset{comicbubble/.style args={#1#2}{%
+ inner sep=1mm,line join=round,rectangle callout,draw,very thick,
+ text width=#1,align=flush center,callout relative pointer=#2}}
+\end{DemoCode}
+
+\begin{DemoCode}{listing only}
+%independant macro
+\tkzcomicbubble[%
+ width=...,coltxt=...,colbg=...,colframe=...,pospointer=(...),
+ font=...,rcorners=true/false]%
+ <tikz options>{text}
+
+%with tikzpicture environment
+\begin{tikzpicture}
+ %...
+ \tkzcomicbubble*[%
+ width=...,coltxt=...,colbg=...,colframe=...,pospointer=(...),
+ font=...,rcorners=true/false]%
+ <tikz options>{text}
+\end{tikzpicture}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+\def\mytext{Let's play with Pythagoras !\relax}
+\tkzcomicbubble[font=\large\bfseries\itshape]{\mytext}~~
+\tkzcomicbubble%
+ [width=3cm,coltxt=red,colframe=teal,font=\bfseries,
+ colbg=yellow!15,pospointer={(150:1em)},rcorners]%
+ <thick>%
+ {\mytext}
+\end{DemoCode}
+
+\begin{DemoCode}{}
+%\usepackage{setspace}
+\def\mytext{Let's use Pythagoras !\relax}
+{\tikz[rotate=-15,transform shape]\tkzcomicbubble*[width=2.5cm,font=\large\sffamily]<execute at begin node={\setlength{\baselineskip}{0.75\baselineskip}}>{\mytext};}
+\end{DemoCode}
+
\pagebreak
\section{History}
+\texttt{0.1.2: Comic bubble}
+
\texttt{0.1.1: Bicolor effect}
\texttt{0.1.0: Initial version}
Modified: trunk/Master/texmf-dist/tex/latex/tikz-decofonts/tikz-decofonts.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikz-decofonts/tikz-decofonts.sty 2025-02-03 20:55:28 UTC (rev 73716)
+++ trunk/Master/texmf-dist/tex/latex/tikz-decofonts/tikz-decofonts.sty 2025-02-03 20:55:37 UTC (rev 73717)
@@ -4,9 +4,10 @@
% : (https://tex.stackexchange.com/questions/460836/custom-line-cap-to-simulate-inked-line-in-tikz/460842#460842 from user121799)
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tikz-decofonts}[2025/01/04 0.1.1 Custom fonts, made with TikZ, with effects]
+\ProvidesPackage{tikz-decofonts}[2025/02/03 0.1.2 Custom fonts, made with TikZ, with effects]
%------History
+% 0.1.2 Bd fonts (with callout.shapes)
% 0.1.1 Bicolor txt
% 0.1.0 Initial version
@@ -16,7 +17,7 @@
\RequirePackage{xintexpr}
\RequirePackage{listofitems}
\RequirePackage{simplekv}
-\usetikzlibrary{decorations,decorations.pathreplacing,calc,positioning,bbox,arrows.meta,bending}
+\usetikzlibrary{decorations,decorations.pathreplacing,calc,positioning,bbox,arrows.meta,bending,shapes.callouts}
%------Paintbrush
\pgfmathdeclarerandomlist{randcolor}{{black}{white}}
@@ -973,4 +974,35 @@
}%
}
+%===CALLOUT
+\newlength\comicbubblelgt
+\defKV[comicbubble]{width=\setlength\comicbubblelgt{#1},coltxt=\def\comicbubblecolfont{#1},colbg=\def\comicbubblecolgb{#1},colframe=\def\comicbubblecolframe{#1},pospointer=\def\comicbubblepospointer{#1},font=\def\comicbubblefont{#1}}
+\setKVdefault[comicbubble]{width=4cm,coltxt=black,colbg={},colframe=black,pospointer=(-150:0.75),font={},rcorners=false}
+
+\tikzset{comicbubble/.style args={#1#2}{inner sep=1mm,line join=round,rectangle callout,draw,very thick,text width=#1,align=flush center,callout relative pointer=#2}}
+
+\NewDocumentCommand\tkzcomicbubble{ s O{} D<>{} m }{%
+ \restoreKV[comicbubble]%
+ \setKV[comicbubble]{#2}%
+ \ifboolKV[comicbubble]{rcorners}%
+ {%
+ \tikzset{comicbubble/.append style={rounded corners}}%
+ }%
+ {}%
+ \IfEq{\comicbubblecolgb}{}%
+ {%
+ \tikzset{comicbubblebg/.style={}}%
+ }%
+ {%
+ \tikzset{comicbubblebg/.style={fill=\comicbubblecolgb}}%
+ }%
+ \IfBooleanTF{#1}%independant macro
+ {%
+ \node[comicbubble={\comicbubblelgt}{\comicbubblepospointer},comicbubblebg,text=\comicbubblecolfont,font=\comicbubblefont,#3]{#4}%
+ }%
+ {%
+ {\tikz\node[comicbubble={\comicbubblelgt}{\comicbubblepospointer},comicbubblebg,text=\comicbubblecolfont,font=\comicbubblefont,#3]{#4};}%
+ }%
+}
+
\endinput
\ No newline at end of file
More information about the tex-live-commits
mailing list.