Re: [O] "COMMENT" keyword not properly documented in the manual

2017-01-13 Thread Nicolas Goaziou
Hello,

alain.coch...@unistra.fr writes:

> But unless the use of this variable is obsolete, I feel it has to be
> documented -- could be as discreet as one sentence in a footnote.
> Otherwise, with a nil default, even people using the export features
> would have difficulties to know about it.

I dropped a note about in "agenda views" part of the manual.
>
> (More generally, what would be the harm of having some appendix with a
> list of all customizable variables?  Seems to me it could help
> beginners to learn Org; sure, there is 'C-h v org-', but it's not
> exactly the same for me.)

There is a lot of variables. We cannot possibly document all of them in
the manual. However, the best way for a beginnier to discover these
options is probably to call "M-x customize-group RET org RET".

Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] org-agenda timetable

2017-01-13 Thread Eric S Fraga
On Friday, 13 Jan 2017 at 11:21, Emilio J. Padrón González wrote:
> Hi everyone!
>
> Sorry for taking back this message from the past, but I'm looking for
> the same thing:
>
> On Fri, Nov 13, 2015 at 05:49:06PM -0500, xD wrote:
>>
>> I'm using org-agenda [...] I'd like to get the information from the
>> org-agenda and display it as a "timetable".
>
> Did you get a satisfactory solution?

Not sure what is wanted here but maybe calfw is what you want?

https://github.com/kiwanami/emacs-calfw

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature


[O] [OT] Help with testing new contacts package?

2017-01-13 Thread Eric Abrahamsen
This is OT, but I know there are many people on this list using Emacs
for contact management, so...

