Is it possible to use = in an enumerate label?   Like so:   k=1: item1 k=2: item2   The following example doesn't seem to work.  \begin{enumerate}[label=k=\arabic*:]     \item item1     \item item2 \end{enumerate}
121494
When using commands that allow using key-value pairs, how can one provide an argument value that has commas in it? As an example, say I'm using the \newacronym command from the glossaries package as below:  \newacronym[firstplural = Alphas, Bravos, and Charlies (ABCs), plural = ABCs]{ABC}{ABC}{Alpha, Bravo, Charlie}   Unfortunately, the comma is used to separate key-value pairs so the Bravos, and Charlies (ABCs) portion doesn't get parsed correctly. Is there a way to overcome this?
82470
Hi I wish to number equations  with a list environment   \begin{itemize} \item Lol \begin{equation} y_t=h_t(\hat{x}_{t|t-1}) \end{equation} \end{itemize}   I want  y_t=h_t(\hat{x}_{t|t-1}) in the same line of Lol... Can you help me to find out a way?
32175
I feel really stupid for asking this, but how do you form more complex if conditionals in TeX? I'm looking for something like:  \ifnum\x=1 OR \ifnum\x=14     {do this} \else     {do that} \fi   I don't want to have to resort to copy-pasting the entire condition just to change the expression when the body is the same.
26228
What is the difference between == and === in php. I am unsure when to use both.  Updated note: So that it shows up in StackOverflow search, the difference between == and === is the same as the difference between != and !==.
6937
I am sorry if this is quite elementary question. But I always think, that why we use $:=$ at some places, instead of $=$. Is there any fundamental difference between these two? Before reading Terry Tao's blog (4 months ago), I had never seen a symbol like this (:=).
7945
What is the difference between &gt;&gt; and &gt;&gt;&gt; in verilog/system verilog? I know that == tests for only 1 and 0, while === tests for 1, 0, X, Z. So how is that similar to the shift operator?
52994
I would like to skip an \item in a sub-enumerate level. More specifically, I want the output to look something like:  1.       a)      b)      e)      f)      etc.  2.   However, when I use \addtocounter{enumi} (within the first \begin{enumerate} \end{enumerate} block obviously), it increases the outer counter and I get:  1.       a)      b)      c)      d)      etc. (no skips!)  3.   So I am looking for a way to specify which counter to increase. Greatly appreciate the help!
118972
I have been using ASP.NET for years, but I can never remember when using the # and = are appropriate.  For example:  &lt;%= Grid.ClientID %&gt;   or  &lt;%# Eval("FullName")%&gt;   Can someone explain when each should be used so I can keep it straight in my mind? Is # only used in controls that support databinding?
19795
When I have equations, as in  \begin{equation} ... \end{equation}   Can I arbitrarily assign the numbers to the equations? Instead of the usual order (1), (2), (3), ..., I'd like something like (1), (2.1), (2.2), (2.3), (3.1), (3.2), (4), ...
89955
If I have the following enum:  public enum ReturnValue{     Success = 0,     FailReason1 = 1,     FailReason2 = 2     //Etc... }   Can I avoid casting when I return, like this:  public static int main(string[] args){     return (int)ReturnValue.Success; }   If not, why isn't an enum value treated as an int by default?
121965
I searched the internet but I cant find a solution for my problem. I want a numbered and labelled equation inside the text.Something like:  The equation a+1=b (2.1) does ...   The equation a+1=b shouldn't be in a new line like usual  The equation a+1=b (2.2) does...
123559
I like my code to look like this:  \documentclass{article} \begin{document}  \begin{enumerate}   \item test text    \begin{enumerate}     \item 1     \item 2     \item 3     \item 4     \item 5   \end{enumerate} \end{enumerate}  \end{document}   For the sake of readability I like to put a blank line before a new environment starts. In the particular case I'm considering, the blank line adds some vertical space between the item from the first level enumerate and the first item from the second level enumerate.  So my question is: is there a best practice to format code related to blank lines before environments start? Should I avoid it? Should I comment out the blank line?  Clarification:  I'm talking about the vertical space between "test text" and "1". But, I'm not asking for a way to remove the extra space added by the blank like, I already know how to do that. My reasoning is the following:  Since adding a blank like before a new enumerate adds vertical space, it means that that blank line is meaningful for TeX. Since it is meaningful for TeX, is it OK to use it for the mere purpose of formatting code or should I avoid it?
33306
Hey! I was looking at this code at   I noticed that in some situations they used hex numbers, like in line 134:  for (j = 1; val &amp;&amp; j &lt;= 0x80; j &lt;&lt;= 1, q++)   Now why would they use the 0x80? I am not that good with hex but I found an online hex to decimal and it gave me 128 for 0x80.  Also before line 134, on line 114 they have this:  small_n = (n &amp; 0xffff0000) == 0;   The hex to decimal gave me 4294901760 for that hex number. So here in this line they are making a bit AND and comparing the result to 0??  Why not just use the number? Can anyone please explain and please do give examples of other situations.  Also I have seen large lines of code where it's just hex numbers and never really understood why :(
10523
I know how to do it normally, but I could swear that you could fill out out like a[0] = {0,0,0,0}; How do you do it that way? I did try Google, but I didn't get anything helpful.
41622
If I am using align to display an equation and have each line numbered, how do I reset the align counter?  As is, even if I use \end{align} and later in the document have a second \begin{align}, the counter continues from where it left off, instead of starting at 1.  Is there any simple way to do this? Or would I be better off creating my own counter and not using align?  Edit: More specifically, I am this to show lines/steps on a solution to homework problems. Separate occurrences of (1) will be in answers to different problems, so there should not be any trouble distinguishing.
114295
What are the valid characters to use in labels? I thought that only alphabetic characters were valid, but I tested ' and ! and they work. What are the restrictions to these names?
22814
I am using enumitem to handle my enumerate and itemize lists. I have a list like  \begin{enumerate}[label=Step \arabic{enumi}.] \item step the first \label{en:step-1} \item el secundo \label{en:step-2} \item item the third \label{en:step-3} \end{enumerate}   When I cross-reference one of these items, the punctuation shows up in the document. For example,   Let us reference \ref{en:step-1}.   gives me  Let us reference Step1..   The regular enumerate or itemize environments don't have this problem; punctuation does not show up when cross-referencing.   In the enumitem documentation there is an option afterlabel but that is only for inline lists.  Is there an option in enumitem, or a way of using enumitem that adds the correct punctuation to the list, but lets me cross-reference the label without the punctuation?