From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glyn Millington Subject: Re: trying to write a guidebook for students using org , need help with formating Date: Wed, 23 Oct 2013 23:15:24 +0100 Message-ID: <87iownbpmr.fsf@nowhere.org> References: <20131022093943.GX6656@kuru.dyndns-at-home.com> <87iowokdi5.fsf@ericabrahamsen.net> <87eh7cgybu.fsf@ericabrahamsen.net> <87li1koyl7.fsf@nowhere.org> Reply-To: glyn.millington@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZ6jx-0005K4-WA for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 18:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZ6jq-0007d8-CS for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 18:17:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:53981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZ6jq-0007cw-22 for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 18:17:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VZ6jp-0008WR-7P for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 00:17:13 +0200 Received: from cust25-dsl91-135-3.idnet.net ([91.135.3.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Oct 2013 00:17:13 +0200 Received: from glyn.millington by cust25-dsl91-135-3.idnet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Oct 2013 00:17:13 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Xebar Saram writes: > Glyn: thx alot for the example. That does work but then i really hate > manually having to add the '-' at the start of each page and then also > indenting each line, is there a solution for that? My problem is that I know a little LaTeX and less lisp! I would just do this the hard way. If I was driven to automate it slightly, then not being aware of an org-mode solution I would use latex, like this. 1. Make a file, xebar-bullets.tex, which contains this latex snippet \begin{itemize} \item Start typing here .... \item This is the next item you can make these lines as long as you like!! \item \item \item \item \item \item \item \item \item \item \item \item \item \item \end{itemize} save it somewhere safe, where you store templates etc 2. Write a function in your .emacs or init.el file like this (defun xebar-bullets () "This inserts the LaTeX \itemize environment into a document - LaTeX will take care of the wrapping of each item for me" (interactive) (insert-file-contents "/home/xebar/templates/xebar-bullets.tex")) Save this. Evaluate it. 3. Add a key-binding, again in .emacs or init.el, to call this where you want it. s-d is the Super key plus d, or pick another - again evaluate it. (add-hook 'org-mode-hook (lambda () (local-set-key (kbd "s-d") 'xebar-bullets))) Then when you want to add a list of instructions as in your sample doc, just hit s-d and start typing at the first item. You can make the lines as long as you like, and when you export, LaTeX will deal with 'em! If you need more items, just add them in. I've spelled this out because you said you didn't know about LaTeX - forgive me if it is more info than you need. atb Glyn