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