Hi, Just wondering if there is a better way to italicise across more than two lines for a list item, currently this is the only way that works for me: - on the assumption of equilibrium: /``even if there is equilibrium at the pore sale, the upscaling, in this/ /if there is equilibrium at blah the equilibrium/'' Thanks, Myles
On 03/08/2013 11:58 AM, Myles English wrote:
>
> Hi,
>
> Just wondering if there is a better way to italicise across more than two lines
> for a list item, currently this is the only way that works for me:
>
> - on the assumption of equilibrium: /``even if there is equilibrium at
> the pore sale, the upscaling, in this/ /if there is equilibrium at
> blah the equilibrium/''
>
> Thanks,
>
> Myles
>
>
The same happens outside of lists. I set
(setq org-emphasis-regexp-components
'(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10))
which ought to increase the number of lines I can span an emphasis (only
change is the original 1 at the end to 10). Doesn't work though, atm.
My org-version is release_8.0-pre-67-gd3361c.
Best regards
Robert
Robert Klein <kleinrob-X0oAc2r5zByT8KA7nbIET7NAH6kLmebB@public.gmane.org> writes:
> On 03/08/2013 11:58 AM, Myles English wrote:
>>
>> Hi,
>>
>> Just wondering if there is a better way to italicise across more than
>> two lines for a list item, currently this is the only way that works
>> for me:
>>
>> - on the assumption of equilibrium: /``even if there is equilibrium at
>> the pore sale, the upscaling, in this/ /if there is equilibrium at
>> blah the equilibrium/''
>>
>> Thanks,
>>
>> Myles
>>
>>
>
> The same happens outside of lists. I set
>
> (setq org-emphasis-regexp-components
> '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10))
>
> which ought to increase the number of lines I can span an emphasis (only
> change is the original 1 at the end to 10). Doesn't work though, atm.
> My org-version is release_8.0-pre-67-gd3361c.
A less pleasant/even worse way (practically heresy in some circles,
though some Org users do it) would just be to compose your documents
using visual-line-mode instead of auto-fill-mode. Then whole paragraphs
are one "line."
--
Regards,
WGG
Hi all,
wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse)
writes:
> A less pleasant/even worse way (practically heresy in some circles,
> though some Org users do it) would just be to compose your documents
> using visual-line-mode instead of auto-fill-mode. Then whole paragraphs
> are one "line."
... and a deepest fix would be to re-implement markup fontification
with a proper use of `font-lock-fontify-region-function'... if anyone
feels ready to put a stab at this, he has my full support and will
fix a historical limitation of Org's code.
PS: The current way multiline markup is fontified is buggy because
it feels random, but it is correct under some conditions.
--
Bastien
Dnia 2013-03-14, o godz. 16:46:22 wgreenhouse@riseup.net (W. Greenhouse) napisał(a): > A less pleasant/even worse way (practically heresy in some circles, > though some Org users do it) would just be to compose your documents > using visual-line-mode instead of auto-fill-mode. Then whole > paragraphs are one "line." Sorry for a bit of OT, but why should visual-line-mode be bad? (I've switched to it from auto-filling and I'm generally satisfied with it, but I'm asking so that I could learn something.) Regards, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
On 03/14/2013 09:56 AM, Robert Klein wrote:
> On 03/08/2013 11:58 AM, Myles English wrote:
>>
>> Hi,
>>
>> Just wondering if there is a better way to italicise across more than two lines
>> for a list item, currently this is the only way that works for me:
>>
>> - on the assumption of equilibrium: /``even if there is equilibrium at
>> the pore sale, the upscaling, in this/ /if there is equilibrium at
>> blah the equilibrium/''
>>
>> Thanks,
>>
>> Myles
>>
>>
>
> The same happens outside of lists. I set
>
> (setq org-emphasis-regexp-components
> '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10))
>
> which ought to increase the number of lines I can span an emphasis (only
> change is the original 1 at the end to 10). Doesn't work though, atm.
> My org-version is release_8.0-pre-67-gd3361c.
>
Hi,
when exporting multiline emphasis doesn't work, too (org-version:
release_8.0-pre-79-g791ebc). I tried a little example file:
#+begin_src org
# -*- fill-column:75; coding: utf-8; -*-
#+TITLE: test file
This is a small /little text to get
some text spanning over more than
three lines, so i can try to emphasize
more than two lines/ in my example.
#+end_src
When I export this to LaTeX buffer (C-c C-e l L) or HTML buffer (C-c C-e
h H) org simply exports the slashes verbatim:
#+begin_example ;; excerpt of LaTeX export
\begin{document}
\maketitle
\tableofcontents
This is a small /little text to get
some text spanning over more than
three lines, so i can try to emphasize
morethan two lines/ in my example.
% Generated by Org mode 8.0-pre in Emacs 24.2.1.
\end{document}
#+end_example
or, respectively:
#+begin_example ;; excerpt of html export
<p>
This is a small /little text to get
some text spanning over more than
three lines, so i can try to emphasize
morethan two lines/ in my example.
</p>
#+end_example
My .emacs for the minimal example is as follows:
#+begin_src elisp
; no startup message
(setq inhibit-startup-message t)
;; I'm feeling religious about this:
(setq-default indent-tabs-mode nil)
;; ask y or n instead of yes or no
(fset 'yes-or-no-p 'y-or-n-p)
;; indent after enter; I want this most of the time.
(global-set-key (kbd "RET") 'newline-and-indent)
;; use emacs with IME (avoid 'no dead-acute' error messages)
(load-library "iso-transl")
(setq load-path (cons "~/.emacs.d/org-mode/lisp" load-path))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" .
org-mode))
(require 'org)
;; change number of newlines for emphasized blocks
(setq org-emphasis-regexp-components
'(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10))
#+end_src
Mebbe I just forgot some setting to get it working, though I'd like the
exporter to recognize the org-emphasis-regexp-components settings...
Best regards
Robert
Hello, Robert Klein <kleinrob@mpip-mainz.mpg.de> writes: > (require 'org) > > ;; change number of newlines for emphasized blocks > (setq org-emphasis-regexp-components > '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10)) > This should probably happen before org is loaded, according to the docstring. > Mebbe I just forgot some setting to get it working, though I'd like the > exporter to recognize the org-emphasis-regexp-components settings... The exporter relies on the parser, which relies on `org-emph-re', which is built from `org-emphasis-regexp-components'. Regards, -- Nicolas Goaziou
Hello, > Robert Klein <kleinrob@mpip-mainz.mpg.de> writes: > >> (require 'org) >> >> ;; change number of newlines for emphasized blocks >> (setq org-emphasis-regexp-components >> '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10)) >> > > This should probably happen before org is loaded, according to the > docstring. > Thanks a lot, this works. I didn't find (or understand) this in the docstring, though. :( >> Mebbe I just forgot some setting to get it working, though I'd like the >> exporter to recognize the org-emphasis-regexp-components settings... > > The exporter relies on the parser, which relies on `org-emph-re', which > is built from `org-emphasis-regexp-components'. > Best regards Robert
Hi Robert,
Robert Klein <kleinrob@mpip-mainz.mpg.de> writes:
> Thanks a lot, this works. I didn't find (or understand) this in the
> docstring, though. :(
This was, but too implicit.
C-h v org-emphasis-regexp-components RET to check again.
Thanks,
--
Bastien