Comments (9)
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.
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.
Is this a know issue within listings
? Or should this issue be raised over there?
from jlcode.
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.
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.
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.
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.
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.
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)
- Tens of errors when used with other listings code HOT 2
- The \approx symbol not working HOT 2
- color of line numbers HOT 4
- Complex{Int64} problem HOT 2
- How to make this work with 2-column documents HOT 7
- Error in compiling HOT 1
- Customize code block length HOT 2
- FR: Provide environment HOT 4
- Color of functions containing "!" HOT 4
- Line breaking is bad HOT 8
- Highlighting of macros HOT 4
- Avoid clutteting LaTeX project HOT 7
- Get utf-8 error with degree symbol HOT 7
- \approx error HOT 4
- Plenty of error messages involving xcolor HOT 7
- interaction with beamer overlays HOT 3
- \pm problems HOT 2
- Illegal parameter number in definition of \iterate HOT 2
- REPL format: Colorize `julia>` if any HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jlcode.