Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Loris Bennett
Julius Müller writes: > Am 29.11.18 um 14:07 schrieb Loris Bennett: [snip (33 lines)] >> After that I tried adding the definition on the slide itself >> >> #+BEGIN_SRC latex >> >> \newlength\mytextheight\makeatletter\setlength\mytextheight{\beamer@frametextheight}\makeatother >>

Re: [O] How to handle an inline multiline noweb reference

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 15:18, Samuel Wales wrote: > it still feels like variables to me. I agree. It's not the *same* as a pipe but does meet some of the requirements for some use cases... I think expecting behaviour like pipes is possibly too much given the single threaded nature of

Re: [O] How to handle an inline multiline noweb reference

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 15:16, Samuel Wales wrote: > On 11/28/18, Eric S Fraga wrote: >> The output (or more generally the results) of one src block is passed >> directly as input to another using the :post argument. > > that helps. > > i'm not familiar with many languages. shell and lisp

Re: [O] [SOLVED]

2018-11-29 Thread Nick Dokos
Uwe Brauer writes: "Berry," == Berry, Charles writes: > >> I cannot reproduce your export issue with org 9.1.14. >> You need to provide more details. > > Sorry for the noise. I just realised that a very very long time ago I > installed a function remove-src-blk-export, which, uhh,

Re: [O] How to handle an inline multiline noweb reference

2018-11-29 Thread Samuel Wales
it still feels like variables to me. if you did a shell example with 1000 lines, would those be piped in? or would the variable contain 1000 lines? i don't understandt he difference between post and just a variable. onte: i am only telling you this to improve documentation if you feel like it.

Re: [O] How to handle an inline multiline noweb reference

2018-11-29 Thread Samuel Wales
On 11/28/18, Eric S Fraga wrote: > The output (or more generally the results) of one src block is passed > directly as input to another using the :post argument. that helps. i'm not familiar with many languages. shell and lisp work best for me, but in this case saying that clarifies. not sure

Re: [O] selective tangling?

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 08:10, John Kitchin wrote: > Are there any ways to selectively tangle blocks? I cannot help but wanted to thank you for this little bit of magic: > I usually put a :var a=(org-babel-tangle) header in the sh block, > which makes sure the files are tangled, and then

Re: [O] copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible

2018-11-29 Thread Alain . Cochard
> You may want to add `face' to `yank-excluded-properties'. Great. Thanks a lot. -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg

Re: [O] copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible

