Jul 06

I want to change my list enumerator style from 1, 2, 3 to be like (1), (2), (3) … in LyX. Here how I change it in Lyx:

In preamble Latex, add this line:

\usepackage{enumerate}
\renewcommand{\labelenumi}{(\arabic{enumi})}

Continue reading »

Jul 03

I’ve been searching for a while, how to make my table of contents have a clickable links in my pdf output. Today I found out, it is very easy, and only need hyperref package. This package only works for pdf output (I tried to postscript output, and when it converted to pdf, the table of content didn’t have links)

Here is how to make it, add in Latex Preamble:

\usepackage {hyperref}

or
Continue reading »

Jun 26

I don’t try this tips yet, but I know that someday I will adding a new file style on my TeX. I found this site in bahasa that explain how to add a file style (.sty) on LaTeX.

In LyX, my .sty files are in folder :
/usr/local/teTeX/share/texmf.tetex/tex/latex

Here is the steps: (just in case those page not exist anymore, I will rewrote here)
Continue reading »

Jun 26

Bullet in Lyx
I get bored with the default bullets style. I found out there are many other styles we can choose for our bullets. From Lyx, just go to menu Documents – Settings…, and choose the Bullets section.

If you don’t use LyX, here the TeX code, dont forget to usepackage pifont.sty to make this code work on your documents :
\renewcommand{\labelitemi}{\ding{43}}

or, if you only want to change one list (not for the whole document), try this one:
Continue reading »

Jun 26

I have too many tables, figures and equation in my document. The default caption numbering is always increasing (so if I have 100 figures, then I would have caption Figures – 100). I want to restart numbering for each section so I can recognize which section the figures belong to.

Here how I change it.

In Latex Preamble (Or from LyX go to menu Document – Settings.. in tab Latex Preamble)

\renewcommand{\thefigure}{\thesection-\arabic{figure}}
\renewcommand{\thetable}{\arabic{section}.\arabic{table} }
\renewcommand{\theequation}{\thesection-\arabic{equation}}

Continue reading »

Jun 25

I learn to write documentation with LyX and LaTeX recently. I will write some notes here to remind me of what I have learned. I will add some document example later on.

To make comment:
Continue reading »