There are several Questions and Answers regarding the use of listings under LyX. And they mention, or explain, how to enable syntax highlighting. While this is easy to achieve, my attempt to use a custom color (defined in the Preamble) for keywords, fails.  For example, I would like to use the color \definecolor{grassgis}{rgb}{8, 150, 13} within the Listings settings (LyX: Document > Settings > Listings). It appears as white!    Using any of the conventional colors, like magenta works fine.    Why is this happening? Where should the custom color definition be placed?
I am trying to define an rgb color. More specifically I want to create this color    which in rgb mode it's (98,190,177).  I tried to define this color using the following code  \documentclass{standalone}  \usepackage{tikz}  \begin{document}  \definecolor{tank}{rgb}{0.098,0.190,0.177}  %\definecolor{tank}{rgb}{98,190,177}  \begin{tikzpicture}   \coordinate (tank) at (0,0);   \draw[red, fill=tank] (-2,0.5)--(-0.5,1)--(0.5,1)--(2,0.5)--(2,-0.5)--(0.5,-1)--(-0.5,-1)--(-2,-0.5)--cycle;  \end{tikzpicture} \end{document}   but the output is totally different from what I am trying to achieve    I also tried to use \definecolor{tank}{rgb}{98,190,177} but I get no color at all. How to properly define an rgb color?
When to use unsigned values over signed ones? How to Disable Copy Paste (Browser) "It was recommended that" + verb in present tense It was recommended that the international development partners develop guidelines or a roadmap to help countries take the necessary steps to select the right tool for their purposes.   Why is it using present tense "develop" in the sentence which is actually a past tense "It was recommended"? In D&amp;D 5e &quot;&quot; is a condition that can affect a creature during the first round of combat, only until the end of their turn:  [... T]he GM compares the Dexterity (Stealth) checks of anyone Hiding with the passive Wisdom (Perception) score of each creature on the opposing side. Any character or monster that doesn’t notice a threat is surprised at the start of the encounter. If you’re surprised, you can’t move or take an action on your first turn of the combat, and you can’t take a reaction until that turn ends. A member of a group can be surprised even if the other members aren’t. - PHB 189  Does the action that causes the surprise count as part of the round, though? Say Renee, a rogue, achieves a stealth check of 22, easily beating an orc sentry's passive perception. She sneaks directly behind him and stabs him in the back. Surely the orc isn't surprised at all until the dagger hits him (or if Renee misses, she fumbles around behind him or something). What I think it really boils down to in the end is: when is initiative rolled? If (in our example) initiative is rolled before Renee's attack hits (or misses) how can we justify the orc recovering from his surprise before the action that triggered said surprise even occurs, should he roll better than Renee on his initiative? I'd like to go with initiative is rolled immediately following whatever event began the encounter (which could be an attack, but is likely to often be something else wherever surprise isn't intended), but I can't find any documentation to support this stance.  Why Does Anyone Care? There are many reasons you might want someone to be surprised while you're attacking - in this example if Renee is over L3 (and took the Assassin archetype) she'll get 'Assassinate' if the orc is surprised, and 'Death Strike' if she's over L17. That's a lot of potential extra damage!  that if the orc is surprised, Renee will be able to retreat and hide, without having to take the disengage action as her bonus action to avoid an attack of opportunity. Of course, there's no way for her to know whether the orc is surprised or not at that stage, so trying this would be a bit of a gamble... How do I prompt for Yes/No/Cancel input in a Linux shell script? I want to pause input in a shell script, and prompt the user for choices. The standard Yes, No, or Cancel type question. How do I accomplish this in a typical bash prompt? How to Disavow Bad Backlinks Automatically? Already the early papers on supergravity were written using computer algebra software to do some calculations. What modern packages do people normally use for doing such calculations? Of course Mathematica and presumable a lot of other programs can be made to do such calculations, I am wondering if there are special packages or tutorials how to do such calculations in them. Is there a way in blender or an addon that allows me to select a bunch of faces (or verts) and evenly distributes (or relaxes) them into quads clean quads.  Without screwing up the vert ID/order.  Edit: I would like to have the shapes of my quads to turn into perfect squares while maintaining the volume of the object and the vertex order. Is Dexterity overpowered compared to Strength? How to remove extra start item from boot menu? I bought a laptop recently. While Windows 7 was installing, the battery died. So I plugged in the charger and re-installed Windows 7 Home Basic from the start. After completion of the procedure I now have 2 Windows folders in my C:\ drive, so I deleted the old Windows folder.  The problem is, while booting time it shows two Windows 7 options, although I already deleted the old Windows folder.  How can I remove old Windows 7 option from my boot? Duplicate typeset index entries Arriving at a different port of entry in the same state in USA? Can't format / delete locked partition from GParted? How does polynomial long division work? Does there exist a continuous function $\: f : \mathbf{R} \to \mathbf{R} \:$ such that for   all  functions $\: g : \mathbf{R} \to \mathbf{R} \:$, for all real numbers $x$,  there exists a real number $y$ such that $\: x &lt; y \:$ and $\: g(y) &lt; f(y) \:$? What is the proper way to re-throw an exception in C#? I have a question for you that stems from my partner doing things a different way than I do.  Is it better to do this :  try {     ... } catch (Exception ex) {     ...     throw; }   or this:  try {     ... } catch (Exception ex) {     ...     throw ex; }   Do they do the same thing? Is one better than the other? Tighten rope without turnbuckles? I have two 4-ft x 4" x 4" wood posts, and each post has a screw eye. There's 12 feet of distance between each post.  How can I tighten a piece of 1/2" diameter rope that goes through each screw eye and it's stretched tightly without having to buy turnbuckles?  There has to be a knot just for this. How do i know which wheels will fit my bike? Are there examples of third-(or higher)-order linear differential equations in physics or applied mathematics? The classical second-order linear ordinary differential equation is that named after Sturm and Liouville: formally, \begin{equation} (pu')'=ru. \end{equation} It arises naturally in many physical situations, for example through radial considerations of Schrödinger's equation. A higher-order "analogue" of it is the Orr$-$Sommerfeld equation, which, after relabelling the coefficients, may be written as \begin{equation} (\phi u'')''=\psi u. \end{equation} It also arises naturally, namely from certain simplifications applied to Navier$-$Stokes' (in)famous equation, and describes to great accuracy the cross-stream behaviour of channel fluid flow.  I have been thinking long and hard about whether there are additional higher-order linear differential equations that emerge naturally from our mathematical models of the world. It even seems pretty much all of the linear partial differential equations (heat, wave, Schrödinger, etc.) are of second order. Does anybody know of higher-order examples? Python 3 with QGIS on Mac? I need to start learning Python, and I want to learn with version 3.x. I understand that QGIS--at least some plug-ins--relies on Python and Tcl/Tk, and probably on specific versions. Assuming that QGIS is dependent on Python 2, can anyone tell me how to set up parallel installations of Python 3 and Tcl/Tk such that QGIS will have what it needs and I can use Python 3 for other purposes?