LaTeX - Insert the current year (like \today)?
Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today ...
Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today ...
Hi, I've had a good search for this on here and can't find a solution. I have a TextView in a RelativeLayout which contains an integer number. The number will range between 1 and 99 - can anyone tell me how to size the TextView so that its width is always the width of the string "99" even if it only contains "1"? I need this because...
My WPF application is reading a text file and populating a listbox. Whenever I have text surrounded by a dash symbol i.e. "-", the line in notepad will look like this for e.g. "SAMPLE - TEXT" When it displays it in the application, the dash turns into a question mark !?!?!? I then have an Export button, which writes these back to a text...
I was wondering if there has been any research about how much of the data stored in a databases consists of string data. Also, how much of that string data is free-text data (i.e. completly unstructered) and how much of it consists of identifiers such as proper names. My intuitive feeling is that often the size of a record is mainly defi...
Hi, this time, I have a rather short question: I want to Have a single char (which is a bracket) to display in a given Rectangular area without having spaces between the char an the border of the Rectangle. Is this possible? //EDIT: What im trying to do is placing brackets around a mathematical term which might be of different height. ...
If I write to long text for example this: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa The text is going out of the page, I have an idea to fix it, after every 100 characters I could make a <br /> tag. But I don't know how to do it. Thanks for any help! ...
I'm using a PHP function to split text into blocks of max N chars. Once each block is "treated" somehow, it is concatenated back again. The problem is that the text can be HTML... and if the split occurs between open html tags, the "treatment" gets spoiled. Can someone give a hint about breaking text only between closed tags? Requiremen...
I just learned about the truly awesome object-select capabilities of vim. With the cursor within some "text object", a set of simple verbs can select or operate on the whole object. For example, with the cursor anywhere inside the quotes below (e.g. over the 'o'): print "Hello, world" ^ The command vi" will select the who...
In an application that accepts, stores, processes, and displays Unicode text (for the purpose of discussion, let's say that it's a web application), which characters should always be removed from incoming text? I can think of some, mostly listed in the C0 and C1 control codes Wikipedia article: The range 0x00-0x19 (mostly control char...
I need to create a custom UILabel to display some dynamic multiline text. The text color is white on a black background. But the background should only be visible right behind the text to simulate the effect of an selected text area. I started with subclassing UILabel and overriding drawTextInRect to do my own drawings. - (void) drawTe...
I've selected an 8bpp bitmap into a CDC, and used ::TextOut () to draw text. The font quality is ANTIALIASED_QUALITY, but the text comes out in monochrome; no gray pixels & jagged edges. The 8bpp bitmap was extracted from a 24bpp bitmap that already had antialiased text drawn on it, and THAT text is ok. (Both text types are in the sam...
function() { FILE *ptr; ptr = fileopen(file1.txt) fprint(ptr, some text) //print to file 1 if(second file needed) { ptr = fileopen(file2.txt) //open a second file, assign to same file pointer fprint(ptr, some text) //print to file 2 not working here? } } EDIT: Not printing to second file...However...
I have a UIView that I'd like to add several bits of text to. I have used a UITextView but I think that's overkill as it doesn't need to be editable. I thought about using a UILabel or a UITextField, but I don't see how you tell the superview where to position the UILabel or UITextField within itself. I want the lowest footprint objec...
Hi all I need some logic/programming help with reading more than one record from a text file. I can read line for line, but I need to stop as soon as the record is finished, push that object to a list, and then continue with a new record until the next one comes up, save to list, etc... The header of the record always start with G as t...
I am sure this has been asked before, but I cannot find it. Basically, assuming you are parsing a text file of unknown origin and want to replace line breaks with some other delimiter, is this the best regex, or is there another? (\r\n)|(\n)|(\r) ...
hi, i want to combine text and image on the fly to create a jpg widget. I want to do this for a fundraising website, i will need to update the image once a day so it reflect the updated fundraising progress bar. The reason why i want a jpg (image) widget is because it is much more friendly to add to blogs, website etc. ...
Hi -- I'm loading large text file of high school students into MySQL, but the school itself is only identified in the first line of each text file. Like so: 897781234Metropolitan High 340098 1001X 678 AS Reading 101KAS DOE KEITH A1 340089 A 7782... Using SQL code, how can I generate a col...
HI, I am using a UITableView to display listings. I have customized it and have added 4 UILabels in the cell, but when the row is selected then the row selection color (customized to green) and Label text color (also a green) remains same. So, it becomes difficult to see the text of cell. I want to change the color of labels to white whe...
I want to have a button that has an image on top and some text on bottom. Both the image and text are decided during runtime, so I want to be able to combine ImageButton's setImageBitmap and Button's setText for each button. Any ideas? Thanks Chris ...
I like to create a "report generation" script in Matlab. Suppose we have a Matlab array, data and we want to export the following to a .tex file: "The information in the first element of data is X." This would be followed by a plot of X. I have already tried help latex in Matlab and aware of the various packages on Matlab file exchang...