From dff6c40bdf736b509755edbab560bec9fbd5e591 Mon Sep 17 00:00:00 2001
From: Michael Wimmer <wimmer@lorentz.leidenuniv.nl>
Date: Fri, 30 Aug 2013 10:51:44 +0200
Subject: [PATCH] clarify shape function for leads in tutorial

---
 doc/source/tutorial/tutorial2.rst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/source/tutorial/tutorial2.rst b/doc/source/tutorial/tutorial2.rst
index e758a04..3fb0eeb 100644
--- a/doc/source/tutorial/tutorial2.rst
+++ b/doc/source/tutorial/tutorial2.rst
@@ -276,8 +276,10 @@ For the leads, we can also use the ``lat.shape``-functionality:
     :start-after: #HIDDEN_BEGIN_qwgr
     :end-before: #HIDDEN_END_qwgr
 
-Here, the shape must cover *at least* one unit cell of the lead
-(it does not hurt if it covers more unit cells).
+Here, the shape must be compatible with the translational symmetry
+of the lead ``sym_lead``. In particular, this means that it should extend to
+infinity along the translational symmetry direction (note how there is
+no restriction on ``x`` in ``lead_shape``) [#]_.
 
 Attaching the leads is done as before:
 
@@ -350,3 +352,5 @@ period of one flux quantum.
 .. [#] The corresponding vector potential is :math:`A_x(x,y)=\Phi \delta(x)
        \Theta(-y)` which yields the correct magnetic field :math:`B(x,y)=\Phi
        \delta(x)\delta(y)`.
+.. [#] Despite the "infinite" shape, the unit cell will still be finite; the
+       `~kwant.lattice.TranslationalSymmetry` takes care of that.
-- 
GitLab