GithubHelp home page GithubHelp logo

setup literate Idris about idris-stbx-core HOT 9 CLOSED

statebox avatar statebox commented on August 26, 2024
setup literate Idris

from idris-stbx-core.

Comments (9)

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024 2

...aaaand it works! great! :D

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

I'm trying to install lhs2tex. I am installing haskell with
sudo dnf install haskell-platform and then cabal install lhs2tex. Everything goes ok till this point but when I try to issue make in the literate idris folder it tells me lhs2tex is not found. What am I doing wrong?

@wires

from idris-stbx-core.

marcosh avatar marcosh commented on August 26, 2024

@FabrizioRomanoGenovese I actually changed lhs2tex to lhs2TeX becuase that's actually the name of the executable in my os. Maybe you need to revert that change

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

When did you do that? Cos I didn't pull in the last 2-3 days or so... Anyway it is strange cos cabal installs it correctly, could it be a problem of executable paths not being updated?

from idris-stbx-core.

marcosh avatar marcosh commented on August 26, 2024

I did it 3 days ago (3b8de5a#diff-b67911656ef5d18c4ae36cb6741b7965R8).

Moreover, I installed it using stack, not cabal. What happens if you do which lhs2tex? Or which lhs2TeX?

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

both return no ... in (bunch of paths) :/

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

Ok, the executable was in .cabal/bin and is named lhs2TeX. I copied it in my local bin path both under the names lhs2tex and lhs2TeX. Now make works. Still have to install latexmk tho!

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

Ok, next stupid question: Is there a nice way in visual studio code to have literate idris highlighting? At the moment everything is flat green for me, nor tex or idris are highlighted in anyway. Nevertheless, the file language is detected as "literate idris". Did you manage to customize highlighting already? Are there some settings we can share?

from idris-stbx-core.

FabrizioRomanoGenovese avatar FabrizioRomanoGenovese commented on August 26, 2024

Ok, I added a latex Documentation folder containing a first endeavor in "literating" Category.
Problems so far:

  • Latex is still typographically shit. In particular, the code font is rendered horribly;
  • Idris doesn't compile. I guess this is because it's sensible to line breaks in code blocs, but I may be mistaken.

...For now I committed to master because I just created a new folder without really changing anything else. From now on I'll start working with branching and PRs.

from idris-stbx-core.

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.