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

latex preamble update part 2: fun with TikZ #1521

Open
1 of 2 tasks
3ddP opened this issue Apr 27, 2024 · 0 comments
Open
1 of 2 tasks

latex preamble update part 2: fun with TikZ #1521

3ddP opened this issue Apr 27, 2024 · 0 comments
Labels
status: planning Discussing details type: feature Relating to the functionality of the application.

Comments

@3ddP
Copy link

3ddP commented Apr 27, 2024

Description

The latex preamble determines which packages/commands are available to the user when writing .tex input for .latex command. This proposal involves adding fun TikZ-related packages to the latex preamble, which is located in sir-lancebot/bot/resources/fun/latex_template.txt. The proposed packages are:

  • tikzducks, which allows the creation of (modestly cursed) ducks with a simple command
  • tikz-among-us, with which users can create amogi in a single line of code instead of copy-pasting my old script

Reasoning

It can be fun and the ducks all look concerned.

Proposed Implementation

The proposed implementation includes replacing the current header's line 6, which reads

\usepackage{tikz}  % from here on, to make nice diagrams with tikz

with the following lines:

\usepackage{tikz} % from here on, to make nice diagrams with tikz
\usetikzlibrary{ducks} % easy ducks
\usepackage{tikz-among-us} % easy amogi

Everything else in the header should be left untouched.

Additional Details

If you want to test before deploying, the following lines of text fed to the .latex command should generate a school of ducks and a single amogus:

.latex 
\begin{tikzpicture}
    \duck
    \duck[xshift=90pt, scale=.3, yshift=150pt]
    \duck[xshift=60pt, scale=.3, yshift=100pt]
    \duck[body=gray!50!white, head=gray!50!white,
        xshift=80pt, scale=.3, yshift=50pt]
\end{tikzpicture}

\begin{tikzpicture}
    \amongUsI[scale=0.3]{red}{cyan}
\end{tikzpicture}

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature
@3ddP 3ddP added type: feature Relating to the functionality of the application. status: planning Discussing details labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: planning Discussing details type: feature Relating to the functionality of the application.
Projects
None yet
Development

No branches or pull requests

1 participant