[O] creating a link to an html file under msys2 (windows path issue)
Hi everyone. I'm trying to create a link to my emacs org-mode manual on my desktop at c:\Users\Kevin\Desktop\org.html in one of my org-mode files and I can't for the life of me figure out what the path is supposed to be. Under msys2 it should be something like: /c/users/kevin/desktop/org.html I'm using the emacs that is installed with msys2 (and often I see it putting a "c:" in front of the path but that doesn't seem to work here). I've tried it with a leading c:, with single backslashes between the components, with double backslashes, etc... Anyone have a clue? TIA, -Kevin
[O] Bug: wrong image orientation [9.2.4 (9.2.4-11-g1c3eae-elpa @ /home/lord/.emacs.d/elpa/org-20190722/)]
When I insert images some of them are shown with wrong orientation. Desktop image viewe shows them correctly. Apparently org-mode image display ignores orientation info from image: $ identify -format '%wx%h' ./2019-07-24\ 11.07.52.jpg 4032x3024⏎ $ identify -format '%[EXIF:Orientation]' ./2019-07-24\ 11.07.52.jpg 6⏎ $ identify -verbose ./2019-07-24\ 11.07.52.jpg| grep -i Orien 11:18:19 Orientation: RightTop exif:Orientation: 6 exif:thumbnail:Orientation: 6 Emacs : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian Package: Org mode version 9.2.4 (9.2.4-11-g1c3eae-elpa @ /home/lord/.emacs.d/elpa/org-20190722/) current state: == (setq org-export-backends '(ascii beamer html latex md odt) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-log-done 'time org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-image-actual-width 500 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-odt-format-headline-function 'org-odt-format-headline-default-function org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '((closure (org--rds reftex-docstruct-symbol org-clock-history org-agenda-current-date org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode org-end-time-was-given org-time-was-given org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-capture-last-stored-marker org-agenda-start-on-weekday org-agenda-buffer-tmp-name clean-buffer-list-kill-buffer-names org-id-link-to-org-use-id org-agenda-buffer-name buffer-face-mode-face org-struct-menu org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-indent-indentation-per-level ffap-url-regexp org-inlinetask-min-level t) nil (add-hook (quote change-major-mode-hook) (quote org-show-all) (quote append) (quote local)) ) (closure (*this* org-babel-confirm-evaluate-answer-no t) nil (add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all)
[O] Convenient access to attachment directory
Hi, I miss a key to just open the attachment directory even if that directory does not exist yet. Has this functionality been there once? BTW "f" complains if the directory does not exist. What about introducing a new key "g" to open the attachment directory and create it in case it does not already exist? What do you think? Thanks and ciao, Marco
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
On Wednesday, 24 Jul 2019 at 13:42, Luca Ferrari wrote: > Yes, this is what I'm doing so far. The problems I see are: > 1) the image contains a footer, and LaTeX does not anything about such > footer so sometimes text can overlap with the footer. If I isolate the > footer as a separate image, how can I specify to place it to the > bottom of each slide and have beamer not placing controls and other > text on the slides? As soon as you want this type of control, you'll end up having to design your own beamer theme. There are many themes out there: I suggest you have a look at which one(s) come(s) close to what you want, copy it, and change it accordingly. But this will require a certain level of LaTeX-fu unfortunately. I've attached three files: an org file, the resulting PDF, and a very minimal beamer theme that may be of use. That theme puts an image (UCL logo) at the bottom right of the slide and a page number at the bottom left side. Maybe you can modify this to your satisfaction. Note the naming of the beamer theme file and how you refer to it in the org file. > 2) I usually provide two sets of slides, one dark and one light Two themes...? > By the way, things were even worst of how I described them: the > template was Microsoft Office (not even Open Office)! For me, they are equivalent in any case: I do not like word processors as they make me do the job of a typesetter and I'd rather worry about content. But I know what you mean. Best of luck, eric -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222 #+beamer_theme: minimal #+title: The title #+author: ESF #+options: toc:nil * This is a test 1. first point 2. second point * Second slide - third point - fourth point t.pdf Description: t.pdf \ProvidesPackage{beamerthememinimal}[2017/04/28 Inspired by a presentation from Rio Tinto] \usepackage{lastpage} \mode %\newcommand{\versioninformation}{} \definecolor{maincolour}{HTML}{00A400} % darkgreen \definecolor{modelinecolour}{HTML}{483D8B} % dark slate blue \definecolor{modelinebgcolour}{HTML}{104E8B} % dodger blue 4 % background \setbeamertemplate{background}{ \begin{tikzpicture} \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); \node[inner sep=0pt,above,left] (ucllogo) at (\paperwidth,8pt) {\includegraphics[height=10pt]{ucl-white-transparent}}; \ifnum\thepage>1\relax% \node[above,right] (pagenumber) at (0,1.2ex) {{\tiny\color{lightgray} \thepage/\pageref{LastPage} ~\insertsectionhead \ifdef{\versioninformation}{~\color{gray}\versioninformation}{}}}; \fi \end{tikzpicture} } % colours \setbeamercolor{structure}{fg=maincolour} %\setbeamercolor{block title alerted}{fg=maincolour} \setbeamercolor{background canvas}{bg=black,fg=white} \usebeamercolor[fg]{background canvas} \setbeamercolor{block title}{fg=maincolour} \setbeamercolor{block body}{fg=white} \setbeamercolor{frametitle}{fg=white} \setbeamercolor{item}{fg=maincolour} \setbeamercolor*{normal text}{fg=white,bg=black} \setbeamercolor*{alerted text}{fg=maincolour} \setbeamercolor{section in toc}{fg=maincolour} \setbeamercolor{subsection in toc}{fg=maincolour} \setbeamercolor*{title}{fg=white} \setbeamercolor*{title page header}{fg=white} % fonts \setbeamerfont{frametitle}{series=\bfseries} \setbeamerfont{title}{size=\Large,series=\bfseries} \setbeamertemplate{items}[ball] \setbeamertemplate{navigation symbols}{} \mode
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
Thanks all for the quick replies! On Wed, Jul 24, 2019 at 9:56 AM Fraga, Eric wrote: > #+latex_header: > \usebackgroundtemplate{\includegraphics[width=\paperwidth]{}} > Yes, this is what I'm doing so far. The problems I see are: 1) the image contains a footer, and LaTeX does not anything about such footer so sometimes text can overlap with the footer. If I isolate the footer as a separate image, how can I specify to place it to the bottom of each slide and have beamer not placing controls and other text on the slides? 2) I usually provide two sets of slides, one dark and one light (printable), and therefore I suspect to provide two different backgrounds and duplicate my org file for each theming accordingly. Any better idea? If I can isolate the footer (which is what makes the slides look like what is requested), is there a way to apply say a color as background and do a "variable"-based export to beamer choosing the color as option? By the way, things were even worst of how I described them: the template was Microsoft Office (not even Open Office)! Thanks, Luca
Re: [O] patch: adding split-window-right option for src block editing
On Monday, 15 Jul 2019 at 12:02, Nicolas Goaziou wrote: > Hello, > > "Fraga, Eric" writes: > >> most of my work now involves using quite large wide monitors and having >> the editing of src blocks open windows below is less convenient than >> splitting horizontally. I have added the option to split >> horizontally. See attached patch. > > Thank you. Could you provide an entry in ORG-NEWS, too? Please find attached two patch files, both the one I have already sent and now one with a change to the NEWS file. Thanks and sorry for the delay. eric -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222 From 550a7b3f95232295240852156d5e455b803992a9 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Thu, 11 Jul 2019 10:24:15 +0100 Subject: [PATCH 1/2] Add split-window-right option for editing src blocks * org-src.el (org-src-window-setup, org-src-switch-to-buffer): added new split-window-right option which splits horizontally. This has been motivated by the increasing use of wide monitors. --- lisp/org-src.el | 8 1 file changed, 8 insertions(+) diff --git a/lisp/org-src.el b/lisp/org-src.el index a83942fc5..3b0923c20 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -152,6 +152,8 @@ current-window Show edit buffer in the current window, keeping all other windows. split-window-below Show edit buffer below the current window, keeping all other windows. +split-window-right Show edit buffer to the right of the current window, + keeping all other windows. other-window Use `switch-to-buffer-other-window' to display edit buffer. reorganize-frame Show only two windows on the current frame, the current window and the edit buffer. When exiting the edit buffer, @@ -162,6 +164,7 @@ other-frameUse `switch-to-buffer-other-frame' to display edit buffer. :type '(choice (const current-window) (const split-window-below) + (const split-window-right) (const other-frame) (const other-window) (const reorganize-frame))) @@ -793,6 +796,11 @@ Raise an error when current buffer is not a source editing buffer." (delete-window) (select-window (split-window-vertically))) (pop-to-buffer-same-window buffer)) +(`split-window-right + (if (eq context 'exit) + (delete-window) + (select-window (split-window-horizontally))) + (pop-to-buffer-same-window buffer)) (`other-frame (pcase context (`exit -- 2.20.1 From fabd6d84b0f6fd3ac2331a5e7b3b2dc2b54b6e51 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Wed, 24 Jul 2019 12:18:35 +0100 Subject: [PATCH 2/2] Add NEWS item for split-window-right option for editing src blocks * ORG-NEWS: added news item for new split-window-right option --- etc/ORG-NEWS | 5 + 1 file changed, 5 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index bbd9dc975..f0163a77b 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -123,6 +123,11 @@ auto-commit attachments to git: one need to require the =org-attach-git= module in the startup. ** New features +*** Add split-window-right option for src block edit window placement +Given the increasing popularity of wide screen monitors, splitting +horizontally may make more sense than splitting vertically. An +option, ~split-window-right~, to request horizontal splitting has been +added to ~org-src-window-setup~. *** Org-Attach has been refactored and extended Org attach has been refactored and the functionality extended. It should now be easier to understand how it works. A few improvements -- 2.20.1
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
> But know I'm forced by my management to apply an openoffice slide > layout, How annoying! But I've had the same and ended up doing what Marcin (in another response) did: created my own beamer template that matched what our corporate style people wanted... > My second thought was to put the template as a background image on all > my slides, but this is a little complicated considered my knowledge of > LaTeX and beamer (and that's why I'm using org!). This should be easier. The following is untested but putting a line like this at the start of your org file may do the job: #+latex_header: \usebackgroundtemplate{\includegraphics[width=\paperwidth]{}} Try this out and let us know how you get on. Happy to help if you get stuck. -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222
Re: [O] from org to openoffice presentations (or make org looks like openoffice)
On 2019-07-24, at 09:13, Luca Ferrari wrote: > Hi, > it seems I'm out of luck searching for a solution: I've got a library > of org-mode files that I export with beamer. So far, so good. > But know I'm forced by my management to apply an openoffice slide > layout, so I was looking for a way to export from org to open office > presentations (impress). It seems nothing so weird exists on earth. > My second thought was to put the template as a background image on all > my slides, but this is a little complicated considered my knowledge of > LaTeX and beamer (and that's why I'm using org!). > Assuming none of the above two can be answered, is there a path to get > things done? Like converting from org to markdown and then to open > office? > Anyone has a suggestion or an hint? What I would do would be to create a bare-bones Beamer theme to mimick what you need. (Well, I've been a power user of (La)TeX for about 25 years, so I know it's perfectly doable even if tedious.) And there are a few minimalistic Beamer themes; some of them might allow for customization wrt a background image. > (and no, I don't want to rewrite my slides in open office because they > will become quickly unmantainable!). +1! Best, -- Marcin Borkowski http://mbork.pl
[O] from org to openoffice presentations (or make org looks like openoffice)
Hi, it seems I'm out of luck searching for a solution: I've got a library of org-mode files that I export with beamer. So far, so good. But know I'm forced by my management to apply an openoffice slide layout, so I was looking for a way to export from org to open office presentations (impress). It seems nothing so weird exists on earth. My second thought was to put the template as a background image on all my slides, but this is a little complicated considered my knowledge of LaTeX and beamer (and that's why I'm using org!). Assuming none of the above two can be answered, is there a path to get things done? Like converting from org to markdown and then to open office? Anyone has a suggestion or an hint? (and no, I don't want to rewrite my slides in open office because they will become quickly unmantainable!). Thanks, Luca