2018-11-29 Thread Nicolas Goaziou
Hello, alain.coch...@unistra.fr writes: > Hello. When performing copy/paste (even with org-copy-visible) from > org buffers with org-indent-mode turned on to buffers running, e.g., > fundamental or text modes, leading stars of the headlines are still > invisible (until the file is saved and

Re: [O] Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored.

2018-11-29 Thread Nicolas Goaziou
Emmanuel Charpentier writes: > This is *not* *documented* (not even in the `org-latex-packages-alist''s > docstring). I know. I fixed `org-latex-packages-alist''s docstring two days ago. > Also agreed, with the reservation that "invasive" didn't mean the same > thing in the 1980s (when the

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 16:12, Loris Bennett wrote: > So I went with \paperheight instead, which works fine. :-) sometimes we get caught up with complex solutions (and fail) when easy solutions exist! Glad you got it sorted in any case. -- Eric S Fraga via Emacs 27.0.50, Org

[O] [SOLVED] (was: org babel: %% [removed source block])

2018-11-29 Thread Uwe Brauer
>>> "Berry," == Berry, Charles writes: > I cannot reproduce your export issue with org 9.1.14. > You need to provide more details. Sorry for the noise. I just realised that a very very long time ago I installed a function remove-src-blk-export, which, uhh, removes source blocks. I

Re: [O] Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored.

2018-11-29 Thread Emmanuel Charpentier
Dear Nicolas, Thanks a lot for bearing with my nitpicking. A couple remarks below Le jeudi 29 novembre 2018 à 15:07 +0100, Nicolas Goaziou a écrit : > Hello, > > emanuel.charpent...@gmail.com writes: > > > AFAICT, polyglossia is to be preferred to babel for use with > > xelatex or > >

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread John Kitchin
Have you tried this with an emacs -q? Your examples work as expected in emacs -q for me. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin

Re: [O] selective tangling?

2018-11-29 Thread John Kitchin
I tried something like this already, for example this does what I want: #+BEGIN_SRC ipython :tangle (if (eq tangle-tag 'one) "one.py" "no") print('hello') #+END_SRC #+BEGIN_SRC text :tangle (if (eq tangle-tag 'one) "one.dat" "no") print('hello') #+END_SRC #+BEGIN_SRC ipython :tangle (if (eq

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
>>> "Berry," == Berry, Charles writes: > I cannot reproduce your export issue with org 9.1.14. > You need to provide more details. Ok, I searched already my custom settings. > Perhaps you have a header-arg set that you have not told us about? > What does C-c C-v C-i report when

Re: [O] Standard Format for Org Outlines?

2018-11-29 Thread David Masterson
Nicolas Goaziou writes: > David Masterson writes: > >> Good try, but I think you got it backwards. I pulled down a daily >> development snapshot tarball from yesterday (not good with git yet) and >> tried it again. This time, it broke M-return by adding an extra blank >> line after the header

Re: [O] selective tangling?

2018-11-29 Thread Berry, Charles
> On Nov 29, 2018, at 5:10 AM, John Kitchin wrote: > > Are there any ways to selectively tangle blocks? > > By that I mean suppose there are a dozen src blocks in a file, but I want to > selectively tangle only a few of them, selecting them by a tag, for example, > or some other property.

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Berry, Charles
I cannot reproduce your export issue with org 9.1.14. You need to provide more details. Perhaps you have a header-arg set that you have not told us about? What does C-c C-v C-i report when point is in each of your source blocks? I get Lang: matlab Properties: :header-argsnil

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I tried also lisp #+begin_src elisp :tangle test.el :exports code :padline no (require 'ob-ipython) (setq org-confirm-babel-evaluate t) ;don't prompt me to confirm everytime I want to evaluate a

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I also see Code block produced no output. org-babel-exp process matlab at position 250... smime.p7s Description: S/MIME cryptographic signature

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I tried #+begin_src matlab :tangle test.m :exports code :padline no function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Loris Bennett
Joost Kremers writes: > On Thu, Nov 29 2018, Gustavo Barros wrote: >> Louis, >> >> a hunch, which might work. >> It seems that, if you try to set the length in your preamble, >> `\beamer@frametextheight` is not yet defined. >> So, you might try the hook `\AtBeginDocument` to see if the

Re: [O] Standard Format for Org Outlines?

2018-11-29 Thread Nicolas Goaziou
Hello, David Masterson writes: > Good try, but I think you got it backwards. I pulled down a daily > development snapshot tarball from yesterday (not good with git yet) and > tried it again. This time, it broke M-return by adding an extra blank > line after the header (ie. two blank lines),

Re: [O] Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored.

2018-11-29 Thread Nicolas Goaziou
Hello, emanuel.charpent...@gmail.com writes: > AFAICT, polyglossia is to be preferred to babel for use with xelatex or > lualatex. I'll see if this can be accomodated. What I mean is that you can also add compiler dependant packages in `org-latex-packages-alist'. No need to change the default

Re: [O] Bug: Cannot create html file from org [9.1.9 (release_9.1.9-65-g5e4542 @ c:/programs/emacs-26.1-x86_64/share/emacs/26.1/lisp/org/)]

2018-11-29 Thread Nicolas Goaziou
Hello, Helge Stenström writes: > I try to export org file to html, using C-c C-e h o > > I get: defconst: Symbol's value as variable is void: css-mode-syntax-table This variable is not used in Org base. The problem may come from a configuration of yours. Regards, -- Nicolas Goaziou

[O] copy/paste headlines from org-indent-mode to text mode: invisible stars remain invisible

2018-11-29 Thread Alain . Cochard
Hello. When performing copy/paste (even with org-copy-visible) from org buffers with org-indent-mode turned on to buffers running, e.g., fundamental or text modes, leading stars of the headlines are still invisible (until the file is saved and visited again). Insertions within this invisible

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Julius Müller
Am 29.11.18 um 14:07 schrieb Loris Bennett: > Eric S Fraga writes: > >> On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote: >>> Am 29.11.18 um 09:13 schrieb Julius Dittmar: Am 29.11.18 um 08:17 schrieb Loris Bennett: >> #+latex_header: >>

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread John Kitchin
Maybe you need :exports and not :export. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Nov 29, 2018 at

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Joost Kremers
On Thu, Nov 29 2018, Gustavo Barros wrote: Louis, a hunch, which might work. It seems that, if you try to set the length in your preamble, `\beamer@frametextheight` is not yet defined. So, you might try the hook `\AtBeginDocument` to see if the definition comes at a better timing.

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Gustavo Barros
Louis, a hunch, which might work. It seems that, if you try to set the length in your preamble, `\beamer@frametextheight` is not yet defined. So, you might try the hook `\AtBeginDocument` to see if the definition comes at a better timing.     #+LATEX_HEADER:

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga writes: > On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: >> Now org-babel-tangle works nicely, but when I try to export the org >> file to latex via org-export-dispatch > I think the default is > :exports results > so you what you want is

[O] selective tangling?

2018-11-29 Thread John Kitchin
Are there any ways to selectively tangle blocks? By that I mean suppose there are a dozen src blocks in a file, but I want to selectively tangle only a few of them, selecting them by a tag, for example, or some other property. These might have mixed languages, e.g. a config files, a python

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Loris Bennett
Eric S Fraga writes: > On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote: >> Am 29.11.18 um 09:13 schrieb Julius Dittmar: >>> Am 29.11.18 um 08:17 schrieb Loris Bennett: > #+latex_header: > \makeatletter\let\mytextheight\beamer@frametexheight\makeatother > #+attr_latex:

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: > Now org-babel-tangle works nicely, but when I try to export the org > file to latex via org-export-dispatch I think the default is :exports results so you what you want is either :exports both or :exports code -- Eric S Fraga via Emacs

[O] org babel: %% [removed source block]

2018-11-29 Thread Uwe Brauer
Hi I have the following org file #+BEGIN_SRC matlab :tangle test.m :padline no :results none function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit

[O] Bug: Cannot create html file from org [9.1.9 (release_9.1.9-65-g5e4542 @ c:/programs/emacs-26.1-x86_64/share/emacs/26.1/lisp/org/)]

2018-11-29 Thread Helge Stenström
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Eric S Fraga
On Thursday, 29 Nov 2018 at 09:38, Julius Dittmar wrote: > Am 29.11.18 um 09:13 schrieb Julius Dittmar: >> Am 29.11.18 um 08:17 schrieb Loris Bennett: #+latex_header: \makeatletter\let\mytextheight\beamer@frametexheight\makeatother #+attr_latex: :height 0.75\mytextheight > > Oh, or

Re: [O] In LaTeX export, can I control what heading type a headline goes to?

2018-11-29 Thread Richard Lawrence
Hi Bill, William Denton writes: > Is there a way, exporting as a book, to make Org skip "part" and make a > top-level Org headline turn into a chapter? Is there a built-in way, or do I > need to make my own class in org-latex-classes that has the structure I want? Another simple solution

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Julius Dittmar
Am 29.11.18 um 09:13 schrieb Julius Dittmar: > Am 29.11.18 um 08:17 schrieb Loris Bennett: >>> #+latex_header: >>> \makeatletter\let\mytextheight\beamer@frametexheight\makeatother >>> #+attr_latex: :height 0.75\mytextheight Oh, or perhaps just a typo is involved: is it really

Re: [O] Placement of \makeatletter with \beamer@frametextheight

2018-11-29 Thread Julius Dittmar
Hi Loris, I don't know beamer enough to propose an elegant solution. Nonetheless I have ideas what might go wrong here. Am 29.11.18 um 08:17 schrieb Loris Bennett: >> #+latex_header: >> \makeatletter\let\mytextheight\beamer@frametexheight\makeatother >> #+attr_latex: :height 0.75\mytextheight