I've been working on a replacement for BBDB, called EBDB
(https://github.com/girzel/ebdb.git). It's made with EIEIO, and is meant
to be very extensible: all kinds of record field classes, multiple
databases, different database backends, internationalization, etc. It's
probably not going to work well with Emacs < 25.

It's sort of easing out of alpha towards beta, and I'm hoping some brave
souls might be willing to help me bang on it and see how it breaks. I'm
particularly interested in problems with migrating BBDB records to the
EBDB format.

See the README if you're interested!

Thanks,
Eric




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Nick Dokos
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 14:13, Anssi Saari wrote:
>> Between Emacsen files saved in Dropbox works fine (although I'd rather
>> not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
>> as I know.
>
> I'm not sure what you mean but, in the Android version of mobileorg,
> syncing with Dropbox happens automatically with the frequency I specify.

I'm guessing he means that the syncing has to be event-driven, not
time-driven.  He wants the sync to happen just before emacs exits:
that way, everything is up to date. Time-driven syncing would be
racy.

I wonder if there is a before-exit hook that can be used.

-- 
Nick




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Eric S Fraga
On Friday, 13 Jan 2017 at 14:13, Anssi Saari wrote:
> Between Emacsen files saved in Dropbox works fine (although I'd rather
> not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
> as I know.

I'm not sure what you mean but, in the Android version of mobileorg,
syncing with Dropbox happens automatically with the frequency I specify.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature


Re: [O] Import and run tizk code in org-mode

2017-01-13 Thread Nick Dokos
Lawrence Bottorff  writes:

> ...
> This makes MathJax not work, but the tex code import work. Is there
> anyway to get both, i.e., have my math done by MathJax and my tikz
> file import work too?

Teach MathJax how to interpret \input perhaps? I don't know if it's
possible (and even if it is, it might be a lot of work).

I would start by visiting

   https://github.com/mathjax/MathJax-third-party-extensions

The README is useful and also contains a couple of pointers to
tutorials and doc pages on the MathJax site.

-- 
Nick




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
>> When I tried MobileOrg I think I used Dropbox. But since initiating
>> manual sync from Emacs seemed mandatory I just didn't get much use out
>> of MobileOrg.
>
> But automatic sync in Emacs should be quite straightforward and is
> independent of the mobile end.  You can use a timer, for instance:

I have a few computers and they don't run all the time (let alone run
Emacs all the time) and I didn't want to setup a timer on all of
them. The need to sync for me is usually typing something in on a PC and
then having it available in my pocket. So the corner case for the timer
is that it has to trigger between me saving a file and shutting down or
hibernating or whatever on the PC which can be a pretty short time.

Between Emacsen files saved in Dropbox works fine (although I'd rather
not use Dropbox for anything) but on mobile Dropbox doesn't sync as far
as I know.




[O] Import and run tizk code in org-mode

2017-01-13 Thread Lawrence Bottorff
If I have an org-mode file where I want to embed a TikZ rendering at a
certain place, I've found the simplest is just to throw something like this
in where you want it, i.e., no latex code block necessary:

\begin{figure}
\centering
\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{8cm}
\input{x2vxlogx.tikz}
%\caption{A graph}
%\label{fig:graph}
\end{figure}

Works just fine. The whole motivation of . . .\imput{mytikzfile} being, the
.tikz code can be huge (e.g., GeoGebra sometimes coughs up massive TikZ
code brute-force-style), i.e., you don't want your orgmode file thousands
of lines longer just for a single tikz image. But in order to have it work,
I've had to change my file headers, i.e., before I had

#+OPTIONS: tex:t

this makes MathJax work, but the above tex code import not

versus

#+OPTIONS: tex:imagemagick

This makes MathJax not work, but the tex code import work. Is there anyway
to get both, i.e., have my math done by MathJax and my tikz file import
work too? I could leave it with #+OPTIONS: tex:imagemagick, but then my
math formulae are done as little pngs, which line up poorly on the page.

If no one knows a quick answer, fine. I'm coming to believe TikZ and
orgmode is just too heroic a struggle for an irregular like me. Better to
simply embed ready-made pngs and call it a day.

LB


Re: [O] org-agenda timetable

2017-01-13 Thread Emilio J . Padrón González
Hi everyone!

Sorry for taking back this message from the past, but I'm looking for
the same thing:

On Fri, Nov 13, 2015 at 05:49:06PM -0500, xD wrote:
>
> I'm using org-agenda [...] I'd like to get the information from the
> org-agenda and display it as a "timetable".

Did you get a satisfactory solution?

Thanks in advance!

Cheers,
E



Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Gijs Hillenius
Eric S Fraga  writes:

> On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
>> When I tried MobileOrg I think I used Dropbox. But since initiating
>> manual sync from Emacs seemed mandatory I just didn't get much use out
>> of MobileOrg.
>
> But automatic sync in Emacs should be quite straightforward and is
> independent of the mobile end.  You can use a timer, for instance:
>
> ,[ C-h f run-with-idle-timer RET ]
> | run-with-idle-timer is an interactive compiled Lisp function in
> | ‘timer.el’.
> | 
> | (run-with-idle-timer SECS REPEAT FUNCTION  ARGS)
> | 
> | Perform an action the next time Emacs is idle for SECS seconds.
> | The action is to call FUNCTION with arguments ARGS.
> | SECS may be an integer, a floating point number, or the internal
> | time format returned by, e.g., ‘current-idle-time’.
> | If Emacs is currently idle, and has been idle for N seconds (N < SECS),
> | then it will call FUNCTION in SECS - N seconds from now.  Using
> | SECS <= N is not recommended if this function is invoked from an idle
> | timer, because FUNCTION will then be called immediately.
> | 
> | If REPEAT is non-nil, do the action each time Emacs has been idle for
> | exactly SECS seconds (that is, only once for each time Emacs becomes idle).
> | 
> | This function returns a timer object which you can use in ‘cancel-timer’.
> | 
> | [back]
> `
>
>>
>> So whatever you want to provide, make sure sync is automatic. And
>> preferably supporting private sync options too.

I have this in my emacs init.el 

(run-at-time "10:15" 86400 'org-mobile-push)

This works in combination with a cron job (a few minutes later) that
syncs the files to my 'cloud', where my phone picks them up.


signature.asc
Description: PGP signature


Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Eric S Fraga
On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote:
> When I tried MobileOrg I think I used Dropbox. But since initiating
> manual sync from Emacs seemed mandatory I just didn't get much use out
> of MobileOrg.

But automatic sync in Emacs should be quite straightforward and is
independent of the mobile end.  You can use a timer, for instance:

,[ C-h f run-with-idle-timer RET ]
| run-with-idle-timer is an interactive compiled Lisp function in
| ‘timer.el’.
| 
| (run-with-idle-timer SECS REPEAT FUNCTION  ARGS)
| 
| Perform an action the next time Emacs is idle for SECS seconds.
| The action is to call FUNCTION with arguments ARGS.
| SECS may be an integer, a floating point number, or the internal
| time format returned by, e.g., ‘current-idle-time’.
| If Emacs is currently idle, and has been idle for N seconds (N < SECS),
| then it will call FUNCTION in SECS - N seconds from now.  Using
| SECS <= N is not recommended if this function is invoked from an idle
| timer, because FUNCTION will then be called immediately.
| 
| If REPEAT is non-nil, do the action each time Emacs has been idle for
| exactly SECS seconds (that is, only once for each time Emacs becomes idle).
| 
| This function returns a timer object which you can use in ‘cancel-timer’.
| 
| [back]
`

>
> So whatever you want to provide, make sure sync is automatic. And
> preferably supporting private sync options too.
>
>

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature


Re: [O] Syncing methods for org files and org-mobile.el

2017-01-13 Thread Anssi Saari
Sean Escriva  writes:

> Greetings fellow Org users,
>
> I'm the current maintainer for MobileOrg iOS[1] and am interested to
> get feedback from any org-mobile users. What do you use to sync org
> files across different machines, how could the current org-mobile
> workflow be improved (if at all)?

When I tried MobileOrg I think I used Dropbox. But since initiating
manual sync from Emacs seemed mandatory I just didn't get much use out
of MobileOrg.

So whatever you want to provide, make sure sync is automatic. And
preferably supporting private sync options too.




Re: [O] Centering side-by-side images in latex/pdf export

2017-01-13 Thread Eric S Fraga
On Thursday, 12 Jan 2017 at 10:24, knubee wrote:
> I recently opened some .org files from a year ago and tried to
> generate new PDFs from them. There have been significant updates to
> emacs, org-mode, and the relevant LaTeX packages I use, so some parts
> of the source had to be changed. Mostly, everything is working now
> except for generating PDFs with centered, side by side images.

[...]

> I am able to get the images side by side if I disable org-mode's
> automatic centering:
>
> #+ATTR_LaTeX: :height 0.2\textwidth :center
> [[image1.png]]
> #+ATTR_LaTeX: :height 0.2\textwidth :center
> [[image2.png]]
>
> But how can I get side by side images centered? Perhaps the answer is
> very simple and obvious, but I have tried many other changes and been
> unable to accomplish this.

Put those 4 lines within the #+begin_center ... #+end_center?  Works for
me.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-201-ga51c6f


signature.asc
Description: PGP signature