Giter Site home page Giter Site logo

Minted with Tikz about minted HOT 1 CLOSED

gpoore avatar gpoore commented on August 28, 2024
Minted with Tikz

from minted.

Comments (1)

gpoore avatar gpoore commented on August 28, 2024

minted, like most other verbatim content in LaTeX, generally fails if it is in the argument to a command. In your case, you are passing it as an argument to the \blocknode command. My usually approach to a case like this would be to define an environment instead of the command, or use save the minted content in a savebox and then use the saved content within the command argument via \usesavebox. Unfortunately, that's not working here; I expect it has something to do with being inside TikZ.

At the moment, the only thing I can suggest is putting the code in a file by itself, maybe with

\documentclass{article}
\thispagestyle{empty}

Then compile this file and run pdfcrop on the output. That will give you a PDF that contains only the code. Then you could include this as an image.

You might also try asking a question on http://tex.stackexchange.com/. Since this is probably getting deep into the internal workings of TikZ, beyond my limited knowledge, someone there might have suggestions.

from minted.

Related Issues (20)

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.