Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Alan Tyree
3 days, 2 hours, 25 minutes, 36 seconds

2.35% of cache searches hashed, 78.11% non-hashable.

Org mode version 9.6.1 ( @ /home/alant/.emacs.d/elpa/org-9.6.1/)



On Fri, 10 Feb 2023 at 22:18, Fraga, Eric  wrote:

> 10.48% of cache searches hashed, 5.66% non-hashable.
> 2 days, 17 hours, 12 minutes, 29 seconds
>
> --
> : Eric S Fraga, with org release_9.6-201-gb58fba in Emacs 30.0.50
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: How to debug a CSL problem

2022-06-06 Thread Alan Tyree
Hi Andras,
I will do that. Thanks to all of you for your help and for the great
system. I cannot believe that I once wrote using word processors!!
Cheers,
Alan

On Mon, 6 Jun 2022 at 15:34, András Simonyi 
wrote:

> Dear All,
>
> On Mon, 6 Jun 2022 at 03:45, Alan Tyree  wrote:
>
> > A short random test shows that the export chokes when there is a single
> name for an author. Again an example:
> > author = {{Wolfsberg Group}} works fine;
> > author = {{Wolfsberg}} chokes.
>
> Alan, could you open an issue in the citeproc-el issue tracker about
> this? Definitely looks like a citeproc-el bug and should be rather
> easy to fix. Thanks in advance!
>
> best wishes,
> András
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: How to debug a CSL problem

2022-06-05 Thread Alan Tyree
Thanks, Ihor. That found it.

The bibtex entry had:
author = {BIS},

Change to:
author = {{Bank for International Settlements}},

and it all works a treat.

A short random test shows that the export chokes when there is a single
name for an author. Again an example:
author = {{Wolfsberg Group}} works fine;
author = {{Wolfsberg}} chokes.

Thanks to you and to Bruce for the help.

Cheers,
Alan




On Mon, 6 Jun 2022 at 11:03, Ihor Radchenko  wrote:

> Alan Tyree  writes:
>
> > I guess the bad news is that the csl file validates. I also should have
> > mentioned that everything parses properly with pandoc, so I guess it is a
> > cireproc-el glitch.
> >
> > From the brief error report, it must just be choking  on a specific
> bibtex
> > entry, so it would still be helpful to be able to find it.
>
> Run M-x toggle-debug-on-error and then try to trigger the error. Then,
> you will be able to see the whole backtrace and potentially find out the
> problematic BiBTeX entry. If backtrace does not help, you may need to
> use M-x debug-on-entry and use debugger (See 19.1 The Lisp Debugger in
> Elisp manual).
>
> Best,
> Ihor
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: How to debug a CSL problem

2022-06-05 Thread Alan Tyree
Thanks for the prompt reply, Bruce.

I guess the bad news is that the csl file validates. I also should have
mentioned that everything parses properly with pandoc, so I guess it is a
cireproc-el glitch.

>From the brief error report, it must just be choking  on a specific bibtex
entry, so it would still be helpful to be able to find it.

Cheers,
Alan

On Mon, 6 Jun 2022 at 09:15, Bruce D'Arcus  wrote:

> On Sun, Jun 5, 2022 at 6:48 PM Alan Tyree  wrote:
>
> > I need some help with a debugging problem:
> >
> > I'm using
> >
> > #+cite_export: csl ~/Templates/csl/AGLC-intext.csl
> >
> > where AGLC-intext.csl is a custom csl file.
>
> I'm not sure if citeproc-el checks validity before running, but have
> you confirmed it's a valid style?
>
> This is the easiest way to do that, if you don't have a relax ng
> validator setup, with the schemas and such.
>
> https://validator.citationstyles.org/
>
> If yes, and it is valid, I would report it to the citeproc-el issue
> tracker.
>
> If your bib file(s) work fine with other CSL styles, it seems likely
> it's something with the style or the style and citeproc-el.
>
> Bruce
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


How to debug a CSL problem

2022-06-05 Thread Alan Tyree
I need some help with a debugging problem:

I'm using

#+cite_export: csl ~/Templates/csl/AGLC-intext.csl

where AGLC-intext.csl is a custom csl file.

Exporting to html gives this error in *Messages*:

citeproc-s-slice-by-matches: Wrong type argument: stringp, nil

The error does not occur with different csl files.

Is there some way other than bisection that I can find the citation that is
causing the error?

Emacs 27.1 on Debian stable.
Org version 9.5.4 from Melpa-stable

Thanks for any tips,

Alan

-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: Citation glitch

