TruongNhanNguyen / LaTeX-TikZ

This LaTeX TikZ project is a collection of pictures generated using the TikZ library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX-TikZ

📚 This is a repository for storing and sharing LaTeX-TikZ and PGFPlots pictures.

Require

windows git github VSCode texlive latex-workshop

Usage

# clone the repo
$ git clone https://github.com/TruongNhanNguyen/LaTeX-TikZ.git
# navigate to specify folder
$ cd <folder-name>
# example
# cd TikZ/GitHubProfilePicture
# compile .tex to .pdf
$ pdflatex main.tex

My Github Profile Picture

github

\documentclass[tikz, border=10pt]{standalone}

\usepackage{tikz}
\usetikzlibrary{trees, snakes}
\usepackage{xcolor}

\tikzset{
    level 1/.style = {sibling angle=120},
    level 2/.style = {sibling angle=60},
    level 3/.style = {sibling angle=30},
    every node/.style = {fill},
    edge from parent/.style = {snake=expanding waves, segment length=1mm, segment angle=10, very thick, draw}
}

\begin{document}
    \begin{tikzpicture}[grow cyclic, shape=circle, level distance=13mm ,cap=round]
        \node {} child [color=\A] foreach \A in {red, green, blue} {
            node{} child [color=\A!50!\B] foreach \B in {red, green, blue}{
                node{} child[color=\A!50!\B!50!\C] foreach \C in {black, gray, white}{
                    node{}
                }
            }
        };
    \end{tikzpicture}
\end{document}

My LaTeX Workshop extensions .config

I placed all settings of LaTeX Workshop ext here latex-workshop.json

How to write LaTeX on Visual Studio Code

To do that, you simply just install TeXLive and LaTeX Workshop extension. You can get more detail information about how to do it here.

About

This LaTeX TikZ project is a collection of pictures generated using the TikZ library.

License:MIT License


Languages

Language:TeX 100.0%