GithubHelp home page GithubHelp logo

spmcv / circuitikz-three-phase-load Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 30 KB

Examples of a CircuiTikz subcircuits demonstrating 3-phase resistive and inductive loads.

License: MIT License

Perl 0.44% Makefile 4.83% TeX 94.74%
circuitikz documentation electronics electronics-tutorials latex tikz tikz-diagrams

circuitikz-three-phase-load's Introduction

CircuiTikz: Three-Phase Load

image info image info

image info image info

Examples of a CircuiTikz subcircuits demonstrating three-phase (wye) resistive and inductive loads.

Description

This tutorial demonstrates utilizing the CircuiTikz package of LaTeX to create reusable circuits intended to be incorporated as part of a larger document (for example, a paper, poster, or system diagram) or as a standalone vector graphics asset for use in other documentation formats.

Note that a multi-page output is produced since each example is its own figure environment via the standalone multi package option.

Prerequisites

For broad compatibility, all tools utilized are constrained to those included in a standard TeX Live distribution. Therefore, texlive (linux), MacTeX (macOS), MikTex (Windows) or Container thereof is required.

Additionally, it's worth making sure that dvisvgm successfully locates the GhostScript dynamic library on your system via dvisvgm -V1.

Usage

The included Makefile contains all commands to render the graphics assets. Use the tex target to generate the PDF output and the svg target to generate the SVG output. Note that the later command is dependent on the former. For convenience, the all target runs both sequential. Additionally, the clean removes the TeX artifacts while distclean removes both artifacts and outputs.

Implementation

After considering various options, the most straightforward approach seemed to be to use latexmk to delegate latex to generate DVI->PDF and dvisvgm to convert DVI->SVG using a Makefile. As a more modern alternative, it's also possible to use xelatex to generate XDV->PDF and dvisvgm to convert XDV->SVG.

Future Work

  • Add GitHub Action for continuous integration
  • Avoid specifying GhostScript dynamic library path via environmental variable
  • Add alternative latexmk configuration for using xelatex
  • Try dvisvgm TikZ package option

circuitikz-three-phase-load's People

Contributors

spmcv avatar

Watchers

 avatar

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.