Re: Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]

2021-03-04 Thread Josiah Schwab
I recall at least a few threads over the years that may be useful in
thinking about this issue.  Here are the ones I quickly found again:

https://lists.gnu.org/archive/html/emacs-orgmode/2013-06/msg00221.html
https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00052.html

Josiah


Re: Bug - all org files open as if visibilty is set to "showeverything"

2020-05-13 Thread Josiah Schwab
> As far as I recall, I have not changed any settings in my init or elsewhere.

The default was changed.  See

https://lists.gnu.org/archive/html/emacs-orgmode/2020-04/msg00452.html
https://lists.gnu.org/archive/html/emacs-orgmode/2020-05/msg00201.html

Josiah



Re: Possible orgalist issue

2020-01-07 Thread Josiah Schwab
Hi Tim,

On Tue, Jan 7, 2020 at 1:37 AM Nicolas Goaziou  wrote:

> It rings a bell. I think someone recently reported something like this.

There was this thread from a ~year ago:
https://lists.gnu.org/archive/html/emacs-orgmode/2018-09/msg00053.html

You don't mention other packages, so I don't know if this is related
to your issue.

I adopted Nicholas' suggestion of disabling Yasnippet, then enabling
Orgalist, and eventually enabling Yasnippet again.  (I am using mu4e
1.3.6 and emacs 26.3.)  My init has

(defun jws/orgalist-yas-workaround ()
  (progn
(yas-minor-mode -1)
(orgalist-mode 1)
(yas-minor-mode)))

(add-hook 'mu4e-compose-mode-hook 'jws/orgalist-yas-workaround 'append)

I haven't hit this issue since.

Josiah



Re: Using variables in org-capture-templates

2019-11-12 Thread Josiah Schwab
> What is the "correct" way to do this in elisp?

I believe you want to use backquote - comma

https://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html

Josiah



Re: [O] List unstuck projects in agenda

2019-09-05 Thread Josiah Schwab
Hi Adam,

> You may find org-ql helpful, as it makes selecting entries easy and
> flexible.
>
> https://github.com/alphapapa/org-ql
>
> Here's an example that might help:
>
> https://github.com/alphapapa/org-ql/blob/master/examples.org#stuck-projects-block-agenda

Thanks for the suggestion.

I was hoping to stick with stock orgmode.

Nonetheless, I gave it a try.  It couldn't quite make it meet my desires
(I put some more info in GitHub issues), but overall it looks neat.

Josiah



[O] List unstuck projects in agenda

2019-09-05 Thread Josiah Schwab
Hello,

I want to separately display stuck and unstuck projects in my agenda.

I define my stuck projects via setting org-stuck-projects, so displaying
stuck ones is easy (via a (stuck "") in org-agenda-custom-commands).

I want to have another section of the agenda that displays only my
unstuck projects.  I am finding this difficult.

I searched the list archives and found this old thread.

  https://lists.gnu.org/archive/html/emacs-orgmode/2010-01/msg00104.html

Is a something along the lines of a copy-paste-tweak of
org-agenda-list-stuck-projects still the easiest way to go?

Josiah



Re: [O] Bug: org-link-abbrev-alist: "ads" example soon to be outdated. [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.2/lisp/org/)]

2019-05-10 Thread Josiah Schwab

> The "ads" example in "Link abbreviations" will soon become outdated.
> http://adsabs.harvard.edu states:
> "ADS Classic will be deprecated in May 2019 and retired in October
> 2019. Please redirect your searches to the new ADS modern form or the
> classic form. More info can be found on our blog."

The attached patch should change the example to work with the new ADS.

Josiah


>From fa9508954d8a4e2b4bafe8d59723df081e00b44c Mon Sep 17 00:00:00 2001
From: Josiah Schwab 
Date: Fri, 10 May 2019 08:12:39 -0700
Subject: [PATCH] org-manual: Update ADS link abbreviation example

* doc/org-manual.org (Link Abbreviations): Change URL.

Reported-by: Alain Kalker 
<http://lists.gnu.org/r/emacs-orgmode/2019-05/msg00083.html>

