Turgut Durduran's Site -- about Cyprus, Photography, Linux, LaTeX, Human Rights, Politics ...

Frontpage | Hamamboculeri | Research| My Flickr
my Flickr home :: LaTeX

Tue, 24 Oct 2006

Writing (SI) units in LaTeX in a better way

Generally I do not bother with aesthetics of the units I use but today from comp.text.tex newsgroup I found that there is a "sistyle" package for that purpose. It also handles numbers and angles nicely too! The example given there was the following.

\usepackage{sistyle}

.... 

\SI{5.9}{mJ/cm^2}

 documentation: http://www.ctan.org/tex-archive/macros/latex/contrib/SIstyle/doc/latex/SIstyle/SIstyle-2.1.pdf

to download:  http://www.ctan.org/tex-archive/macros/latex/contrib/SIstyle/

See more ...

[/LaTeX] permanent link: individual ||permanent link: story || permanent link: category


Tue, 19 Sep 2006

Redefining "\ref" in latex to be more friendly

I just decided not to be lazy and finally got this done. the following will produce "Section 1" when you say "\Sref{sct:mysection}". There is "fancyref" on CTAN that does better job but I doubt I will ever stick to its rules.

%stolen from lhelp implementation on CTAN (if need be use that package)

\makeatletter   

\newcommand{\cref}[1]{\textbf{chapter~\ref{#1}}}
    \newcommand{\Cref}[1]{\textbf{Chapter~\ref{#1}}}
    \newcommand{\sref}[1]{\textbf{section~\ref{#1}}}
    \newcommand{\Sref}[1]{\textbf{Section~\ref{#1}}}
      \newcommand{\aref}[1]{\textbf{appendix~\ref{#1}}}
      \newcommand{\Aref}[1]{\textbf{Appendix~\ref{#1}}}
      \newcommand{\fref}[1]{\textbf{figure~\ref{#1}}}
      \newcommand{\Fref}[1]{\textbf{Figure~\ref{#1}}}
      \newcommand{\tref}[1]{\textbf{table~\ref{#1}}}
      \newcommand{\Tref}[1]{\textbf{Table~\ref{#1}}}
      \newcommand{\pgref}[1]{\textbf{page~\pageref{#1}}}
      \newcommand{\Pgref}[1]{\textbf{Page~\pageref{#1}}}
      \newcommand{\phref}[1]{\textbf{photo~\ref{#1}}}
      \newcommand{\Phref}[1]{\textbf{Photo~\ref{#1}}}
\makeatother

See more ...

[/LaTeX] permanent link: individual ||permanent link: story || permanent link: category


TeXMed: PubMed to BiBTeX convertor

I had forgotten about this little utility. It is  a very useful one when converting a chunk of references to bibtex from an online database. There are various other ways of doing that (e.g. Bibus, bibutils etc) but I particularly find this one reliable. It is available for download at: http://www.sbg.bio.ic.ac.uk/~mueller/TeXMed/ and a quick google search will reveal a bunch of sites running it that you can use/try. 

See more ...

[/LaTeX] permanent link: individual ||permanent link: story || permanent link: category


Mon, 01 May 2006

perlTeX

I had noticed perlTeX before but it did not occur to me how powerful it may be. I suggest it to everyone interested in automatizing their document generation, from http://www.ctan.org/tex-archive/macros/latex/contrib/perltex/

" PerlTeX is a combination Perl script (perltex.pl) and LaTeX2e style file (perltex.sty) that, together, give the user the ability to define LaTeX macros in terms of Perl code. Once defined, a Perl macro becomes indistinguishable from any other LaTeX macro. PerlTeX thereby combines LaTeX's typesetting power with Perl's programmability."



See more ...

[/LaTeX] permanent link: individual ||permanent link: story || permanent link: category