Re: [Orgmode] Exporting non utf8 org documents
Hi Francesco, here is a possible solution: Please get the latest git version of org-mode. Then put the following code into .emacs: (defun my-org-export-latex-fix-inputenc () Set the codingsystem in inputenc to what the buffer is. (let* ((cs buffer-file-coding-system) (opt (latexenc-coding-system-to-inputenc cs))) (when opt (goto-char (point-min)) (while (re-search-forward usepackage\\[\\(.*?\\)\\] {inputenc} nil t) (goto-char (match-beginning 1)) (delete-region (match-beginning 1) (match-end 1)) (insert opt)) (save-buffer (eval-after-load org-latex '(add-hook 'org-export-latex-after-save-hook 'my-org-export-latex-fix-inputenc)) Let me know how it goes. - Carsten On Dec 8, 2009, at 5:22 PM, Francesco Pizzolante wrote: Hi, I have colleagues who are writing Org documents with latin-1 encoding and when I export these documents to LaTeX I run into problems, because Org assumes utf8. Here's a little example: --8---cut here---start-8--- #+LATEX_CLASS: article * Ceci est un test Voici un petit texte rédigé en français. * COMMENT Setup # This is for the sake of Emacs. # Local Variables: # coding: iso-latin-1 # End: --8---cut here---end---8--- The exportation to LaTeX gives the following result: --8---cut here---start-8--- % Created 2009-12-08 mar. 17:10 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{amssymb} \usepackage{hyperref} \usepackage{xcolor} \usepackage{listings} \title{org-french} \author{Francesco Pizzolante} \date{08 décembre 2009} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \section{Ceci est un test} \label{sec-1} Voici un petit texte rédigé en français. \end{document} --8---cut here---end---8--- When compiling, due to the \usepackage[utf8]{inputenc} directive, I get this error: ERROR: Package utf8x Error: MalformedUTF-8sequence. In order to fix this issue, I see the following solutions: - Would it be possible for Org to automatically get the coding system of the buffer and then generate the correct option for the inputenc package? or - Would it be possible to have a variable like #+CODING-SYSTEM: iso- latin-1 which would be used to generate the correct option for the inputenc package? Any other proposition or idea is welcome. In addition, Org should use the `utf8x' option (instead of `utf8') which enables to handle unbreakable spaces (useful in french). Thanks. Regards, Francesco ___ 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 - Carsten ___ 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: #+BEGIN_COMMENT turn to \begin{verbatim} [6.33f]
On Jan 5, 2010, at 5:40 AM, kazuo fujimoto wrote: Hi, there, I tried to commnet out following figure environment as follow. #+BEGIN_COMMNET #BEGIN_LaTeX \begin{figure} \begin{center} \includegraphics[scale=0.7]{./Figs/fig-ut-MOJI.eps} \caption{Dips town name} \label{MOJI-disp} \end{center} \end{figure} #END_LaTeX #+end_COMMNET First of all, the keyword is COMMENT, not COMMNET. Second, there was a bug in the code which could make the comment processing fail if you are not using upper case like END_COMMENT. I have fixed this issue. Third, this is missing in the docs: COMMENT blocks are currently processed by org-exp-blocks.el, which turns it into EXAMPLES, and this is really what you might be seeing here, not sure. If you prefer comments to work as advertised in the documentation, customize the variable `org-export-blocks' and remove the entry about comments. - Carsten But results of Export to LaTeX was verbatim the figure environment as following: \begin{verbatim} #BEGIN_LaTeX \begin{figure} \begin{center} \includegraphics[scale=0.7]{./Figs/fig-ut-MOJI.eps} \caption{Disp town name)を表示させる} \label{MOJI-disp} \end{center} \end{figure} #END_LaTeX \end{verbatim} Thank you for your advice. kazuo Emacs : GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-12-14 on BREPNB modified by Zhang Wei id.b...@gmail.com. Package: Org-mode version 6.33f kazuo fujimoto fujimoto at sakushin-u.ac.jp Sakushin Gakuin University, Faculty of Human Culture http://www.sakushin-u.ac.jp/~fujimoto PGP:D664 D542 D578 5B39 BB2E 50AA 6FEC 2FE7 ___ 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 - Carsten ___ 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
[Orgmode] Org and LaTeX tables
* Context In the PDF output, I need to have tables somehow highlighted. For example, by placing a border around them, or by putting a background color. Some months ago, I did that by using =org-special-blocks=, such in the following example: #+BEGIN_shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_shaded But =org-special-blocks= turns out to be incompatible with Org-babel, and since the latter grows in importance... * Essays All of the following essays fail, in that the tables are copied verbatim in the TeX output file. That is, the columns are not replaced by the correct code (with ampersand as separator). ** Embedding LaTeX \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | \end{shaded} ** Quoting LaTeX code #+LaTeX: \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} ** Quoting LaTeX code à la Org-babel? #+BEGIN_SRC shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_SRC ** Alternatives... Is there any other working alternative to get the power of Org tables and LaTeX code surrounding them, in order to get this: \begin{shaded} \begin{tabular}{rrr} Code 1st 2nd \\ \hline 361-94830.00830.00 \\ 364-91 0.00347.00 \\ \end{tabular} \end{shaded} Best regards, Seb -- Sébastien Vauban ___ 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] Org and LaTeX tables
On Jan 6, 2010, at 11:29 AM, Sébastien Vauban wrote: * Context In the PDF output, I need to have tables somehow highlighted. For example, by placing a border around them, or by putting a background color. Some months ago, I did that by using =org-special-blocks=, such in the following example: #+BEGIN_shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_shaded But =org-special-blocks= turns out to be incompatible with Org- babel, and since the latter grows in importance... * Essays All of the following essays fail, in that the tables are copied verbatim in the TeX output file. That is, the columns are not replaced by the correct code (with ampersand as separator). ** Embedding LaTeX \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | \end{shaded} The content of an environment will be exported literally. ** Quoting LaTeX code #+LaTeX: \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} Here is a dirty trick that might work. Environments are only detected if they are the first thing in a new line: #+LaTeX: {}\begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} HTH - Carsten ** Quoting LaTeX code à la Org-babel? #+BEGIN_SRC shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_SRC ** Alternatives... Is there any other working alternative to get the power of Org tables and LaTeX code surrounding them, in order to get this: \begin{shaded} \begin{tabular}{rrr} Code 1st 2nd \\ \hline 361-94830.00830.00 \\ 364-91 0.00347.00 \\ \end{tabular} \end{shaded} Best regards, Seb -- Sébastien Vauban ___ 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 - Carsten ___ 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
[Orgmode] Re: New beamer support
Hi Carsten, Carsten Dominik wrote: Sébastien Vauban wrote: The few things I'm tackling right now are: - How to get a TOC with a frame title, without having to add it explicitly? What would you like to have the LaTeX to be like? See the line I added manually in the example Org file: #+BEAMER: \frame{\frametitle{Table of Contents}\tableofcontents} Now, we can discuss about the right title for the TOC slide: - Table of Contents? - Table of contents? - Contents? - Index? - Plan? Maybe that should become a customizable variable with a nice default value... - How to get alerted text, without customizing `org-export-emphasis- alist'? Has this been forgotten from the commit? I don't remember this. Can you please remind me? See the discussion with Eric on http://www.mail-archive.com/emacs-orgmode@gnu.org/msg19862.html. Currently (git version of 10 mins ago), I have nothing defined for `@': --8---cut here---start-8--- org-export-latex-emphasis-alist is a variable defined in `org-latex.el'. Its value is ((* \\textbf{%s} nil) (/ \\emph{%s} nil) (_ \\underline{%s} nil) (+ \\st{%s} nil) (= \\verb t) (~ \\verb t)) --8---cut here---end---8--- Shouldn't `(@ \\alert{%s} nil)' be added by default? - How to get frame breaks, without modifying the resulting TeX file (by adding a frame option `allowframebreaks' -- similar to the `fragile' option)? Just put [allowframebreaks] into the :BEAMER_envargs: property of the node that becomes the frame. That does work. Thanks. However, couldn't we have that on by default on all nodes? For sure, some people won't remark some text is cut off in the output beamer presentation, when the option is not set. By the way, how are we supposed to add that property in the most easiest manner? I never really used column view, but I have troubles when using it here. On the node where I want to add that property, I do: - `C-c C-x C-c' to enter column view - `right' (arrow) to go in the second column - `e' to edit the property ... but I'm put in a tag selection menu... What am I doing wrong? - How to get the TOC repeated when changing of section, with the new item highlighted? See my manual essay ;-) I don't know! Isn't this something that can be done with beamer themes? I have no idea. Maybe others have feedback on this. I'm not yet expert either in beamer... The last question has maybe few to do with Org. I mean: maybe, we can't have that feature implemented in Org. Dunno. Beamer support is hacking Org quite a bit, installing hooks left and right, so I think it can be done. But I would need o know what exactly is needed/wanted Sure. Thanks -- once again -- for all excellent results achieved so far. Best regards, Seb -- Sébastien Vauban ___ 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
[Orgmode] Can't open source.c file following the link to it
Hi, in an org file within org-mode I create a link to a source.c file, but can't to open it from org-mode. Why? How can I setup org-mode to achieve this feature? Any advices will be appreciated! -- Regards, Paul Chany You can freely correct me in my English. http://csanyi-pal.info ___ 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] RFC: Syntax for page numbers in file: links?
On 06.01.2010 10:05, Carsten Dominik wrote: Would you like to work on a patch that allows interpreting page numbers for external applications? I'll definitely take a stab at it and see how far I get while learning more about elisp along the way. I will post to the mailing list if I make significant progress or give up. - Jan ___ 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] RFC: Syntax for page numbers in file: links?
On Jan 6, 2010, at 12:07 PM, Jan Böcker wrote: On 06.01.2010 10:05, Carsten Dominik wrote: Would you like to work on a patch that allows interpreting page numbers for external applications? I'll definitely take a stab at it and see how far I get while learning more about elisp along the way. I will post to the mailing list if I make significant progress or give up. Thanks! - Carsten ___ 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
[Orgmode] Re: Org and LaTeX tables
Hi Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 11:29 AM, Sébastien Vauban wrote: In the PDF output, I need to have tables somehow highlighted. For example, by placing a border around them, or by putting a background color. Some months ago, I did that by using =org-special-blocks=, such in the following example: #+BEGIN_shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_shaded But =org-special-blocks= turns out to be incompatible with Org- babel, and since the latter grows in importance... ** Quoting LaTeX code #+LaTeX: \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} Is there any other working alternative to get the power of Org tables and LaTeX code surrounding them, in order to get this: \begin{shaded} \begin{tabular}{rrr} Code 1st 2nd \\ \hline 361-94830.00830.00 \\ 364-91 0.00347.00 \\ \end{tabular} \end{shaded} Here is a dirty trick that might work. Environments are only detected if they are the first thing in a new line: #+LaTeX: {}\begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} That DOES work. Thanks a lot. Now, regarding long term (whatever it means), can I count on that feature to still be supported in the future? Or would/should such a feature be implemented in a different manner? Am I the only one having that need? Can others give a feedback on this? Best regards, Seb -- Sébastien Vauban ___ 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: New beamer support
On Jan 6, 2010, at 11:59 AM, Sébastien Vauban wrote: Shouldn't `(@ \\alert{%s} nil)' be added by default? Hmm, I am not sure, because \alert is of course not defined in normal LaTeX export. And maybe it would even be better to redifine bold emphasis as alert for beamer export? - How to get frame breaks, without modifying the resulting TeX file (by adding a frame option `allowframebreaks' -- similar to the `fragile' option)? Just put [allowframebreaks] into the :BEAMER_envargs: property of the node that becomes the frame. That does work. Thanks. However, couldn't we have that on by default on all nodes? For sure, some people won't remark some text is cut off in the output beamer presentation, when the option is not set. I believe turning this on for all frames has drawbacks, like loosing overlay capability? However, I guess it does make sense to have a global variable to set default options for frames, I guess. I'll put that on my list. By the way, how are we supposed to add that property in the most easiest manner? I never really used column view, but I have troubles when using it here. On the node where I want to add that property, I do: - `C-c C-x C-c' to enter column view - `right' (arrow) to go in the second column - `e' to edit the property ... but I'm put in a tag selection menu... What am I doing wrong? That happens at the BEAMER_env property and give you a way to select the environment with a single key, for example `e b' for block. If you move the cursor to the field for env args, e will give you a prompt where you can edit. - Carsten ___ 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
[Orgmode] Re: New beamer support
Hi Eric, Christian, Carsten and all, Eric S Fraga wrote: At Wed, 06 Jan 2010 10:46:45 +0100, Sébastien Vauban wrote: The few things I'm tackling right now are: - How to get a TOC with a frame title, without having to add it explicitly? I think you need to add it explicitly with \tableofcontents? In beamer, I simply typically have \begin{frame}beamer \frametitle{Table of contents} \tableofcontents \end{frame} I guess I wasn't clear... If I use the option `toc' for the export: --8---cut here---start-8--- #+OPTIONS: toc:t --8---cut here---end---8--- then I get a slide with the table of contents. Automatically. The only criticism I did is that there was no title to the generated frame. Hence, the workaround was setting the `toc' option to `nil' and adding such a code by myself: --8---cut here---start-8--- #+BEAMER: \frame{\frametitle{Outline}\tableofcontents} --8---cut here---end---8--- But better (IMHO) would be that such a code gets inserted automatically (with a frame title set, for example, to `Outline') when the `toc' export option is set to `t', and when we're in a beamer class. Is it better expressed? - How to get the TOC repeated when changing of section, with the new item highlighted? See my manual essay ;-) Again, beamer supports this easily so I would suggest simply adding some direct latex code at the start of your org file. The latex code I use is: \AtBeginSection[] { \begin{frame} \frametitle{Topic} \tableofcontents[currentsection] \end{frame} } You could simply put this in one line with #+latex_header: as in (untested): #+latex_header: \AtBeginSection[]{ \begin{frame}\frametitle{Topic} \tableofcontents[currentsection] \end{frame}} Better is: --8---cut here---start-8--- #+BEGIN_BEAMER \AtBeginSection[] % Do nothing for \section* { \begin{frame}beamer \frametitle{Outline} \tableofcontents[currentsection] \end{frame} } #+END_BEAMER --8---cut here---end---8--- Thanks Eric and Christian for your input on this! Best regards, Seb -- Sébastien Vauban ___ 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
[Orgmode] Re: New beamer support
Hi Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 12:13 PM, Christian Lasarczyk wrote: Carsten Dominik wrote: - How to get the TOC repeated when changing of section, with the new item highlighted? See my manual essay ;-) I don't know! Isn't this something that can be done with beamer themes? I have no idea. \AtBeginSection[] % Do nothing for \section* { \begin{frame}beamer \frametitle{Outline} \tableofcontents[currentsection] %or \tableofcontents \end{frame} } Do I understand correctly that this has to be set only once, and will automatically happen at the beginning of each section? Yes, you do. Can this be done in the preamble, or must it be after \begin{document} ? It can be done in the preamble as well. Tested. Best regards, Seb -- Sébastien Vauban ___ 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: New beamer support
Hi Sebastien, there is now a new option org-beamer-frame-default-options, and the automatically generated to will be wrapped into a frame with title. - Carsten On Jan 6, 2010, at 2:03 PM, Sébastien Vauban wrote: Hi Eric, Christian, Carsten and all, Eric S Fraga wrote: At Wed, 06 Jan 2010 10:46:45 +0100, Sébastien Vauban wrote: The few things I'm tackling right now are: - How to get a TOC with a frame title, without having to add it explicitly? I think you need to add it explicitly with \tableofcontents? In beamer, I simply typically have \begin{frame}beamer \frametitle{Table of contents} \tableofcontents \end{frame} I guess I wasn't clear... If I use the option `toc' for the export: --8---cut here---start-8--- #+OPTIONS: toc:t --8---cut here---end---8--- then I get a slide with the table of contents. Automatically. The only criticism I did is that there was no title to the generated frame. Hence, the workaround was setting the `toc' option to `nil' and adding such a code by myself: --8---cut here---start-8--- #+BEAMER: \frame{\frametitle{Outline}\tableofcontents} --8---cut here---end---8--- But better (IMHO) would be that such a code gets inserted automatically (with a frame title set, for example, to `Outline') when the `toc' export option is set to `t', and when we're in a beamer class. Is it better expressed? - How to get the TOC repeated when changing of section, with the new item highlighted? See my manual essay ;-) Again, beamer supports this easily so I would suggest simply adding some direct latex code at the start of your org file. The latex code I use is: \AtBeginSection[] { \begin{frame} \frametitle{Topic} \tableofcontents[currentsection] \end{frame} } You could simply put this in one line with #+latex_header: as in (untested): #+latex_header: \AtBeginSection[]{ \begin{frame} \frametitle{Topic}\tableofcontents[currentsection] \end{frame}} Better is: --8---cut here---start-8--- #+BEGIN_BEAMER \AtBeginSection[] % Do nothing for \section* { \begin{frame}beamer \frametitle{Outline} \tableofcontents[currentsection] \end{frame} } #+END_BEAMER --8---cut here---end---8--- Thanks Eric and Christian for your input on this! Best regards, Seb -- Sébastien Vauban ___ 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 - Carsten ___ 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: Org and LaTeX tables
On Jan 6, 2010, at 12:10 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 11:29 AM, Sébastien Vauban wrote: In the PDF output, I need to have tables somehow highlighted. For example, by placing a border around them, or by putting a background color. Some months ago, I did that by using =org-special-blocks=, such in the following example: #+BEGIN_shaded | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+END_shaded But =org-special-blocks= turns out to be incompatible with Org- babel, and since the latter grows in importance... ** Quoting LaTeX code #+LaTeX: \begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} Is there any other working alternative to get the power of Org tables and LaTeX code surrounding them, in order to get this: \begin{shaded} \begin{tabular}{rrr} Code 1st 2nd \\ \hline 361-94830.00830.00 \\ 364-91 0.00347.00 \\ \end{tabular} \end{shaded} Here is a dirty trick that might work. Environments are only detected if they are the first thing in a new line: #+LaTeX: {}\begin{shaded} | Code |1st |2nd | |++| | 361-94 | 830.00 | 830.00 | | 364-91 | 0.00 | 347.00 | #+LaTeX: \end{shaded} That DOES work. Thanks a lot. Now, regarding long term (whatever it means), can I count on that feature to still be supported in the future? Or would/should such a feature be implemented in a different manner? Am I the only one having that need? Can others give a feedback on this? I think Chris Gray's special blocks were actually not a bad idea for this kind of problem. What is the source of the incompatibility with babel? - Carsten ___ 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
[Orgmode] Re: New beamer support
Hi Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 11:59 AM, Sébastien Vauban wrote: Shouldn't `(@ \\alert{%s} nil)' be added by default? Hmm, I am not sure, because \alert is of course not defined in normal LaTeX export. And maybe it would even be better to redifine bold emphasis as alert for beamer export? For me, bold and alert are 2 different beasts. Some beamer styles even display them differently (different colors, for example). Better would be not to mix them, IMHO. - How to get frame breaks, without modifying the resulting TeX file (by adding a frame option `allowframebreaks' -- similar to the `fragile' option)? Just put [allowframebreaks] into the :BEAMER_envargs: property of the node that becomes the frame. That does work. Thanks. However, couldn't we have that on by default on all nodes? For sure, some people won't remark some text is cut off in the output beamer presentation, when the option is not set. I believe turning this on for all frames has drawbacks, like loosing overlay capability? I'm not sure I understand the point but... However, I guess it does make sense to have a global variable to set default options for frames, I guess. I'll put that on my list. OK. Thanks. By the way, how are we supposed to add that property in the most easiest manner? I never really used column view, but I have troubles when using it here. On the node where I want to add that property, I do: - `C-c C-x C-c' to enter column view - `right' (arrow) to go in the second column - `e' to edit the property ... but I'm put in a tag selection menu... What am I doing wrong? That happens at the BEAMER_env property and give you a way to select the environment with a single key, for example `e b' for block. If you move the cursor to the field for env args, e will give you a prompt where you can edit. Whether in org-mode or in org-beamer-mode, when typing `e' on the second column, it opens the tag selection interface in the minibuffer. But, here, what I'm trying to add is a property, not a tag...? Pressing TAB allows me free edition, but what's inserted at the node is a tag... PS- An idea: wouldn't it be good (*iff* easily feasible) to load org-beamer-mode when opening an Org file whose LaTeX class is beamer? Best regards, Seb -- Sébastien Vauban ___ 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: New beamer support
On Jan 6, 2010, at 2:35 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 11:59 AM, Sébastien Vauban wrote: Shouldn't `(@ \\alert{%s} nil)' be added by default? Hmm, I am not sure, because \alert is of course not defined in normal LaTeX export. And maybe it would even be better to redifine bold emphasis as alert for beamer export? For me, bold and alert are 2 different beasts. Some beamer styles even display them differently (different colors, for example). Better would be not to mix them, IMHO. - How to get frame breaks, without modifying the resulting TeX file (by adding a frame option `allowframebreaks' -- similar to the `fragile' option)? Just put [allowframebreaks] into the :BEAMER_envargs: property of the node that becomes the frame. That does work. Thanks. However, couldn't we have that on by default on all nodes? For sure, some people won't remark some text is cut off in the output beamer presentation, when the option is not set. I believe turning this on for all frames has drawbacks, like loosing overlay capability? I'm not sure I understand the point but... However, I guess it does make sense to have a global variable to set default options for frames, I guess. I'll put that on my list. OK. Thanks. By the way, how are we supposed to add that property in the most easiest manner? I never really used column view, but I have troubles when using it here. On the node where I want to add that property, I do: - `C-c C-x C-c' to enter column view - `right' (arrow) to go in the second column - `e' to edit the property ... but I'm put in a tag selection menu... What am I doing wrong? That happens at the BEAMER_env property and give you a way to select the environment with a single key, for example `e b' for block. If you move the cursor to the field for env args, e will give you a prompt where you can edit. Whether in org-mode or in org-beamer-mode, when typing `e' on the second column, it opens the tag selection interface in the minibuffer. But, here, what I'm trying to add is a property, not a tag...? Indeed you are changing the tag, but the property will change along with it (check it!). The idea is that the property is *tracked* by a tag, to make the current value constantly visible. I use the tag interface just because it exists and is simple to use. Pressing TAB allows me free edition, but what's inserted at the node is a tag... Which will cause a change in the property as well, I believe. I know it is confusing - but once you've got your head around this, it will be very useful. PS- An idea: wouldn't it be good (*iff* easily feasible) to load org-beamer-mode when opening an Org file whose LaTeX class is beamer? That could be done, but you can also set the startup option. But yes, it is one more think to remember... - Carsten ___ 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: New beamer support
On Jan 6, 2010, at 3:23 PM, Carsten Dominik wrote: PS- An idea: wouldn't it be good (*iff* easily feasible) to load org-beamer-mode when opening an Org file whose LaTeX class is beamer? That could be done, but you can also set the startup option. But yes, it is one more think to remember... I remember now why I did it like this. 1. If the global LaTeX class is not beamer, you still want to be able to turn the mode on, because you might have a subtree that will be exported as beamer presentation 2. If you are not missing the `C-c C-b' key, you can just turn on org-beamer-mode in every org-mode by setting org-startup-with-beamer-mode. - Carsten ___ 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: Org and LaTeX tables
Carsten Dominik carsten.domi...@gmail.com writes: On Jan 6, 2010, at 12:10 PM, Sébastien Vauban wrote: [...] I think Chris Gray's special blocks were actually not a bad idea for this kind of problem. What is the source of the incompatibility with babel? I'd be interested to hear this as well -- if babel is trampling on other block types that is something I would very much want to correct -- Eric ___ 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
[Orgmode] Re: New beamer support
Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 3:23 PM, Carsten Dominik wrote: PS- An idea: wouldn't it be good (*iff* easily feasible) to load org-beamer-mode when opening an Org file whose LaTeX class is beamer? That could be done, but you can also set the startup option. But yes, it is one more think to remember... I remember now why I did it like this. 1. If the global LaTeX class is not beamer, you still want to be able to turn the mode on, because you might have a subtree that will be exported as beamer presentation Right. --8---cut here---start-8--- Org-Beamer minor mode (indicator Bm): Special support for editing Org-mode files made to export to beamer. --8---cut here---end---8--- Wouldn't it be better to rename the function to be called as `M-x org-beamer-minor-mode'. Many minor modes are called that way, even if a quick overview of the functions show that it does not seem to be enforced. 2. If you are not missing the `C-c C-b' key, you can just turn on org-beamer-mode in every org-mode by setting org-startup-with-beamer-mode. Right. Not a problem. Thanks, Seb -- Sébastien Vauban ___ 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
[Orgmode] Re: New beamer support
Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 2:35 PM, Sébastien Vauban wrote: Carsten Dominik wrote: On Jan 6, 2010, at 11:59 AM, Sébastien Vauban wrote: Shouldn't `(@ \\alert{%s} nil)' be added by default? Hmm, I am not sure, because \alert is of course not defined in normal LaTeX export. And maybe it would even be better to redifine bold emphasis as alert for beamer export? For me, bold and alert are 2 different beasts. Some beamer styles even display them differently (different colors, for example). Better would be not to mix them, IMHO. - How to get frame breaks, without modifying the resulting TeX file (by adding a frame option `allowframebreaks' -- similar to the `fragile' option)? Just put [allowframebreaks] into the :BEAMER_envargs: property of the node that becomes the frame. How are we supposed to add that property in the most easiest manner? I never really used column view, but I have troubles when using it here. That happens at the BEAMER_env property and give you a way to select the environment with a single key, for example `e b' for block. If you move the cursor to the field for env args, e will give you a prompt where you can edit. Whether in org-mode or in org-beamer-mode, when typing `e' on the second column, it opens the tag selection interface in the minibuffer. But, here, what I'm trying to add is a property, not a tag...? Indeed you are changing the tag, but the property will change along with it (check it!). The idea is that the property is *tracked* by a tag, to make the current value constantly visible. I use the tag interface just because it exists and is simple to use. Pressing TAB allows me free edition, but what's inserted at the node is a tag... Which will cause a change in the property as well, I believe. I don't know if it's me, but, nope, it does not. Look, I'm starting from such a node: --8---cut here---start-8--- * Current assets ** DB *** Model Schema Partial X We extended X in order to put constraints on things (as one can with cardinalities). What *** Rules Other * First * Second * Rules, with link automatically made between rule failures and contributing properties Performance * Specialization of programs given partial data * Query reduction: optimize the queries so that with a minimal IO interaction the necessary data from a DB can be requested *** Computations Excel engine *IS NOT THE LAST ITEM* *** Integrity *has a subitem* (not shown by default) Seamless migrations is not visible if allowframebreaks is not set --8---cut here---end---8--- Trying to add the property on the level-2 item named DB, as you can see in my lossage: --8---cut here---start-8--- M-x o r g - b e tab a m e r tab m o tab return M-x up return C-c C-x C-c right e b e e tab [ a l l w o backspace backspace o w f r a m e s backspace b r e a k s ] return q q tab tab tab tab tab down tab down tab up tab tab up tab tab C-h C-h l --8---cut here---end---8--- I end up with that change: --8---cut here---start-8--- * Current assets ** DB:[allowframebreaks]:B_block: :PROPERTIES: :END: *** Model --8---cut here---end---8--- Properties are empty. When not typing `e b', I just end up with: --8---cut here---start-8--- ** DB:[allowframebreaks]: *** Model --8---cut here---end---8--- No property block is created... Maybe I still do something wrong? I know it is confusing - but once you've got your head around this, it will be very useful. As soon as I get this working, OK, yes, not a problem, I just have to know... Thanks, Seb -- Sébastien Vauban ___ 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
[Orgmode] symbol request ins org-html-entities
Hello Experts, Sometimes, I found it would be handy to put checkmarks in tables. In TeX, it is \checkmark, while in HTML, its #10003 see page: http://www.mistywindow.com/reference/html-characters.htm) It looks the const org-html-entities is defined in org-exp.el, can we include this ? In the long run, it might be usful if it can be extended by user. Thanks! Xin ___ 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
[Orgmode] Re: [Resent?] Managing a simple blog
Pierre de Buyl ha scritto: How do you create your links ? I publish a site using org and links of the form [[file:page.org] [page]] are correctly exported as a relative link to page.html . Uhmm, okay, problem solved. [...] -- Ciao leandro pgpyZJTaJr8kf.pgp Description: PGP signature ___ 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: New beamer support
On Jan 6, 2010, at 5:22 PM, Sébastien Vauban wrote: Hi Carsten, Carsten Dominik wrote: there is now a new option org-beamer-frame-default-options When setting it into Emacs, great, it DOES WORK as expected! Though, I believe this is more a setting of the document itself, instead of one customization in my own `.emacs' file. I would rather like my colleagues to get the same output when compiling my document. I tried, then, the following: --8---cut here---start-8--- * COMMENT Setup # This is for the sake of Emacs. # Local Variables: # ispell-local-dictionary: en_US # org-beamer-frame-default-options: [allowframebreaks] # End: --8---cut here---end---8--- with no success, though. Maybe I would have to try with a `#+BIND'. #+BIND will do the trick, it was made just for this. Though, wouldn't it be better to explicitly add something like: --8---cut here---start-8--- #+BEAMER_FRAME_EXTRA_OPTIONS: [allowframebreaks] --8---cut here---end---8--- Yes, that would make sense if it is a frequently used feature. I like to hesitate with introducing these special customizations until I am convinced that this is used reasonably often. Otherwise I would have to have 1000 of the special lines, approximately. Question to all: How likely is the use of a default option you'd want to have on *every* frame? - Carsten ___ 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: New beamer support
On Jan 6, 2010, at 4:35 PM, Sébastien Vauban wrote: Carsten, Carsten Dominik wrote: On Jan 6, 2010, at 3:23 PM, Carsten Dominik wrote: PS- An idea: wouldn't it be good (*iff* easily feasible) to load org-beamer-mode when opening an Org file whose LaTeX class is beamer? That could be done, but you can also set the startup option. But yes, it is one more think to remember... I remember now why I did it like this. 1. If the global LaTeX class is not beamer, you still want to be able to turn the mode on, because you might have a subtree that will be exported as beamer presentation Right. --8---cut here---start-8--- Org-Beamer minor mode (indicator Bm): Special support for editing Org-mode files made to export to beamer. --8---cut here---end---8--- Wouldn't it be better to rename the function to be called as `M-x org-beamer-minor-mode'. Many minor modes are called that way, even if a quick overview of the functions show that it does not seem to be enforced. No, I think putting minor into the name is a mistake. The only place where this makes sense is something like outline-minor-mode, i.e. where a major mode of the same name exists. - Carsten 2. If you are not missing the `C-c C-b' key, you can just turn on org-beamer-mode in every org-mode by setting org-startup-with-beamer-mode. Right. Not a problem. Thanks, Seb -- Sébastien Vauban ___ 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 - Carsten ___ 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: New beamer support
On Jan 6, 2010, at 4:47 PM, Sébastien Vauban wrote: Trying to add the property on the level-2 item named DB, as you can see in my lossage: --8---cut here---start-8--- M-x o r g - b e tab a m e r tab m o tab return M-x up return C-c C-x C-c right e b e e tab [ a l l w o backspace backspace o w f r a m e s backspace b r e a k s ] return q q tab tab tab tab tab down tab down tab up tab tab up tab tab C-h C-h l --8---cut here---end---8--- I end up with that change: --8---cut here---start-8--- * Current assets ** DB: [allowframebreaks]:B_block: :PROPERTIES: :END: *** Model --8---cut here---end---8--- Properties are empty. When not typing `e b', I just end up with: --8---cut here---start-8--- ** DB: [allowframebreaks]: *** Model --8---cut here---end---8--- No property block is created... I believe I have said several times that the second column is *not* the one for the options. The third is. - Carsten Maybe I still do something wrong? I know it is confusing - but once you've got your head around this, it will be very useful. As soon as I get this working, OK, yes, not a problem, I just have to know... Thanks, Seb -- Sébastien Vauban ___ 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 - Carsten ___ 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
[Orgmode] [beamer] frame arguments must be in envargs, not extra
Carsten, the documentation for beamer support, http://orgmode.org/worg/org-tutorials/org-beamer.php under the Special properties heading suggests that the BEAMER_extra property can be used to specify options for the environment. For frames, trying for instance [shrink=30], this doesn't work. It does work if this option is placed in the BEAMER_envargs property instead. I'm not sure where, if ever, you use the BEAMER_extra property? Thanks again, eric ___ 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] RFC: Syntax for page numbers in file: links?
Hi, during following this thread I noticed one problem with the page and line- number concept - file:~/some-file.txt::23some-file.txt, line 23 A txt-file may have no clear page boarders. Thus only a line number might make sens - file:~/document.pdf:4 document.pdf, page 4 A PDF may have only pages and maybe (I do not know at the moment) there is a way to address bookmarks and toc entries and even line numbers - file:~/document.odf:3::5document.odf, page 3, line 5 A odf can have both line numbers and page numbers as well as chapters-, paragraphs- etc. markers. Thus, it depends heavily on the kind of document and on the ability of the external reader. I would suggest to make sure, if no page number but a line number is given, this line number should be dealt as absolute value (starting from the very first line). If a page number and a line number is given, the line number is relative to the given page. Furthermore, there should be something to deal with wrong inputs. E.g. given page number for file-types which does not have defined pages (like txt, source code, etc.). Nice would be the possibility to refer to TOC, paragraphs and other markers since they would keep valid even if later versions of the file change the position and make page and line number invalid. Just my thoughts Torsten ___ 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 ___ 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