Re: [O] trying to write a guidebook for students using org , need help with formating
Hi again all so i tried playing around with the latex options, read the Latex org manual part but still confused and i still get the lines cut. the one thing that did work was using this: begin{itemize} \item testing1 the long lines testing2 the long lines testing3 the long lines testing4 the long lines testing5 the long lines testing6 the long lines \item \item \item \item \end{itemize} but that seems very cumbersome, inserting it every time, writing the lines after the \items etc.. I am really content with using the org example method. is there no way to make the exporter to pdf (latex i guess) auto wrap lines? thx alot Z On Thu, Oct 24, 2013 at 5:53 PM, Xebar Saram zelt...@gmail.com wrote: Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or http://ctan.org/pkg/enumitem). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: http://TeX.stackexchange.com/q/10684. -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you Eric and Rick! Eric: The #+OPTIONS: \n:nil didn't do much here even using the default templates for export as suggested Rick: i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way to define wrapping text in the block? as you said using the block currently cuts off text towards the lines end Appreciate all the help from everyone. thanks alot! z. On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? Nearly correct -- we're the victim of unfortunate line wrapping. It should look like: #+OPTIONS: \n:nil Ie, with an extra space. If you're a novice, as you say, you might like to see the default options template for exporting. In your org buffer, hit C-c C-e to get to the export dispatcher, then hit # for template insertion, then pick default. It will be a lot easier to see and edit existing options than type them all in by hand. Yours, Eric On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Thank you Eric and Rick! Eric: The #+OPTIONS: \n:nil didn't do much here even using the default templates for export as suggested Sorry! Got it backwards -- it's meant to be \n:t But still, other responders are probably right that what you want is actually a different kind of text type: a list or an example block. E Rick: i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way to define wrapping text in the block? as you said using the block currently cuts off text towards the lines end Appreciate all the help from everyone. thanks alot! z. On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? Nearly correct -- we're the victim of unfortunate line wrapping. It should look like: #+OPTIONS: \n:nil Ie, with an extra space. If you're a novice, as you say, you might like to see the default options template for exporting. In your org buffer, hit C-c C-e to get to the export dispatcher, then hit # for template insertion, then pick default. It will be a lot easier to see and edit existing options than type them all in by hand. Yours, Eric On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? best z On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen e...@ericabrahamsen.netwrote: Xebar Saram zelt...@gmail.com writes: Thank you Eric and Rick! Eric: The #+OPTIONS: \n:nil didn't do much here even using the default templates for export as suggested Sorry! Got it backwards -- it's meant to be \n:t But still, other responders are probably right that what you want is actually a different kind of text type: a list or an example block. E Rick: i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way to define wrapping text in the block? as you said using the block currently cuts off text towards the lines end Appreciate all the help from everyone. thanks alot! z. On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? Nearly correct -- we're the victim of unfortunate line wrapping. It should look like: #+OPTIONS: \n:nil Ie, with an extra space. If you're a novice, as you say, you might like to see the default options template for exporting. In your org buffer, hit C-c C-e to get to the export dispatcher, then hit # for template insertion, then pick default. It will be a lot easier to see and edit existing options than type them all in by hand. Yours, Eric On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long). What would you like it to look like, in the end? E On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thank you Eric and Rick! Eric: The #+OPTIONS: \n:nil didn't do much here even using the default templates for export as suggested Sorry! Got it backwards -- it's meant to be \n:t But still, other responders are probably right that what you want is actually a different kind of text type: a list or an example block. E Rick: i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way to define wrapping text in the block? as you said using the block currently cuts off text towards the lines end Appreciate all the help from everyone. thanks alot! z. On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: Xebar Saram zelt...@gmail.com writes: Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? Nearly correct -- we're the victim of unfortunate line wrapping. It should look like: #+OPTIONS: \n:nil Ie, with an extra space. If you're a novice, as you say, you might like to see the default options template for exporting. In your org buffer, hit C-c C-e to get to the export dispatcher, then hit # for template insertion, then pick default. It will be a lot easier to see and edit existing options than type them all in by hand. Yours, Eric On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an # +attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? Hi Xebar, This does seem to be getting rather complicated. Does the adapted version of your file below give you the kind of result you want? It will probably get munged in the sending atb Glyn ex_l1.1.org Description: Lotus Organizer
Re: [O] trying to write a guidebook for students using org , need help with formating
Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ i just want all the line to appear in the pdf and not get cut (that is have it auto wrap when the like nears a paper edge) 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? i really appreciate all the help, you guys are great help! z. On Wed, Oct 23, 2013 at 5:23 PM, Glyn Millington glyn.milling...@gmail.comwrote: Xebar Saram zelt...@gmail.com writes: Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? Hi Xebar, This does seem to be getting rather complicated. Does the adapted version of your file below give you the kind of result you want? It will probably get munged in the sending atb Glyn
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com 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
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Thanks again guys Rick: But a better approach would be to define your own latex list environment for program steps and use lists: ive never used latex, do you mind expanding on that a bit? Eric: I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long) this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ Oh I see -- it's latex that cuts those lines off, not the org exporter. You'll probably want to go the list route then. See this link for how to create a custom list environment: http://www.troubleshooters.com/linux/lyx/ownlists.htm Then do this in org, replacing bogus with the name of your new environment: #+ATTR_LATEX: :environment bogus - this is a - list with some - items in it Hope that gets you there! Eric
[O] trying to write a guidebook for students using org , need help with formating
Hi all i decided to dive into the deep water and get rid of M$ word once and for all. I'm still an org novice but since i love org i choose org for the task. I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines thx alot Z. ex_l1.1.org Description: Binary data
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Hi all i decided to dive into the deep water and get rid of M$ word once and for all. I'm still an org novice but since i love org i choose org for the task. I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? Hi there, I've never used this, but I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS: \n:nil and see what happens... Eric
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Hi all i decided to dive into the deep water and get rid of M$ word once and for all. I'm still an org novice but since i love org i choose org for the task. I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? Hi there, My quick fix for this was to save a macro and then bind it to a key. From init.el Saved macros ;; Saved macro - adds latex end-lines to verse passages (fset 'versify [?\C-a ?\C-e ?\\ ?\\ down]) (global-set-key (kbd s-v) 'versify) I can fix a lot of lines very quickly with this :-) atb Glyn
Re: [O] trying to write a guidebook for students using org , need help with formating
On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? best Z On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] trying to write a guidebook for students using org , need help with formating
On 2013-10-22 03:55, Xebar Saram wrote: Hi all i decided to dive into the deep water and get rid of M$ word once and for all. I'm still an org novice but since i love org i choose org for the task. I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \ at the end. What am i missing here? I think you are thinking about this in the wrong (microsoft word :) way: format vs. semantic structure. A series of steps should either be a list, or an example block. For instance in your sample, try: #+BEGIN_EXAMPLE Right click on the table name in the TOC panel – Table of Contents and then chose Display XY data; Define the X,Y coordinate and data (Z) fields; Click Edit to define the coordinate system (use WGS84); Click OK; Right click on the event layer newly created, go to data-export data, specify a location and give the layer a name [remember: events are a temporary layer, unless you save it as a shape file, it will disappear and you will not be able to use it next time]; add it a s new layer to your project, when asked. #+END_EXAMPLE or (since the lines above are too long to fit w/o truncating or wrapping, - Right click on the table name in the TOC panel – Table of Contents and then chose Display XY data; - Define the X,Y coordinate and data (Z) fields; - Click Edit to define the coordinate system (use WGS84); - Click OK; - Right click on the event layer newly created, go to data-export data, specify a location and give the layer a name [remember: events are a temporary layer, unless you save it as a shape file, it will disappear and you will not be able to use it next time]; add it a s new layer to your project, when asked. Think about the contents semantically (e.g., something is descriptive text, or a series of steps, or a code example), instead of how you think it should look and let org and latex may it look right. rick
Re: [O] trying to write a guidebook for students using org , need help with formating
Xebar Saram zelt...@gmail.com writes: Thank you all I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens... that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? Nearly correct -- we're the victim of unfortunate line wrapping. It should look like: #+OPTIONS: \n:nil Ie, with an extra space. If you're a novice, as you say, you might like to see the default options template for exporting. In your org buffer, hit C-c C-e to get to the export dispatcher, then hit # for template insertion, then pick default. It will be a lot easier to see and edit existing options than type them all in by hand. Yours, Eric On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook form there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines I think you are better off trying to do this with a specialised LaTeX class. A quick search led me to this TeX.SX question: http://tex.stackexchange.com/q/3852. You could also try using lists, just disable the bullets with an option in an #+attr_latex line. GL, -- Suvayu Open source is the future. It sets us free.