2022-05-05 Thread Alan Tyree
Thanks, Bruce. 0.9 is the current version from Melpa-stable and appears to
have been released last August.

I'll update as you suggest.
Cheers,
Alan

On Thu, 5 May 2022 at 23:32, Bruce D'Arcus  wrote:

> You don't need citeproc-org, which is deprecated AFAIK.
>
> Do update citeproc-el. I'm not sure when he tagged v0.9, but this is
> the commit that should have fixed it.
>
>
> https://github.com/andras-simonyi/citeproc-el/commit/a702e73dcbd34cbda3a7465cf0cace7529f41dcd
>
> If you still have problems, you might report it to that project?
>
> On Wed, May 4, 2022 at 8:45 PM Alan Tyree  wrote:
> >
> > I'm not sure.
> >
> > citeproc-0.9
> > citeproc-org-0.2.4
> >
> > On Thu, 5 May 2022 at 10:34, Bruce D'Arcus  wrote:
> >>
> >> It seems this should have been fixed late in citeproc-el in 2021:
> >>
> >> https://github.com/andras-simonyi/citeproc-el/issues/72
> >>
> >> Are you using the most up-to-date code?
> >>
> >> On Wed, May 4, 2022, 8:19 PM Alan Tyree  wrote:
> >>>
> >>> G'day,
> >>> I have a citation problem. The bibtex entry is:
> >>> @TechReport{name32:_some,
> >>>   author = {{Some Company Name}},
> >>>   title = {Some silly internal document},
> >>>   institution =  {Some Company Name Ltd},
> >>>   year = 1832}
> >>>
> >>> The exporter is: #+cite_export: csl ~/Templates/csl/AGLC-intext.csl
> >>>
> >>> Org exports to html: Name, Some Company, Some Silly Internal Document
> (Some Company Name Ltd, 1832).
> >>>
> >>> I thought it was a CSL problem, but pandoc exports it correctly as
> Some Company Name, etc.
> >>>
> >>> Any help appreciated,
> >>> Alan
> >>>
> >>>
> >>> --
> >>> Alan L Tyreehttp://www2.austlii.edu.au/~alan
> >>>
> >
> >
> > --
> > Alan L Tyreehttp://www2.austlii.edu.au/~alan
> >
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: Citation glitch

2022-05-04 Thread Alan Tyree
I'm not sure.

citeproc-0.9
citeproc-org-0.2.4

On Thu, 5 May 2022 at 10:34, Bruce D'Arcus  wrote:

> It seems this should have been fixed late in citeproc-el in 2021:
>
> https://github.com/andras-simonyi/citeproc-el/issues/72
>
> Are you using the most up-to-date code?
>
> On Wed, May 4, 2022, 8:19 PM Alan Tyree  wrote:
>
>> G'day,
>> I have a citation problem. The bibtex entry is:
>> @TechReport{name32:_some,
>>   author = {{Some Company Name}},
>>   title = {Some silly internal document},
>>   institution =  {Some Company Name Ltd},
>>   year = 1832}
>>
>> The exporter is: #+cite_export: csl ~/Templates/csl/AGLC-intext.csl
>>
>> Org exports to html: Name, Some Company, *Some Silly Internal Document*
>> (Some Company Name Ltd, 1832).
>>
>> I thought it was a CSL problem, but pandoc exports it correctly as Some
>> Company Name, etc.
>>
>> Any help appreciated,
>> Alan
>>
>>
>> --
>> Alan L Tyreehttp://www2.austlii.edu.au/~alan
>>
>>

-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Citation glitch

2022-05-04 Thread Alan Tyree
G'day,
I have a citation problem. The bibtex entry is:
@TechReport{name32:_some,
  author = {{Some Company Name}},
  title = {Some silly internal document},
  institution =  {Some Company Name Ltd},
  year = 1832}

The exporter is: #+cite_export: csl ~/Templates/csl/AGLC-intext.csl

Org exports to html: Name, Some Company, *Some Silly Internal Document*
(Some Company Name Ltd, 1832).

I thought it was a CSL problem, but pandoc exports it correctly as Some
Company Name, etc.

Any help appreciated,
Alan


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: Publish to PDF on Linux: An impossible task?

2019-11-11 Thread Alan Tyree
I don't know if this helps, but I am running Manjaro, using the repository
packages and have no problem with export. The installed texlive packages
are:

texlive-bin
texlive-core
texlive-humanities
texlive-latexextra

I have no problems with either org export or any pandoc conversions.

Cheers,
Alan

On Tue, 12 Nov 2019 at 07:26, Alan E. Davis  wrote:

