I have an unrelated question. In that IF statement, I want to say if there exists a v in \hat{V} such that ... and then I used the value of m that I expanded from v I am working on my thesis, is it clear? if not how to express it more clearly
I have a query on using syntax highlighting. Is it okay to use syntax highlighting of source code snippets in academia, in scientific papers? Or should it be kept in the black text?
Where can I ask this query? Can anyone suggest any SE site or chatroom?
@raf if by syntax highlighting you mean colouring your code, I am inclined to say this is not a good idea. :) But bold and italics are usually acceptable.
@raf I like line numbers. :) But I usually use them when it's relevant to the context, e.g, mentioning something that happens at line 4, otherwise lines might not make sense. :)
The reason for my query: Next month, I have a contest, where I need to write a formal scientific paper on a given physics problem. And, I am gonna put my used source code snippets in the appendix of my paper. In this context, I am confused if I should keep the syntax coloring or not!
@raf Talk to the organisers to see of there is a style guide you have to follow. (if there is none, make sure your paper is still accessible to people who are colour blind or print it in black and white)
@raf ^^ what @samcarter said. :) I usually favour bold/italics instead of colours, but again, that's just my style. One thing to keep in mind is whether colours could distract readers. If you think it wouldn't, go for it. :)
@raf I don't know how formal your contest is, but I wouldn't be surprised of some/most participants would just use their IDE to print the code as pdf and include this in their appendix ...
@samcarter I agree. There's a chance that many participants would do that. because no specific guideline is provided. But I want to keep the paper format formal as much as possible.
@raf my thesis had some code listings, and one of the reasons for keeping it b/w (besides the ones I mentioned before) is that printing a coloured page would cost me a lot more, so there's that. :)
@raf then you shouldn't use colorlinks. I don't recall ever seeing a scientific paper with coloured links (because most of the time those are also for print).
@Skillmon MDPI uses blue, bold links for citations (that jump to a citation) and internal and external links. It's quite discrete and probably almost unnoticeable in print, but quite pleasant (IMHO) when read onscreen.
@raf looking back to my bachelors and masters thesis, the printed code included syntax highlighting (coloured), but I'd never use colour for text highlighting, there I'd use different fonts or different shapes.
@raf (I'm pro syntax colouring) I'm not sure if I would base a decision about using syntax colouring on that paper. It does not really give any reasons that syntax colouring is beneficial other than just saying it is good, no data or studies to support their claims and in their section about addressing the problems, they give some suggestions what can be done, but fail to show that these actually solve the problem.
Also, keep in mind to use a colorscheme that reads well on most devices, as well as printing (and also covers colour blindness and other colour technicalities).
@PauloCereda I think there was some package released a couple of months ago providing colours matching some of those technicalities (high enough contrast, etc.)
@PhelypeOleinik well when in six years there will be a question with % HACK % HACK % HACK % HACK % HACK % HACK % HACK % HACK % HACK % HACK % we will be able to identify the source ;-)
@PauloCereda @yo' Feature idea for overleaf: if a users creates a new project from a template, could you automatically add a comment with the url to the template? This would make it easier to answer questions when the user just says "I'm using THE template from overleaf"
@samcarter might be a no-no (it's not that easy to modify the code reliably at that stage of project creation), but I'll see what can be done while work on other gallery improvements :)
@DavidCarlisle well it can't add to all fonts, then it would affect typewriter too. So imho it is only the default for fonts you declare with \setmainfont and \setsansfont.
@schtandard yes, I think it was ninecolors, thank you!
@DavidCarlisle maybe not spam, but I agree, that answer is not particularly helpful. The only worse possibility now would be someone recommending the use of a bloated OS like Emacs.
Oh no my favourite candidate disappeared from the election :(