Giter Club home page Giter Club logo

pandoc-latex-fontsize's Introduction

Installation

Python package pre-commit Coveralls Scrutinizer Code Climate CodeFactor Codacy PyPI version PyPI format Latest release Last commit License Python version Poetry version Pandoc version Downloads Development Status Docs Code style: black Repo Size Code Size Source Rank

pandoc-latex-fontsize is a pandoc filter for modifying font size to Code, CodeBlock, Span, and Div that have speficied classes or latex-fontsize attribute.

Instructions

pandoc-latex-fontsize requires python, a programming language that comes pre-installed on linux and Mac OS X, and which is easily installed on Windows.

Install pandoc-latex-fontsize using the bash command

$ pipx install pandoc-latex-fontsize

To upgrade to the most recent release, use

$ pipx upgrade pandoc-latex-fontsize

pipx is a script to install and run python applications in isolated environments from the Python Package Index, PyPI. It can be installed using instructions given here.

Getting Help

If you have any difficulties with pandoc-latex-fontsize, please feel welcome to file an issue on github so that we can help.

Notes

pandoc-latex-fontsize's People

Contributors

chdemko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pandoc-latex-fontsize's Issues

Pip install error

I got the following error while trying to install via pip install pandoc-latex-fontsize:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f_k8ov/pandoc-latex-fontsize/

Any suggestion @chdemko?

Thanks

not work with beamer template

I test the example with beamer, but it doesn't work.

pandoc -t beamer --filter pandoc-latex-fontsize   -o test.pdf  pandoc-latex-fontsize-sample.txt

Invalid syntax

Hi,
I copied the example to my header

---
title: "some title"
pandoc-latex-fontsize:
    - classes: [smallcontent]
    size: tiny
    - classes: [largecontent, important]
    size: huge
header-includes:
    - \usetheme{Madrid}
    - \usecolortheme{lily}
    - \usefonttheme{professionalfonts}
---

and when running

pandoc -N -t beamer airflow.md --highlight-style=breezedark --filter pandoc-latex-fontsize -o airflow.pdf 

I get

[pandoc warning] Could not parse YAML header: did not find expected '-' indicator "source" (line 6, column 5)

(Line 6 being the second - classes)

and I don't see this working on my pdf output (size doesn't change), example:

30 01 download.yml
30 01 download.yml
30 01 download.yml

is the same with and without .smallcontent.

Error with pandoc version 2.9.2.1

โ†’ pandoc --version                                                                                                   
pandoc 2.9.2.1
  File "/home/walter/.local/bin/pandoc-latex-fontsize", line 8, in <module>
    sys.exit(main())
  File "/home/walter/.local/lib/python3.9/site-packages/pandoc_latex_fontsize.py", line 151, in main
    return run_filter(fontsize, prepare=prepare, doc=doc)
  File "/home/walter/.local/lib/python3.9/site-packages/panflute/io.py", line 224, in run_filter
    return run_filters([action], *args, **kwargs)
  File "/home/walter/.local/lib/python3.9/site-packages/panflute/io.py", line 197, in run_filters
    doc = load(input_stream=input_stream)
  File "/home/walter/.local/lib/python3.9/site-packages/panflute/io.py", line 58, in load
    doc = json.load(input_stream, object_hook=from_json)
  File "/usr/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
  File "/home/walter/.local/lib/python3.9/site-packages/panflute/elements.py", line 1353, in from_json
    return Doc(*items, api_version=api, metadata=meta)
  File "/home/walter/.local/lib/python3.9/site-packages/panflute/elements.py", line 66, in __init__
    raise TypeError("invalid api version", api_version)
TypeError: ('invalid api version', [1, 20])
Error running filter pandoc-latex-fontsize:
Filter returned error status 1

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.