TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the tufte-latex document class with LyX and would like to adjust the positions of some "footnotes" in my document by specifying an offset. I understand that I can do this manually by replacing the footnote that appears in LyX (which generates \footnote{...} in the source) with the code


but am wondering whether there is a way to do this through the LyX UI so that I don't have ERT cluttering up the document (yes, I know; but that's what LyX is for). Many environments and commands in LyX provide simple ways to add options in this way (e.g. enumitem lets you add options with Insert > Short Title) but I don't see how to do it for footnotes.

share|improve this question
up vote 3 down vote accepted

You could write a module looking roughly like this:

#Inserts sidenotes in the output.
# Author: Florian Rubach

Format 11

InsetLayout sidenote
    LyXType               custom
    LabelString           "Sidenote"
    LatexType             command
    LatexName             sidenote
    Decoration            classic
      Color               cyan
      Size                Small
    MultiPar              false
    OptionalArgs          2

Save this to a file named sidenotes.module, put it in your lyx user directory under the folder layouts (on win7 something like C:\Users\YOURNAMEHERE\AppData\Roaming\LyX2.0\layouts, can be seen by pressing help>about LyX in the main menu).

Then, you need to reconfigure LyX via Tools>reconfigure and restart it.

You can then add the new module via Document>Settings>Modules.

Inserting a sidenote works then by pressing Insert>Custom>Sidenote. Unfortunately, it does not accept optional arguments right now, which can otherwise be inserted the lyx way via Insert>short title. I'll inquire about this.

share|improve this answer
Inquiring at the lyx mailing lists resulted in the answer, that optional arguments are currently only supported for styles, not for InsetlLayouts... – Florian Rubach Mar 1 '12 at 7:11
Thanks. This seems to do exactly what the Tufte class already does. – raxacoricofallapatorius Mar 1 '12 at 17:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.