Difference between revisions of "Manual Bibliography"

From Wiki
Jump to navigation Jump to search
(also enable start/stopbibitem)
m (add links)
Line 1: Line 1:
 +
< [[Bibliography|Bibliography MkII]] | [[Bibliography_mkiv|Bibliography MkIV]] >
 +
 
Here is manual approach for simple bibliographies.
 
Here is manual approach for simple bibliographies.
  
Line 30: Line 32:
 
</texcode>
 
</texcode>
  
and use <code>\cite[ref1]</code> etc to refer to bibliography items.
+
and use <cmd>cite[ref1]</cmd> etc to refer to bibliography items.
 +
 
 +
[[Bibliography_mkiv#Simple_manual_bibliography|Here’s a similar approach]] using {{cmd|definedescription}}.

Revision as of 21:35, 27 March 2017

< Bibliography MkII | Bibliography MkIV >

Here is manual approach for simple bibliographies.

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

\appendtoks
	\let\bibitem             \itemgroupitem
	\let\startbibitem       \startitemgroupitem
	\let\stopbibitem        \stopitemgroupitem
\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.

Here’s a similar approach using \definedescription.