I have prepared a customized class for writing scientific articles, containing listings of programs, algorithms, etc. It consists of the following files:
And one more class for my PhD thesis:
I have prepared a generic Makefile for LyX/LaTeX documents, called latex.mk. In order to use it prepare a simple Makefile containing just:
include latex.mk
Then type:
# make help
The Makefile can locate your source file (either LyX or LaTeX), export it if necessary and then compile:
# make final
# make finalps
# make export
# make figs
# make clean
You can even simplify usage of it by defining the following function in your shell (let it be Bash):
function mk() {
if [ -f Makefile ]
then
make "$@"
else
make -f $HOME/path/to/latex.mk "$@"
fi
}
Then you do not have to create Makefile, just type:
# mk final
In this paper (in Polish) I have presented a set of tools that may be used to work on documents in a group of people in a heterogeneous environment (e.g. mixture of Linux and Windows systems).
If you want to put multiple pages of an existing PDF document on a single sheet use the scripts from pdfjam package. For example, when producing a handout of my presentations I run:
# pdfnup --nup 2x2 --paper a4paper --frame true --scale 0.96 \
--delta "2mm 2mm" doc.pdf
I use pdfnup also for scaling documents (e.g. LNCS papers):
# pdfnup --nup 1x1 --scale 1.2 doc.pdf
Use package ulem, eg.:
\usepackage[normalem]{ulem}
...
Ala \sout{nie} ma kota
The option normalem saves the standard emphasizing command (by default it is changed to underline). The other commands are: uline for multiline underlining, uuline for double underlining, uwave for wavy underline.
I recommend replacing replacing standard Computer Modern constant width font with for example: Bera Mono or Luxi Mono. These are very nice, scalable fonts. They have bold variants and contain complete set of polish characters. In order to install it in unix systems, run latex-font-inst.sh script.
If you want to get a mirrored output use the crop package, and the command crop. Here is an example:
\usepackage[a4,center,cam,mirror]{crop}
Key generation algorithm: