2013/04/04

Two column nomenclature in LyX


(Source: http://tex.stackexchange.com/questions/81631/two-column-nomenclature-breaks-ability-to-have-sub-floats)

To generate two column nomenclature, include the following settings in LyX LaTeX Preamble:




% Two column nomenclature ========================
\usepackage{multicol}

\makeatletter
\@ifundefined{chapter}
{\def\wilh@nomsection{section}}
{\def\wilh@nomsection{chapter}}

\def\thenomenclature{%
\begin{multicols}{2}[%
\csname\wilh@nomsection\endcsname*{\nomname}
\if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi
\nompreamble]
\list{}{%
\labelwidth\nom@tempdim
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\itemsep\nomitemsep
\let\makelabel\nomlabel}%
}
\def\endthenomenclature{%
\endlist
\end{multicols}
\nompostamble}
\makeatother

% Two column nomenclature ========================

2013/04/01

"pdflatex" problem when using "ipe" on Mac

Ipe can be installed on Mac by using MacPorts .

But when I use latex equations in Ipe, it says "An error occurred during the Pdflatex run"

This is simply because "pdflatex" is not in system path, although some latex editors can find it by themselves.

Solve the problem by adding the path of "pdflatex" in .profile file. In my computer pdflatex is located at "/usr/texbin/", so simply add the following line in .profile:

export PATH=/usr/texbin/:$PATH  

2013/01/13

Enable the global terminal colors in Mac Mountain Lion

Simply add the following two line to ".profile"


export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

CLICOLOR=1 simply enables coloring of your terminal.
LSCOLORS=... specifies how to color specific items.

"Emacs basics: Changing the background color" by Sacha Chua

From: http://sachachua.com/blog/2009/01/emacs-basics-changing-the-background-color/

To change the background color and other attributes, use the command M-x customize-face, and specify default as the face to customize. Change the attributes and the sample text will reflect your settings. When you are satisfied, select Save for future sessions. Your changes will be saved to ~/.emacs and reloaded the next time you start the editor.