Manual Bibliography

From Wiki
Revision as of 09:55, 13 October 2012 by Zenlima (talk | contribs) (Splitted from simple bibliography)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here is manual approach for simple bibliographies.

\definereferenceformat[cite][left={[},right={]}]
\defineitemgroup [bibliography] [levels=1]
\setupitemgroup  [bibliography] 
                 [symbol=n,
                  left={[},
                  right={]},
                  width=1.5em,
                  stopper=,
                  itemalign=flushright,
                  inbetween={\blank[4pt]}]

\appendtoks
  \let \bibitem \itemgroupitem
\to \itemgroupcommands

Now you can use

\section{References}
\startbibliography
  \bibitem[ref1] This is my first reference
  \bibitem[ref2] This is the second reference
\stopbibliography

and use \cite[ref1] etc to refer to bibliography items.