Home >

pygments

Advertisement
  • Django - Did you forget to register or load this tag?

    Django - Did you forget to register or load this tag?January 28

    I've created a custom tag that I want to use, but Django can't seem to find it. My templatetags directory is set up like this: pygmentize.py from pygments import highlight from pygments.lexers import get_lexer_by_name from django import template from

  • Is it reasonable to use type(a) as a dictionary key?January 27

    I am trying to store files in a dictionary depending on their type. For this, I am using pygments API as follow: # Initialization of the self.files dictionary self.files = dict() # Scanning and categorizing the files for file in files: lexer = guess_

  • No module named Pygments

    No module named PygmentsJanuary 24

    I have installed Pygments into my virtualenv, and it appears to be imported properly into my project. I'm using PyCharm, and I'm getting no import errors from the IDE. But when I try to run it on localhost, I get the following error: My interpreter i

  • Getting Pygments dependency error when trying to compile Jekyll site

    Getting Pygments dependency error when trying to compile Jekyll siteJanuary 23

    I'm beginning to set up a Jekyll site and I've installed everything and copied the contents of this theme into the site's directory. I've installed Pygments via the gem install pygments.rb command and it seemed to install fine. But I'm still getting

  • How to invoke minted with python3December 2

    I have 2 versions of Python on my machine. Version 2.7.10 can be invoked with python, whereas python3 uses 3.5.0 under the hood. I'd like to use minted with python3, which is why I installed Pygments via pip3. When I compile a LaTeX document that con

  • Can't enable breakanywhere optionNovember 18

    I'm trying to activate breakanywhere option (tried with both breaklines enabled/disabled) but I get this message: ! Package xkeyval Error: `breakanywhere' undefined in families `[email protected]@cmd' While running: \inputminted[breaklines, breakanywhere,li

  • Problem with Minted using MactexNovember 8

    I'm having an issue using Minted, the following error appears: Package minted Error: You must have `pygmentize' installed to use this package. But I've already installed Pygmentize. I've tried adding minted.sty and minted folder into ~/Library/texmf

  • Pygments for markup of Lua source code - how to get styling information and the necessary macros using ``pygmentize``?October 3

    I wanted to use Pygments (specifically via the pygmentize tool) to mark up some Lua code for inclusion into a LaTeX document. Based on what I understand, pygmentize can either output a full document (which will compile standalone), or just the \Verba

  • Using minted to highlight Mako templates

    Using minted to highlight Mako templatesAugust 9

    When attempting to use the minted package to highlight a piece of source code in the Mako templating language: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{minted} \usemintedstyle{borland} \begin{document}

  • Package minted Error: Missing Pygments output Latex July 20

    I am using Anaconda Scientific package for installing all the python related packages. I want to use minted package for editing my script in Latex. However, after I set up all the things correct. The pygment does not output anything but a file: defau

  • Showing nice indentation of Python code

    Showing nice indentation of Python codeJune 11

    I use pythontex to typeset my Python listings. I'd like to have some kind of L-shaped lines, like the ones I added in the image below to clearly exhibit the indentation level of every line of code. Any ideas? \documentclass[varwidth,margin = 1mm]{sta

  • Getting the latex minted package to work in AnkiMay 26

    This is my Edit_LaTeX_build_process.py file (note the -shell-escape option) newLaTeX = \ [ ["latex", "-shell-escape", "-interaction=nonstopmode", "tmp.tex"], ["dvipng", "-D", "200", &qu

  • Undefined Control Sequence with minted April 3

    For some reason, minted is giving me a "Undefined Control Sequence" error on every line that I used "\usepackage". I searched about it but I couldn't see an answer that fits me. The error: ! Undefined control sequence. <argument>

  • Anyone have experience with PythonTeX?March 30

    I have been trying to get PythonTeX working, but can't seem to solve the errors I'm getting. My current Minimum Broken Example is this: % !TEX TS-program = xelatex \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \use

  • Using minted package on Ubuntu: .w18 file not found errorFebruary 18

    I am trying to run the following code through XeLaTeX, using the -shell-escape option: \documentclass{article} \usepackage{minted} \begin{document} \end{document} The file is named guess.tex and the error I get is: ! Package catchfile Error: File `gu

  • Typeset colored terminal output using mintedFebruary 3

    I need to reproduce the output of a command in a LaTeX document. The command uses ANSI escape codes to produce colored output. I'd like to use minted, but using \inputminted{shell}{coloredoutput} produces the following error: ! Text line contains an

  • Style Pygments at PythonTeX

    Style Pygments at PythonTeXDecember 18

    Can I use style pygmentize with Pygments at PythonTeX. Let MWE like this : \documentclass{article} \usepackage{pythontex} \begin{document} \begin{pygments}[style= murphy]{python} % murpyhy is style from pygmentize #!/usr/bin/env python import Tkinter

  • pythontex on Ubuntu 14.04August 12

    After installing the package pythontex via latex pythontex.ins, I tried the following example to test it: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{py

  • custom syntax highlight for minted August 8

    I am trying to get a custom syntx highlight for minted. My actual code for this style looks like this: from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic class MyStyle(Style)

  • Problem on minted package on Windows 7

    Problem on minted package on Windows 7March 5

    I exactly followed the instruction and I also tried those solutions on this link: How to install syntax highlight package minted on Windows 7? Unfortunately, I could not run minted package on Texmaker. I have got error when it is compiled. Any idea a

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.307 s.