
Success
Disclaimer: I love that image and would have found other excuse to use it

So, after struggling with you word processor to get an acceptable format you decide to hunt the repos (you're using Linux, right?) for a better alternative. We already know why would you choose LyX but why would you choose LaTeX?
As previously stated, programmers will be more comfortable around plain LaTeX but that's not the only pre requisite - you should be somewhat familiar with the console in Linux (no idea about LaTeX on Windows) and have some patience to read a couple of manuals. Once you have mastered the basics it's much easier, so don't get discouraged.
If you feel you don't fit the profile perhaps LyX is a better alternative than plain LaTeX; it's very easy to use and quite user friendly. It won't be that great for presentations and other, more "advanced", documents though.
That's an easy one, check My Articles section for some examples. You can create any kind of document but it's better suited for those in which you care most about the content and don't want to get bogged down with pesky design details.
Last (for this entry) but not least, what editor can you use to create LaTeX documents? Well, LaTeX is basically plain text so any editor will do. There are some LaTeX-specific editors, I like ViM myself. There'll be a complete post dedicated to LaTeX + Vim, coming soon.
This article will be the first in a series of LaTeX survival guide so stay tuned.
Check the other two parts of this series:
I recently updated to Ubuntu 9.04 and had to reinstall my work computer. Since the stuff I use for work (mostly c++ programming) was left out in the previous two posts I'll post it here:
sudo apt-get install g++ gdb build-essential g++-4.2 omniorb4 omniidl4-python omniidl4 libxerces-c2-devsudo apt-get install vim gvim vim-common vim-doc vim-full vim-gnome vim-gtksudo apt-get install ddd devhelp doxygen doxygen-gui exuberant-ctags ctags subversionsudo apt-get install ifstatsudo apt-get install antiwordDone, a couple of apt-get's and you are ready to build your c++ projects! (Ok, actually only the first one is needed, the others are nice-to-have programs).
|
Some time ago I wrote a review about LyX for DPOTD (recommended link) and now I think it's time for an update: what can you do when LyX is not enough?
What LyX isn’t for
Although LyX may be a valuable piece in anyone toolkit it’s worth noticing it isn’t exactly the Swiss army knife of the text editors. If you need to define a very customized layout or format, like slides for a presentation, this is the wrong tool for the job.
There's normal mode, command mode and a third, less known to the beginners, visual mode. What's this mode about?
Using Vim on visual mode can make some rather complex tasks and regex operations go away with a couple of keystrokes and it's as easy as selecting the text you want with the cursor.
Move your cursor over the first part of the text you're trying to select and press Ctrl + V to set Vim to visual mode, then move the cursor to the last part of the text you're trying to select (it works in blocks, not character by character nor line by line... try it, it's easier than it may seem).
What can you do after selecting text this way? Pretty much anything else you'd do with normal text, like cut (x) and paste (p). This is specially useful when working with formatted text (i.e. programming).
Visual mode can also work with lines (use Shift + V instead. Notice the uppercase V) and with other modes; check the manual for more information.
In normal mode, move the cursor to any word. How do you search for the next occurrence of that word?
Press the * key to search forwards for the current word, or press # to search backwards.
Using * or # searches for the exact word at the cursor (searching for rain would not find rainbow).
Use g* or g# if you don't want to search for the exact word.
Con motivo del FLISOL voy a estar dando con Juanman (de GNUTN, el LUG de la UTN) una versión actualizada de la charla GNU/Linux: Introducción y Programación Gráfica (link al post original) que ya dimos en la UTN el año pasado, con muy buenos resultados.
La charla, que a pedido del departamento de marketing ahora se llama GNU/Linux: Guía de supervivencia, va a ser el sábado 25 de abril del 2009 en FM La Tribu, Lambaré 873, de 12:45 a 13:30 (link al programa completo). Dejo un link a la presentación que estaremos utilizando.
Quedan todos invitados!
Set a marker if you whish Vim to remember a cursor position Use m* to mark current position (use a to z for position names) and then '* to move to mark * (again, a to z).
This trick can be very useful when editing a large file (or lots of files) in case you need to quickly edit something and then return to the previous spot.
Clik-click tap, clik-click tap, clik-click tap. A team mate is performing some kind of repetitive operation with text and it's becoming more and more annoying. Good news, there's a way to keep your mental sanity and help this guy to be more productive: replace him with a sed/awk script teach him how to use Vim macros!
Vim macros can repeat for you a sequence of commands. Press qq to start recording, then q again to stop. Use @q to execute a macro. Let's try it:
This - random garbage
is - random garbage
a - random garbage
sample - random garbage
text - random garbage
So, how would you get rid of the random garbage? Move the cursor to the beggining of the first line, press qq to start recording then f- to move the cursor to the dash and d$ to delete the rest of the line. Now move the cursor to the begging of the next line (0j) and press q to stop recording. Now press 4@q to repeat the macro for times and check the results; you should have something like this:
This
is
a
sample
text
Neat, huh? You can also store any number of macros using a different letter after the q to start recording, for example qn to record and @n to execute. Also, use @@ to execute once again the last executed macro (from any buffer).
There are some more things you can do with macros (like editing before executing one) but the best source for that is the manual.
Update: There's a new Valgrind suppressions file @ this link.
Working [1] on a C++ project with Oracle I found that Valgrind reported lots of warnings related to OCI, for which, regardless of being false positives [2] or not, there's little I can do about (other than migrating to MySQL, that is). As the error report kept growing I found that Valgrind will refuse to keep track of new errors after a million or so:
More than 1000000 errors detected. I'm not reporting any more. Final error counts may be inaccurate. Go fix your program!
The solution in this case is a suppresions file for Valgrind. After spending a good deal of time unsuccsesfuly trying to get one I had to do it myself and upload it for the next one to run into this problem:
Link to the file: Valgrind / OCI suppressions.
Let's face it, Vim is the best editor in the world, and from now on there'll be a spot in the homepage with a "Vim Tip of the Week" (check the sidebar).
For the first one a basic tip: Moving to a letter
While in command mode press ' f' and any other letter; the cursor will move to the first occurence of this letter. This can be combined with other commands and a number of repetitions (e.g. ' d2f.', to delete until the second dot).
As a sidenote, I guess there must be a Word Press plugin to display the latest post in a category but I coudn't find it, so I hacked my own: tip-of-the-week
Subo una presentación que usamos para dar una charla de introducción a GNU/Linux en la UTN a principios del 2008 con el grupo GNUTN, orientada al desarrollo. La charla salió muy bien pero todavía no hubo quorum para armar una nueva.
También dejo link en la sección de artículos.
Una presentación que armé para el trabajo con una introducción a Valgrind, herramienta para profiling y debugging, principalmente para C/C++ en Linux (es posible usarlo con otros lenguajes pero nunca probé): Link al artículo (PDF)
También dejo el link en la sección de artículos.
sudo apt-get install lyxsudo apt-get install tildasudo apt-get install mmvsudo apt-get install uncluttersudo apt-get install katapultsudo apt-get install mocsudo apt-get install knetworkmanager xdiskusage iptraf sshfs apt-listbugsapt-get install ffmpeg shntool cuetools flac wavpack unrar vlcapt-get install conky libxext-dev lm-sensors build-essential checkinstall wmctrl