* interstrutline spacing [with tex file!]
@ 2009-10-14 14:07 Idris Samawi Hamid ادريس سماوي حامد
2009-10-23 17:46 ` interstrutline spacing redux Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-10-14 14:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1766 bytes --]
[oops, tex file attached this time]
Dear gang,
I am trying to create a grid background based on strut depth, so each line
of text lies right in between the top and bottom of the respective strut.
I borrowed some code from the wiki, and need help to solve the following
[and I'm no metapost guru...]:
1. Line 31, 2nd line of pdf: How can I keep \framed[align={r2l,middle}]
and get the interstrutline to still span the textwidth. In other words,
every strutline should be of textwidth, regardless of alignment
2. Compare pages 2 and 3: page 2 has extra space at the top, perhaps a
skipped line. How can I suppress that so that the first line always starts
at the top of the textblock?
3. On page 3: How can I control the continuation of the strutlines past
the final textline? What if, eg, I wanted to fill the rest of the page
with strutlines?
4. How can I change the width and color of the strutline itself?
5. I use \setuplayout[grid=on], but I'm not sure that guarantees a grid
... \start-\stoplinecorrection seems to give a different result.
[\showgrid seems broken so I can't directly compare]. Any tips to
guarantee a grid?
6. Is there a way to pass the interstrutline background to \framed [so I
don't have to type \start-\stopinterstrutline etc]?
This kind of gridded background is very common in eg, the Arabic-script
tradition, although it has many pedagogical and other uses as well. A
general strutline mechanism might make a good addition to the
distribution, or at least a nice module...
Any help or tips to improve this background will be greatly appreciated!
Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
[-- Attachment #2: interstrutlines.pdf --]
[-- Type: application/pdf, Size: 7482 bytes --]
[-- Attachment #3: interstrutlines.tex --]
[-- Type: application/x-tex, Size: 1883 bytes --]
[-- Attachment #4: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* interstrutline spacing redux
2009-10-14 14:07 interstrutline spacing [with tex file!] Idris Samawi Hamid ادريس سماوي حامد
@ 2009-10-23 17:46 ` Idris Samawi Hamid ادريس سماوي حامد
2009-10-25 9:09 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2009-10-23 17:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2266 bytes --]
Dear gang,
Got no response the last time, trying again. Problem 2 is the most
important at the moment, and any help is appreciated!
Best wishes
Idris
------- Forwarded message -------
From: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc:
Subject: [NTG-context] interstrutline spacing [with tex file!]
Date: Wed, 14 Oct 2009 08:07:01 -0600
[oops, tex file attached this time]
Dear gang,
I am trying to create a grid background based on strut depth, so each line
of text lies right in between the top and bottom of the respective strut.
I borrowed some code from the wiki, and need help to solve the following
[and I'm no metapost guru...]:
1. Line 31, 2nd line of pdf: How can I keep \framed[align={r2l,middle}]
and get the interstrutline to still span the textwidth. In other words,
every strutline should be of textwidth, regardless of alignment
2. Compare pages 2 and 3: page 2 has extra space at the top, perhaps a
skipped line. How can I suppress that so that the first line always starts
at the top of the textblock?
3. On page 3: How can I control the continuation of the strutlines past
the final textline? What if, eg, I wanted to fill the rest of the page
with strutlines?
4. How can I change the width and color of the strutline itself?
5. I use \setuplayout[grid=on], but I'm not sure that guarantees a grid
... \start-\stoplinecorrection seems to give a different result.
[\showgrid seems broken so I can't directly compare]. Any tips to
guarantee a grid?
6. Is there a way to pass the interstrutline background to \framed [so I
don't have to type \start-\stopinterstrutline etc]?
This kind of gridded background is very common in eg, the Arabic-script
tradition, although it has many pedagogical and other uses as well. A
general strutline mechanism might make a good addition to the
distribution, or at least a nice module...
Any help or tips to improve this background will be greatly appreciated!
Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
[-- Attachment #2: interstrutlines.tex --]
[-- Type: application/x-tex, Size: 1883 bytes --]
[-- Attachment #3: interstrutlines.pdf --]
[-- Type: application/pdf, Size: 7482 bytes --]
[-- Attachment #4: attachment531.txt --]
[-- Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
[-- Attachment #5: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: interstrutline spacing redux
2009-10-23 17:46 ` interstrutline spacing redux Idris Samawi Hamid ادريس سماوي حامد
@ 2009-10-25 9:09 ` Taco Hoekwater
2009-10-25 9:11 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2009-10-25 9:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>
> Got no response the last time, trying again. Problem 2 is the most
> important at the moment, and any help is appreciated!
I have almost no answers, but perhaps my reply will trigger someone
else to respond.
>
> 1. Line 31, 2nd line of pdf: How can I keep \framed[align={r2l,middle}]
> and get the interstrutline to still span the textwidth. In other words,
> every strutline should be of textwidth, regardless of alignment
A nested \framed + \strut will do the trick:
\framed{\startinterstrutline
\framed[align={r2l,middle}]
{\strut This is some interstrutline text}\stopinterstrutline}
> 2. Compare pages 2 and 3: page 2 has extra space at the top, perhaps a
> skipped line. How can I suppress that so that the first line always starts
> at the top of the textblock?
no idea
> 3. On page 3: How can I control the continuation of the strutlines past
> the final textline? What if, eg, I wanted to fill the rest of the page
> with strutlines?
Add a \vfill before hte \stopinterstrutline
> 4. How can I change the width and color of the strutline itself?
again, no idea.
> 5. I use \setuplayout[grid=on], but I'm not sure that guarantees a grid
> ... \start-\stoplinecorrection seems to give a different result.
> [\showgrid seems broken so I can't directly compare]. Any tips to
> guarantee a grid?
\showgrid works for me (ver: 2009.09.28 09:02 MKIV)
And you may want \setuplayout[grid=tolerant], dunno.
> 6. Is there a way to pass the interstrutline background to \framed [so I
> don't have to type \start-\stopinterstrutline etc]?
I don't know, but you could wrap the \framed in a shorthand definition
macro:
\definecomplexorsimpleempty\Myframed
\def\Myframed[#1]#2{\framed[#1]{\startinterstrutline
#2\stopinterstrutline}}
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: interstrutline spacing redux
2009-10-25 9:09 ` Taco Hoekwater
@ 2009-10-25 9:11 ` Taco Hoekwater
2009-10-25 9:21 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2009-10-25 9:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Taco Hoekwater wrote:
> I don't know, but you could wrap the \framed in a shorthand definition
> macro:
>
> \definecomplexorsimpleempty\Myframed
> \def\Myframed[#1]#2{\framed[#1]{\startinterstrutline
> #2\stopinterstrutline}}
>
Sorry, typo. The last lines should be:
\def\complexMyframed[#1]#2{\framed[#1]{\startinterstrutline
#2\stopinterstrutline}}
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: interstrutline spacing redux
2009-10-25 9:11 ` Taco Hoekwater
@ 2009-10-25 9:21 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2009-10-25 9:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 25.10.2009 um 10:11 schrieb Taco Hoekwater:
> Taco Hoekwater wrote:
>> I don't know, but you could wrap the \framed in a shorthand
>> definition
>> macro:
>> \definecomplexorsimpleempty\Myframed
>> \def\Myframed[#1]#2{\framed[#1]{\startinterstrutline
>> #2\stopinterstrutline}}
>
> Sorry, typo. The last lines should be:
>
> \def\complexMyframed[#1]#2{\framed[#1]{\startinterstrutline
> #2\stopinterstrutline}}
you can try to use the top/bottom keys
\defineframed[Myframed][top=\startinterstrutline,bottom=
\stopinterstrutline]
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-25 9:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-14 14:07 interstrutline spacing [with tex file!] Idris Samawi Hamid ادريس سماوي حامد
2009-10-23 17:46 ` interstrutline spacing redux Idris Samawi Hamid ادريس سماوي حامد
2009-10-25 9:09 ` Taco Hoekwater
2009-10-25 9:11 ` Taco Hoekwater
2009-10-25 9:21 ` Wolfgang Schuster
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 NNTP newsgroup(s).