I am using dynamic text and labeling this:  &lt;dyn type="page" property="number"/&gt;  but I only want it to label the first 50 characters and than if it has to shorten the name to than put et al. at the end.  Thoughts?
9443
I was trying to figure out how to use dynamic text from an attribute table in a collection of Data Driven Pages in ArcGIS 10.   I've looked in the help files, but can't find anything on dynamic text from attribute tables.
78744
I'm a recent convert to TikZ from xy-pic, and am still trying to get a hang for it. I see that one can add labels to the end of arrows and the like using \node. Is there a way to add an arbitrary piece of text at a given position in the text, regardless of whether there is a shape there, a line there, or nothing at all? Thanks very much for your insight.
92375
Here's an example I just ran into. I'm trying to put some HTML in the label of my field.  $form['field_feedback']['und']['#title'] &lt;- has the title $form['field_feedback']['und'][0]['#title'] &lt;- has the title $form['field_feedback']['und'][0]['value']['#title'] &lt;- has the title. (Works)   Why are there three populated #title attributes with only one being used?
112429
I'm using the listings package with this \begin command:  \begin{lstlisting}[caption=blabla, label=amb]   This yields a nice code listing with a caption like "Listing 1.1 blabla". Is there a way to change the caption and have something like "Code 1.1 blabla"?  I saw the title command but it doesn't use a numbering system. Any hint will be greatly appreciated!
5764
After you've typed in a question, you get suggested tags that appear that look like this:        It appears that you need a minimum amount of characters ():     you must have entered a title (any length) and a minimum body length of 220 characters.   But other than that, how are the tags chosen? Is it:   A match of the title/body with other questions (taking the tags from those questions) A match of the title/body with tag excerpts (taking tags with overlap) A match of the title/body with tag wikis (taking tags with overlap) All of the Above None of the Above Other (please explain)   Some additional info from :  The suggested tags seem to only pop up on meta.so (they do not work on regular Stack Overflow, or on other SE sites).  While we're on the topic, why isn't this feature implemented network-wide?
47079
With the listings package, I would like to color the integers out of strings and comments and out of keywords too. The question for coloring numbers     . Some answer handle the numbers occurring within comments, strings or barewords, but no solution given work when a keyword contain a number. Which is annoying because C and C++ have a lot of types with a number in them, like uint32_t.  Here is a small example.  \documentclass{standalone} \usepackage{xcolor} \usepackage{listings}  \definecolor{darkgreen}{rgb}{0.18,0.54,0.34} \definecolor{maroon}{rgb}{0.64,0.16,0.16} \definecolor{darkpink}{rgb}{0.75,0.25,0.5}  \lstdefinestyle{myc++}{     language=[ISO]C++,     keywordstyle=\color{darkgreen}\bfseries,     commentstyle=\color{blue}\textit,     stringstyle=\color{darkpink}\ttfamily, %     literate=*     {0}{{{\textcolor{red}0}}}1     {1}{{{\textcolor{red}1}}}1     {2}{{{\textcolor{red}2}}}1     {3}{{{\textcolor{red}3}}}1     {4}{{{\textcolor{red}4}}}1     {5}{{{\textcolor{red}5}}}1     {6}{{{\textcolor{red}6}}}1     {7}{{{\textcolor{red}7}}}1     {8}{{{\textcolor{red}8}}}1     {9}{{{\textcolor{red}9}}}1,     escapeinside={|}{|}, %     morekeywords={int32_t} }  \begin{document}  \begin{lstlisting}[style=myc++] // In comment: 42 int32_t in_keyword = 80085; char *in_identifier|2| = "And in string 1337\n"; \end{lstlisting}  \end{document}   And the result:    The star for literate avoid to coloring the digits inside comments or strings. The escapeinside avoid coloring the digits inside a bareword when specifically marked. But I have yet to find how to color int32_t as a keyword.
40204
The picture above shows what I am referring to. I'm looking for a way to change these " A, B, C, ..." labels to describe better the content below each.    A would contain what date, B  what length I run, etc.
123044
I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from . Of course I can do it manually as in the MWE below, but was hoping that there might be an easy way to use the commented out syntax to accomplish this:  Code: \documentclass{article} \usepackage{xcolor} \usepackage{siunitx}  \newcommand*{\Color}[2][red]{\textcolor{#1}{#2}}%  \begin{document}  \num{99 976}  88\,9\Color{76} %\num{88 9\Color{76}}  77\,\Color{976} %\num{77 \Color{976}}  \end{document}
42238
This code won't compile:  \documentclass{article} \usepackage{listings} \lstset{     language=C,     basicstyle=\small }  \begin{document} lorem ipsum\footnote{% \begin{lstlisting} // some C code or whatever... printf("Blah blah\n"); \end{lstlisting}} \end{document}   It says Illegal parameter number in definition of \lst@insertargs. I know listings is really picky about where it goes, but there must be a way to cram a listing into a footnote, right?  (This is a MWE and my tex files are a bit more complex; my actual error is Paragraph ended before \lst@next was complete. but they are hopefully related; I couldn't get this error with the MWE.)
116952
I am suggesting dramatically lowering the custom text characters allowed in any bounty from 3000 to the length of a comment (600). The reasons for this is as follows:  There are no  in bounty texts  There is only  available  That many characters in a single paragraph is completely TL;DR  Allowing 3000 characters is a strong suggestion you can use more complicated formatting which makes even short (with respect to the character limit) bounty texts    Probably 100x (or more) easier to implement this than adding full markdown to bounty text   Note that this entire post is barely 1/3 the allowed character limit.
89824
Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it?  (It's, of course, possible to \include all files in one and then use \includeonly — but it breaks e.g. page and section numbering.)
119906
Some of our form fields have character limits. We're debating whether we should reflect the current size of data entry, or to simply hard-limit and inhibit data entry beyond that size.  In HTML, simple &lt;input&gt; elements can have a maxlength attribute that inhibits further entry, but &lt;textarea&gt; has no built in option. Character limits in &lt;textarea&gt; can easily be imposed via javascript.  Twitter shows the remaining available characters, and will let you type more than that in but shows it as an error (and disables the action button).     We're looking at proactively showing the number of allowed characters for a limited field, and showing the number of characters remaining. If the user exceeds the limit then an inline form invalidation message appears.     A counter argument is that users don't even notice the little numbers updating, and that the user might well end up expending a great deal of effort typing something which they then need to trim.  What are some of the pros and cons of using these character counters?
108589
I have a point feature class that I am labelling with the string "EXIT" for a majority of points, but some points will be longer, such as "EXIT into Pacific".  I wrote a labeling script that will create a new line after "EXIT", but not after "into" because I want to keep "into Pacific" on one line.  I want the label to show up like this:       EXIT  into Pacific   But instead, it automatically creates a new line and shows up like this:       EXIT      into     Pacific   Is there a way to keep ArcMap from automatically creating a new line for the label? Or is there a good invisible character that will make the program think that "into Pacific" is one string with no white space?  Here's my script:  function FindLabel ([TYPE]){ var exitSlice var intoSlice intoSlice = "" var label var field field = [TYPE] exitSlice = field.slice(0, 4) if (field.length &gt; 4) {     intoSlice = field.slice(5)     label = exitSlice + "\n" + "&lt;ITA&gt;&lt;FNT name='Melior' size='8'&gt;" + intoSlice + "&lt;/FNT&gt;&lt;/ITA&gt;"     } else {     label = exitSlice     } return label}   I'm pretty confident the script isn't causing the extra newline between "into" and "Pacific".
52636
Now that the retag feture has been merged with the edit feature tag edits also have to be over 6 characters? A question can legitimately have only one character in tags? Is this an intended side effect of the change? For  if I click the edit link, then remove  I get the error edits must be at least 6 charicters. My browser is Safari on iOS 6.0.
115970
Using a ajax request I want to change content of my div.  &lt;div id="d1"&gt;202&lt;/div&gt;   So I want to change the content to a different number.  $('d1').InnerText???   Also, say I wanted to increment the number, how could I do that? Do I have to convert to int?
73235
Usually, dropdown menus are made as long as their longest value. However, that works well only for dropdowns with a predefined set of values. How can we deal with a dropdown that receives its values dynamically and displays user-generated values which don't have a reasonable size limit? For example a file name may be extremely long. I'm looking for a way to solve this which would still let me use the dropdown in a reasonable way (e.g. without having to always place it in its own row for fear that it might grow and mess with my layout).   Truncating values at a low cutoff point won't work well since the difference between the values might be at the last characters (again, the file extensions example is a good one). I can use it for the edge cases, but I'd like to get there as late as possible.
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?