Changes

Jump to navigation Jump to search
231 bytes added ,  08:50, 19 September 2015
m
Link to sample pages again available
----
I wrote a biochemistry textbook in ConTeXt and would like to share the code. There is nothing special in it, but it might be useful to beginners. The book was compiled in Mk II, of course. Anything slightly non-trivial was contributed by experts, especially Wolfgang. You can download 8 sample pages from "http://www.ogbaselrepetitorium-biochemie.ch/Downloads/hagmann_biochemistry.pdf" '''LINK TEMPORARILY UNAVAILABLE'''.
</texcode>
'''New''': This and the following definitions don't work with recent (mkIV) versions of context. Instead, use <texcode>\define[2]\YourCommand{\framed[frame=off, etc...code as before}</texcode> '''Section titles'''. Red numbers and black title on top of a gray background. The problem was long titles: how to get the text properly aligned (if you don't do anything, the text of the second line will be left-aligned, under the section number). The solution was provided by Wolfgang Schuster(but see "New" above):
<texcode>
</texcode>
'''Subsections'''. "sans serif" on a gray background, but no numbering. The publisher wanted some distance between the left and the beginning of the subsection text, so I used Wolfgang's trick again(but see "New" above):
<texcode>
17

edits

Navigation menu