> Arch linux has a package, aside from any arch directly installed
> individualized texlive packages, that just installs the texlive network
> install script, and directs the user to run the script that is located in
> /opt .
>
> This piece of magic is "texlive-installer",   available in the Arch Users
> Repository (AUR), makes it easier to use texlive from upstream sources, by
> doing the necessary work of handling dependencies.   Debian based distros
> require to install a dummy package to accomplish this, and some kind of
> tweaking may be necessary on other distros.  Once AUR is set up, I have run
> "yay -S texlive-installer" or one may use other AUR helpers.   I think it's
> not possible to install this with pacman.
>
> As far as this problem of the OP, I cannot help.
>
> Alan Davis
>
> On Mon, Nov 11, 2019 at 12:13 PM Jack Kamm  wrote:
>
>> John Hendy  writes:
>>
>> > By "LaTeX" I mean "that which is necessary to have a functioning latex
>> > system." If by lower-level you mean the ecosystem itself vs. compiling
>> > errors, completely agree. Clearly some core components are missing.
>> > For example, the texmf.cnf file is provided by the arch package
>> > texlive-core (assuming a package was used), so that's potentially not
>> > even installed.
>> > - https://www.archlinux.org/packages/extra/any/texlive-core/
>>
>> I would also suggest referring to
>> https://wiki.archlinux.org/index.php/TeX_Live#Installation for the
>> packages to install on Arch. I myself am using Archlinux-packaged TeX
>> Live without any issues. I believe I installed "texlive-most",
>> "texlive-lang", and "biber", which are the 3 main packages/groups
>> recommended by the wiki.
>>
>>
>
> --
> [Fill in the blanks]
>
> The use of corrupt manipulations and blatant rhetorical ploys ...---
> outright lying, flagwaving, personal attacks, setting up phony
> alternatives, misdirection, jargon-mongering, evading key issues, feigning
> disinterested objectivity, willful misunderstanding of other points of
> view---suggests that ... lacks both credibility and evidence.
>
>   Edward Tufte (in context of making presentations)
>
>
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


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

2018-04-30 Thread Alan Tyree
I'm a non-technical user, and I've never used ysnippets, but I'm willing to
give it a go with some proper instruction.

I do see the argument of both sides.

Here is a question: I see specialised snippet packages in the ELPA
respositories. Is it possible to provide snippets that reproduce the
existing "Easy Templates", maybe even keep the same key bindings so that
the change is transparent to the users that are likely to have the troubles
referred to by Bastien?

It is a genuine question since I have no idea of the problems involved.

I'll keep using org no matter what you decide!

Cheers,
Alan


On 1 May 2018 at 08:49, Kaushal Modi  wrote:

> Hi all,
>
> I normally am all for adapting to changes, staying on bleeding edges of
> emacs, Org, etc.
>
> But FWIW, for this particular change to the " the camp of "It was working awesome, it was beautiful! Why change it?". For
> record, I understand the "why", but it just doesn't seem worth it in this
> case.
>
> But the good thing is that this is open source, and you can backport the
> stuff you like from the original Easy Template code into your personal
> Emacs config (and then later adapt to the new way of doing the similar when
> you have time and motivation).
>
> Kaushal
> --
>
> Kaushal Modi
>



-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: [O] DEADLINE: position in entry

2016-11-10 Thread Alan Tyree
On 11 November 2016 at 11:12, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Alan Tyree <alanty...@gmail.com> writes:
>
> > Will you please double check this? On my system, the entry does *not*
> show
> > up in the agenda (C-c a a). If I remove the DEADLINE:, then it does show
> > up. So, for the important purpose under discussion, the timestamp is
> > ignored.
>
> You are right, the timestamp was ignored, but that's a bug. I fixed it.
> Thank you.
>
> Regards,
>

Glad it is all cleared up. Thanks for a great piece of software!
Alan

-- 
Alan L Tyreehttp://austlii.edu.au/~alan
<http://www2.austlii.edu.au/~alan>
Tel:  04 2748 6206sip:typh...@iptel.org


Re: [O] DEADLINE: position in entry

2016-11-10 Thread Alan Tyree
On 11 November 2016 at 02:08, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Alan Tyree <alanty...@gmail.com> writes:
>
> > Suggested wording:
> >
> > In 8.1:
> >
> >
> > timestamp can appear anywhere in the headline or body of an Org tree
> > entr UNLESS is is preceded by a keyword in which case it must be properly
> > positioned or it will be ignored: see 8.3 for details.
>
> This is wrong. Only the keyword is ignored, not the timestamp. This is
> why DEADLINE and SCHEDULED location is unrelated to section 8.1.
>

