Had this problem today with my thesis proposal, and luckily the solution is not hard to find:
http://mathandprogramming.blogspot.com/2011/07/latex-centering-table-larger-than.html
You basically need to use a package called chngpage and add an environment surrounding the table:
% allows for temporary adjustment of side margins
\usepackage{chngpage}
\begin{table}
\begin{adjustwidth}{-.5in}{-.5in}
\begin{center}
\begin{tabular}{|c|}
% really wide table here
\end{tabular}
\caption{This way the caption will also be the same width as the table, wider than the other text. }
\label{myTable}
\end{center}
\end{adjustwidth}
\end{table}
2012年10月5日星期五
2012年9月25日星期二
Find and replace a word in all the text document
So some day I need to replace a word to another one for all the XML file in a folder. I was like OK I'll write a C++ code. There goes another hour of my working time then.
Then I received this piece of code from a colleague:
find . -name "*.xml" -exec perl -pi.org -e 's/DICOMIO/CartoXP/' {} \;
Then I received this piece of code from a colleague:
find . -name "*.xml" -exec perl -pi.org -e 's/DICOMIO/CartoXP/' {} \;
Works like a charm.
Also, a linux command line to check how many cores do you have:
cat /proc/cpuinfo | grep processor | wc -l
cat /proc/cpuinfo | grep processor | wc -l
2012年7月6日星期五
I just need to share this one....
So today I was browsing 9GAG, saw a post like: telnet this and enjoy, starwars fans :-)
So I tried:
telnet towel.blinkenlights.nl
Most epic ASCII stuff ever made.
So I tried:
telnet towel.blinkenlights.nl
Most epic ASCII stuff ever made.
订阅:
博文 (Atom)