Difference between revisions of "Manual Bibliography"
Jump to navigation
Jump to search
(Splitted from simple bibliography) |
(also enable start/stopbibitem) |
||
Line 3: | Line 3: | ||
<texcode> | <texcode> | ||
\definereferenceformat[cite][left={[},right={]}] | \definereferenceformat[cite][left={[},right={]}] | ||
− | \defineitemgroup [bibliography | + | \defineitemgroup [bibliography] |
− | \setupitemgroup [bibliography] | + | \setupitemgroup [bibliography][each] |
[symbol=n, | [symbol=n, | ||
left={[}, | left={[}, | ||
Line 14: | Line 14: | ||
\appendtoks | \appendtoks | ||
− | + | \let\bibitem \itemgroupitem | |
+ | \let\startbibitem \startitemgroupitem | ||
+ | \let\stopbibitem \stopitemgroupitem | ||
\to \itemgroupcommands | \to \itemgroupcommands | ||
</texcode> | </texcode> |
Revision as of 11:21, 4 December 2015
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.