[O] Highlighting text for HTML mark tag export?

2014-08-04 Thread 'Mash

Just been looking around and I have not come across a way to highlight
text in org-mode to be HTML exported as the mark.../mark tags?

Anyone know if this exists?

Thanks,

--
'Mash



[O] Preventing Tramp from executing on agenda command?

2014-02-03 Thread 'Mash
Morning,

I have an agenda file which contains a URL with port
(https://example.example.com:2000) which unfortunately Tramp attempts
to connect to when I pull the agenda, causing Emacs to hang.

Any idea why this is happening by default?

Thanks,

'Mash



Re: [O] org-agenda-files defvar directory evaluation ?

2013-06-10 Thread 'Mash

Resolved this via stackoverflow.

(setq org-agenda-files (list org-dir))

http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834

Quoting 'Mash mash...@toshine.net:


Sorry not quite sure how to phrase the problem in the subject line there.

I have the following setup in my .emacs ...

(defvar org-dir /home/mash/read/org/)

And use it around such as ...

(setq org-directory org-dir)
(setq org-default-notes-file (concat org-dir mash.org))

Now I understand that you can specify a directory such as ...

(setq org-agenda-files '(/home/mash/read/org/))

But how would I do this with the variable?

(setq org-agenda-files '(org-dir))
(setq org-agenda-files '(,(org-dir))

Any ideas as I would like to use it in my capture templates too ...

(setq org-capture-templates
  '(
(t Test entry (file+headline (concat org-dir test.org test)
 * %?)
))



Many thanks,

'Mash



'to life is doxology | http://toshine.org




Re: [O] org-agenda-files defvar directory evaluation ?

2013-06-10 Thread 'Mash

Thanks,

I did use a comma to evaluate the variable but without the backtick  
which I believed caused that old style backticks warning.


Quoting Nick Dokos ndo...@gmail.com:


'Mash mash...@toshine.net writes:


Resolved this via stackoverflow.

(setq org-agenda-files (list org-dir))



Equivalently

  (setq org-agenda-files `(,org-dir))

That's a backquote (on a US keyboard, it's the key to the left of the
1 key in the top row), not a normal quote. See

  (info (elisp) Backquote)

The (list org-dir) form is quite readable here, but when things get
more complicated, the backquote form tends to be more readable than
manufacturing list structure by hand.



http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834

Quoting 'Mash mash...@toshine.net:




...
But how would I do this with the variable?

(setq org-agenda-files '(org-dir))
(setq org-agenda-files '(,(org-dir))



--
Nick








[O] org-agenda-files defvar directory evaluation ?

2013-06-07 Thread 'Mash
Sorry not quite sure how to phrase the problem in the subject line there.

I have the following setup in my .emacs ...

(defvar org-dir /home/mash/read/org/)

And use it around such as ...

(setq org-directory org-dir)
(setq org-default-notes-file (concat org-dir mash.org))

Now I understand that you can specify a directory such as ...

(setq org-agenda-files '(/home/mash/read/org/))

But how would I do this with the variable?

(setq org-agenda-files '(org-dir))
(setq org-agenda-files '(,(org-dir))

Any ideas as I would like to use it in my capture templates too ...

(setq org-capture-templates
  '(
(t Test entry (file+headline (concat org-dir test.org test)
 * %?)
))



Many thanks,

'Mash



Re: [O] Org as a static site generator

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-01 13:12+0200, David Engster wrote:
 I'd like to use Org as a static site generator. I know quite a few
 people use Org to manage their sites, so I'd like to know what's already
 available and what I'd need to add to make this working properly.

 I know of course how to export a bunch of Org files to HTML through the
 publishing features. However, that's not really cutting it, I'm afraid.

 Thing of a typical HTML5 template having a header, nav, footer,
 and article. I'd like Org to include the different exported files into
 the article section, and the rest to remain the same. The nav would
 contain a global navigation menu, also highlighting the current active
 section (though CSS, no JS please).

 Has anybode done something like this?

 -David


I rolled my own called Orgile.

http://toshine.org/etc/orgile-emacs-org-mode-file-html-parser-php-publishing-tool/

I would love someone to help me develop classOrgile.php the org-mode
file to HTML parser can be used as a stand-alone PHP class in what
ever tool you want.

I am not much of a developer so this is a garden-shed effort, but as
you can see with http://toshine.org it turned out pretty clean, and
allows me to stay in Emacs and just push up the .org file via Git and
Orgile does the rest.

Note: I have tweaked my current Orgile code on my current site versus
the public version on github, so may need to compare the two and
republish to github.

'Mash



[O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
I was wondering if it was possible at all to use like a variable within a
document that would reference a table cell, and could then be
dynamically updated when the table cell was?

The reason I ask is that I would like to have have tabular data held
in another document and then write my document referencing and
including the data within the text, so I only have to change the
external data and the document would be updated automatically.

Example...

#+TBLNAME: example
|-+-|
| Foo | Bar |
|-+-|
|  22 | 43  |
|  44 | 54  |
|-+-|

Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing elit. 
Nullam
vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
fermentum orci, sed tempus nibh feugiat eget.

Would become...

Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam
vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
fermentum orci, sed tempus nibh feugiat eget.


Thoughts?



Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-10 13:16+0200, Sebastien Vauban wrote:
 'Mash Thomas Herbert wrote:
  I was wondering if it was possible at all to use like a variable within a
  document that would reference a table cell, and could then be
  dynamically updated when the table cell was?
 
  The reason I ask is that I would like to have have tabular data held
  in another document and then write my document referencing and
  including the data within the text, so I only have to change the
  external data and the document would be updated automatically.
 
  Example...
 
  #+TBLNAME: example
  |-+-|
  | Foo | Bar |
  |-+-|
  |  22 | 43  |
  |  44 | 54  |
  |-+-|
 
  Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing 
  elit. Nullam
  vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
  eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
  fermentum orci, sed tempus nibh feugiat eget.
 
  Would become...
 
  Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam
  vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
  eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
  fermentum orci, sed tempus nibh feugiat eget.
 
  Thoughts?

 Use an Org Babel (inline) code block which extracts part of the table. See
 indexing variables.

 Best regards,
   Seb

 --
 Sebastien Vauban



OK thanks, I have never used Babel at all, but I believe I have found
the inline use.

src_lang[args]{code}

So I thought...

src_emacs-lisp[var: data=example-table[2:1]]{data}

But this does not work.

Two questions...

Am I right in saying even if I do get this to work, it would only
replace the inline code blocks (variables) on an export? It wouldn't work 
like a
hyperlink and translate and hide the code block underneath the
value?

Sorry I can't think of how to phrase that question better.



Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-10 15:07+0200, Sebastien Vauban wrote:
 'Mash Thomas Herbert wrote:
  OK thanks, I have never used Babel at all, but I believe I have found
  the inline use.
 
  src_lang[args]{code}
 
  So I thought...
 
  src_emacs-lisp[var: data=example-table[2:1]]{data}
 
  But this does not work.

   src_emacs-lisp[:var data=example-table[2,1]]{data}  should work (untested)
  ^^
  Two questions...
 
  Am I right in saying even if I do get this to work, it would only
  replace the inline code blocks (variables) on an export?

 AFAIK, yes -- I've never really used inline code blocks.

 But I think you could intermix real code blocks within paragraphs, if you
 don't insert any blank line (= paragraph separator).

 Or have a real block doing the work, exposing the answer in your Org buffer,
 and have an inline code block to echo the answer.

  It wouldn't work like a hyperlink and translate and hide the code block
  underneath the value?

 From what I understand from your question, no.

 Best regards,
   Seb

 --
 Sebastien Vauban



Thanks for the correction, this works.

src_emacs-lisp[:var data=example[1,1]]{data}

Nice point about separating one code block to do the work and the
inline to echo.

Thinking through this the whole thing, it may be an overkill for my
needs. I am rather going to just use tables in the text to represent
data, rather than describe it directly in a paragraph. As always
though, Org and Babel prove themselves again in terms of possibility.

Thanks again,

'Mash



Re: [O] Changing '_archive' extension to allow Easy PG encryption: _archive.gpg?

2013-03-20 Thread 'Mash (Thomas Herbert)
On 2013-03-19 08:20-0400, Nick Dokos wrote:
 'Mash (Thomas Herbert) mash...@toshine.net wrote:

  Morning,
 
  I wanted to know how I would change the default '_archive' extension?
 
  I work with encrypted org files foo.gpg with Easy PG and the
  added header...
 
  # -*- mode: org; epa-file-encrypt-to: (mash...@toshine.net) -*-
 
  But today I discovered that when I archive my TODO items they are of
  course saved unencrypted to the archive file foo.gpg_archive.
 
  This really is not ideal situation!
 
  I tried adding my header to the _archive file but this doesn't work, I
  assume because the extension is not .gpg.
 
  Any ideas how would I change the default _archive extension to
  _archive.gpg or better setup a case where it would change the
  extension only if the org file is .gpg to begin with?
 
  I suppose could also look to setup a case for Easy PG to work with a
  different extension, but would prefer to define the change for
  org-mode instead.
 

 C-h v org-archive-TAB gives some idea of the variables that are there.

 org-archive-location is what you need to change in order to add the .gpg
 suffix.

 I have no idea however, whether that's enough to allow you to do what
 you want to do.

 Nick


Nick, thanks.

For those who are interested.

I got this to work by amending my foo.gpg header line to...

# -*- mode: org; epa-file-encrypt-to: (mash...@toshine.net) -*-
#+ARCHIVE: %s_archive.gpg::

Then I had to amend my foo.gpg_archive.gpg header to...

# -*- mode: org; epa-file-encrypt-to: (mash...@toshine.net) -*-

This then allowed automatic encryption without me having to 'select recipient
for encryption', etc.

Thanks again,

'Mash



[O] Changing '_archive' extension to allow Easy PG encryption: _archive.gpg?

2013-03-19 Thread 'Mash (Thomas Herbert)
Morning,

I wanted to know how I would change the default '_archive' extension?

I work with encrypted org files foo.gpg with Easy PG and the
added header...

# -*- mode: org; epa-file-encrypt-to: (mash...@toshine.net) -*-

But today I discovered that when I archive my TODO items they are of
course saved unencrypted to the archive file foo.gpg_archive.

This really is not ideal situation!

I tried adding my header to the _archive file but this doesn't work, I
assume because the extension is not .gpg.

Any ideas how would I change the default _archive extension to
_archive.gpg or better setup a case where it would change the
extension only if the org file is .gpg to begin with?

I suppose could also look to setup a case for Easy PG to work with a
different extension, but would prefer to define the change for
org-mode instead.

Many thanks,

'Mash



[O] Logging properties, values in notes on TODO state change for column view usage?

2012-11-14 Thread 'Mash (Thomas Herbert)
Wondered if anyone had any thoughts about this?

I am trying to utilise the LOGBOOK and I think column view is the way
to go.

Many thanks,

'Mash

 From: 'Mash (Thomas Herbert) mash...@toshine.net
 Date: Mon, 29 Oct 2012 16:39:57 +
 To: emacs-orgmode@gnu.org
 Subject: Logging properties, values in notes on TODO state change for column 
 view usage?

 I have been looking at trying to track training performance with
 org-mode.

 I currently just set a reoccurring schedule with note logging on
 state change, but wondered if there was a way to log values within
 this :LOGBOOK: logs?

 It is not a lot of effort to simply type in :abc: 5, etc in the note
 window. The idea being it would be nice to use column view to collect
 these various logged values.

 
 ** TODO Training
 :LOGBOOK:
 - State DONE   [2012-10-29 Mon 16:26] \\
   :abc: 5
   :xyz: 9
 - State DONE   [2012-10-30 Tue 16:25] \\
   :abc: 6
   :xyz: 8
 :PROPERTIES:
 :LAST_REPEAT: [2012-10-30 Tue 16:26]
 :COLUMNS:  %25ITEM %10abc %10xyz
 :END:
 2012-10-29 Mon +1d
 



[O] Capturing column view and LOGBOOK state change entries?

2012-11-01 Thread 'Mash (Thomas Herbert)
Morning,

I have been reading and playing around with column view and capturing
column view, but am unable to work-out how to view LOGBOOK entries.

I record a note on certain state changes and would like to output
these to a org table. Capturing column view / dynamic block looks
like the way to go.

Could you help?

Many thanks,

'Mash



[O] Logging properties, values in notes on TODO state change for column view usage?

2012-10-29 Thread 'Mash (Thomas Herbert)
I have been looking at trying to track training performance with
org-mode.

I currently just set a reoccurring schedule with note logging on
state change, but wondered if there was a way to log values within
this :LOGBOOK: logs?

It is not a lot of effort to simply type in :abc: 5, etc in the note
window. The idea being it would be nice to use column view to collect
these various logged values.


** TODO Training
:LOGBOOK:
- State DONE   [2012-10-29 Mon 16:26] \\
  :abc: 5
  :xyz: 9
- State DONE   [2012-10-30 Tue 16:25] \\
  :abc: 6
  :xyz: 8
:PROPERTIES:
:LAST_REPEAT: [2012-10-30 Tue 16:26]
:COLUMNS:  %25ITEM %10abc %10xyz
:END:
2012-10-29 Mon +1d





Re: [O] GNU Emacs ported to Android

2012-08-22 Thread 'Mash (Thomas Herbert)
On 2012-08-21 18:42+0100, Ian Barton wrote:
 On 21/08/12 16:22, Karl Voit wrote:

 I just stumbled upon
 https://play.google.com/store/apps/details?id=com.zielm.emacshl=en
 
 It is still in an early phase but still I am dreaming of having
 Org-mode on my XOOM tablet ... :-)
 
 HW/SW-keyboard is still an issue here IMHO. The Ctrl/ESC keys of my
 freedom pro HW-Bluetooth-keyboard does not seem to work on Android
 :-( I tried it for using mutt/slrn over ConnectBot/ssh ...
 
 Anybody else sharing experiences with Emacs or HW-keyboards on
 Android?
 
 Thanks for the heads up. Off to play. The android Hackers Keyboard
 has Ctrl, Alt, etc. I use it to run Emacs via a terminal. However, a
 hardware keyboard that worked would be great.

 Ian.


Tempted to get one of these at some point.
http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard

'Mash



Re: [O] A tidy file maketh a tidy mind?

2012-08-14 Thread 'Mash (Thomas Herbert)
On 2012-08-14 07:10-0600, Eric Schulte wrote:
 'Mash mash...@toshine.net writes:

  Morning,
 
  I just want to know if there is there exists a 'tidy' module/command
  that can be run on a file to tidy it?
 
  I often find myself going back and adding extra line breaks and
  padding, and wondering if there exists something that can do this for
  me?
 

 While this doesn't exist currently, it should be fairly easy to
 implement a set of rules which operate over the parsed file
 representation generated by org-element.  This may be used to convert an
 Org-mode buffer into an elisp list, manipulate the list, and then insert
 the results as text back into a new buffer.

 The code could look something like the following

 ;; -*- emacs-lisp -*-
 (let ((buf (org-element-parse-buffer))) ;; convert current buffer to ELisp
   (dolist (rule cleanup-rules) ;; run cleanup transformations on the 
 buffer
 (setq buf (funcall rule buf)))
   (delete-region (point-min) (point-max)) ;; replace the buffer contents
   (insert (org-element-interpret-data buf))) ;; with the cleaned results

 The only catch would be deciding what to add to the cleanup-rules.

 Also, since Org-mode is plain text, I bet a couple of lines of sed or
 perl could get you most of the way to a clean buffer.

Thanks, I need to spend some time to look at rules. But my most
common clean-up is really just adding some spacing/padding for
example. Would be handy to implement in a save-hook along with org-sort.

--- cluttered ---
* Lorem ipsum dolor sit amet


** TODO consectetuer adipiscing elit
   Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
   aliquam erat volutpat.
   SCHEDULED: 2012-08-09 Thu 20:30
** TODO  quis nostrud exerci tation ullamcorper
   SCHEDULED: 2012-08-08 Wed 10:30
   Nam liber tempor cum soluta nobis eleifend option congue nihil
   imperdiet doming id quod mazim placerat facer possim assum.
** TODO Ut wisi enim ad minim veniam...

--- tidier ---
* Lorem ipsum dolor sit amet
** TODO  quis nostrud exerci tation ullamcorper
   SCHEDULED: 2012-08-08 Wed 10:30
   Nam liber tempor cum soluta nobis eleifend option congue nihil
   imperdiet doming id quod mazim placerat facer possim assum.

** TODO consectetuer adipiscing elit
   SCHEDULED: 2012-08-09 Thu 20:30
   Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
   aliquam erat volutpat.

** TODO Ut wisi enim ad minim veniam...



[O] A tidy file maketh a tidy mind?

2012-08-13 Thread 'Mash

Morning,

I just want to know if there is there exists a 'tidy' module/command  
that can be run on a file to tidy it?


I often find myself going back and adding extra line breaks and  
padding, and wondering if there exists something that can do this for  
me?


Thanks,

'Mash




Re: [O] Latest version of Org-mode 7.8.3?

2012-08-10 Thread 'Mash (Thomas Herbert)
I asked a similar question earlier. 

I did though have to point to the lisp dir of org-mode git clone specifically 
and add the org-install line as mentioned. 

If you look at my question a few days ago there is no 7.8.3. 

'Mash
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Torsten Wagner torsten.wag...@gmail.com wrote:

Hey Ciaran,

as far as I remember you need to call

(require 'org-install)

to make emacs load your installation instead of the default one.
Add it to your emacs config and check out org-version again

Also you might be interesting to use the emacs-package manager which
is a rather new feature of emacs.
Org-mode versions there might be a good compromise between stability
and up-to-dateness. Check here for details

http://orgmode.org/worg/org-faq.html#installing-via-elpa


Torsten



On 10 August 2012 07:28, Ciaran Mulloy crmul...@gmail.com wrote:
 Hi,
 I'm relatively new to org-mode and a non-techie but grappling by and large 
 with
 the steep learning curve and enjoying it!

 I had a simple question that I haven't been able to get an easy answer to.
 I've just compiled the latest build of emacs 24.1 from the gnu.org website 
 which
 currently has the latest build of org-mode (7.8.11 I believe).

 I've also cloned the bleeding edge git repository onto my PC (as I'm 
 interested
 in getting the benefit of recent patches for exporting to Taskjuggler 3) and 
 did
 a make into my ~/elisp directory.

 My question: how do I validate that I have the latest build version of 
 org-mode
 running as when I do a 'M-x org-version' I just get the answer '7.8.11'.

 I've put a line in my .emacs file to add my ~/elisp directory to my load path
 however it's not clear how I get emacs to load the newer files I've compiled 
 to
 my ~/elisp directory over the existing emacs 24.1 build.

 I've gone through the FAQ section on the org-mode website and couldn't seem to
 find any hints for my issue.

 Ciaran





[O] Latest version of Org-mode 7.8.3?

2012-08-08 Thread 'Mash


I have a 'closed' thread going on here in regards to mobileorg-android:
https://github.com/matburt/mobileorg-android/issues/264

I have been told to use the latest org-mode which is apparently 7.8.3?

But if I follow the instructions:
http://orgmode.org/worg/org-faq.html#How do I keep current with  
bleeding edge development?


 M-x org-version
 Org-mode version 6.33x (release_7.8.11.409.ga3778)

Am I missing something with the installation or repository?

Thanks,

'Mash




Re: [O] Latest version of Org-mode 7.8.3?

2012-08-08 Thread 'Mash


Quoting Jambunathan K kjambunat...@gmail.com:

'Mash mash...@toshine.net writes:


I have a 'closed' thread going on here in regards to mobileorg-android:
https://github.com/matburt/mobileorg-android/issues/264

I have been told to use the latest org-mode which is apparently 7.8.3?

But if I follow the instructions:
http://orgmode.org/worg/org-faq.html#How do I keep current with
bleeding edge development?

 M-x org-version
 Org-mode version 6.33x (release_7.8.11.409.ga3778)

Am I missing something with the installation or repository?


You are on 409 and I am on 414 i.e., Org.7.8.11-414..  Rest assured, you
have the latest Org.


OK thanks for the confirmation. I thought I was going a bit mad,  
especially after a google brought up this...


I am using the latest cvs version of emacs and recently-updated  
version 7.8.3 of org-mode.


http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00149.html





[O] MobileOrg: Confusion about capturing?

2012-08-07 Thread 'Mash

Afternoon,

Just started using MobileOrg (Android) and I am a little confused as  
to capturing notes. I have a single 'agenda' file setup which I can  
see...


---
Agenda views
mashdot.org
---

I assumed that I could capture a note within 'mashdot.org' allowing me  
to create a new TODO etc in the list. But it appears that the default  
action is to send my capture to the org-mobile-inbox-for-pull file. I  
would have thought by default you could create new nodes within your  
agenda file?


Am I missing something here?

Also what is the difference between 'Capture' and 'Capture node as child'?

Thanks

'Mash




Re: [O] Publishing notes to a website

2011-04-26 Thread 'Mash

Quoting Thomas Herbert mash...@toshine.net:

Kyle Sexton ks at mocker.org writes:


I'm looking for advice on ways people are publishing their org notes
to a website.  So far I've looked at blorgit and it's really nice, but
the dependency for a backend emacs session and running through sinatra
makes me wary of putting it out on my server for the world.

1.  What methods are people using to publish their org notes?
2.  Anyone have sample sites that I can see what the output looks like?


Kyle,

I have been actually been working on a simple clean solution for  
writing in org-mode and keeping the file as org-mode. What I have  
come up with is a Textile like PHP class that translates org-mode  
files into HTML.


It is still very very alpha and hope to release the code soon for  
people to look at, work and improve or completely scrap and take my  
idea and do it better.


As I mentioned earlier I have been playing around building a regex  
parser in PHP for Org-Mode files. As you will see I am obviously an  
amateur programmer and my hope is that if this is at all useful then  
someone else will rewrite it. My site http://toshine.org uses both the  
classOrgile and the Orgile CMS. If you look at the bottom of any  
article you will see the link to the raw .org file that is  
parsed/converted to HTML.


---
The classOrgile PHP class (very limited currently!).
http://toshine.org/etc/files/classorgile.php.txt

The Orgile PHP flat file CMS (currently used for http://toshine.org).
http://toshine.org/etc/files/orgile.php.txt

The Orgile PHP flat file CMS (fully commented code).
http://toshine.org/etc/files/orgile-commented.php.txt
---

Well I hope it is at least interesting for someone on this list.

'Mash





Re: [O] Publishing notes to a website

2011-04-26 Thread 'Mash


Quoting William Gardella gardell...@gmail.com:


'Mash mash...@toshine.net writes:


Quoting Thomas Herbert mash...@toshine.net:

Kyle Sexton ks at mocker.org writes:


I'm looking for advice on ways people are publishing their org notes
to a website.  So far I've looked at blorgit and it's really nice, but
the dependency for a backend emacs session and running through sinatra
makes me wary of putting it out on my server for the world.

1.  What methods are people using to publish their org notes?
2.  Anyone have sample sites that I can see what the output looks like?


Kyle,

I have been actually been working on a simple clean solution for
writing in org-mode and keeping the file as org-mode. What I have
come up with is a Textile like PHP class that translates org-mode
files into HTML.

It is still very very alpha and hope to release the code soon for
people to look at, work and improve or completely scrap and take my
idea and do it better.


As I mentioned earlier I have been playing around building a regex
parser in PHP for Org-Mode files. As you will see I am obviously an
amateur programmer and my hope is that if this is at all useful then
someone else will rewrite it. My site http://toshine.org uses both the
classOrgile and the Orgile CMS. If you look at the bottom of any
article you will see the link to the raw .org file that is
parsed/converted to HTML.

---
The classOrgile PHP class (very limited currently!).
http://toshine.org/etc/files/classorgile.php.txt

The Orgile PHP flat file CMS (currently used for http://toshine.org).
http://toshine.org/etc/files/orgile.php.txt

The Orgile PHP flat file CMS (fully commented code).
http://toshine.org/etc/files/orgile-commented.php.txt
---

Well I hope it is at least interesting for someone on this list.

'Mash


Limited though it may be, I'm extremely impressed with the results you
are getting out of this little flat-file CMS :)

It seems like a more blog (periodical literature)-like solution than
Blorgit, which in spite of its name is really a wiki framework.  I think
I'll be trying this in my sandbox soon :)

Will




Thanks Will, and do let me know if you need any help deciphering my  
code. It looks a lot better in php-mode!
It really is actually a very simple program, and really easy to remove  
what you don't need and add what you want.

You have my email address so pop me a line whenever.

Thanks

'Mash






Re: [O] Professional PDF LaTeX templates?

2011-03-16 Thread 'Mash


Quoting Eric S Fraga e.fr...@ucl.ac.uk:



2011/3/14 Thomas Herbert mash...@toshine.net





Afternoon,

I wonder if anyone had any good examples of org-mode LaTeX templates with
which to export professional looking PDFs?

It is my big issue with org-mode at the moment, and I have tried reading
what I can on LaTeX styling but it is getting to the point that I am
spending way to much time trying to learn enough LaTeX only to  
find I can't
translate it into anything that looks the quality of using MS  
Word and Adobe

Flashpaper.


Not intending to start a flame war but my experience is that latex, even
with everything at default settings, beats a typical MS Word document
hands down!  At least in academic circles, many publishers use latex for
the final typesetting stage even if the original article was submitted
in MS Word.

The negative aspect, for some, about latex is that everything is
customisable (as you have alluded to) given that it is but a set of
macros built on top of the TeX typesetting system (thank you Donald
Knuth!).  Because the underlying system is both robust and
comprehensive, anything is possible!  The power of TeX comes partly from
the basis being both page and paragraph formatting, as opposed to line
by line formatting which tools like MS Word use.

Therefore, I am curious as to what you wish to achieve:

John Hendy jw.he...@gmail.com writes:

Instead... could you provide something you think is professional to
set the bar and those on the list can either match it or point you in
the direction of something they've seen or already created to fit into
your genre of professional?


This would indeed be very useful.


Sorry yes my question was fairly vague. Also I actually had trouble  
trying to find an example of what I mean. But let me clarify.


I suppose by professional I really meant polished, and so it is  
LaTeX styling I have having trouble with, it may also be laziness on  
my part. I have tried searching for LaTeX styling which I can  
translate into a few org-mode header declarations but still can't work  
out what is or is not compatible with org-mode (LaTeX classes) or how  
to implement styling correctly.


I think what it is that I have been using CSS for so long that I am  
getting frustrated in not being able to produce the level of results I  
want in LaTeX. Also I feel like a complete numpty not being able to  
clearly understand how to build and define external LaTeX classes I  
can call to output my simple .org file to a polished .pdf. I.e.  
margins, line-heights, different block element font styling, common  
graphical page headers or footers.


There are a huge amount of LaTeX examples on the web, but they are  
full documents with inline elements, I wanted to know if anyone has  
already setup classes that work, with notes on LaTeX dependencies (and  
how and where to download them from) which they use day to day to  
produce reports, articles, contracts or client proposals from simple  
.org files?


Is that any clearer?




Re: [O] Professional PDF LaTeX templates?

2011-03-16 Thread 'Mash


Quoting Eric S Fraga e.fr...@ucl.ac.uk:


'Mash mash...@toshine.net writes:


Quoting Eric S Fraga e.fr...@ucl.ac.uk:



2011/3/14 Thomas Herbert mash...@toshine.net







Afternoon,

I wonder if anyone had any good examples of org-mode LaTeX  
templates with

which to export professional looking PDFs?

It is my big issue with org-mode at the moment, and I have tried reading
what I can on LaTeX styling but it is getting to the point that I am
spending way to much time trying to learn enough LaTeX only to
find I can't
translate it into anything that looks the quality of using MS
Word and Adobe
Flashpaper.


Not intending to start a flame war but my experience is that latex, even
with everything at default settings, beats a typical MS Word document
hands down!  At least in academic circles, many publishers use latex for
the final typesetting stage even if the original article was submitted
in MS Word.

The negative aspect, for some, about latex is that everything is
customisable (as you have alluded to) given that it is but a set of
macros built on top of the TeX typesetting system (thank you Donald
Knuth!).  Because the underlying system is both robust and
comprehensive, anything is possible!  The power of TeX comes partly from
the basis being both page and paragraph formatting, as opposed to line
by line formatting which tools like MS Word use.

Therefore, I am curious as to what you wish to achieve:

John Hendy jw.he...@gmail.com writes:

Instead... could you provide something you think is professional to
set the bar and those on the list can either match it or point you in
the direction of something they've seen or already created to fit into
your genre of professional?


This would indeed be very useful.


Sorry yes my question was fairly vague. Also I actually had trouble
trying to find an example of what I mean. But let me clarify.

I suppose by professional I really meant polished, and so it is
LaTeX styling I have having trouble with, it may also be laziness on
my part. I have tried searching for LaTeX styling which I can
translate into a few org-mode header declarations but still can't work
out what is or is not compatible with org-mode (LaTeX classes) or how
to implement styling correctly.

I think what it is that I have been using CSS for so long that I am
getting frustrated in not being able to produce the level of results I
want in LaTeX. Also I feel like a complete numpty not being able to
clearly understand how to build and define external LaTeX classes I
can call to output my simple .org file to a polished .pdf. I.e.
margins, line-heights, different block element font styling, common
graphical page headers or footers.

There are a huge amount of LaTeX examples on the web, but they are
full documents with inline elements, I wanted to know if anyone has
already setup classes that work, with notes on LaTeX dependencies (and
how and where to download them from) which they use day to day to
produce reports, articles, contracts or client proposals from simple
.org files?

Is that any clearer?


A little but not really.  The trick with latex is not to define any new
classes (unless you really want something dramatically different than
already exists) but to customise existing classes through their options
and the use of supplementary packages.  Each document has a single class
(article, book, report, letter, ...) but can then load any number of
packages to add features.

The problem is we don't know what you are trying to write!  A book is
very different from a letter which is different from an article etc.  As
an example, if I were writing an article, I would base it on the
koma-script package [1] which allows customisation of headings etc.  To
customise the various things you mention above, I would then use the
=geometry=, =fancyhdr= and =graphicx= packages, to mention just a few.
All of these are well documented on CTAN [2] where you can search for
individual packages.  I would also directly modify some variables
(e.g. \parindent, \parskip) that are fundamental to the layout if need
be.

If you really want to learn how to customise latex, one of the best
resources is the Visual FAQ [3].

I hope this helps but do give more detail if you want explicit help.
However, if what you need is latex help, I suggest one of the tex
newsgroups [4] or some of the mailing lists (cf. gmane [5]) or
equivalent; if you want to know how to interface to latex from org, then
this list is indeed the place!

eric


Footnotes:
[1]  http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf

[2]  http://ctan.org/

[3]  http://www.ctan.org/tex-archive/info/visualFAQ/visualFAQ.pdf

[4]  e.g. comp.text.tex

[5]  http://gmane.org/

--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.55.g87c42.dirty)



Thanks, very much appreciated. I will spend some time having a look  
through the links below. Sorry for being unclear, sometimes you need  
to ask questions

Re: [Orgmode] Blockquotes...

2010-11-14 Thread 'Mash
On 2010-11-14 23:32+0530, Puneeth wrote:
 Hi 'Mash,

 On Sun, Nov 14, 2010 at 11:23 PM, 'Mash mash...@toshine.net wrote:
  Evening,
 
  I have spent an hour looking around for how to define blockquotes in 
  org-mode. So far I have seen discussion but nothing in terms of how you 
  actually define them. Is this still a future feature or is there a way to 
  do this already?

 I guess you are looking for this? http://orgmode.org/org.html#Paragraphs

 Sorry, if this is not what you were looking for.

 HTH,
 Puneeth

Yup that's it! Typical I search everywhere and it is right in the 
documentation. Pity that Google does not find this somehow.

Thanks again

'Mash



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] TODO DONE strikethrough

2010-08-09 Thread 'Mash
I could not (re)find a reference I saw a while back about setting DONE TODO 
items with a strikethrough.

Can anyone remember how to set this?

Thanks

'Mash

---
'to life is doxology
http://toshine.org


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Export: Using LaTeX \timestamp and or customising title header

2010-08-05 Thread 'Mash
Afternoon,

I have started experimenting with publishing outlines to PDF, and have been 
trying to sort out basic styling, mainly because the default export looks 
terrible.

I disabled the title header as I want my first outline to be the first thing at 
the top of the page. The problem is that I would like to either customise the 
real header i.e. not have it centred; or be able to use \timestamp under my 
first outline which would display the file timestamp.

Is this possible because I can't get it to generate a timestamp on export? I 
have tried enabling timestamp:t but this also has no affect. I use #+TITLE: 
to prevent the title header from being displayed.

-
#+LATEX_HEADER: \documentclass[10pt,a4paper]{article}
#+LATEX_HEADER: 
\usepackage[a4paper,left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
#+LATEX_HEADER: \usepackage{palatino}
#+OPTIONS: num:nil toc:nil timestamp:nil author:nil email:nil
#+TITLE:

* This is the title of my article
  \timestamp

** Subtitle
*** etc
-

Thanks

'Mash

--
'to life is doxolgy
http://toshine.org

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode