all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* latex italics in list, with quotation marks
@ 2013-03-08 10:58 Myles English
  2013-03-14  8:56 ` multiline emphasis, was: " Robert Klein
  0 siblings, 1 reply; 9+ messages in thread
From: Myles English @ 2013-03-08 10:58 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-08 10:58 latex italics in list, with quotation marks Myles English
@ 2013-03-14  8:56 ` Robert Klein
  2013-03-14 16:46   ` W. Greenhouse
  2013-03-15 12:49   ` exporting, too, was: " Robert Klein
  0 siblings, 2 replies; 9+ messages in thread
From: Robert Klein @ 2013-03-14  8:56 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-14  8:56 ` multiline emphasis, was: " Robert Klein
@ 2013-03-14 16:46   ` W. Greenhouse
  2013-03-14 16:51     ` Bastien
  2013-03-14 20:39     ` Marcin Borkowski
  2013-03-15 12:49   ` exporting, too, was: " Robert Klein
  1 sibling, 2 replies; 9+ messages in thread
From: W. Greenhouse @ 2013-03-14 16:46 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-14 16:46   ` W. Greenhouse
@ 2013-03-14 16:51     ` Bastien
  2013-03-14 20:39     ` Marcin Borkowski
  1 sibling, 0 replies; 9+ messages in thread
From: Bastien @ 2013-03-14 16:51 UTC (permalink / raw)
  To: W. Greenhouse; +Cc: OrgMode ML

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-14 16:46   ` W. Greenhouse
  2013-03-14 16:51     ` Bastien
@ 2013-03-14 20:39     ` Marcin Borkowski
  1 sibling, 0 replies; 9+ messages in thread
From: Marcin Borkowski @ 2013-03-14 20:39 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* exporting, too, was: Re:  multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-14  8:56 ` multiline emphasis, was: " Robert Klein
  2013-03-14 16:46   ` W. Greenhouse
@ 2013-03-15 12:49   ` Robert Klein
  2013-03-15 17:43     ` Nicolas Goaziou
  1 sibling, 1 reply; 9+ messages in thread
From: Robert Klein @ 2013-03-15 12:49 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: exporting, too, was: Re:  multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-15 12:49   ` exporting, too, was: " Robert Klein
@ 2013-03-15 17:43     ` Nicolas Goaziou
  2013-03-17  9:57       ` Robert Klein
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Goaziou @ 2013-03-15 17:43 UTC (permalink / raw)
  To: Robert Klein; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: exporting, too, was: Re:  multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-15 17:43     ` Nicolas Goaziou
@ 2013-03-17  9:57       ` Robert Klein
  2013-04-14 10:04         ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Klein @ 2013-03-17  9:57 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: exporting, too, was: Re:  multiline emphasis, was: Re:   latex italics in list, with quotation marks
  2013-03-17  9:57       ` Robert Klein
@ 2013-04-14 10:04         ` Bastien
  0 siblings, 0 replies; 9+ messages in thread
From: Bastien @ 2013-04-14 10:04 UTC (permalink / raw)
  To: Robert Klein; +Cc: emacs-orgmode, Nicolas Goaziou

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-04-14 10:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 10:58 latex italics in list, with quotation marks Myles English
2013-03-14  8:56 ` multiline emphasis, was: " Robert Klein
2013-03-14 16:46   ` W. Greenhouse
2013-03-14 16:51     ` Bastien
2013-03-14 20:39     ` Marcin Borkowski
2013-03-15 12:49   ` exporting, too, was: " Robert Klein
2013-03-15 17:43     ` Nicolas Goaziou
2013-03-17  9:57       ` Robert Klein
2013-04-14 10:04         ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.