TINYCHANGE
---
 doc/org-manual.org | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 73c778753..15483490b 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -3494,7 +3494,7 @@ replacement text.  Here is an example:
 ("google". "http://www.google.com/search?q=;)
 ("gmap"  . "http://maps.google.com/maps?q=%s;)
 ("omap"  . "http://nominatim.openstreetmap.org/search?q=%s=1;)
-("ads"   . "http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s_key=AST;)))
+("ads"   . "https://ui.adsabs.harvard.edu/search/q=%20author%3A\"%s\";)))
 #+end_src
 
 If the replacement text contains the string =%s=, it is replaced with
-- 
2.21.0



Re: [O] Bug: org-publish error on i386 [9.2.1 (9.2.1-8-g1b1797-elpa @ /Users/andrew/.emacs.d/elpa/org-20190211/)]

2019-02-13 Thread Josiah Schwab
See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00238.html

Sounds like it was fixed in master, but maybe not in maint.

Josiah



Re: [O] Bug: Group tag filters repeated per org-file [9.1.13 (release_9.1.13-751-g9dcc52 @ c:/D-Drive/bin/org-mode/lisp/)]

2019-01-02 Thread Josiah Schwab
Hello,

I recently upgraded to org 9.2 (release_9.2-4-g284799) and just wanted
to note that I am still seeing this cosmetic issue that Bernt reported.

Josiah



Re: [O] Release 9.2

2018-12-27 Thread Josiah Schwab
> Below are the release notes.

These look like the in-progress notes for 9.3 rather than those
associated with 9.2.  The website (https://orgmode.org/Changes.html)
seems correct.

Josiah



Re: [O] cannot export to beamer.

2018-12-15 Thread Josiah Schwab
Hi Uwe,

> Now I took the example
> https://orgmode.org/manual/A-Beamer-example.html#A-Beamer-example
>
> And wanted to export it to beamer but obtained the message 
> user-error: Unknown LaTeX class ‘beamer’

This sounds to me like you are using the latex exporter, rather than the
beamer one.

After

  (require 'ox-beamer)

then

  C-c C-e l b

works well on the example for me.

Josiah



Re: [O] orgalist & variable binding depth

2018-09-05 Thread Josiah Schwab
Hi Matt,

> and also are other people seeing the same issue?

Yes, I have also seen this using orgalist + mu4e-compose-mode.

Josiah



Re: [O] Bug: Group tag filters repeated per org-file [9.1.13 (release_9.1.13-751-g9dcc52 @ c:/D-Drive/bin/org-mode/lisp/)]

2018-06-14 Thread Josiah Schwab
Hello,

I just also noticed that this issue exists on maint, Org mode version
9.1.13 (release_9.1.13-5-g89859f).

Josiah



Re: [O] Bug: Spell checking language not set correctly when exporting to ODT [9.1.13 (9.1.13-elpa @ /home/christoph/.emacs.d/elpa/org-20180514/)]

2018-05-17 Thread Josiah Schwab
Hi Christoph,

> When exporting an org document to ODT, the language used for spell checking is
> always set to British English. The TOC's name is actually translated to the
> language specified in the org document but the spell checking language is not
> set correctly. It is particularly weird that it is set to British English
> instead of American English because American English is the default pretty 
> much
> anywhere.

This comes with the caveat that I've never used the ODT exporter, but I
believe this language setting enters via the default ODT styles file
OrgOdtStyles.xml.  (I see some country="GB" strings in there.)

You could make a copy of this file, change the assumed country, and then
use the modified version by setting org-odt-styles-file.

Hope that helps,
Josiah



Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")

2018-05-05 Thread Josiah Schwab

On  5 May 2018 at 16:26 PDT, Adrian Bradd wrote:

>> I remember that Magit experimented displaying a message the first
>> time you used a new release; you would silence it only by setting a
>> variable.  I don't think this is the case anymore, so it may have
>> failed, though.
>
> I believe this was for the Magit Kickstarter fundraiser. A message was
> displayed to notify users and direct them to the page.

No, I believe what was being referenced was this:

  https://github.com/magit/magit/issues/1803

Josiah



[O] Git repository error

2017-12-14 Thread Josiah Schwab
Hello,

For about the past day, I've been getting this error upon running 'make
update' from my local Org repository:

  fatal: read error: Connection reset by peer
  error: Could not fetch origin

If I recall correctly, this has happened before and the resolution was
that some admin needed to do something server-side.

Thanks,
Josiah



Re: [O] Confused about the explanation for 'org-cycle'

2017-09-28 Thread Josiah Schwab
Hi Alain,

> I have a fresh example in mind to illustrate my point: this afternoon,
> I was looking for org-blank-before-new-entry.  I vaguely remembered it
> existed and was searching the manual (from Info) with the regexps
> 'blank' and 'list'.  Had the variable been mentioned, I would have
> found it within seconds; by contrast I can't imagine how much time I
> would need using customize-group...

As pointed out by Kyle, try M-x apropos-user-option then enter
org-*blank* and you'll be there in seconds.

Josiah



Re: [O] Capture broken with org-plus-contrib-20170917

2017-09-21 Thread Josiah Schwab
Hi N.,

> Is this problem a new bug in Org, or is it simply that my capture
> templates are wrong and that they've only worked all these years
> by some accident?

Have you looked at the incompatible changes described in the release
notes?  I believe this change (and the migration) are described in
"org-capture-templates no longer accepts S-expressions as file names".

http://orgmode.org/Changes.html

Hope that helps,
Josiah



Re: [O] function for inserting a block

2017-09-03 Thread Josiah Schwab
Hi Eric,

> Erm, I'd be surprised if there's a single Org mode binding that
> *doesn't* start with C-c. That convention is right out the window with
> Org...

To be clear, this is referring to C-c and then a single ASCII letter,
not just any binding that starts with C-c.

The manual /suggests/ globally binding things to C-c a, C-c b, C-c c and
C-c l, and then proceeds as if you have, but I really don't think it is
correct to say this convention is out the window.

Josiah



Re: [O] export to s9y blog

2017-09-03 Thread Josiah Schwab
Hi Christian,

> 3. Is there a way to use something like inheritance to import all
>~ox-html.el~ functions at once and then simply overwrite what I
>need to change?

I would encourage you to take a look at the org-export docs, with
particular attention to the idea of a derived backend.

  http://orgmode.org/worg/dev/org-export-reference.html

Hope that helps,
Josiah



Re: [O] function for inserting a block

2017-09-03 Thread Josiah Schwab
Hi Eric,

>> We cannot bind it to "C-c i", this is a reserved key-binding. But we can
>> suggest users to do so in the manual. Or find another binding.
>
> That's fine. Incidentally, why is "C-c i" reserved? It's not bound to
> anything here. Does it look like  in terminal Emacs?

The keybinding convention docs say:

Don't define C-c letter as a key in Lisp programs. Sequences consisting
of C-c and a letter (either upper or lower case) are reserved for users;
they are the only sequences reserved for users, so do not block them.

See 
https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html

Josiah



Re: [O] Bug: Please supply stable releases on ELPA or MELPA Stable [8.3.4 (8.3.4-dist @ /usr/local/share/emacs/25.1.50/site-lisp/org-mode/)]

2016-10-30 Thread Josiah Schwab
Hi Reuben,

> It would be great if it were possible to install stable org-mode
> versions from GNU ELPA or MELPA Stable. At present, one has to choose
> between installing bleeding-edge versions simply, or stable versions
> built by hand.
>
> (I am a bit surprised I can’t find anything about this in the mailing
> list archives, so do forgive me if I’ve overlooked previous discussion.)

The version on GNU ELPA (http://elpa.gnu.org/packages/org.html), which
is labeled org-20161024, is org-git-version 8.3.6-7-g4d7d52-elpa.

I believe that indicates that it is the latest version from the stable
maint branch, not a version from the unstable master branch (which is at
8.3.6-1264-g21932c right now).

Hope that helps,
Josiah



Re: [O] Tuning the layout of published html

2016-07-19 Thread Josiah Schwab

On 19 July 2016 at 13:35 GMT, Eric S Fraga wrote:

> On Tuesday, 19 Jul 2016 at 13:09, Jarmo Hurri wrote:
>> More specifically, I would like to add, on all pages, a navigation bar
>> on the left-hand side and a title bar with no functionality on the top
>> of each page.
>
> You are probably looking for cascading style sheets (CSS) for the
> HTML.  org's HTML export already tags everything of note so you may
> be able to achieve what you want with careful style choices.

I agree with Eric (and now Christian) that is the way to go.

Personally, I have enjoyed using the styles in Fabrice Niessen's
org-html-themes, especially

https://github.com/fniessen/org-html-themes#readtheorg

It already has some similarities to the layout you describe.

Hope that helps,
Josiah



Re: [O] org-mode habit consistency graph not displaying

2016-07-07 Thread Josiah Schwab
Hello Brenda,

> When I started using org-mode from elpa, the habit consistency graph
> stopped showing. I was using a version of org-mode that comes with
> debian before, with emacs 23 and the graph showed.

When I upgraded to org 8.3, my org-habits did not display correctly,
because the PROPERTY drawer where the habit style was indicated came
after the LOGBOOK in my org files.

After using org-repair-property-drawers 

  http://orgmode.org/Changes.html

my habits returned to their previous appearance.

Hope that helps,
Josiah



Re: [O] Using #+INCLUDE for a .tex file

2016-03-03 Thread Josiah Schwab
Hello Nooreen,

> I am now resorting to
>
> #BEGIN_LATEX
> \include{file}
> #+END_LATEX
>
> But  I am unhappy with this solution because I would like to generate the
> include line as the raw results of a code block.

I don't know anything about code block results, but would

@@latex:\include{file}@@

or

#+LATEX: \include{file}

be better?

http://orgmode.org/manual/Quoting-LaTeX-code.html#Quoting-LaTeX-code

Hope that (might) help,
Josiah



Re: [O] Any existing function to copy the src block to clipboard

2016-03-02 Thread Josiah Schwab
Hello Giri,

> Is there a easy way to copy the entire contents of the current src block
> cursor is located to clipboard ?

There is org-babel-mark-block, which is bound to C-c C-v C-M-h.  This
will select the current src block and then you can copy as usual.

Hope that helps,
Josiah




Re: [O] ox-beamer export, no frames created

2016-02-22 Thread Josiah Schwab
Hello John,

> I have been trying to produce my first presentation using org-mode and
> ox-beamer export to create a pdf.  I am not seeing separate frames for
> each slide.  For example, using the Beamer Example (12.5.6) from the
> org-mode manual, I get the following generated .tex file.
>
> There are only \subsection{} generated, instead of the \begin{frame}
> that is expected.

To me, this looks like you used the LaTeX export commands instead of the
beamer export commands.

http://orgmode.org/manual/Beamer-export-commands.html#Beamer-export-commands

Best,
Josiah



Re: [O] Melpa crashed?

2016-02-19 Thread Josiah Schwab
Hello Junxiang,

On 19 February 2016 at 06:11 PST, 童俊翔 wrote:

> error in process filter: Error retrieving: 
> https://melpa.org/packagesarchive-contents (error http 404) [2 times]
>
> What’s the problem?

This suggests to me that you forgot the final slash in the MELPA URL.

Does your configuration match https://github.com/melpa/melpa#usage ?

Best,
Josiah



Re: [O] exporting from org-mode to latex

2015-11-09 Thread Josiah Schwab
Hi Sharon,

> I'm having a strange problem with exporting from org-mode to latex using
> the latex back-end. When the file that I've written is exported to latex
> and I look at the tex file that is created, I see that it has one
> "\usepackage{grffile}" that I didn't place in my list to be included. In
> fact, I'd never even heard of it until I read it there, but I can't find
> where its picking that particular "\usepackage" from! I've searched my
> "init.org" and its not listed anywhere there, its not listed in the
> org-mode manual, so where is it picking it from then please?

The following information should help clarify things.

,[ C-h v org-latex-default-packages-alist RET ]
| org-latex-default-packages-alist is a variable defined in `org.el'.
| Its value is shown below.
| 
| Documentation:
| Alist of default packages to be inserted in the header.
| 
| Change this only if one of the packages here causes an
| incompatibility with another package you are using.
| 
| The packages in this list are needed by one part or another of
| Org mode to function properly:
| 
| - inputenc, fontenc:  for basic font and character selection
| - fixltx2e: Important patches of LaTeX itself
| - graphicx: for including images
| - grffile: allow periods and spaces in graphics file names
| - longtable: For multipage tables
| - wrapfig: for figure placement
| - rotating: for sideways figures and tables
| - ulem: for underline and strike-through
| - amsmath: for subscript and superscript and math environments
| - textcomp, amssymb: for various symbols used
|   for interpreting the entities in `org-entities'.  You can skip
|   some of these packages if you don't use any of their symbols.
| - capt-of: for captions outside of floats
| - hyperref: for cross references
| 
| Therefore you should not modify this variable unless you know
| what you are doing.  The one reason to change it anyway is that
| you might be loading some other package that conflicts with one
| of the default packages.  Each element is either a cell or
| a string.
| 
| A cell is of the format
| 
|   ("options" "package" SNIPPET-FLAG)
| 
| If SNIPPET-FLAG is non-nil, the package also needs to be included
| when compiling LaTeX snippets into images for inclusion into
| non-LaTeX output.
| 
| A string will be inserted as-is in the header of the document.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 25.1 of Emacs.
`


Best,
Josiah



Re: [O] Merge branch 'maint'

2015-09-11 Thread Josiah Schwab
Hello Oleh,

On 11 September 2015 at 04:59 PDT, Oleh Krehel wrote:

> What is the purpose of maint exactly? In Emacs git repository there's
> master and emacs24. All commits apply to master first, while some are
> cherry picked onto emacs24. The emacs24 branch will never be merged into
> master: it's divergent and that's fine.
>
> As I understood, for Org mode some commits are applied to maint, and
> then merged into master. Why?

It may be helpful for you to do a some background reading on workflows
with git.  Have you ever read the gitworkflows man page?

  https://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html

This page discusses many of the questions you have raised.

Best,
Josiah



Re: [O] org-mac-iCal: "Import diary from iCal in agenda" doesn't work

2015-09-04 Thread Josiah Schwab
Hello Tobias,

On  4 September 2015 at 12:49 PDT, Tobias Frischholz wrote:

> I have a small problem with a key binding for the agenda, which should import 
> my iCal.app appointments into the diary.
>
> I have the following code from this page:
>
> (setq org-agenda custom-commands
>   '(("I" "Import diary from iCal" agenda ""
>  ((org-agenda-mode-hook
>(lambda ()
>  (org-mac-iCal)))
> When I start Emacs I get this warning:
>
> Warning (initialization): An error occurred while loading 
> `/Users/friolz/.emacs.d/init.el':
>
> Symbol's value as variable is void: custom-commands

I think there's a "-" missing.  The variable name is

  org-agenda-custom-commands
^
Best,
Josiah



Re: [O] org-mac-iCal: "Import diary from iCal in agenda" doesn't work

2015-09-04 Thread Josiah Schwab

On  4 September 2015 at 13:35 PDT, Josiah Schwab wrote:

> I think there's a "-" missing.  The variable name is
>
>   org-agenda-custom-commands
> ^

This is also now fixed on the website (worg commit 60c0b12).

Best,
Josiah



Re: [O] Bug report: org-get-property-block returns nil if the entry does not start with the property drawer

2015-08-25 Thread Josiah Schwab
Hello Jorge,

 In Org mode's info, I could not find any requirement that the property
 drawer must be the first thing in the entry.

This is the first item in the 8.3 series changelog.  There is a provided
script to repair things.

  http://orgmode.org/Changes.html

Hope that helps,
Josiah



Re: [O] org-habit and Org 8.3

2015-08-20 Thread Josiah Schwab
Hello John,

On 19 August 2015 at 09:35 PDT, John Wiegley wrote:

 I've upgrade today to Org 8.3.1, and I've noticed that any customization which
 used overlays (mainly, org-habit) now displays no overlays in the Agenda
 buffer.

 Is this something others have already seen and found a fix for?

Upon upgrading, my org-habits did not display correctly, because the
PROPERTY drawer where the habit style was indicated came after the
LOGBOOK in my org files.

After using org-repair-property-drawers 

  http://orgmode.org/Changes.html

my habits returned to their previous appearance.

That's not directly overlay related, but since the symptoms sounded
similar I thought I'd chime in.

Hope that helps,
Josiah



Re: [O] popup org capture window on linux?

2015-07-31 Thread Josiah Schwab
Hi Z,

 Hi all. anyone using a separate (or pop up style) org capture window on
 linux? im looking for tips on how to bind a key that will bring up a new
 emacsclient quickly with the capture window open for quick capturing of
 info even when not in emacs

You might be able to re-use a bit of what I do chromium and org-capture.

https://yoshiyahu.org/computing/2013/12/16/org-capture/

Best,
Josiah



Re: [O] Beamer figure width

2015-04-15 Thread Josiah Schwab
Hi Ken,

 I'm having trouble specifying image sizes in Beamer. I am using the
 following code. Is this correct syntax?

 * Foo
 ** Bar
 *** Baz
 #+ATTR_LATEX: height=\textheight
 [[./map.png]]

Instead, use

#+ATTR_LATEX: :height \textheight

See the subheading Images in LaTeX export on

http://orgmode.org/manual/LaTeX-specific-attributes.html

Best,
Josiah



Re: [O] Beamer export: can't get frame level right

2014-07-16 Thread Josiah Schwab

On 16 July 2014 at 02:58 PDT, Gabor Retvari wrote:

 I think you may be using the regular LaTeX exporter.  Adding beamer to
 your LaTeX_CLASS is not sufficient (or necessary).  Rather, you want to
 use the Beamer export commands.
 
 http://orgmode.org/manual/Beamer-export.html

 Thanks a lot, org-beamer-export-to-pdf seems to solve this issue. 

 Interestingly, C-c C-e l P (thank you John for the tip) does not work by 
 default as org-export-dispatch does not seem to know about beamer specific 
 export commands initially. Only after running org-beamer-export-to-pdf once 
 the 
 beamer specific export options show up in the dispatcher's
 list. Strange.

Not all exporters are loaded by default.
http://orgmode.org/manual/Export-back_002dends.html#Export-back_002dends

Have you done something like

,
| (require 'ox-beamer)
`

in your .emacs?  Or customized  `org-export-backends' ?


 Anyways, it would be nice to have this behavior better documented. Maybe a 
 huge 
 warning in the tutorial saying Use beamer export options, standard LaTeX 
 export will screw up your slide structure! or somesuch. I see now that the 
 tutorial mentions that tutorials and references available for both org-mode 
 itself, for LaTeX exporting, and for Beamer Class Export, but the link to 
 the 
 Beamer Class Export document does not quite work.

 http://orgmode.org/worg/exporters/beamer/tutorial.html

I have fixed the link you mention.

Best,
Josiah



Re: [O] Org mode 8.2.5h and emacs-24.3.1: exporting org-beamer presentation doesn't break presentation in slides

2014-07-14 Thread Josiah Schwab
Hi Suhas,

 Upon closer examination, I found that there are two commands to export to PDF.
 C-c C-e l small-o (converts to regular pdf)
 C-c C-e l capital-O (converts to presentation pdf, i.e., converts all 
 headings to slides)

Yes, I exported via the Beamer exporter with C-c C-e l O.   

 I tested C-c C-e l O successfully for a simple text but I'm getting the 
 following error for the attached file in my last email.

 org-latex-compile: PDF file ./presentation.pdf wasn't produced: Runaway 
 argument

I just tried this with 8.2.5h and could not reproduce your problem.
Are you sure you're exporting the exact same file you attached?


Best,
Josiah



Re: [O] Org mode 8.2.5h and emacs-24.3.1: exporting org-beamer presentation doesn't break presentation in slides

2014-07-14 Thread Josiah Schwab
Hi Suhas,

 Yes, I downloaded the same file and tried again and got the following debug 
 trace:

 Debugger entered--Lisp error: (error PDF file ./presentation-1.pdf wasn't 
 produced: Runaway argument)

That message is indicating an error during the LaTeX - PDF step.

Why don't you take a look at the presentation-1.tex file and see where
things are going wrong.

You can probably reproduce this typeset the file (outside of emacs)
  pdflatex presentation-1.tex

Runway LaTeX arguments usually signify something like this (closing
curly brace missing).

,
| \documentclass{article}
| 
| \begin{document}
| 
| \section{Runaway
| 
| \end{document}
`

Sorry, I don't have any more time to spend on this.  Maybe someone else
will be able to help.

Best,
Josiah



Re: [O] use # instead of * to signal different levels of headlines? is it possible?

2014-04-04 Thread Josiah Schwab

On Apr 4, 2014, at 3:34 PM, isaac wrote:

 As a heavy user of orgmode, I am wondering if it's possible to use # instead 
 of * to signal the level of outline in orgmode?

No.  See
http://orgmode.org/worg/org-faq.html#sec-8-12

Josiah


Re: [O] link interfering with brackets when abbreviated

2014-03-02 Thread Josiah Schwab
Hi All,

 Yes.  In the meantime, other users' voices can help us step back and
 see things differently.

(For reference: I have been using org-mode -- for TODO lists and note
taking -- for a few years now, but have not contributed code.)

I imagine myself as a naive user (which does not take too much) who does
not know the internal structure of org and its syntax.

If I execute org-open-at-point at the start of a line with a link and
get the message No link at point, I think Ah, I need to move point
onto the link.  I do and all is good.

So I find myself in Nicholas' camp in regards to the discussion of
org-open-at-point.  I think any pains -- which seem to be quite minor --
associated with the change in behavior are worth the gains in uniformity
and clarity.  And here I am thinking here not only about my day-to-day
use of org-mode, but also of my (slow) journey towards understanding
more about how it works.

But if my point is on a link in a comment, and I do org-open-at-point,
and get the message No link at point, then I think, But why?  I am on
something that looks like a link.

So in regards to the discussion of links in comments, I see more clearly
the argument Bastien, Michael, etc. are making.  But I am unsure here
how to judge whether the benefits outweigh the costs.

Perhaps that is helpful; perhaps not!

Best Regards,
Josiah



Re: [O] Org indent mode

2014-02-28 Thread Josiah Schwab
You may need to customize the org-hide face.

See the section Hiding Leading Stars at
http://orgmode.org/manual/Clean-view.html

Josiah


On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote:

 I'm trying to setup Org indent mode for cleaner view but the preceding
 starts show up dimmed in grey color. How do I make them totally invisible?

 I've put this at the top of the .emacs:

 (setq org-startup-indented t)
 (setq org-indent-mode t)

 and running emacs version 24.3.1 and org version 8.2.5 from the
 command-line.




Re: [O] Org indent mode

2014-02-28 Thread Josiah Schwab
But did you try customizing the org-hide face?

Josiah
On Feb 28, 2014 7:14 PM, Chris Henderson henders...@gmail.com wrote:

 I've added (setq org-hide-leading-stars t) but still getting the leading
 stars. Thanks.


 On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote:

 You may need to customize the org-hide face.

 See the section Hiding Leading Stars at
 http://orgmode.org/manual/Clean-view.html

 Josiah


 On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson henders...@gmail.comwrote:

 I'm trying to setup Org indent mode for cleaner view but the preceding
 starts show up dimmed in grey color. How do I make them totally invisible?

 I've put this at the top of the .emacs:

 (setq org-startup-indented t)
 (setq org-indent-mode t)

 and running emacs version 24.3.1 and org version 8.2.5 from the
 command-line.






Re: [O] Org indent mode

2014-02-28 Thread Josiah Schwab
Yes.  We are clearly talking past each other.  You need to set the
org-hide text style (or face) so that it is the same color as your
background.  Then the stars will appear invisible.

This is explained in the section of the docs I linked to: The leading
stars are not truly replaced by whitespace, they are only fontified with
the face org-hide that uses the background color as font color. If you are
not using either white or black background, you may have to customize this
face to get the wanted effect.

Here's one way you might do that.  Do M-x apropos and then search for
org-hide.  Click org-hide and then click customize this face.  Then set
the foreground color to be the same as your background color.

Hope that helps.

Josiah



On Fri, Feb 28, 2014 at 8:27 PM, Chris Henderson henders...@gmail.comwrote:

 Hi,

 I'm not sure how to customize this. I have tried different variations of

 #+STARTUP: hidestars
 #+STARTUP: odd
 #+STARTUP: oddeven

 but they don't seem to be working. Maybe I'm doing something wrong.



 On Sat, Mar 1, 2014 at 3:10 PM, Josiah Schwab jsch...@gmail.com wrote:

 But did you try customizing the org-hide face?

 Josiah
 On Feb 28, 2014 7:14 PM, Chris Henderson henders...@gmail.com wrote:

 I've added (setq org-hide-leading-stars t) but still getting the leading
 stars. Thanks.


 On Sat, Mar 1, 2014 at 1:45 PM, Josiah Schwab jsch...@gmail.com wrote:

 You may need to customize the org-hide face.

 See the section Hiding Leading Stars at
 http://orgmode.org/manual/Clean-view.html

 Josiah


 On Fri, Feb 28, 2014 at 6:27 PM, Chris Henderson 
 henders...@gmail.comwrote:

 I'm trying to setup Org indent mode for cleaner view but the preceding
 starts show up dimmed in grey color. How do I make them totally invisible?

 I've put this at the top of the .emacs:

 (setq org-startup-indented t)
 (setq org-indent-mode t)

 and running emacs version 24.3.1 and org version 8.2.5 from the
 command-line.







Re: [O] Documentation error/bug regarding checkboxes

2014-02-13 Thread Josiah Schwab

 Actually I did it like this:

 + |foo
 + bar
 + baz

 If I do this instead, it works as you've said:

 |+ foo
 + bar
 + baz

Ah, yes.  I see now.  I do not know if that's what is intended.  Someone
who knows more about org internals will have to chime in.

Josiah



Re: [O] Documentation error/bug regarding checkboxes

2014-02-12 Thread Josiah Schwab

E Sabof esa...@gmail.com writes:

 According to the footnote [3] on
 http://orgmode.org/manual/Checkboxes.html, if I press C-u C-c C-c on
 the first item of a list, all items on that list will get
 checkboxes. However only the first one does.

Can you provide some information about your org version

+ foo
+ bar
+ baz



Re: [O] Documentation error/bug regarding checkboxes

2014-02-12 Thread Josiah Schwab
Oops!  I hit C-u C-c C-c in the wrong buffer!

I meant to say,

Can you provide some information about your org version?

I just tried C-u C-c C-c on the following list and it worked as documented.

+ foo
+ bar
+ baz

I am using the current maint branch.

Best,
Josiah


On Wed, Feb 12, 2014 at 10:42 PM, Josiah Schwab jsch...@gmail.com wrote:


 E Sabof esa...@gmail.com writes:

  According to the footnote [3] on
  http://orgmode.org/manual/Checkboxes.html, if I press C-u C-c C-c on
  the first item of a list, all items on that list will get
  checkboxes. However only the first one does.

 Can you provide some information about your org version

 + foo
 + bar
 + baz



Re: [O] Assistance with patching instructions on Worg

2014-01-31 Thread Josiah Schwab

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

 emacs doc/org.texi

 [make changes to documentation]

 git commit -m Update documentation to org-src-preserve-indentation.

 git format-patch master

 But no files were generated... Am I doing something incorrectly?

Yes.  You need to explicitly add your changes to the index.

  git add doc/org.text

then git commit -m message will behave as you expect.

(Using git commit -a worked, because that is like doing a git add to
all modified files.)

It sounds like you misunderstand what git add does.  If you read a
little bit more about git workflows, I think it will make sense to you.

Perhaps the following link would be useful:
http://stackoverflow.com/questions/3689838/difference-between-head-working-tree-index-in-git

Hope that helps,
Josiah




Re: [O] Assistance with patching instructions on Worg

2014-01-31 Thread Josiah Schwab

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

 I was just following along with Worg, which doesn't mention doing
 that. I'm now thinking that `git add` must be implied in the line
 =make some changes (1)=?

Yes, I agree; as written, there is an implicit `git add`.  I think it
would be reasonable to make that explicit.

Best,
Josiah



Re: [O] Habits and Diary Type Dates?

2014-01-29 Thread Josiah Schwab

Aric Gregson writes:

 I have a habit that I want to do on certain days of the week only.
 [ ... snip ... ]
 Changing the date format back to an org date type format seems to
 solve the problem.

 Is there a work-around? 

I have a habit that I only do on weekdays, and the workaround that I
ended up using was to have separate copies of the task for each day of
the week that I want to do it.

See some related discussion at
http://comments.gmane.org/gmane.emacs.orgmode/47134

Josiah



Re: [O] Fwd: puzzling org-mime-htmlize

2014-01-08 Thread Josiah Schwab

Nick Dokos writes:

 BTW, I think the reference to ESR's smart questions paper has been
 added somewhere in Worg, but a few minutes search did not uncover it.
 Anybody know where it is?

There is a link to it on the front page.  Second to last line in the
Documentation and Literature section.

http://orgmode.org/#sec-2

Of course, it may be linked elsewhere too.

Best,
Josiah



Re: [O] org-mode habits graph dissapears

2013-12-19 Thread Josiah Schwab

Javier Ortiz writes:

 Thank you for your response!

Please CC the org-mode list in your responses.  Others can join the
conversation and the results will be archived for use by future users.

 I added
  (defcustom org-habit-show-all-today nil
  If non-nil, will show the consistency graph of all habits on
  today's agenda, even if they are not scheduled.
  :group 'org-habit
  :type 'boolean)

Here I was just quoting from org-habit.el.  This is not something you
would add you your .emacs.

 To my .emacs file, restarted emacs, then =C-a a=, but I don't see the
 consistency graph again.  Should I try something else?

I'm still not exactly sure what behavior you want, but it seems like
you want to customize one or the other of

,
| (defcustom org-habit-show-habits-only-for-today t
|   If non-nil, only show habits on today's agenda, and not for future days.
| Note that even when shown for future days, the graph is always
| relative to the current effective date.
|   :group 'org-habit
|   :type 'boolean)
`

,
| (defcustom org-habit-show-all-today nil
|   If non-nil, will show the consistency graph of all habits on
| today's agenda, even if they are not scheduled.
|   :group 'org-habit
|   :type 'boolean)
`

For example, suppose that I want habits shown today and at their future
scheduled date.  Then with the attached minimal startup file (adjust
paths as necessary and start emacs with emacs -Q -l minimal-org.el)
and orgmode 8.2.4, I see consistency graphs as one expects.

Josiah


minimal-org.el
Description: application/emacs-lisp


Re: [O] org-mode habits graph dissapears

2013-12-17 Thread Josiah Schwab
Hi Javier,

 Thank you for your response. Here it is what I do:

Thanks for the more detailed information.  This is helpful.  Please
continue to cc the org-mode list your responses.

 I open one of my agenda files, write the new habit, schedule it with
 C-s, then add a repeat interval, and then I do C-c C-x p, write
 =STYLE=, and then habit.  The result, is like this:

 * new habit
   SCHEDULED: 2013-12-17 Tue .+2d/4d
  :PROPERTIES:
  :STYLE:habit
  :END:

 I notice that I don't have the line: :LAST_REPEAT: then, I check my
 agenda, with C-a a, and I see the habit, with a color bar on the
 right, and the symbol !.  = personal: new habit !  =

 Then I mark the new habit as DONE,  C-c C-t DONE, now  I update the
 agenda view with r.  The new habit is gone, and It won't appear,
 again, If I check the agenda file, it says:

 * DONE new habit
  CLOSED: [2013-12-17 Tue 07:55]
 SCHEDULED: 2013-12-17 Tue .+2d/4d
  - State DONE   from STARTED[2013-12-17 Tue 07:55]
  :PROPERTIES:
  :STYLE:
habit
  :END:

 And It won't appear again, I noticed that it doesn't say:
 :LAST_REPEAT: Am I missing something?

If I follow your example, I observe the same behavior.  Though I dispute
that the habit won't appear again: I think it will, just in 2 days, when
it is time for you to do that habit again.  So as I understand it, you
are observing the expected behavior.

If this is not what you want, you may want to look at the ways to
customize org-habit, in particular

,
| (defcustom org-habit-show-all-today nil
|   If non-nil, will show the consistency graph of all habits on
| today's agenda, even if they are not scheduled.
|   :group 'org-habit
|   :type 'boolean)
`

If I 
  (setq org-habit-show-all-today t)
then all habits are shown, even ones which I don't need to do today.  At
least to me, this sounds like the behavior you are seeking.

Hope that helps,
Josiah



Re: [O] org-mode habits graph dissapears

2013-12-16 Thread Josiah Schwab

Javier Ortiz writes:

 Hi there!  I'm trying to learn about org-mode habits. Every time I
 write a new habit, I can see the color bar on the right, but after I
 mark the habit as Done, it never appears again, I wonder if somebody
 could give me some advice, on how to fix this.

Could you give us some more information?  For example, a sample habit
entry that displays this behavior would be useful.

Best,
Josiah




Re: [O] Changing capture frame/window behavior depending on source

2013-12-16 Thread Josiah Schwab

Josiah Schwab writes:

 When I invoke the capture from my bookmark, I also want capture to be
 the only window in the frame.  I can make all captures act that way by
 setting (add-hook 'org-capture-mode-hook 'delete-other-windows)

 But when I tried to have this part be source dependent with

 (defun jws/org-capture-initialize ()
   (if (jws/org-protocol-capture-p) 'delete-other-windows))

 (add-hook 'org-capture-mode-hook 'jws/org-capture-initialize)

 it still gave me a frame with two windows, for reasons I don't
 understand.  I stepped through the code with edebug and confirmed that
 jws/org-protocol-capture-p was evaluating to true.

Just to follow up, in case someone searches for this thread, 

(defun jws/org-capture-initialize ()
  (if (jws/org-protocol-capture-p) (delete-other-windows)))

works fine.  It helps to actually evaluate the function...

Josiah



[O] Changing capture frame/window behavior depending on source

2013-12-06 Thread Josiah Schwab
Hi All,

I have some bookmarks in chrome which trigger capture via org-protocol.
I would like the windowing behavior of capture to be different depending
where it is invoked.

For example, when I invoke capture from my bookmark, I want the frame
that the capture used to vanish after C-c C-c or C-c C-k.  I achieved
this via the following code.


(defun jws/org-protocol-capture-p ()
  Return true if this capture was initiated via org-protocol.
  (equal (buffer-name (org-capture-get :original-buffer))  *server*))

(defun jws/org-capture-after-finalize ()
  Delete frame if capture was initiated via org-protocol
  (if (jws/org-protocol-capture-p) (delete-frame)))

(add-hook 'org-capture-after-finalize-hook 'jws/org-capture-after-finalize)


When I invoke the capture from my bookmark, I also want capture to be
the only window in the frame.  I can make all captures act that way by
setting (add-hook 'org-capture-mode-hook 'delete-other-windows)

But when I tried to have this part be source dependent with

(defun jws/org-capture-initialize ()
  (if (jws/org-protocol-capture-p) 'delete-other-windows))

(add-hook 'org-capture-mode-hook 'jws/org-capture-initialize)

it still gave me a frame with two windows, for reasons I don't
understand.  I stepped through the code with edebug and confirmed that
jws/org-protocol-capture-p was evaluating to true.


Or perhaps there is there something more suitable for my hook than
'delete-other-windows?  Has anyone successfully done something similar?

Best,
Josiah



Re: [O] bug with :wrap when exporting

2013-12-05 Thread Josiah Schwab

Alan Schmitt writes:

 Off topic question: what does ECM stands for? (I understand it's a small
 example showing a bug, but I could not find the meaning of the
 acronym.)

Exemple Complet Minimal

http://orgmode.org/worg/org-faq.html#ecm

Best,
Josiah



Re: [O] org habit consistency graph

2013-12-03 Thread Josiah Schwab
Hi Chris,

 Anyone else help me identify the issue? Thanks.

Have you tried with a minimal org configuration?  I tried and cannot
reproduce the problem.  That suggests something else in your org
configuration as the culprit.

I have attached your example TODO (habit) as henderson-habit.org.
Update the paths as appropriate in the attached minimal-org.el, then
star emacs with it and see what happens for you.

emacs -Q -l minimal-org.el

After issuing M-x org-agenda a, I get an agenda with a consistency graph.

Best,
Josiah

* TODO exercise
  SCHEDULED: 2013-12-03 Tue .+1d
  - State DONE   from TODO   [2013-12-02 Mon 17:31]
  - State DONE   from TODO   [2013-12-02 Mon 17:30]
  :PROPERTIES:
  :LAST_REPEAT: [2013-12-02 Mon 17:31]
  :STYLE:habit
  :END:


minimal-org.el
Description: application/emacs-lisp


Re: [O] makefile target: update to latest release?

2013-11-08 Thread Josiah Schwab
Hi Miro,

 before attemting to implement the script I was wondering if there exists a
 makefile target that updates the repository to the latest release?

You may want to take a look at
  http://orgmode.org/worg/dev/org-build-system.html
in particular the targets under Compatibility and Convenience.

Best,
Josiah



Re: [O] org-store-link programmatically?

2013-11-01 Thread Josiah Schwab
Hi David,

 i want to write a piece of code as a 'template', which generates TODO
 using capture template, and inserts into the todo a LINK TO THE
 LOCATION, from which I have called the org-capture.

Have you looked at 9.1.3 Capture templates in the documentation?
http://orgmode.org/manual/Capture-templates.html

It seems to me that the example TODO entry given (using %a in the
template) will do what you describe:

,
| During expansion of the template, %a has been replaced by a link to
| the location from where you called the capture command. This can be
| extremely useful for deriving tasks from emails, for example.
`

Best,
Josiah



Re: [O] Difficulties Accessing git Repository

2013-10-08 Thread Josiah Schwab
Hi All,

 I just tried to pull from the main org-mode git repository.  I
 encountered the following failure.
 
 ,
 | monolith:(stable) org-mode$ git pull 
 | fatal: read error: Connection reset by peer
 `

 I can confirm this issue.  I successfully pulled earlier today though.

This seems to be intermittent.  It worked (~8 hours) later on October 2.
I tried to update a few minutes ago and again had a failure.

Is there any other information that would be useful to report?  I tried
to pull while at my home (residential ISP) and then my work
(university), and had failures both times.

Josiah



Re: [O] Yet another question about email and org-mode

2013-10-02 Thread Josiah Schwab
Hi Alan,

 I am happy to use native emacs mail, for sending email.  What I want to be
 able to do is keep a copy of my email in an org-mode file.

Taking a step back, is there a reason that you want to keep a copy of
the email contents in the org file, as opposed to including a link to
the email message?

Best,
Josiah



[O] Difficulties Accessing git Repository

2013-10-02 Thread Josiah Schwab
Hi orgmode.org overlords,

I just tried to pull from the main org-mode git repository.  I
encountered the following failure.

,
| monolith:(stable) org-mode$ git pull 
| fatal: read error: Connection reset by peer
`

I checked and I am able to pull from worg.

,
| monolith:(master) worg$ git pull
| Already up-to-date.
`

The most conspicuous difference between the two is that my org-mode repo
uses the git protocol while my worg repo uses the ssh protocol.  Since
the issue appears to just affect the git protocol, developers may be
less likely to notice.  Just wanted to bring it to your attention.

Best,
Josiah



Re: [O] A custom exporter

2013-09-23 Thread Josiah Schwab

 I'm toying with an idea of writing my own exporter backend, based on the
 html one.  My question is: what should I read to learn how to do this?
 I am aware of http://orgmode.org/worg/exporters/ox-overview.html, but
 ox-\(element-\)?docstrings look a bit scary.  I thought that reading
 the source code of some existing backend alongside the docstrings might
 be helpful.  Am I right?  Do you have any suggestions as to which one to
 choose first?  How did the authors of existing backends start learning
 how to do that, and do they have any tips for their younger colleague;)?

I'm also very much in the inexperienced camp, but I did find that
reading though a derived exporter (I read the ox-md.el) was useful.
Between that and asking couple of questions on this mailing list, I was
able to write the minimal exporter I needed.

Best,
Josiah



Re: [O] Customizing TOCs in Derived Exporters

2013-09-18 Thread Josiah Schwab

Rasmus writes:

 Josiah Schwab writes:

 How does one go about overriding org-html-toc, which unlike something
 like org-html-bold, does not appear in org-export-define-backend?  I
 don't want the TOC not to appear, rather want it to be generated by
 another function, org-md-toc or what have you.

 I'm not sure whether this would work with md simply 'cause I haven't
 worked with the html+friends exporter(s), but perhaps you could
 replace the inner-template, i.e. write a replacement for
 org-html-inner-template.

Yes, this suggestion worked for me.  Thank you for the advice.  Little
by little I will come to understand the new exporter (not that I
understood the old one).

Independent of the confusion it caused me while trying to figure out how
things work, it seems strange that the ox-md exporter generates a
non-markdown TOC using org-html-toc.  But I will leave that for those
who really use the markdown exporter, which is neither you or me.

Best,
Josiah




Re: [O] Customizing TOCs in Derived Exporters

2013-09-18 Thread Josiah Schwab

Rasmus writes:

 Josiah Schwab jsch...@gmail.com writes:

 Independent of the confusion it caused me while trying to figure out how
 things work, it seems strange that the ox-md exporter generates a
 non-markdown TOC using org-html-toc.  But I will leave that for those
 who really use the markdown exporter, which is neither you or me.

 Is there a vanilla-markdown TOC-keyword?  My understanding is that
 markdown always understand plain html, whence the html-toc is
 reusable.  If there is exists a vanilla-markdown TOC perhaps it should
 be used.

It sounds likely this is simply a confusion about the markdown
specification on my end then.

Thanks,
Josiah



[O] Customizing TOCs in Derived Exporters

2013-09-16 Thread Josiah Schwab
Hi All,

I'm working on writing a derived exporter and I've been using ox-md.el
as a template/guide.

If I use the markdown exporter to export the following org file

* Meeting Notes
** First Topic
*** Subtopic 1
+ a point
+ an *important* point
*** Subtopic 2
+ another point
+ an /interesting/ point
** Second Topic
One long announcement without any particular structure.

an html table of contents appears at the top of the exported file.

div id=table-of-contents
h2Table of Contents/h2
div id=text-table-of-contents
ul
lia href=#sec-11. Meeting Notes/a
ul
lia href=#sec-1-11.1. First Topic/a
ul
lia href=#sec-1-1-11.1.1. Subtopic 1/a/li
lia href=#sec-1-1-21.1.2. Subtopic 2/a/li
/ul
/li
lia href=#sec-1-21.2. Second Topic/a/li
/ul
/li
/ul
/div
/div
# Meeting Notes

## First Topic

### Subtopic 1

-   a point

-   an **important** point

### Subtopic 2

-   another point

-   an *interesting* point

## Second Topic

One long announcement without any particular structure.

How does one go about overriding org-html-toc, which unlike something
like org-html-bold, does not appear in org-export-define-backend?  I
don't want the TOC not to appear, rather want it to be generated by
another function, org-md-toc or what have you.

Thanks,
Josiah


[O] Org-protocol/org-capture and new emacsclient frames

2013-08-20 Thread Josiah Schwab
Hi All,

I am in the process of setting up org-protocol to allow me to capture
links from chromium into my TODOs.

After reading this worg article
http://orgmode.org/worg/org-contrib/org-protocol.html
I have the chrome - org portion working.

When I click my bookmark, which is
  
javascript:location.href='org-protocol://capture://W/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
the org-protocol link is handled correctly, spawning the command
  /usr/bin/emacsclient -c -n 
org-protocol://capture://W/https%3A%2F%2Fwww.google.com%2F/Google/
and that interacts with my capture template
  (W Web TODO entry (file org-default-notes-file) * TODO %?\n%U\n%a\n)
to open up a capture buffer that looks like what I want.

All is good except for two undesired behaviors:
  1) I get a new emacs frame which is split, with the capture buffer
  only occupying one half.
  2) When I finish capture with C-c C-c the frame sticks around.

I suppose this is more of an emacs question (org has done its thing),
but a similar question has been discussed on this list before:
http://comments.gmane.org/gmane.emacs.orgmode/33650 

Because that discussion was not making use of org-protocol, I was not
able to generalize its conclusions to my circumstance.

Suggestions or pointers to other resources would be welcome.

Best,
Josiah



Re: [O] small patch for worg on encrypting files

2013-07-31 Thread Josiah Schwab
Alan Schmitt writes:

 I just played with encrypting an org file, and I found a couple typos
 and corrections for this page. I attach the patch that would fix them.

Applied.

Josiah



Re: [O] Tutorial Typos

2013-07-15 Thread Josiah Schwab
Hi Patrick,

 While looking through the tutorial,
 http://orgmode.org/worg/org-tutorials/org4beginners.htmlI found a few
 typos which were confusing to me at first.

Thank you for the report.  I will push a fix to worg shortly.

Best,
Josiah



[O] Broken Link on worg (org-contribute)

2013-07-01 Thread Josiah Schwab
The link to the emacs elisp coding conventions on the page
http://orgmode.org/worg/org-contribute.html
was incorrect.

I have attached a patch which fixes the link.

Best,
Josiah

From a6a3872b0bcf5971dfc9cb51f5562cdff57a723e Mon Sep 17 00:00:00 2001
From: Josiah Schwab jsch...@gmail.com
Date: Mon, 1 Jul 2013 22:25:06 -0700
Subject: [PATCH] org-contribute: Fix 404 for elisp coding conventions page

---
 org-contribute.org | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-contribute.org b/org-contribute.org
index 829b1a1..080b1f1 100644
--- a/org-contribute.org
+++ b/org-contribute.org
@@ -120,7 +120,7 @@ them.
 
 ** Coding conventions
 
-Org is part of Emacs, so any contribution should follow the [[http://www.gnu.org/software/emacs/elisp/html_node/Coding-Conventions.html][GNU Emacs Lisp
+Org is part of Emacs, so any contribution should follow the [[http://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-Conventions.html][GNU Emacs Lisp
 coding conventions]] described in Emacs manual.
 
 ** Sending patch with git
-- 
1.8.3.2



Re: [O] Modifying the Beamer Exporter

2013-06-30 Thread Josiah Schwab

 I want to include my collaborators in the header of each org file just
 as I would authors, that is by including a line like

 #+COLLABORATORS: Alice  Bob

 I've found some limited documentation on modifying the exporter (manual
 section 12.3) and taken a look at ox.el, ox-latex.el, ox-beamer.el, etc.

 What I did was:
   + Create a new backend derived from the beamer one
 + add COLLABORATORS to its options-alist
 + set the template (in translate-alist) to one handling collaborators

 This works, but before I continued on making other modifications (in a
 similar vein), I wanted to check in with people with a higher level
 understanding.

 In general if it's generally useful make a patch (if feasible). . .

 Could you point out exactly which function (with ref to the Beamer
 manual) you're using?  Searching for collaborator in the manual didn't
 give me any hints. . .

For my subtitle example, \subtitle{} is a beamer command so I can make
a patch for that and see what people think.

There is no beamer command for collaborators -- which is why you didn't
find it in the manual.  But I almost always have collaborators on my
presentations, so I want to choose once how to render collaborators and
then ever after only have to set the content.

That could either mean adding a custom \collaborators{} command in my
personal beamer theme and have the exporter set that appropriately or
just having my local exporter do something like

(format \\author{%s {\\small with %s}}\n author collaborators)

when COLLABORATORS is set.

 Maybe, maybe not.  Difficult to say unless you give us a better idea of
 what kind of changes you plan on making.

 To add to Eric's comment: Filters is a viable option and potentially
 more sustainable if your code ain't submitted up stream.

Ok, I will go read more about filters in the manual and come back to
the list if I have questions.

Thanks for your time!

Best,
Josiah



[O] Modifying the Beamer Exporter

2013-06-28 Thread Josiah Schwab
Hi All,

I am just starting to dig into using the new exporter for generating
beamer presentations.

I want to include my collaborators in the header of each org file just
as I would authors, that is by including a line like

#+COLLABORATORS: Alice  Bob

I've found some limited documentation on modifying the exporter (manual
section 12.3) and taken a look at ox.el, ox-latex.el, ox-beamer.el, etc.

What I did was:
  + Create a new backend derived from the beamer one
+ add COLLABORATORS to its options-alist
+ set the template (in translate-alist) to one handling collaborators

This works, but before I continued on making other modifications (in a
similar vein), I wanted to check in with people with a higher level
understanding.

Does this sound like a reasonable approach?

Any suggestions or pointers to existing documentation/examples would be
appreciated.

Thanks,
Josiah



Re: [O] Modifying the Beamer Exporter

2013-06-28 Thread Josiah Schwab
 Maybe, maybe not.  Difficult to say unless you give us a better idea of
 what kind of changes you plan on making.

I'm a little hazy, partially because my ideas seem to change quickly as
I learn more.

One of the more ambitious things that I'd like to do is to be able to
associate BibTeX references with a headlines in a way such that they are
collected at the level of the frame-headline and then rendered uniformly
in the page footers.

 In general, I find it sufficient to add a little bit of LaTeX code to my
 org files for most customisations or beamer specific commands.  The
 great thing about org is that it is easy to write LaTeX directly when
 you need it.  It's only if you wish to address different export targets
 that things become more complicated, but that's not what you are doing.

 Maybe gives us some idea of what it is you cannot do with ox-beamer and
 we can suggest whether what you intend to do is reasonable or not.

At least so far, it's no so much a question of can't, as a matter of
style.

#+AUTHOR: Josiah \\ \small with Alice  Bob

vs

#+AUTHOR: Josiah
#+COLLABORATORS: Alice  Bob

Another example would be the use of a subtitle.

#+LATEX_HEADER: \subtitle{An Illustrative Example}

vs

#+SUBTITLE: An Illustrative Example

I have a preference for the cleaner version and wanted to implement it
in a way that it likely to age well as org development progresses.

Best,
Josiah



Re: [O] org-list-allow-alphabetical LaTeX export

2013-06-06 Thread Josiah Schwab
 On 6 jun. 2013, at 10:20, Michael Bach phaebz at gmail.com wrote:
 The LaTeX exporter does not honor the setting of 
 org-list-allow-alphabetical.  

A week or so ago I asked a similar question about the HTML export and lists.
http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg01324.html
So I just wanted to toss in my 2¢.

On Jun 6, 2013, at 2:17 AM, Carsten Dominik wrote:
 Conventions about the type of bullet to be used in a document belong to the 
 typesetting side, and I rather establish a global setting for a document than 
 follow my momentary decisions when I write the Org-mode version of it.  On a 
 similar vein, we do have lists starting with - and * and +, but we still let 
 LaTeX and HTML choose what to use as a bullet.  To me this feels like the 
 right behavior.

I think this argument makes sense;  and to be honest, that's probably how I 
want the exporter to behave most of the time.

However, there is particular use case where I find this frustrating, which is 
writing problem sets.  There I like to reference other parts of the problems by 
name.  For example, 

a) Do something.
b) Use your answer in part a) to do something else.

Then, if I want to export it to multiple formats (say, html and pdf), there is 
no general way to tell orgmode: my alphabetical bullet choice was meaningful, 
please try to preserve it.  One ends up inserting little workarounds for each 
export format.  Which is not a big deal, but when everything else works so 
seamlessly it's these little things that stand out :)

Best,
Josiah


Re: [O] org-list-allow-alphabetical LaTeX export

2013-06-06 Thread Josiah Schwab
 Why doesn't this cut it:
 
 #+BEGIN_SRC org
 1. 1 Do something.
 2. Use your answer in part [[1]] to do something else.
 #+END_SRC

That will work ok in LaTeX I think.
But that will export to HTML like

ol class=org-ol
lia id=1 name=1/a Do something.
/li
liUse your answer in part a href=#11/a to do something else.
/li
/ol

and the link name will remain 1, even if one adds type=a to the ol tag to 
adjust the bullet appearance.

Josiah


Re: [O] org-list-allow-alphabetical LaTeX export

2013-06-06 Thread Josiah Schwab
 However, the type=a thingie in ol is a bad idea: it is deprecated in
 the HTML spec, so it would be foolish to go chasing after it in org.

I'll take a closer look the rest of your message to tomorrow, but I wanted
to mention that while type was deprecated in HTML4 that is no longer the
case in HTML5.

http://www.w3.org/TR/html-markup/ol.html#ol.attrs.type

Best,
Josiah



[O] Ordered List (Alphabetical) and HTML Export

2013-05-30 Thread Josiah Schwab
Hi All,

I am using orgmode 8.0.3 with emacs 24.3.  I frequently use
ordered lists with alphabetical bullets.  I have
  (setq org-list-allow-alphabetical t)
in my .emacs.

I just noticed that when I export an alphabetical list using the HTML
exporter, it appears as a numerical list in the rendered HTML.  My
expectation was that the ol tags for this list would look like ol
type=a, but instead they are just plain ol. (At the end of the
message is a snippet that lets you reproduce this.)

From poking around in ox-html.el (specfically, looking at
org-html-begin-plain-list), I see that there is no code that handles
the list type.

I spent a few minutes looking at org-list.el, but I'm new enough to
both org-mode and elisp, that I couldn't immediately see how to extend
org-html-begin-plain-list so that it could figure out the kind of list
bullet and properly set the type.

Could anyone help walk me through what one would need to do to get the
desired behavior of HTML export preserving alphabetically bulleted
lists?

Best,
Josiah Schwab

P.S.  Here's an example org snippet.

* Letters
a. foo
b. bar
c. baz
* Numbers
1. foo
2. bar
3. baz