Hi Nicolas,
Will you please double check this? On my system, the entry does *not* show
up in the agenda (C-c a a). If I remove the DEADLINE:, then it does show
up. So, for the important purpose under discussion, the timestamp is
ignored.

Emacs version 24.4.1 on Debian Stable

org-version: Org mode version 9.0 (9.0-elpaplus @
/home/alant/.emacs.d/elpa/org-plus-contrib-20161102/)




>
> > A timestamp may be preceded by special keywords to facilitate planning.
> > WARNING: both the timestamp and the keyword are ignored if not positioned
> > immediately following the headline. No space or other text is allowed.
>
> I think "immediately following the headline" is unambiguous. No need to
> specify "no space or other text is allowed".
>
> I modified section 8.3 accordingly.
>
> WDYT?
>
> Subject to the above, OK. Just so long as there is a good strong warning
about it.

Thanks,
Alan

Regards,
>
> --
> Nicolas Goaziou
>



-- 
Alan L Tyreehttp://austlii.edu.au/~alan
<http://www2.austlii.edu.au/%7Ealan>
Tel:  04 2748 6206sip:typh...@iptel.org


Re: [O] DEADLINE: position in entry

2016-11-09 Thread Alan Tyree
On 10 November 2016 at 10:47, Samuel Wales  wrote:

> iirc we've discussed whether planning lines (i.e. scheduled, deadline,
> closed at this time) should be flexible.  we concluded to make them
> strict.
>
> check archives for the discussion.  :) everything goes through this
> mailing list.
>
> OK, I'll accept that and have a look at the rationale. However, since
DEADLINE: is so terribly important, I think that there should be a
prominent warning in the manual that they are simply ignored if not
positioned correctly. Warnings should appear, at the very least, in 8.1 and
8.3.

Suggested wording:

In 8.1:


timestamp can appear anywhere in the headline or body of an Org tree
entr UNLESS is is preceded by a keyword in which case it must be properly
positioned or it will be ignored: see 8.3 for details.

In 8.3:

A timestamp may be preceded by special keywords to facilitate planning.
WARNING: both the timestamp and the keyword are ignored if not positioned
immediately following the headline. No space or other text is allowed.

Regards,
Alan


> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>
> The disease DOES progress.  MANY people have died from it.  And
> ANYBODY can get it.
>
> Denmark: free Karina Hansen NOW.
>   UPDATE 2016-10: home, but not fully free
>



-- 
Alan L Tyreehttp://austlii.edu.au/~alan

Tel:  04 2748 6206sip:typh...@iptel.org


Re: [O] DEADLINE: position in entry

2016-11-09 Thread Alan Tyree
On 10 November 2016 at 10:36, Nicolas Goaziou 
wrote:

> Hello,
>
> Alan L Tyree  writes:
>
> > On 10/11/16 05:51, Philip Hudson wrote:
>
> > Also, if this really is the case, then the manual needs to be
> > modified. Under 8.1, it says
> >
> > " A timestamp can appear anywhere in the headline or body of an Org tree
> > entry."
>
> Section 8.1 is about regular time-stamps, which are not necessarily tied
> to DEADLINE and SCHEDULED keyword. Therefore, the sentence above is
> true.
>
> > and under 8.3:
> >
> > "A timestamp may be preceded by special keywords to facilitate planning:"
> >
> > I can't see anywhere that requires the DEADLINE: keyword to be flush
> > against a heading.
>
> This is in 8.3.1, first footnote.
>
> So it is. Not exactly prominent :-). I still think the manual is
misleading, and is there some reason that "planning" items are treated
different from plain old appointment timestamps? I just seems (to a
non-programmer) to be an unnecessary restriction.

Cheers,
Alan


> Regards,
>
> --
> Nicolas Goaziou
>



-- 
Alan L Tyreehttp://austlii.edu.au/~alan

Tel:  04 2748 6206sip:typh...@iptel.org


[O] DEADLINE: position in entry

2016-11-09 Thread Alan Tyree
Is this the way it should be? The first DEADLINE: shows up both as a
warning and on the due date in the agenda, but the second one does not. It
only works for me if the DEADLINE: is the first line after the heading.
Version 9, emacs 24

*** test 1
DEADLINE: <2016-11-19 Sat>

*** test 2

DEADLINE: <2016-11-19 Sat>


Thanks,
Alan


-- 
Alan L Tyreehttp://austlii.edu.au/~alan

Tel:  04 2748 6206sip:typh...@iptel.org


Re: [O] how to speed up an org-mode file?

