Overview
This repository contains examples of TikZ graphics, a powerful tool for creating illustrations and diagrams in LaTeX. The examples are sourced from various web pages, papers, slides, tutorials, and books, and are designed to help users learn TikZ. Each example is displayed on a web page, allowing users to click and view the code behind it. TikZ files are text-based and can be easily reproduced, making them great for use in websites, blogs, papers, articles, slides, and books.
Features
- Output files like .png and .pdf are stored in the
./outfolder. - The
README.Rmddocument allows customization of variables for folders. - The Hugo website supports customization through the
_build_site.Rscript. - TikZ source files are saved in the
srcfolder, specifically in.texformat. - The
template.Rmdfile includes identifiers for updating with user custom settings and code. - The Makefile has been optimized to avoid code repetition.
- Data files for TikZ examples are stored under
src/data.
Installation
To install the TikZ examples repository, follow these steps:
- Clone the repository using the command:
git clone https://github.com/[repository_url]. - Navigate to the cloned directory:
cd Tikz. - Install the required packages and dependencies by running the command:
npm install. - Customize the variables for folders and settings in the
README.Rmddocument. - Build the website by running the script:
_build_site.Rusing Hugo. - To include new TikZ drawings in the README, add the code and graphics files to the
srcfolder.
Summary
This repository provides a collection of TikZ examples sourced from various publications. The examples are designed to help users learn TikZ and its capabilities. The repository includes features such as customizable variables, optimization of code, and improved organization of files. With its portable and reproducible nature, TikZ is an ideal tool for creating graphics in various domains and can be easily integrated with LaTeX and R for seamless workflow integration.