| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
|
When making a CV for yourself in LaTeX, one shall use nocite instead of cite command to make a list of publications. This avoids the problem of hiding citations using some other tricks. But what if you want multiple bibliographies in your document? One for journal articles and one for conference articles? There's a LaTeX package called multibib. Here's an example:
LaTeX will generate separate aux files for each bib, so you'll need to run bibtex for each aux files. (In this example, bibtex journal and bibtex conf will do.) |
|
Source:
Zdenek http://www.tug.org/pipermail/tex-live/2007-August/014582.html Sometimes, the LaTeX style files provided by the publisher does things that are not desirable. One of the big hassles is the URL in the bibliography portion. For example, the Elsevier bst file does it. I used to just go into my BiBTeX files and remove all the URL fields (that were automatically included when I exported from websites such as citeUlike) \bibliographystyle{elsart-harv} But there's a better solution. It is to modify the bst file directly. Open the corresponding bst file (in my case elsart-harv.bst), and look for the following function. FUNCTION {write.url}This is where the URL is being output. Change this to FUNCTION {write.url}and you are done! Make sure to clean the aux files and rerun BiBTeX and LaTeX. |
When you have millions of MATLAB figures to plot automatically and save them, you probably don't want to see each and every figure rendered on your screen. It's a waste of time (of your computer). In this case, open the figure with no visibility option as follows!f = figure('visible','off'); |
|
I was drawing a concept diagram in the paper I am writing with Karl, and I need a vector graphics for a computer. I was using Inkscape to draw things, and I simply didn't want to draw a computer from scratch. So I googled for free svg library, and this website popped! http://openclipart.org/ Open Clip Art Library They have many properly tagged svg graphics in public domain! Awesome! Below is the image I concocted (in bitmap 200 dpi, not all browsers support svg or eps, you know). |
When you want to make a colorful HTML out of a vim syntax highlighting and color scheme, you can use the following script.:runtime syntax/2html.vim There is also a perl package called text-vimcolor which you can call from CGIs. Example ViM rules! (from vim.org Tip#621) |
|
I am using LaTeX + BibTeX to write my thesis. The university editorial office told me that I should keep the contents of a reference in the same page. Here is a easy way to achieve this. Just add the following new definition of bibitem. \let\oldbibitem=\bibitem \renewcommand{\bibitem}{% \filbreak \oldbibitem } References: |
|
Not many people know there's a block comment functionality in MATLAB. %{ These are all commented. function call, for loop, everything. %} The default syntax file of vim 7 does not highlight these. Add the following lines to $VIM/syntax/matlab.vim syn region matlabBlockComment start=+%{+ end=+%}+ The syn region line has to come after the "syn match matlabComment" line.HiLink matlabBlockComment Comment |
|
MATLAB Version 7.0.0.19901 (R14) gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) Problem: C-MEX compiles without problems, but when trying to call the MEX the following error ocurrs. Unable to load mex file: /home/memming/code/cip/cip.mexglx. Work around from mathworks: suand restart MATLAB, recompile mex, and run it! |
|
Today, my friend had a problem of rotating a figure 90 degrees clockwise for his paper. But he only had the MATLAB figure, the ".fig" file, and no data. The easy and elegant way to do it is to get the data points out of the figure and redrawing the figure. So here we go. In MATLAB, there are axes in a figure, and plot objects in an axis. In the plot object, you can find the data. We can do this using only the 'get' method. Suppose we have a figure like this, and want to restore data from the figure. subplot(2,1,1); plot(1:10, sin([1:10]/5)); First, we find the axes. >> axs = get(gcf, 'Children') That's right. The two strange numbers are the pointer to each axis. Let's try to see what objects are in the first axis. >> pos = get(axs(1), 'Children') So there's one plot object in the axis. Let's see what properties it has. >> get(pos)XData, YData, ZData are the data in the object. Yes, that's what we need! Let's make another plot with 90 degrees CW rotation. X = get(pos, 'XData'); Consult MATLAB documentation 'Handle Graphics' for details. |