* Lacking some features @ 2009-05-19 9:53 anhnmncb 2009-05-20 0:44 ` Lennart Borgman 0 siblings, 1 reply; 8+ messages in thread From: anhnmncb @ 2009-05-19 9:53 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 613 bytes --] I'm a vim user, but I'm also an emacser too :) I will try to express myself as clearly as I can. vim has a feature for creating folding and use some other text instead of header's for displaying, I attach a html to show it, from attachment, you can see that vim can create a folding and use the infos extracted from the folding body for displaying, I don't know how to do it in emacs? Another feature I miss is to generate html version of the plain text, htmlize.el can do it, but see my attachment again, vim's 2htmlize even can reserve the folding feature of the text, I don't know how to do it in emacs too. [-- Attachment #2: vim folding example --] [-- Type: text/html, Size: 3594 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-19 9:53 Lacking some features anhnmncb @ 2009-05-20 0:44 ` Lennart Borgman 2009-05-20 5:46 ` Andreas Röhler 2009-05-20 10:23 ` anhnmncb 0 siblings, 2 replies; 8+ messages in thread From: Lennart Borgman @ 2009-05-20 0:44 UTC (permalink / raw) To: anhnmncb; +Cc: help-gnu-emacs I think we are missing your attachment. On Tue, May 19, 2009 at 11:53 AM, anhnmncb <anhnmncb@sina.com> wrote: > I'm a vim user, but I'm also an emacser too :) I will try to express > myself as clearly as I can. > > vim has a feature for creating folding and use some other text instead > of header's for displaying, I attach a html to show it, from attachment, > you can see that vim can create a folding and use the infos extracted > from the folding body for displaying, I don't know how to do it in > emacs? > > Another feature I miss is to generate html version of the plain text, > htmlize.el can do it, but see my attachment again, vim's 2htmlize even > can reserve the folding feature of the text, I don't know how to do it > in emacs too. > > + - title. author. journal, 2009,10(1) :22-23. > @ARTICLE{hah, > | author = {author}, > | title = {title}, > | journal = {journal}, > | year = {2009}, > | volume = {10}, > | number = {1}, > | pages = {22-23}, > | month = {}, > | note = {}, > | type = "J", > |+ |- doi = {}, > doi = {}, > || } > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-20 0:44 ` Lennart Borgman @ 2009-05-20 5:46 ` Andreas Röhler 2009-05-20 10:24 ` anhnmncb 2009-05-20 10:23 ` anhnmncb 1 sibling, 1 reply; 8+ messages in thread From: Andreas Röhler @ 2009-05-20 5:46 UTC (permalink / raw) To: Lennart Borgman; +Cc: help-gnu-emacs, anhnmncb No, I got it. Looks nice. Maybe it exists already in reftex, bibtex mode? auctex@gnu.org might be the right place to ask Andreas Lennart Borgman wrote: > I think we are missing your attachment. > > > On Tue, May 19, 2009 at 11:53 AM, anhnmncb <anhnmncb@sina.com> wrote: > >> I'm a vim user, but I'm also an emacser too :) I will try to express >> myself as clearly as I can. >> >> vim has a feature for creating folding and use some other text instead >> of header's for displaying, I attach a html to show it, from attachment, >> you can see that vim can create a folding and use the infos extracted >> from the folding body for displaying, I don't know how to do it in >> emacs? >> >> Another feature I miss is to generate html version of the plain text, >> htmlize.el can do it, but see my attachment again, vim's 2htmlize even >> can reserve the folding feature of the text, I don't know how to do it >> in emacs too. >> >> + - title. author. journal, 2009,10(1) :22-23. >> @ARTICLE{hah, >> | author = {author}, >> | title = {title}, >> | journal = {journal}, >> | year = {2009}, >> | volume = {10}, >> | number = {1}, >> | pages = {22-23}, >> | month = {}, >> | note = {}, >> | type = "J", >> |+ |- doi = {}, >> doi = {}, >> || } >> >> >> > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-20 5:46 ` Andreas Röhler @ 2009-05-20 10:24 ` anhnmncb 2009-05-20 14:14 ` Andreas Röhler 0 siblings, 1 reply; 8+ messages in thread From: anhnmncb @ 2009-05-20 10:24 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 309 bytes --] Andreas Röhler (2009-05-20 07:46 +0200) wrote: > No, I got it. Looks nice. > > Maybe it exists already in reftex, bibtex mode? > > auctex@gnu.org might be the right place to ask I think I need a general feature, not just for tex or bib mode. I will try to attach it again to see if all of you can get it. [-- Attachment #2: foldexample.htm --] [-- Type: text/html, Size: 3594 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-20 10:24 ` anhnmncb @ 2009-05-20 14:14 ` Andreas Röhler 2009-05-24 22:48 ` anhnmncb 0 siblings, 1 reply; 8+ messages in thread From: Andreas Röhler @ 2009-05-20 14:14 UTC (permalink / raw) To: anhnmncb; +Cc: help-gnu-emacs anhnmncb wrote: > Andreas Röhler (2009-05-20 07:46 +0200) wrote: > > >> No, I got it. Looks nice. >> >> Maybe it exists already in reftex, bibtex mode? >> >> auctex@gnu.org might be the right place to ask >> > > I think I need a general feature, not just for tex or bib mode. I will > try to attach it again to see if all of you can get it. > > If the algorythm exists there, just take it and use it. Please ask at auctex@gnu.org It seems not that difficult to write anyway, but I'm pretty confident, it exists. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-20 14:14 ` Andreas Röhler @ 2009-05-24 22:48 ` anhnmncb 2009-05-25 11:22 ` Andreas Röhler 0 siblings, 1 reply; 8+ messages in thread From: anhnmncb @ 2009-05-24 22:48 UTC (permalink / raw) To: help-gnu-emacs Andreas Röhler (2009-05-20 16:14 +0200) wrote: > anhnmncb wrote: >> Andreas Röhler (2009-05-20 07:46 +0200) wrote: >> > If the algorythm exists there, just take it and use it. > Please ask at > > auctex@gnu.org > > It seems not that difficult to write anyway, but I'm pretty confident, > it exists. Following is the response: Ralf Angeli (2009-05-24 14:05 +0200) wrote: > * anhnmncb@sina.com (2009-05-24) writes: > >> vim has a feature for creating folding and use some other text instead >> of header's for displaying, I attach a html to show it, from attachment, >> you can see that vim can create a folding and use the infos extracted >> from the folding body for displaying, I don't know how to do it in >> emacs? > > This looks a bit like TeX Fold mode. You may want to take a look at the > documentation of text properties and overlays as well as Outline and > Reveal mode. Could you give me some hints please? I asked, but I don't know elisp and the stuff is too complicated for me :( The features I miss is: 1. Changetable outline header text for displaying. 2. hmlized text file with outline feature.(org mode has this feature, but I want a gerneral way for all outline mode.) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-24 22:48 ` anhnmncb @ 2009-05-25 11:22 ` Andreas Röhler 0 siblings, 0 replies; 8+ messages in thread From: Andreas Röhler @ 2009-05-25 11:22 UTC (permalink / raw) To: anhnmncb; +Cc: help-gnu-emacs anhnmncb wrote: > Andreas Röhler (2009-05-20 16:14 +0200) wrote: > > >> anhnmncb wrote: >> >>> Andreas Röhler (2009-05-20 07:46 +0200) wrote: >>> >>> >> If the algorythm exists there, just take it and use it. >> Please ask at >> >> auctex@gnu.org >> >> It seems not that difficult to write anyway, but I'm pretty confident, >> it exists. >> > > Following is the response: > > Ralf Angeli (2009-05-24 14:05 +0200) wrote: > > >> * anhnmncb@sina.com (2009-05-24) writes: >> >> >>> vim has a feature for creating folding and use some other text instead >>> of header's for displaying, I attach a html to show it, from attachment, >>> you can see that vim can create a folding and use the infos extracted >>> from the folding body for displaying, I don't know how to do it in >>> emacs? >>> >> This looks a bit like TeX Fold mode. OK. Precisely its a matter of bibtex.el IMO. With bibtex-mode and hs-minor-mode you'll get the folding. Still not the additional info displayed. Please write to the bibtex maintainer, as s/he might be interested in that matter. >> You may want to take a look at the >> documentation of text properties and overlays as well as Outline and >> Reveal mode. >> > > Could you give me some hints please? I asked, but I don't know elisp and > the stuff is too complicated for me :( > > The features I miss is: > 1. Changetable outline header text for displaying. > 2. hmlized text file with outline feature.(org mode has this feature, > but I want a gerneral way for all outline mode.) > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Lacking some features 2009-05-20 0:44 ` Lennart Borgman 2009-05-20 5:46 ` Andreas Röhler @ 2009-05-20 10:23 ` anhnmncb 1 sibling, 0 replies; 8+ messages in thread From: anhnmncb @ 2009-05-20 10:23 UTC (permalink / raw) To: help-gnu-emacs I don't know how to attach a html in usernet, so I will paste the file src following, please save it in a html file and open it in your browser. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>~/test.bib.html</title> <meta name="Generator" content="Vim/7.2"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <style type="text/css"> <!-- .Constant { color: #ff40ff; font-weight: bold; } .FoldColumn { color: #00ffff; background-color: #808080; font-weight: bold; } .Statement { color: #ffff00; font-weight: bold; } .Identifier { color: #00ffff; font-weight: bold; } .Special { color: #ff6060; font-weight: bold; } pre { font-family: monospace; color: #ffffff; background-color: #000000; } body { font-family: monospace; color: #ffffff; background-color: #000000; } .Folded { color: #00ffff; background-color: #808080; font-weight: bold; } .FoldColumn { text-decoration: none; } .open-fold .Folded { display: none; } .open-fold .fulltext { display: inline; } .open-fold .toggle-open { display: none; } .closed-fold .toggle-closed { display: inline; } .closed-fold .fulltext { display: none; } .closed-fold .Folded { display: inline; } .closed-fold .toggle-open { display: inline; } .closed-fold .toggle-closed { display: none; } --> </style> <script type='text/javascript'> <!-- function toggleFold(objID) { var fold; fold = document.getElementById(objID); if(fold.className == 'closed-fold') { fold.className = 'open-fold'; } else if (fold.className == 'open-fold') { fold.className = 'closed-fold'; } } --> </script> </head> <body> <pre> <span id='fold1' class='closed-fold'><a class='toggle-open FoldColumn' href='javascript:toggleFold("fold1")'>+ </a><a class='toggle-closed FoldColumn' href='javascript:toggleFold("fold1")'>- </a><span class="Folded">title. author. journal, 2009,10(1) :22-23. </span><span class='fulltext'>@<span class="Identifier">ARTICLE</span>{<span class="Special">hah</span>, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">author</span> = {author}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">title</span> = {title}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">journal</span> = {journal}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">year</span> = {2009}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">volume</span> = {10}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">number</span> = {1}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">pages</span> = {22-23}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">month</span> = {}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">note</span> = {}, <a class='FoldColumn' href='javascript:toggleFold("fold1")'>| </a> <span class="Statement">type</span> = "J", <span id='fold2' class='open-fold'><a class='toggle-open FoldColumn' href='javascript:toggleFold("fold1")'>|</a><a class='toggle-open FoldColumn' href='javascript:toggleFold("fold2")'>+ </a><a class='toggle-closed FoldColumn' href='javascript:toggleFold("fold2")'>|- </a><span class="Folded"> doi = {}, </span><span class='fulltext'> <span class="Constant">doi</span> = {}, <a class='FoldColumn' href='javascript:toggleFold("fold2")'>|| </a>} </span></span></span></span></pre> </body> </html> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-05-25 11:22 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-05-19 9:53 Lacking some features anhnmncb 2009-05-20 0:44 ` Lennart Borgman 2009-05-20 5:46 ` Andreas Röhler 2009-05-20 10:24 ` anhnmncb 2009-05-20 14:14 ` Andreas Röhler 2009-05-24 22:48 ` anhnmncb 2009-05-25 11:22 ` Andreas Röhler 2009-05-20 10:23 ` anhnmncb
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).