2016-07-10 Thread Alan Tyree
There must be something more than this. I sometimes work on a similar size
file on an HP Chromebook using emacs in a Crouton installation and have no
problems at all with speed. It is a nox emacs installation, if that matters.

Alan

On 11 July 2016 at 08:34, John Kitchin  wrote:

> I find it sometimes helpful to narrow to a section in large documents.
>
>
> On July 10, 2016, at 3:37 PM, Leo Noordhuizen 
> wrote:
>
>
> Yes. You obviously have ample resources in that area!
>
> Op zo 10 jul. 2016 21:05 schreef Sharon Kimble  >:
>
>> Leo Noordhuizen  writes:
>>
>> > Maybe an (too ?) obvious suggestion: Get more memory ?
>>
>> I'm working on a computer with 16g of ram and 31g of swap, which would
>> be adequate for almost anything I think. At the moment getting more ram
>> isn't a viable option, I have to stick with what I've already got.
>>
>> Thanks
>> Sharon.
>> >
>> > On Sun, 10 Jul 2016 at 16:37 Sharon Kimble 
>> wrote:
>> >
>> > I'm working on an org-mode file about cancer which is 945.1kb, is
>> > converted to a tex file of 1.0mb and a pdf of 2.0mb with 505 pages.
>> The
>> > conversion is done through this code snippet '(global-set-key (kbd
>> > "s-#") 'org-latex-export-to-latex)'. There is no problem with the
>> > conversion to tex or conversion to pdf.
>> >
>> > However, the org-mode file is increasingly slowing down and becoming
>> > difficult to move about within the file, and also enter new
>> information
>> > within it.
>> >
>> > How then can I speed it up within the org file please?
>> >
>> --
>> A taste of linux = http://www.sharons.org.uk
>> TGmeds = http://www.tgmeds.org.uk
>> Debian 8.4, fluxbox 1.3.7, emacs 25.0.95
>>
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


Re: [O] LaTex export questions

2014-06-02 Thread Alan Tyree
Thanks for the kind words, Martin. I hope you stay inspired since making a
few homemade paperbacks sounds like something I'd like to try.

Cheers,
Alan


On 31 May 2014 17:25, Martin Schöön martin.sch...@gmail.com wrote:

 On 28 May 2014 06:31, Alan Tyree typh...@aanet.com.au wrote:

 Hi Steven,
 You want to learn more about LaTeX, but it's not too much.

 I wrote a little book called Self-publishing with LyX that will help you
 set up the title page as well as some of your other problems. This is not a
 sales pitch -- it's free :-).

  Self-publishing with LyX
 ISBN: 978-0-9803-3242-1
 http://www.lulu.com/content/1085870

 Cheers,
 Alan


 I half-way through your book and it is a good read! I am a long-time LyX
 fan so you are preaching for the choir ad far as I am concerned :-)

 Now I feel tempted (inspired) to  create a small DIY book binding
 introduction. I have experimented with this a bit and find you can do
 decent paperbacks with very limited resources.

 --
 Martin Schöön

 http://hem.bredband.net/b262106/index.html




-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


Re: [O] LaTex export questions

2014-05-27 Thread Alan Tyree
Hi Steven,
You want to learn more about LaTeX, but it's not too much.

I wrote a little book called Self-publishing with LyX that will help you
set up the title page as well as some of your other problems. This is not a
sales pitch -- it's free :-).

 Self-publishing with LyX
ISBN: 978-0-9803-3242-1
http://www.lulu.com/content/1085870

Cheers,
Alan



