emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Preventing line breaks in (HTML) published description lists
@ 2009-07-05  9:43 Paul Michael Reilly
  2009-07-05 13:33 ` Bernt Hansen
  2009-07-06 10:46 ` Sebastian Rose
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Michael Reilly @ 2009-07-05  9:43 UTC (permalink / raw)
  To: emacs-orgmode

I added a plain list to my file:

...
   - term1 :: this means something
   - term2 :: this means something else
   - term3 :: and something different still
...

fully expecting the term and the description rendered in HTML to be on 
the same line as is shown in the Latex published Org Mode manual.  But 
the items were rendered as:

...
   term1
       this means something
   term2
       this means something else
   term3
       and something different still
...

I suspect this might be an HTML artifact, nevertheless, how would I 
convince org-mode to arrange for the HTML rendering to attempt to keep 
the terms and descriptions on the same line?  An example or reference 
would be much appreciated.

Thanks,

-pmr

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

* Re: Preventing line breaks in (HTML) published description lists
  2009-07-05  9:43 Preventing line breaks in (HTML) published description lists Paul Michael Reilly
@ 2009-07-05 13:33 ` Bernt Hansen
  2009-07-05 18:18   ` Paul Michael Reilly
  2009-07-06 10:46 ` Sebastian Rose
  1 sibling, 1 reply; 5+ messages in thread
From: Bernt Hansen @ 2009-07-05 13:33 UTC (permalink / raw)
  To: Paul Michael Reilly; +Cc: emacs-orgmode

Paul Michael Reilly <pajatopmr@gmail.com> writes:

> I added a plain list to my file:
>
> ...
>   - term1 :: this means something
>   - term2 :: this means something else
>   - term3 :: and something different still
> ...
>
> fully expecting the term and the description rendered in HTML to be on
> the same line as is shown in the Latex published Org Mode manual.  But
> the items were rendered as:
>
> ...
>   term1
>       this means something
>   term2
>       this means something else
>   term3
>       and something different still
> ...
>
> I suspect this might be an HTML artifact, nevertheless, how would I
> convince org-mode to arrange for the HTML rendering to attempt to keep
> the terms and descriptions on the same line?  An example or reference
> would be much appreciated.
>
> Thanks,

Adding this seems to work:

#+STYLE: <style type="text/css">dt {clear: left; float: left; width: 4em; } </style>

-Bernt

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

* Re: Preventing line breaks in (HTML) published description lists
  2009-07-05 13:33 ` Bernt Hansen
@ 2009-07-05 18:18   ` Paul Michael Reilly
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Michael Reilly @ 2009-07-05 18:18 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1390 bytes --]

On 07/05/2009 09:33 AM, Bernt Hansen wrote:
> Paul Michael Reilly<pajatopmr@gmail.com>  writes:
>
>    
>> I added a plain list to my file:
>>
>> ...
>>    - term1 :: this means something
>>    - term2 :: this means something else
>>    - term3 :: and something different still
>> ...
>>
>> fully expecting the term and the description rendered in HTML to be on
>> the same line as is shown in the Latex published Org Mode manual.  But
>> the items were rendered as:
>>
>> ...
>>    term1
>>        this means something
>>    term2
>>        this means something else
>>    term3
>>        and something different still
>> ...
>>
>> I suspect this might be an HTML artifact, nevertheless, how would I
>> convince org-mode to arrange for the HTML rendering to attempt to keep
>> the terms and descriptions on the same line?  An example or reference
>> would be much appreciated.
>>
>> Thanks,
>>      
>
> Adding this seems to work:
>
> #+STYLE:<style type="text/css">dt {clear: left; float: left; width: 4em; }</style>
>
> -Bernt
>    
Well it's a start but does have some side effects.  For example with 
each new entry it becomes more and more apparent that the term and the 
description are off center, i.e. the skew becomes more pronounced.  But 
your solution is much better than mine :-) and gives me a place to 
explore and become smarter, always a good thing!

Thanks again,

-pmr


[-- Attachment #1.2: Type: text/html, Size: 1842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Preventing line breaks in (HTML) published description lists
  2009-07-05  9:43 Preventing line breaks in (HTML) published description lists Paul Michael Reilly
  2009-07-05 13:33 ` Bernt Hansen
@ 2009-07-06 10:46 ` Sebastian Rose
  2009-07-06 12:38   ` Paul Michael Reilly
  1 sibling, 1 reply; 5+ messages in thread
From: Sebastian Rose @ 2009-07-06 10:46 UTC (permalink / raw)
  To: Paul Michael Reilly; +Cc: emacs-orgmode

Paul Michael Reilly <pajatopmr@gmail.com> writes:
> I added a plain list to my file:
>
> ...
>   - term1 :: this means something
>   - term2 :: this means something else
>   - term3 :: and something different still
> ...
>
> fully expecting the term and the description rendered in HTML to be on the same
> line as is shown in the Latex published Org Mode manual.  But the items were
> rendered as:
>
> ...
>   term1
>       this means something
>   term2
>       this means something else
>   term3
>       and something different still
> ...
>
> I suspect this might be an HTML artifact, nevertheless, how would I convince
> org-mode to arrange for the HTML rendering to attempt to keep the terms and
> descriptions on the same line?  An example or reference would be much
> appreciated.


Don't use a definition list at all:

   - *term1* this means something
   - *term2* this means something else
   - *term3* and something different still



   Sebastian

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

* Re: Preventing line breaks in (HTML) published description lists
  2009-07-06 10:46 ` Sebastian Rose
@ 2009-07-06 12:38   ` Paul Michael Reilly
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Michael Reilly @ 2009-07-06 12:38 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1475 bytes --]

On 07/06/2009 06:46 AM, Sebastian Rose wrote:
> Paul Michael Reilly<pajatopmr@gmail.com>  writes:
>    
>> I added a plain list to my file:
>>
>> ...
>>    - term1 :: this means something
>>    - term2 :: this means something else
>>    - term3 :: and something different still
>> ...
>>
>> fully expecting the term and the description rendered in HTML to be on the same
>> line as is shown in the Latex published Org Mode manual.  But the items were
>> rendered as:
>>
>> ...
>>    term1
>>        this means something
>>    term2
>>        this means something else
>>    term3
>>        and something different still
>> ...
>>
>> I suspect this might be an HTML artifact, nevertheless, how would I convince
>> org-mode to arrange for the HTML rendering to attempt to keep the terms and
>> descriptions on the same line?  An example or reference would be much
>> appreciated.
>>      
>
>
> Don't use a definition list at all:
>
>     - *term1* this means something
>     - *term2* this means something else
>     - *term3* and something different still
>
>
>
>     Sebastian
>    
FWIW, this solution is better than using a CSS style based solution but 
it had the nit that the bullet (o) is present in the output (of course) 
where the description list had no bullet.

After playing around with this a bit I decided that your point, don't 
use a description list, is well taken.   I wound up using a simple table 
instead and got very satisfying results.

Thanks,

-pmr


[-- Attachment #1.2: Type: text/html, Size: 1898 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-07-06 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-05  9:43 Preventing line breaks in (HTML) published description lists Paul Michael Reilly
2009-07-05 13:33 ` Bernt Hansen
2009-07-05 18:18   ` Paul Michael Reilly
2009-07-06 10:46 ` Sebastian Rose
2009-07-06 12:38   ` Paul Michael Reilly

Code repositories for project(s) associated with this inbox:

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).