Giter Club home page Giter Club logo

Comments (5)

DSczyrba avatar DSczyrba commented on July 18, 2024 2

Du hast dich glaub ich bei deinem Beispiel verschrieben :D
Da steht zweimal das gleiche... ICh schätze du meinstest beim zweiten ohne autogobble? :D

from vorlage-latex.

jemand771 avatar jemand771 commented on July 18, 2024

build-kontext? (docker/texmaker)
ich bin mir ziemlich sicher dass das schonmal ging. irgendwann

edit: ja, ich hab den titel jetzt erst gelesen xD geht das in texmaker auch nicht? falls es am container liegt: gib mal codebeispiel, dann seh ich's mir an :b

from vorlage-latex.

DSczyrba avatar DSczyrba commented on July 18, 2024

Hab dich zu meinem privaten repo hinzugefügt...
Dort tritt der Fehler auf...

Ich kann morgen aber auch mal ein MWE erstellen dafür.

from vorlage-latex.

jemand771 avatar jemand771 commented on July 18, 2024

update: liegt an minted's autogobble-option. reproducer:

  • neue datei Latex/code.py erstellen. die kann leer sein und es tritt trotzdem der gleiche fehler auf
  • irgendwo in den beispiel-dateien der vorlage das hier einfügen:
\inputminted[autogobble]{python}{code.py}

--> build schlägt fehl

  • im gegensatz dazu
\inputminted[gobble=0]{python}{code.py}

--> geht

getestet im docker-container, v1.0.0

warum das nicht geht? es bleibt spannend ^^

from vorlage-latex.

jemand771 avatar jemand771 commented on July 18, 2024

durch 300% glück hab ich die lösung gefunden: minted will /usr/bin/python, im container gibt's aber nur /usr/bin/pyton3

gefunden hier:
https://github.com/alexpovel/latex-extras-docker/blob/5429a82ef415c2e9eda0c20f71e7df63b51621e9/Dockerfile#L80-L87

# It is invoked with `python -c`, but Debian only has `python3`. Therefore, alias
# `python` to invoke `python3`. Use `update-alternatives` because it's cooler than
# symbolic linking, and made for this purpose.
# If `python` is not available but `pygmentize` is, stuff like `autogobble` and
# `\inputminted`won't work but syntax highlighting will.
# See also https://stackoverflow.com/a/55351449/11477374
# Last argument is `priority`, whose value shouldn't matter since there's nothing else.
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1

from vorlage-latex.

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.