[duxhelp] Re: handing of numbered lists in TeX/LaTeX documents

  • From: "Joanmarie Diggs" <joanmarie.diggs@xxxxxxxxxxx>
  • To: <duxhelp@xxxxxxxxxxxxx>
  • Date: Mon, 1 May 2006 17:39:27 -0400

Hi Peter.  That's awesome!!  Thanks.  From now on, no snippets, just
attachments. :)  Speaking of which:

> In particular, I haven't explored whether Scientific 
> Notebook allows for variant forms of numbered list (e.g. 
> Roman numerals)

See attached.  I changed the first two numbers manually through their
"properties".  I believe that one could change the default numbering type
automatically through styles.  (It *seems* that SN employs some use of style
sheets.)  And styles in SN is on my list of things to figure out. So as soon
as I figure them out and can use them to change numbers, I'll send you
another snippet, err I mean attachment. :)

Thanks again.
--Joanie

> -----Original Message-----
> From: duxhelp-bounce@xxxxxxxxxxxxx 
> [mailto:duxhelp-bounce@xxxxxxxxxxxxx] On Behalf Of Peter Sullivan
> Sent: Monday, May 01, 2006 4:00 PM
> To: duxhelp@xxxxxxxxxxxxx
> Subject: [duxhelp] Re: handing of numbered lists in TeX/LaTeX 
> documents
> 
> Joanie,
> 
> Your sample file confirms the problem you reported earlier.  
> I'm glad to have had the sample file, because the problem 
> (for DBT) is more complex when there are skipped lines 
> between various lines that start with \item.
> Scientific Notebook typically produces such files, but your 
> code snippets didn't show things this way.
> 
> In any case, I do believe that we'll be able to improve DBT's 
> handling of enumerated lists for DBT 10.6.  I've just 
> completed a code change proposal, which Mike is now 
> reviewing, to do just that.  With the code change applied, I 
> don't believe that we'll be getting the whole story just 
> right.  In particular, I haven't explored whether Scientific 
> Notebook allows for variant forms of numbered list (e.g. 
> Roman numerals), nor have I adapted the code to properly 
> handle numbering of a third nested level.  But, if these 
> changes are important, they should be relatively simple to 
> make.  The hard part, I believe, is done.  And I believe 
> you'll be pleased with the result.
> 
> - Peter 
> 
> -----Original Message-----
> From: duxhelp-bounce@xxxxxxxxxxxxx 
> [mailto:duxhelp-bounce@xxxxxxxxxxxxx] On Behalf Of Joanmarie Diggs
> Sent: Saturday, April 29, 2006 12:36 PM
> To: duxhelp@xxxxxxxxxxxxx
> Subject: [duxhelp] Re: handing of numbered lists in TeX/LaTeX 
> documents
> 
> Understood.  And thanks for considering it for this release.  
> 
> I have attached the sort of document I use when trying to 
> figure out how things work rather than the sort of document I 
> would actually create.  I hope it helps!  If you want 
> something, uh, more traditional let me know. :)
> 
> Just out of curiosity (and for the tentative planning of 
> workshops, etc.), I remember a target release date of 
> sometime in May.  Is that still the plan?
> 
> Thanks much for everything!
> Joanie
> 
> > -----Original Message-----
> > From: duxhelp-bounce@xxxxxxxxxxxxx
> > [mailto:duxhelp-bounce@xxxxxxxxxxxxx] On Behalf Of Peter Sullivan
> > Sent: Saturday, April 29, 2006 11:29 AM
> > To: duxhelp@xxxxxxxxxxxxx
> > Subject: [duxhelp] Re: handing of numbered lists in TeX/LaTeX 
> > documents
> > 
> > Joanie,
> > 
> > Feature requests are fine, but less and less likely to be 
> taken into 
> > account for this release.
> > 
> > In this case, what you suggest is feasible.  But if you 
> have any full 
> > SN sample files, even (or perhaps especially) simple ones, 
> these would 
> > be helpful.  I find that code snippets of Latex are good for 
> > describing things, but the full file can influence how we 
> handle the 
> > snippets.  So I don't like to get too deeply into problems 
> like this 
> > without sample files.
> > 
> > - Peter
> > 
> > -----Original Message-----
> > From: duxhelp-bounce@xxxxxxxxxxxxx
> > [mailto:duxhelp-bounce@xxxxxxxxxxxxx] On Behalf Of Joanmarie Diggs
> > Sent: Friday, April 28, 2006 10:58 PM
> > To: duxhelp@xxxxxxxxxxxxx
> > Subject: [duxhelp] handing of numbered lists in TeX/LaTeX documents
> > 
> > Hi all.  This is not new to 10.6 so it's more of a feature 
> request and 
> > question.  Hope no one minds.
> >  
> > When I create a document in Scientific Notebook and format 
> text to be 
> > a
> > Heading1 or Heading2, Duxbury maps my text upon import to 
> be an H1. or 
> > H2.
> > However, when I format text in Scientific Notebook as a 
> numbered list, 
> > Duxbury applies the para. style.  The same behavior, of 
> course, occurs 
> > in Word when you use automatic numbering instead of the List Number 
> > style.  I'd happily use the appropriate style in Scientific 
> Notebook, 
> > but I'm not convinced there is one.  Is there? (that's the question 
> > part of this message
> > <smile>)
> >  
> > Assuming there's not a style I can choose which will map to 
> Duxbury's 
> > List.
> > style.... I took a gander at a Scientific Notebook document in Word 
> > Pad.  As best as I can tell, the conversion seems to be pretty 
> > straightforward.  For
> > instance:
> >  
> > \section{My Heading} in SN becomes <h1.>My Heading</h1.> in DBT. 
> > \subsection{Something Else} in SN becomes <h2.>Something 
> Else</h2.> in 
> > DBT
> >  
> > Any place there's a $ in SN, in DBT you get either [ts] or [te].  I 
> > assume the first $ on a line is [ts] and the second [te].  When DBT 
> > sees \item, it replaces it with a number according to this 
> rule:  The 
> > Nth \item in the document gets an N in front of it.  Thus:
> >  
> > \item $10+5=$
> > \item $10-5=$
> >  
> > results in:
> >  
> > <para.>1. [ts]10+5[te]</para.>
> > <para.>2. [ts]10-5[te]</para.>
> >  
> > However, it seems that numbered lists begin with 
> \begin{enumerate} and 
> > end with \end{enumerate}.  Is DBT using them or ignoring 
> them?  Based 
> > on the handling of nested lists I'm guessing the latter.  But more 
> > about that in a moment.  A numbered list of two items looks like:
> >  
> > \begin{enumerate}
> > \item $10+5=$
> > \item $10-5=$
> > \end{enumerate}
> >  
> > So, why not map \begin{enumerate} to <list.>, \end{enumerate} to 
> > </list.> and terminate each \item line with [<]?  That would make 
> > importing and editing numbered SN documents a bit faster.  
> Plus, if my 
> > guess is correct, this might cause nested lists to be 
> handled better.
> > Currently, DBT seems to count each \item without attention to the 
> > presence of nested lists.  Thus
> >  
> > \begin{enumerate}
> > \item $10+5=$
> > \item $10-5=$
> > \begin{enumerate}
> > \item $10\div 5=$
> > \end{enumerate}
> > \end{enumerate}
> >  
> > results in
> >  
> > <para.>1. [ts]10+5=[te]</para.>
> > <para.>2. [ts]10-5=[te]</para.>
> > <para.>3. [ts]10÷5=[te]</para>
> >  
> > But in SN it is:
> >  
> > 1. 10+5=
> > 2. 10-5=
> >     a. 10÷5=</para>
> >  
> > So.... Am I making sense? <smile>  And is there any chance of such 
> > list handling being added prior to the release of 10.6 or 
> is it a more 
> > complex problem than I realize?
> >  
> > Thanks for your time!
> > Joanie
> >  
> >  
> > 
> > 
> > * * *
> > * This message is via list duxhelp at freelists.org.
> > * To unsubscribe, send a blank message with
> > *   unsubscribe
> > * as the subject to <duxhelp-request@xxxxxxxxxxxxx>. You may also
> > * subscribe, unsubscribe, and set vacation mode and other 
> subscription
> > * options by visiting //www.freelists.org.  The list archive
> > * is also located there.
> > * Duxbury Systems' web site is http://www.duxburysystems.com
> > * * *
> 
> 
> * * *
> * This message is via list duxhelp at freelists.org.
> * To unsubscribe, send a blank message with
> *   unsubscribe
> * as the subject to <duxhelp-request@xxxxxxxxxxxxx>. You may also
> * subscribe, unsubscribe, and set vacation mode and other subscription
> * options by visiting //www.freelists.org.  The list archive
> * is also located there.
> * Duxbury Systems' web site is http://www.duxburysystems.com
> * * *

Other related posts: