Re: [Groff] Using variables from register within fractions or equations

2013-04-17 Thread Tadziu Hoffmann
> Depending on whether there are questions in a line of output > and whether there are questions in adjacent lines, the line > spacing keeps changing. It's because of the "extra line space" function \x.

Re: [Groff] Using variables from register within fractions or equations

2013-04-16 Thread maouinin
I see now that the \o is not responsible for the line spacing problems. The differences in spacing between modes 1 and 2/3 are however rather frustrating. maouinin wrote: > > Could this be because of the use of \o to center the first letter in > question above the blank? > .if \\nm=1 \Z'\o'_\s'

Re: [Groff] Using variables from register within fractions or equations

2013-04-16 Thread maouinin
OK. All the blanks of all types are working for me now -- that is when I enter the punctuation marks after a question as the second parameter passed to the macro. I am having one issue with the spacing in the "easy" mode (mode 1) questions. Depending on whether there are questions in a line of out

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread Ralph Corderoy
Hi maouinin, Tadziu wrote: > With groff, instead of "--", you have to use "\[en]" to get an > en-dash. For left and right quotes use "\[lq]" and "\[rq]". Or the older style of \(en for the two-letter ones. There's also preconv(1), normally invoked with groff's -k option. That way you can feed

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread Tadziu Hoffmann
> When I give these tests, which often run into a number of > pages I like to put the "page_number of total_pages". > Something like "page 3 of 8". This at times helps me avoid > some classroom/testing confusion. In TeX there is a package > for this, "lastpage" if I remember correctly. How would I

Re: [Groff] Using variables from register within fractions or equations

2013-04-14 Thread maouinin
Thank you. He probably did. It works. So now everything works, including the user. When I give these tests, which often run into a number of pages I like to put the "page_number of total_pages". Something like "page 3 of 8". This at times helps me avoid some classroom/testing confusion. In TeX t

Re: [Groff] Using variables from register within fractions or equations

2013-04-13 Thread Ralph Corderoy
Hi maouinin, > Here is the entirety of the macro supplied by Tadziu Hoffmann in the > original thread. Did Tadziu intend you to write .Q movies . with any needed punctuation supplied as a second parameter, as is common in some macro sets? I see .Y refers to $2. Cheers, Ralph.

Re: [Groff] Using variables from register within fractions or equations

2013-04-13 Thread maouinin
Ralph Corderoy wrote: > > > I didn't notice anything from a quick look. I think I'd need a small, > self-contained, complete, example of the fault that I could runoff. > >> \h'\\n[w]u'\v'1m'\\*[n]\v'-1m'\h'\\n[w]u'\\$2\x'1m'\x'-1m' > > > Sorry. The thread is over a year old. Here is the

Re: [Groff] Using variables from register within fractions or equations

2013-04-13 Thread Ralph Corderoy
Hi maouinin, > In mode 1, the blanks, etc. are printed and followed by whatever > punctuation is present. However in modes 2 and 3, I am unable to get > the punctuation to print. Any suggestions would be greatly > appreciated. I didn't notice anything from a quick look. I think I'd need a small

Re: [Groff] Using variables from register within fractions or equations

2013-04-12 Thread maouinin
After an extended hiatus, during which time I have been using the kludge of fractions within TeX , I am back to trying to get what I want with groff. The last adjustments took care of most of my problems. In mode 1, the blanks, etc. are printed and followed by whatever punctuation is present. Howe

Re: [Groff] Using variables from register within fractions or equations

2012-02-19 Thread Tadziu Hoffmann
Sorry that this was a bit confusing... I have a habit of using the old-style roff syntax with one- or two-character names. Here's a slightly revised version using groff's extended syntax (which is probably a bit easier to understand for novices) including a short description of how it's supposed

Re: [Groff] Using variables from register within fractions or equations

2012-02-17 Thread Holger Herrlich
On 02/17/2012 02:45 PM, maouinin wrote: >> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2 father on: \*n \" recalls string of name n \v'-1m' \" vertical move up one (1) line (m), this is a value. Note that \v for instance will interpret values by a default unit, used in absence of one given. There

Re: [Groff] Using variables from register within fractions or equations

2012-02-17 Thread Ralph Corderoy
Hi maouinin, I'll have a stab... > > if \\nm=1 .X \\$@ > > I follow the front, but what is \\$@? From .de Q .if \\nm=1 .X \\$@ .if \\nm=2 .Y \\$@ .if \\nm=3 .Y \\$@ .. $@ refers to all the arguments passed to the macro, similar to $@ and $* in sh. IOW, macro Q is calling

Re: [Groff] Using variables from register within fractions or equations

2012-02-17 Thread maouinin
Tadziu Hoffmann wrote: > > > How about this, just to throw some ideas into the pool: > (Of course there's lots of stuff that can be tweaked. > For example, I left out the extra line in the "easy" case > because I personally didn't like it.) > > > > .\" > .\" > --

Re: [Groff] Using variables from register within fractions or equations

2012-02-11 Thread Ted Harding
On 11-Feb-2012 Tadziu Hoffmann wrote: > How about this, just to throw some ideas into the pool: > (Of course there's lots of stuff that can be tweaked. > For example, I left out the extra line in the "easy" case > because I personally didn't like it.) > > .\" > .\"

Re: [Groff] Using variables from register within fractions or equations

2012-02-11 Thread Tadziu Hoffmann
How about this, just to throw some ideas into the pool: (Of course there's lots of stuff that can be tweaked. For example, I left out the extra line in the "easy" case because I personally didn't like it.) .\" .\" .de Z .s

Re: [Groff] Using variables from register within fractions or equations

2012-02-11 Thread maouinin
Ralph Corderoy wrote: > > Hi maouinin, > > Just to make we're aiming at the right target, can you confirm/correct > these... > >> 1) for strong students: a blank line with the question number below -- >> no first letter given > > The blank line is contiguous and of fixed length, giving no clu

Re: [Groff] Using variables from register within fractions or equations

2012-02-11 Thread Ralph Corderoy
Hi maouinin, Just to make we're aiming at the right target, can you confirm/correct these... > 1) for strong students: a blank line with the question number below -- > no first letter given The blank line is contiguous and of fixed length, giving no clue as to the word length. The question numb

Re: [Groff] Using variables from register within fractions or equations

2012-02-10 Thread maouinin
ted.harding-3 wrote: > > On 10-Feb-2012 maouinin wrote: >> What would be the best way to use a regularly incremented >> variable within fractions? >> >> I teach ESL and I hope to typeset cloze tests where selected >> individual words are replaced by a blank space (a short line >> or underscore

Re: [Groff] Using variables from register within fractions or equations

2012-02-10 Thread Ted Harding
On 10-Feb-2012 maouinin wrote: > What would be the best way to use a regularly incremented > variable within fractions? > > I teach ESL and I hope to typeset cloze tests where selected > individual words are replaced by a blank space (a short line > or underscore) which has the question number pr

[Groff] Using variables from register within fractions or equations

2012-02-10 Thread maouinin
What would be the best way to use a regularly incremented variable within fractions? I teach ESL and I hope to typeset cloze tests where selected individual words are replaced by a blank space (a short line or underscore) which has the question number printed below it. I have done this in LaTeX