On 28 May 2014 13:25, Steven Arntson ste...@stevenarntson.com wrote:

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

  Igor Sosa Mayor joseleopoldo1...@gmail.com writes:
 
  Steven Arntson ste...@stevenarntson.com writes:
 
  Hi, I'm trying to export an org-mode doc to LaTex and subsequently to
  PDF. This is a literary novel, written in prose. Right now when I run
  the export command, the resulting file is incorrectly formatted for the
  literary world, and I'm not sure how to change it. Is there a dialog or
  customize menu that allows users to eliminate some default settings,
  and add others?
 
  Maybe you can configure it with
  M-x customize-group org
 
  But I think a look at the manual is pretty useful and you can configure
  it in your .emacs without very much complication:
 
  http://orgmode.org/manual/Export-settings.html#Export-settings
 
 http://orgmode.org/manual/LaTeX-and-PDF-export.html#LaTeX-and-PDF-export
 
  I may be barking up the wrong tree, but to me the problem seems to be
  not so much what org does, but what latex does. If that is so, then
  perhaps what is needed is a latex style file that formats prose
  correctly for the literary world. That may be a non-trivial
  undertaking (but maybe not: typographical demands for a novel are
  trivial compared to say mathematics). Integrating such a hypothetical
  style file into org would be pretty easy.
 
  But perhaps the OP can clarify: what does incorrectly formatted for
  the literary world mean?
 
  Nick

 Full disclosure: I'm a beginning emacs user, and I know nothing about
 LaTex at all!

 I'm not producing a book per se, but a manuscript that will be
 printed on 8.5 x 11 pages and read by my agent or a publisher. The
 conventions are simple, but thus far I haven't been able to understand
 much of what I'm reading in the customize menu for org-mode.

 Until now I've done this formatting with MS Word or Libre Office. I
 dislike those programs, but I know how to use them. Simplest has been to
 take my raw org-mode txt files and convert them manually. It's a tedious
 last step before sending downstream, which I'd love to replace, and I've
 seen some beautiful LaTex examples online, so I know it's possible ...

 Literary format redux:
 + 12 point text
 + Title page has title and author name, centered both horizontally and
 vertically. Contact info for agent is in the bottom left, single spaced.
 + Remaining pages are double-spaced
 + Page numbers are centered at the bottom of the page (but no page number
 on title page)
 + Each page has a right-justified header in the format LASTNAME/TITLE

 That's it. I guess I'm wondering now--should I be learning more about
 org-mode, or more about LaTex?

 Thank you very much for taking the time to read all of this.

 -Steven






-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


Re: [O] Pandoc users, how do you use it with org-mode, and why?

2014-05-22 Thread Alan Tyree
Hi Eric,
My solution was a keyboard macro at the LaTeX stage, replacing

\ref{sec-3-2-1} with 3.2.1 in the text.

Not very elegant, but it works for the time being when I don't have the
time to consider anything better.

A filter would obviously be better, but my elisp skills mean that it would
take more time than I have right now.

Also not a good solution since it trashes the LaTeX file. In my case,
that's OK since the LaTeX file is just a means to an end.

Cheers,
Alan


On 22 May 2014 18:44, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Thursday, 22 May 2014 at 08:24, Alan L Tyree wrote:

 [...]

  It is good EXCEPT my book contains many, many cross references. In
  docx they come out looking like:
 
  see [sec-3-4-2] when I want them to look like see 3.4.2.

 I have a few of these, few enough that post-processing by hand is
 reasonable.  However, if you do find a solution to this, I would be very
 happy to hear of it!

 Thanks,
 eric
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-949-g751506




-- 
Alan L Tyree
http://austlii.edu.au/~alanhttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206sip:typh...@iptel.org


[O] Keyboard macro and org-mode

2014-05-04 Thread Alan Tyree
I was trying to build a keyboard macro to remove targets of the form

sec:some_title

When in org-mode, emacs hangs after C-s . If I turn off org mode and use a
simple text mode, the keyboard macro works ok.

Is this a bug or am I doing something pretty dumb?

Thanks,
Alan

emacs version: 24.3.1 on Ubuntu 14.04

org version: 8.2.6

-- 
Alan L Tyree
http://austlii.edu.au/~alanhttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206sip:typh...@iptel.org


Re: [O] Chapter headings

2014-03-28 Thread Alan Tyree
Unless you have the structure of your book set in stone, numbers just get
in your way. The great power of org is being able to write 'modularly' and
rearrange at will.

When you export, your chapter/section numbers will be right as well as all
cross references.

I think you'll be happier to ignore numbered headings when writing. I've
just moved to org for a 600+ page book -- Magic (and even more magic once
the whole bibliographic reference problem is solved).

Cheers,
Alan


On 29 March 2014 07:49, Steven Arntson ste...@stevenarntson.com wrote:

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

  There are probably many ways to do that, but I want to invert the
  question: *why* do you want chapter numbers in your org file?
  I would argue that they are a bad idea in the vast majority of cases.
 
  Nick

 I'm just accustomed to seeing them in my working drafts. Perhaps it is I
 who needs to change, rather than my unnumbered chapters! Something I
 haven't explored yet with org-mode is exporting to LaTeX, but it sounds
 like these numbers can be made to appear after export. I'm not yet a
 LaTeX user, so I may wait to explore that until I get to it.

 Best!
 steven






-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


Re: [O] org-cook

2014-03-15 Thread Alan Tyree
Pandoc can pull a web page, convert to Markdown and then to Org. That
doesn't do all you want, but maybe a start.

Cheers,
Alan


On 16 March 2014 05:03, Xebar Saram zelt...@gmail.com wrote:

 Thanks so much for the tips Erik

 i will explore the ingredients in table idea as suggested. do you know
 perhaps of a way to quick format online recipes to an org table (that is
 webpage html to org table) or perhaps a way to convert already entered
 recipes in my org files to tables

 kind regards

 Z.


 On Sat, Mar 15, 2014 at 7:38 PM, Erik Hetzner e...@e6h.org wrote:

 At Sat, 15 Mar 2014 09:24:23 +0200,
 Xebar Saram wrote:
 
  Dear Eric and org users
 
  i am a new(ish) org user and an avid cooker. i have started using
  orgmodeas my recipe notebook and stumbled upon the old org-cook
  thread.
  Is there so documentation on this? do you still use it?
  are there any other ideas/suggestions on using orgmode as a recipe
 notebook?
  what i would mainly love is a way to scrape recipes off websites into
 org

 Hi Xebar,

 I still use org to manage my recipes, but I don't use the org-cook
 features. It was kind of a proof of concept, and I think it could
 prove useful, but it turns out I don't often need to convert between
 units.

 I have been trying out the format described in [1]. I used to use a
 format like:

   Grate zest from 3 of them. Combine. Add:
   - 2 tbsp peanut oil
   - 2 chicken bouillon cubes, crumbled
   - 5 onions, thinly julienned
   - salt and pepper

 But the new one looks like:

   Grate zest from 3 of them. Combine. Add:
   | 2 tbsp  | peanut oil   |  |
   | 2 cubes | chicken bouillon | crumbled |
   | 5   | onions,  | thinly julienned |
   | | salt and pepper  |  |

 I think the table structure should make it easier to manipulate,
 change units, or create shopping lists. (But I create shopping lists
 by hand.)

 One hack I do use is the following function:

 (defun org-random-element ()
   Choose a random element from the buffer.
   (interactive)
   (let ((element-start -1)
 (count 1))
 (while (not (org-first-sibling-p))
   (org-goto-sibling t))
 (save-excursion
   (while (org-goto-sibling)
   (setq count (+ 1 count
 (org-forward-heading-same-level (random count

 This chooses a random element from a list of headings. I use this to
 plan meals. I just keep running the function until I see something
 that I feel like cooking.

 Hope that helps!

 best, Erik

 1.
 http://sachachua.com/blog/2012/06/emacs-org-grocery-lists-batch-cooking/

 --
 Sent from my free software system http://fsf.org/.





-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


Re: [O] Index of cases

2013-09-09 Thread Alan Tyree
Lyx is brilliant - I used it to typeset a cookbook that my wife wrote and
then I wrote a small text Self-publishing with LyX. Anyone can learn to
use it in a short time.

It was my first thought, but unfortunately there doesn't seem to be an easy
way to import LaTeX where the LaTeX file has multiple indexes. The LyX
folks are working on that.

Cheers,
Alan


On Tue, Sep 10, 2013 at 10:40 AM, Brian van den Broek 
brian.van.den.br...@gmail.com wrote:


 On Sep 9, 2013 3:14 AM, Alan L Tyree alanty...@gmail.com wrote:

 snip

  At least a lot of simple editors (the software) are LaTeX aware, so my
 editor (the human being) should be able to handle it.

 I don't know it well, but Lyx http://wiki.lyx.org/FAQ/LyX purports to
 almost be LaTeX and almost be WYSIWYG, so that might be an editor to try
 for those who will find markup scary.

 HTH,

 Brian vdB




-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206sip:typh...@iptel.org


Re: [Orgmode] Splitting mailing list

2011-02-28 Thread Alan Tyree
On Mon, Feb 28, 2011 at 7:48 PM, Julien Danjou jul...@danjou.info wrote:

 On Mon, Feb 28 2011, Alan L Tyree wrote:

  The development list wouldn't be very interesting without the intense
  interaction that it now has with users. The org list seems unique in
  this, at least for the lists that I have sometimes monitored.

 No, really, it's not that unique. And many project still works correctly
 with several mailing list.


I know that most projects work this way, and I am sure that Org would
survive and prosper no matter what the decision is here. I still say, of the
lists that I have monitored (not many - I am a retired Law Professor with
only a slight knowledge of software development) the Org list is the most
interesting.

It's just a personal preference - I don't see any decisive argument for any
of the possible decisions on splitting the list.

Whatever happens, many thanks to all the Org developers for some great
software.

Cheers,
Alan



 --
 Julien Danjou
 ❱ http://julien.danjou.info




-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206
___
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


Re: [Orgmode] Re: ePub and Org mode

2011-02-20 Thread Alan Tyree
On Sun, Feb 20, 2011 at 6:53 PM, Achim Gratz strom...@nexgo.de wrote:

 Christian Moe m...@christianmoe.com writes:
  I agree exporting 'chapters' in a single Org document to separate html
  files would be a nice option to have.
 
  Pending someone writing an export function for this, you could
 [...]

 That sort of already exists, I've been using that to some good
 effect... from the documentation:

 --8---cut here---start-8---
   When exporting only a single subtree by selecting it with `C-c @'
 before calling an export command, the subtree can overrule some of the
 file's export settings with properties `EXPORT_FILE_NAME',
 `EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE', and
 `EXPORT_OPTIONS'.
 --8---cut here---end---8---

 The only thing missing is a function to export all (not excluded)
 subtrees one by one and honor the properties slapped onto each subtree.

 True. I also use the subtree export function often. I is easy to define a
keyboard macro to deal with the problem. If I had to do it more than once,
I'm sure that it is not too hard to write an elisp function to do it.

I think that Christian is proably right: for ePub generation, there are
other tools that do the job. Two ways that are easy:

org - html - tidy -m -asxhtml - (calibre || sigil)

I have had trouble getting the calibre ePub to validate, but it is more
straightforward than Sigil. On the other hand, Sigil is easier to use to add
editing to the basic text and always seems to pass the validation tests.

To get proper validation, I have found that the tidy step is necessary.
Not sure why - tidy always replaces lots of characters, but I haven't had
the time to work out what is going on.

Cheers,
Alan



 Achim.
 --
 +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

 SD adaptation for Waldorf microQ V2.22R2:
 http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


 ___
 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




-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206
___
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


Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-09-02 Thread Alan Tyree
On Thu, Sep 2, 2010 at 6:15 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote:

  On Tue, 31 Aug 2010 14:09:58 +0200
 Carsten Dominik carsten.domi...@gmail.com wrote:

  Hi Aidan,

 unfortunately this is difficult to fix in a good way.
 I do want to go back to footnotes, because I think there are many
 things that do not yet work satisfactorily.  And then I also hope to
 address the issue you raised.  For the time being, unfortunately, I
 do not have a solution for you.


 I also have problems with footnotes. Jan Boecker kindly devised a
 work-around using non-printing spaces which is OK, but what I would like
 is:

 Disable footnotes like [2010], but keep footnotes like [fn:2010]


 Also on my list of things to fix when I get there

Carsten,
Very low priority as far as I am concerned. Be nice, but it is hardly a deal
breaker.

Thanks for great software!

Cheers,
Alan



 - Carsten



 The reason is that I write legal texts that have references to case law
 that look like: Marreco v Richardson [1908] 2 KB 584. The dates in
 square brackets are an essential part of the reference.

 f:nil in the Options seems to disable all footnotes rather than just
 the [2010] type. The documentation is slightly misleading on this.
 Under Export options it says:

 f:  turn on/off footnotes like this[1].

 I seem to be living more and more in org-mode. Thanks for such great
 software!

 Alan



 - Carsten

 On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote:

  It is impossible to have closing brackets in a footnote, because
 they are treated as the closing bracket for the foot note.
 Example...

 * A heading
 This is a broken footnote.[fn:: Some book at [42-24].]

 This will export to (as ASCII, for example)...
org-fn-bug-example
==

 Author: Aidan Gauland
 Date: 2010-08-31 20:33:14 NZST


 Table of Contents
 =
 1 A heading


 1 A heading
 
 This is a broken footnote.[1].]

 This will export to (as ASCII, for example)...

 [1] Some book at [42-24

 This is how I am required to cite books for my academic essays, so
 this
 is a pretty serious bug for me (and no doubt other students, as
 well).

 Regards,
 Aidan Gauland

 Emacs  : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+
 Version 2.20.1)
 of 2010-08-29 on dimension8
 Package: Org-mode version 7.01trans

 current state:
 ==
 (setq
 org-export-latex-after-initial-vars-hook
 '(org-beamer-after-initial- vars)
 org-agenda-files '(~/uc-files/uc-work.org)
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-
 default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
 drawers
 org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
 '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207

 [org-add-hook
 change-major-mode-hook org-show-block-all append local] 5]
 #[nil
 #\300
 #\301
 #\302
 #\303
 #\304
 #$
 #\207

 [org-add-hook
 change-major-mode-hook org-babel-show-result- all
 append local] 5]

 org-babel-result-hide-spec
 org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook
 '(org-babel-hash-at-point org-babel-execute- safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
 org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook
 '(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header
 org-beamer-fix- toc
 org-beamer-auto-fragile-frames


 org-beamer-place-default-actions-for-lists)