Giter Club home page Giter Club logo

Comments (9)

wg030 avatar wg030 commented on June 2, 2024 1

Conributing to open source stuff is always a guilty pleasure to me - there is never time, and never anything forcing it to get done.

That's a great attitude, which I do share. If one profits from a project and can somehow contribute to it one should feel obligated to do so imho.

Thanks for being so responsive, and thanks for the amazing package. I have now used it A LOT for several important reports, including my bachelor thesis ^_^

You are very welcome and it makes me happy to hear that this package is so useful for you!

from jlcode.

wg030 avatar wg030 commented on June 2, 2024

Unfortunately I don't think that this can be fixed easyily because jinln is mainly just the command \lstinline from the listings pakcage itself. So what you experience here is what being prodced due to the nature of the listings package and it implementation and not due to the implementation of this package.

"Manual fiddling" is likely the best we can do here as far as I can see right now.

from jlcode.

KronosTheLate avatar KronosTheLate commented on June 2, 2024

Is this a know issue within listings? Or should this issue be raised over there?

from jlcode.

wg030 avatar wg030 commented on June 2, 2024

Is this a know issue within listings? Or should this issue be raised over there?

Well, I don't really know. But honestly, I would assume that the do not really consider this to be an issue at all.

I mean the problem here is that your expression n_inital and especially sample_n_ANNS are coherent, long expressions that you would normally not want to be split. So latex tries it's best under the assumption that this expression needs to be coherent, which means you will either create an overfull box and have a line longer than the textwidth or an underfull box and have a line with a lot of whitespace and your expressions starting at the next line. There is no way of having a coherent expression, no underfull box and no overfull box at the same time. See what I mean?

from jlcode.

KronosTheLate avatar KronosTheLate commented on June 2, 2024

Absolutely. The way I would fix this for text is to put it inside a \hbox{}, which ends up filling all lines from left to right, without going into the page margin. This would be the preferred behaviour IMO.

from jlcode.

wg030 avatar wg030 commented on June 2, 2024

This would be the preferred behaviour IMO.

Could you show me a picture of how your example looks when you do it like that?
I am not so sure if I could agree here on that being the preferred behaviour because I would expect to have a lot of white space in the text.
But then again, if one does or cannot change the forumlation of the text, this might be the best solution indeed.

from jlcode.

KronosTheLate avatar KronosTheLate commented on June 2, 2024

I don't have time right now, but I commonly use it to keep e.g. an inline equation on the same line. Yes, there is extra whitespace, but it looks way better than breaking into the margin. Feel free to try including more and more of a text in the \hbox{}, to get a feel for the behaviour. I have always liked the output from it "in the wild", e.g. in real use.

from jlcode.

wg030 avatar wg030 commented on June 2, 2024

Ah, I see.
I never really work with \hbox{} because I personally prefer changing some words or the order of words in a setence in theses cases.
When I have some more time I might go for some testing here, but right now I am busy, too.

from jlcode.

KronosTheLate avatar KronosTheLate commented on June 2, 2024

Conributing to open source stuff is always a guilty pleasure to me - there is never time, and never anything forcing it to get done.

Thanks for being so responsive, and thanks for the amazing package. I have now used it A LOT for several important reports, including my bachelor thesis ^_^

from jlcode.

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.