when i use morekeys in the lstdefinestyle it succesfully adds any word but it doesn't work with some characters like +,&lt;, etc. this is the style: \lstdefinestyle{ligth}{ morekeywords = [1]{}, keywordstyle = [1]\color{red}, morekeywords = [2]{otherwise,\_, |, &gt;, ==, :: }, keywordstyle = [2]\color{blue}}  This adds perfectly fine the word otherwise and _ but it doesn't add any of the others: , &gt;,==,:: How can I fix this?? Thanks for your time
I want to put some symbols in green color with lstdefinelanguage in latex, but it seems that symbols are not recognized.  The symbols I need to be colored are =, > and &lt;. Is it possible? How can I do this?  The main file:  \documentclass{article}   \usepackage{graphicx,color} \usepackage{booktabs} \usepackage{listings}   \lstdefinelanguage{NeoIDL}{   sensitive = true,   keywords = [1]{module, resource, enum, annotation, for, import, entity, path,   @get, @post, @put, @delete, require, ensure, otherwise, call},   %ndkeywords={int, \char{}  },   %ndkeywordstyle=\color{blue}\bfseries,   morekeywords=[2]{&gt;, &lt;, ==},   keywordstyle=[2]\color{green},   numbers=left,   numberstyle=\scriptsize,   stepnumber=1,   numbersep=8pt,   showstringspaces=false,   breaklines=true,   frame=top,   comment=[l]{//},   morecomment=[s]{/*}{*/},   commentstyle=\color{purple}\ttfamily,   stringstyle=\color{red}\ttfamily,   morestring=[b]',   morestring=[b]"   }  \begin{document}  \begin{figure}[htb] \begin{small} \lstinputlisting[language=NeoIDL,firstnumber=1]{store_pos_servico.neo} \end{small} \caption{Service 1} \end{figure}   \end{document}   The file to be formatted:  module store {    (...)     resource order  {      path = "/order/{id}";       @post   int postOrder (Order order)     require (call store.getOrder(id) == "NotFound"),     otherwise "InvalidPrecondition"    }; }
In shell scripts used for unit testing with dynamic libraries in a directory other than the typical @rpath, I have previously been able to set DYLD_FALLBACK_LIBRARY_PATH to set the directory containing the libraries. Under 10.11.1, bash seems to ignore attempts to set this environment variable:  $ sh -x testscript.sh + DYLD_FALLBACK_LIBRARY_PATH=/Users/something/testinglibs + export DYLD_FALLBACK_LIBRARY_PATH + exec printenv   and DYLD_FALLBACK_LIBRARY_PATH is not present in printenv's output.  Is this a security-related hack in 10.11's shell? I haven't been able to find this change documented in man pages or online. Here's a pickle: reference style links in markdown are fantastic. Numbered footnotes, however, can be a pain. Named references are a beautiful solution, but the editor seems to choke on them in certain contexts, throwing an error:  your post appears to contain code that is not properly formatted as code...  I've looked at a  and tested it out quite a bit and I'm pretty sure line breaking isn't the problem, named references are valid , and I can get multi-word named references to work basically every time (in this post, even). Is there a reason for named references to be seen as improperly formatted code in certain contexts? At the risk of being verbose (but for the sake of completeness), here's the source of the specific question I was trying to post when I encountered the problem: I'm trying to build a [Google Apps Script] that integrates with [Trello], the idea being to use it to push information from spreadsheets and forms into the [Trello API] and create cards on a `pending` list on a certain board.  I found this [question] on here that pointed me in the right direction, and added in OAuth based on the [GAS OAuth Documentation]. The problem is I can't post the the board. I run the script, the OAuth prompt fires, and the script completes with no errors. I can also `GET` data from the private board, so I assume the authorization is working properly.  So, what am I doing wrong that prevents my script from `POST`ing to Trello?  Here's the code I'm working with:      var trelloKey = [Trello API key];     var trelloSecret = [Trello API key secret];     var trelloList = [the id of the list we're posting to];      var oauthConfig = UrlFetchApp.addOAuthService('trello');         oauthConfig.setAccessTokenUrl('https://trello.com/1/OAuthGetAccessToken');         oauthConfig.setRequestTokenUrl('https://trello.com/1/OAuthGetRequestToken');         oauthConfig.setAuthorizationUrl('https://trello.com/1/OAuthAuthorizeToken');         oauthConfig.setConsumerKey(trelloKey);         oauthConfig.setConsumerSecret(trelloSecret);      function createTrelloCard() {        //POST [/1/cards], Required permissions: write       var payload = {'name': 'apiUploadedCard',                       'desc': 'description',                       'pos': 'top',                       'due': '',                       'idList': trelloList};        var url = 'https://api.trello.com/1/cards'       var options = {'method' : 'post',                      'payload' : payload,                      'oAuthServiceName' : 'trello',                      'oAuthUseToken' : 'always'};        UrlFetchApp.fetch(url, options);     }  [Trello]: http://trello.com [Google Apps Script]: https://developers.google.com/apps-script/ [Trello API]: https://trello.com/docs/ [other question]: http://stackoverflow.com/questions/18710641/trello-api-how-to-post-a-card-from-google-apps-script-gas [GAS OAuth Documentation]: https://developers.google.com/apps-script/guides/services/external#making_requests_to_services_with_oauth  If I'm being a complete dunce, please let me know. It seems like one of those errors where it's either a hardcore backend bug or a really stupid user mistake and I'm ready to admit to the latter. What's the difference between $\equiv$ and $\leftrightarrow$ in a formal proof? How to test a power supply? My computer powered off the other day on its own, and now when I push the power button, nothing happens. My assumption would naturally be that the power supply is done (possibly well done) but is there any good way to test this before I buy a new one? I have a Beamer presentation with note pages, in which everything renders just fine with pdflatex.   However, when the file is compiled using xelatex (I need to use fontspec), texts in frames after a note page are not visible -- they are rendered in white colour. This problem is reproducible when using Beamer v3.33.  %% Compile with xelatex \documentclass[handout]{beamer}  \mode&lt;handout&gt; { \setbeameroption{show notes} \RequirePackage{pgfpages} \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] }  \begin{document} \begin{frame} A test, A test! \note{ } \end{frame}      \begin{frame} This text does not appear! \note{ } \end{frame} \end{document}   While this problem can be solved by compiling with lualatex, I'm wondering if there's any thing one can do to make it work for xelatex? Django template how to look up a dictionary value with a variable I'm looking for a good way to perform multi-row inserts into an Oracle 9 database.  The following works in MySQL but doesn't seem to be supported in Oracle.  INSERT INTO TMP_DIM_EXCH_RT  (EXCH_WH_KEY,   EXCH_NAT_KEY,   EXCH_DATE, EXCH_RATE,   FROM_CURCY_CD,   TO_CURCY_CD,   EXCH_EFF_DATE,   EXCH_EFF_END_DATE,   EXCH_LAST_UPDATED_DATE)  VALUES     (1, 1, '28-AUG-2008', 109.49, 'USD', 'JPY', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'),     (2, 1, '28-AUG-2008', .54, 'USD', 'GBP', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'),     (3, 1, '28-AUG-2008', 1.05, 'USD', 'CAD', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'),     (4, 1, '28-AUG-2008', .68, 'USD', 'EUR', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'),     (5, 1, '28-AUG-2008', 1.16, 'USD', 'AUD', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'),     (6, 1, '28-AUG-2008', 7.81, 'USD', 'HKD', '28-AUG-2008', '28-AUG-2008', '28-AUG-2008'); How do I programmatically log in a user with a POST request? Do anyone have a working REST Login on Drupal 8? This is what I tried. POST /user/login HTTP/1.1 Host: 8.d8.local Content-Type: application/x-www-form-urlencoded Accept-Encoding: http://nikhilmohan.in Cache-Control: no-cache  name=test&amp;pass=password&amp;form_id=user_login_form  It returns me HTML instead of JSON. Primefaces growl is not working in all the pages Is a sub-shell the same thing as a child-shell There are this two names: a subshell and a child-shell.  Yes, a child process will be started by any of this:  sh -c 'echo "Hello"' ( echo "hello" ) echo "$(echo "hello") echo "hello" | cat   Are all equivalent and share the same name? Do all share the same properties?    POSIX :     A shell execution environment consists of ....   But the last paragraph of above link has this:     A subshell environment shall be created as a duplicate of the shell environment, except that signal traps that are not being ignored shall be set to the default action.    And specially:     Command substitution, commands that are grouped with parentheses, and asynchronous lists shall be executed in a subshell environment. Additionally, each command of a multi-command pipeline is in a subshell environment; ....   The sh -c 'echo "Hello"' is not included there, should that be called a subshell also? Uses of the 3D Cursor I know the 3D Cursor can be used to position new objects, or snap existing ones to a certain location - but what else can it be used for?  An exhaustive list of every possible use would be great (without repeating similar things like "pivot for spin tool", "pivot for screw tool" - which could simply be said as "Pivot for modeling tools"). Catching exceptions from a constructor's initializer list Should outdated answers be voted down? On Stack Overflow, there are many questions that relate to currently-developing technologies such as HTML5 and CSS3. The accepted answers to these questions may become outdated, and better answers may appear. However, because the answers are accepted, it is likely that they will continue to be upvoted by users reading the answers, and the OP will likely not notice that a better, more up-to-date answer may exist.  Should these outdated answers be voted down? If not, what should we do with them? I'm having trouble finding something to clarify this. It's been mentioned in the Difficulty Class section of the DMG (238) that there should be a 50/50 chance that an average person can succeed at a DC 10 challenge, implying you have to beat it. However, I'd always thought that there's a 50/50 chance for an average person to hit another average person, but the chance is really 55/45, since you only have to equal their AC. Ubuntu 19.04 and Gnome desktop icons Prove that there exists at least one $x_0\in\mathbb{R}$, such that $f(x_0)+f''(x_0)=0$ Let $f:\mathbb{R}\to\mathbb{R}$ be a function, two times   differentiable with $\left|f(x)\right|\leq1,\forall x\in\mathbb{R}$   and $f^2(0)+\left(f'(0)\right)^2=4$. Prove that there exists at least   one $x_0\in\mathbb{R}$, such that $f(x_0)+f''(x_0)=0$.   I have tried the usual Rolle method by $e^x$, but didn't go far... Any help available? I was doing the problem $$ A+B=AB\implies AB=BA. $$  $AB=BA$ means they're invertible, but I can't figure out how to show that $A+B=AB$ implies invertibility. How many different permutations are there of the sequence of letters in "MISSISSIPPI"? Evaluating $\int\limits_0^{\pi} \frac{dx}{1+2\sin^2x}$ After making u substitution two times, I am getting indefinite integral as $$\int\limits\dfrac{dx}{1+2\sin^2x} = \dfrac{\arctan(\sqrt{3}\tan(x))}{\sqrt{3}}+ C$$  I am stuck at working the bounds because I am getting $0$ but the answer needs to be $\pi/\sqrt{3}$.  I think $\arctan(x)$ is defined in $-\pi/2 \lt x\lt\pi/2$ while making u substitution. However I don't see how to use this observation to my advantage. Can anybody help in getting the answer and understanding whats going on. Thanks ! In  related question (), the OP asks if it is grammatical to use the definite article before phrases like Advanced programming in Java whitepaper and Microsoft Office 2010 product. The accepted answer by @Kosmonaut was:     Yes, it is. This is because the "Advanced programming in Java"   whitepaper phrase forms a syntactic unit, with whitepaper as the head   of the unit. The definite article for a phrase always corresponds to   the head of the phrase, so using the definite (or indefinite) article   for these phrases makes perfect sense and is correct English.   My question is whether the same answer applies to phrases like Heathrow Airport, Hyde Park,  Waterloo Station, Edgware Road and Parliament Square. I ask becase it seems to me that airport, park and station, etc. sound like they are part of the proper noun itself, and not simply a common noun. Moreover, I think the head of the unit in these cases would be the place name (first noun) and not the place type (second noun). If that's true, then I assume that no definite article should precede these phrases. Is that correct?