GithubHelp home page GithubHelp logo

Comments (5)

cgnieder avatar cgnieder commented on August 18, 2024

I am planning to add a solution as an alternative to the current behavior. I do not have as much time as I used to for (La)TeX currently.
This will come one time…

from xsim.

cgnieder avatar cgnieder commented on August 18, 2024

I close this as a duplicate of issue #9

from xsim.

pablgonz avatar pablgonz commented on August 18, 2024

Hooo, I hadn't read (#9) when I wrote this. I wrote a comment on the previous commit 5ccf34d . Waiting for the new version :). Thank you for everything.
The best.
Pablo

from xsim.

cgnieder avatar cgnieder commented on August 18, 2024

I have seen the comment and I've noticed the scontents package. For the time being the switching-off of the external files will disable using verbatim material, though… scontents does

\NewDocumentCommand { \__scontents_verb_arg:w } { +v }

which is a little bit of cheating ;) \NewDocumentCommand is meant to define user commands while \__scontents_verb_arg:w clearly is an internal command for the package… I've misused \NewDocumentCommand, too, but not in xsim where I want to keep the code as clean as I can.

I might find another way, though :)

from xsim.

pablgonz avatar pablgonz commented on August 18, 2024

Yes, the truth is that \scontents_verb_arg:w is a bit misleading ... there was no other way out since \tl_rescan does not work properly with verbatim material, only the old \scantokens has that ability :) (for now) .

The code of xsim is pure and clear, we appreciate the comments you leave in source codes, otherwise I would never have understood how xsimverb worked.

The comment left it for the scontents environment rather than for the \Scontents command, basically it is the same idea as xsimverb, but, saving the content in \tl and modifying the blessed end of line ^^M :) (a headache) and stored this in a sequence.

With your new version I think I can move (at last) from exsheets to xsim.

Maybe an idea of the "star" type in environments not to write in external files?
I see something like that in my mind:

\usepackage[no-files]{xsim}
\begin{exercise*}[...]
\scantokens{body} and save in prop list
\end{exercise*}
\begin{solution*}[...]
\scantokens{body} and save in prop list
\end{solution*}

and for xparse, solution of solution* are different (I don't mean the s argument) . maybe you could try something, I repeat, it's just an idea, and it's not that this against writing external files, it's just that, one of the things I liked most about exsheets was that.
Saludos

from xsim.

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.