Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for signpost #7

Open
maieul opened this issue Jul 2, 2019 · 1 comment
Open

Options for signpost #7

maieul opened this issue Jul 2, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@maieul
Copy link

maieul commented Jul 2, 2019

Consider the two examples.

\documentclass{article}
\usepackage{tikzlings-owls,tikzducks}
\begin{document}

    \begin{tikzpicture}[scale=5.5]
        \owl[
          signpost={\centering\begin{minipage}{5cm}\centering
            \large Prochain(e) camp(agne) \\ 8 au 16~août 2020
          \end{minipage}}]
    \end{tikzpicture}
    \begin{tikzpicture}[scale=5.5]
        \owl
        \duck[
          xshift=-12.5,
          yshift=5,
          invisible,
          signpost={\centering\begin{minipage}{5cm}\centering
            \large Prochain(e) camp(agne) \\ 8 au 16~août 2020
          \end{minipage}}]
    \end{tikzpicture}
\end{document}

In the fist one, we use the default position for the signpost. But that does not produce a very good result. In the second one, we use a hidden duck to set correctly the position of the signpost. But it is not a beautiful hack.

Should it be possible to have xshiftsign and yshiftpost, and, also, maybe, a rotatesign ?

@samcarter
Copy link
Owner

samcarter commented Jul 4, 2019

Thanks for opening this issue! Maybe such options to shift and rotate would be good for all addons, not just the signpost. When I have some time I have to investigate how to best do this with respect to setting the rotation point etc.

In the mean time, I suggest to place the signpost independently from the owl:

\documentclass{article}
\usepackage{tikzlings-owls}
\begin{document}

\begin{tikzpicture}[scale=5.5]
    \owl
    \thing[
       	signpost={%
                \centering\begin{minipage}{5cm}
       		\centering\large 
       		Prochain(e) camp(agne) \\ 8 au 16~août 2020
       		\end{minipage}
        },
       	scale=0.6,
	xshift=20,
	yshift=15,      	
    ]
\end{tikzpicture}
\end{document}

@samcarter samcarter added the enhancement New feature or request label Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants