GithubHelp home page GithubHelp logo

mhlogic_circuit's Introduction

MHlogic_circuit

My goal was to learn how to produce multiple images for inclusion in a single WW problem. It is possible, of course, to write pg code which will call TikZ from WW and produce excellent images for a problem on-the-fly, post-randomization. Using TikZ from withing WW is under active development. The approach here pre-produces the images, putting less load on the server when the questions are active. Of course, this requires more storage on the server, but disk capacity isn't an issue for us now.

Tool chain

  • LaTeX including TikZ produces pdf
  • ImageMagik: pdf -> pngs
  • dvisvgm: pdf -> svgs
  • The LaTeX files are based on a Jinja template
  • The pg file is created from a Jinja template
  • Configuration of each problem rests in a json file.
  • Python files control the Jinja templates
  • a make file controls the whole shebang

Requirements

  • python
    • pathlib requires >= 3.6
  • jinja2
  • make (I use choco to install make under windows)
  • imagemagick
  • a modern LaTeX
    • including TikZ and CircuiTikZ
    • including latexmk
    • including dvisvgm

Initial files (for my reference only)

  • Starting LaTeX from C:\Users\Malcolm\Documents\Computing\LaTeX\Sandbox\Circuitkz\Circuitkz_1.tex as logic_circuit_1.tex.jinja
  • Starting makefile from C:\Users\Malcolm\Documents\Computing\LaTeX\Examples\digraph
  • python control file from C:\Users\Malcolm\Documents\Computing\Jinja\Jinja Experimentation 2020-12-14 and
  • C:\Users\Malcolm\Documents\Computing\Jinja\TTL255 Tutorial

Almost no traces of these original sources remain in the current version of the project ;-).

mhlogic_circuit's People

Contributors

maharper avatar ve2ddz avatar

Watchers

 avatar

mhlogic_circuit's Issues

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.