Giter VIP home page Giter VIP logo

Comments (5)

 avatar commented on July 21, 2024 4

@VHarisop Oh, for this you could draw the bubbles yourself, they are basically just an ellipse


\documentclass{standalone}
\usepackage{tikzducks}

\begin{document}
	
\begin{tikzpicture}
	\duck[]
  \fill[gray!30!white] (-1.2,1.8) ellipse (1.4 and 0.5);
  \fill[gray!30!white] (-0.2,1.54) -- (0.2,1.35) -- (0.0,1.6) -- cycle;
	\node at (-1.2,1.8) {Quack! Quack!};
\end{tikzpicture}	
	
\end{document}

document

Or you could use the tikz shapes.callouts library:

\documentclass{standalone}
\usepackage{tikzducks}

\usetikzlibrary{shapes.callouts}

\begin{document}
	
\begin{tikzpicture}
	\duck
  \node[ellipse callout, draw,callout relative pointer={(0.5,-0.8)}] at (-0.5,2.5) {Quack! Quack!};
\end{tikzpicture}	
	
\end{document}

document

from tikzducks.

VHarisop avatar VHarisop commented on July 21, 2024

What is the status of this? Until autoscaling is properly implemented, is there a way to resize speech/thought bubbles manually?

from tikzducks.

 avatar commented on July 21, 2024

@VHarisop Thanks a lot for your comment! I'm still unsure what the best course of action is for the scaling of text. On the one hand site automatically scaling looks very convenient, on the other hand I'd like the user to have as many possibilities as possible to choose a suitable font size (which makes the text easier to read at small sizes than just scaling the normal sized text down) and yo apply other text formatting like parboxes or minipages for multiline text.

Here are a few suggestions for manual resizing of the text:

\documentclass{standalone}
\usepackage{tikzducks}

\begin{document}
	
\begin{tikzpicture}
	\duck[speech={Quack!}]
\end{tikzpicture}	
	
\begin{tikzpicture}
	\duck[speech={\tiny Quack!}]
\end{tikzpicture}	

\begin{tikzpicture}
	\duck[speech={\scalebox{0.5}{\tiny Quack! Quack! Quack!}}]
\end{tikzpicture}	

\begin{tikzpicture}
	\duck[speech={\scalebox{0.7}{\parbox{1.7cm}{\vspace*{-0.3cm}\flushleft \tiny Quack! Quack! Quack! Quack!}}}]
\end{tikzpicture}	

	
\end{document}

document

If these suggestions don't work for, please feel free to show a short example what you are trying to do and I'll try to come up with something.

from tikzducks.

 avatar commented on July 21, 2024

@VHarisop FYI: your avatar inspired my to draw https://github.com/samcarter8/tikzzoo/blob/master/pingu.tex :)

from tikzducks.

VHarisop avatar VHarisop commented on July 21, 2024

@samcarter8 Thanks for the quick reply! I think I misspecified my problem: I'm preparing a presentation on beamer, so instead of making the text small I would rather make the speech bubble bigger, so that the text remains visible.

from tikzducks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.