Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Nonlocal Spin Valve in TikZ

Release Creative Commons License

Nonlocal spin valve


Including in a TeX document

You can add this to you project as bower package using a git endpoint.

Alternatively, add any files in the tex directory that begin with an underscore to your project.

Once the files are available under your project root, include the tex files with \input:

  • _packages.tex should be included in your preamble.
  • _head and _nonlocal_spin_valve.tex should be included wherever you want to include the picture as follows:


With Ruby

If you have Ruby with Bundler, install the needed gems with

$ bundle

To build all targets,

$ rake

Output files will be saved in the build directory.

To see other rake tasks,

$ rake -D

You can run

$ guard

which will automatically rebuild on changes.

By default, this method will use la­texmk with xelatex.

Without Ruby

To build the tex source,

$ cd tex
$ latexmk -xelatex nonlocal_spin_valve.tex

You can substitute -xelatex with -pdf to use pdfLaTeX. Alternatively, compile nonlocal_spin_valve.tex using your preferred method.


Creative Commons License
Nonlocal Spin Valve in TikZ by Evan Sosenko is licensed under a Creative Commons Attribution 4.0 International License.


This work is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.