I have seen the previous discussion on this same issue before (see Theorem name and number in margin, note in text), however this did not resolve anything as clearly as I had hoped.
Basically, I would like to have a visible margin (i.e:- a vertical line) on the left hand side of the page. Within the margin, I would like the section numbers (but not the name), equations numbers, theorem names and their respective numbers, but I am a bit a newbie in LaTeX and am I unsure how to go about doing this.
An example with the symbol "|" denoting the position of the margin would be:
3.1. | Continuous Groups
|
Definition 3.1 | Lie Group:.....
(3.1.1.)| [SOME EQUATION HERE]
Definition 3.2 | Lie Algebra:....
Thank you in advance.
Just some points of clarification (updated, based on the comments)
1. The document is one-sided, so only the left-hand side margin is of relevance.
2. Any suggestions on which theorem packages will be more suitable are welcome.
Best Answer
I think the following does what you want.
The packages I have used are
esopic
to add the gray vertical bar to the margintitlesec
to customize the section numbers using\llap
ntheorem
to create a customized definition environment- you could equivalently useamsthm
, but I'm more familiar withntheorem
I've borrowed some code/ideas from
Code: