* Two minor questions
@ 2022-06-06 5:55 Stefan Nedeljkovic via ntg-context
2022-06-06 15:46 ` Wolfgang Schuster via ntg-context
2022-06-06 15:50 ` Aditya Mahajan via ntg-context
0 siblings, 2 replies; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-06 5:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Stefan Nedeljkovic
[-- Attachment #1.1: Type: text/plain, Size: 328 bytes --]
Dear list,
I have 2 small questions:
1. In \setuplayout if I try to set topspace=5\measured{base} +
\dimexpr2bp I get an error. How should I add these 2bp?
2. I have an mp graphic defined in the file "graphic.mp" which has the
exact same dimensions as my page. I'd like to set that graphic as a
background. How do I do this?
[-- Attachment #1.2: Type: text/html, Size: 470 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-06 5:55 Two minor questions Stefan Nedeljkovic via ntg-context
@ 2022-06-06 15:46 ` Wolfgang Schuster via ntg-context
2022-06-06 15:50 ` Aditya Mahajan via ntg-context
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-06-06 15:46 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
[-- Attachment #1.1: Type: text/plain, Size: 733 bytes --]
Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55:
> Dear list,
>
> I have 2 small questions:
>
> 1. In \setuplayout if I try to set topspace=5\measured{base} +
> \dimexpr2bp I get an error. How should I add these 2bp?
\setuplayout
[topspace=\dimexpr 5\measured{base} + 2bp\relax]
> 2. I have an mp graphic defined in the file "graphic.mp
> <http://graphic.mp>" which has the exact same dimensions as my page.
> I'd like to set that graphic as a background. How do I do this?
\startreusableMPgraphic{backgroundgraphic}
input graphic.mp;
\stopreusableMPgraphic
\defineoverlay [backgroundimage] [\reuseMPgraphic{backgroundgraphic}]
\setupbackgrounds [page] [background=backgroundimage]
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1392 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-06 5:55 Two minor questions Stefan Nedeljkovic via ntg-context
2022-06-06 15:46 ` Wolfgang Schuster via ntg-context
@ 2022-06-06 15:50 ` Aditya Mahajan via ntg-context
2022-06-06 20:07 ` Stefan Nedeljkovic via ntg-context
1 sibling, 1 reply; 10+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-06-06 15:50 UTC (permalink / raw)
To: Stefan Nedeljkovic via ntg-context; +Cc: Aditya Mahajan
On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote:
> Dear list,
>
> I have 2 small questions:
>
> 1. In \setuplayout if I try to set topspace=5\measured{base} +
> \dimexpr2bp I get an error. How should I add these 2bp?
(Untested)
\dimexpr\measure{base}+2bp\relax
or
\dimexpr\measured{base}+2bp\relax
should work.
> 2. I have an mp graphic defined in the file "graphic.mp" which has the
> exact same dimensions as my page. I'd like to set that graphic as a
> background. How do I do this?
(Again, untested)
\startuseMPgraphic{background-image}
input graphic.mp;
\stopuseMPgraphic
\defineoverlay[background-image][\useMPgraphic{background-image}]
\setupbackgrounds[page][background={background-image}]
Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-06 15:50 ` Aditya Mahajan via ntg-context
@ 2022-06-06 20:07 ` Stefan Nedeljkovic via ntg-context
2022-06-06 20:48 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-06 20:07 UTC (permalink / raw)
To: Aditya Mahajan; +Cc: Stefan Nedeljkovic, Stefan Nedeljkovic via ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1469 bytes --]
Wolfgang, Aditya, thank you both very much!
I have 2 more questions:
Observe the files here:
https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
1. I'd like to shift the text area down so that the red lines align with
the blue lines (I think this amount is called depth). How would I do that?
2. The font is such that exactly 2 characters fit into the grid cell, but I
see that towards the end of the line it gets out of sync with the grid. How
would I ensure that all text rendered is strictly monospaced without any
stretching/shrinking trickery?
Sincerely,
Stefan
On Mon, Jun 6, 2022 at 5:50 PM Aditya Mahajan <adityam@umich.edu> wrote:
> On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote:
>
> > Dear list,
> >
> > I have 2 small questions:
> >
> > 1. In \setuplayout if I try to set topspace=5\measured{base} +
> > \dimexpr2bp I get an error. How should I add these 2bp?
>
> (Untested)
>
> \dimexpr\measure{base}+2bp\relax
>
> or
>
> \dimexpr\measured{base}+2bp\relax
>
> should work.
>
> > 2. I have an mp graphic defined in the file "graphic.mp" which has the
> > exact same dimensions as my page. I'd like to set that graphic as a
> > background. How do I do this?
>
> (Again, untested)
>
> \startuseMPgraphic{background-image}
> input graphic.mp;
> \stopuseMPgraphic
>
> \defineoverlay[background-image][\useMPgraphic{background-image}]
>
> \setupbackgrounds[page][background={background-image}]
>
> Aditya
>
[-- Attachment #1.2: Type: text/html, Size: 2255 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-06 20:07 ` Stefan Nedeljkovic via ntg-context
@ 2022-06-06 20:48 ` Wolfgang Schuster via ntg-context
2022-06-07 5:25 ` Stefan Nedeljkovic via ntg-context
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-06-06 20:48 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
> Wolfgang, Aditya, thank you both very much!
>
> I have 2 more questions:
>
> Observe the files here:
> https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
>
> 1. I'd like to shift the text area down so that the red lines
> align with the blue lines (I think this amount is called depth). How
> would I do that?
Quick and dirty:
\setuplayout
[...,
topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
...]
> 2. The font is such that exactly 2 characters fit into the grid cell,
> but I see that towards the end of the line it gets out of sync with
> the grid. How would I ensure that all text rendered is strictly
> monospaced without any stretching/shrinking trickery?
Change the text alignment:
\setupalign[flushleft,broad]
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-06 20:48 ` Wolfgang Schuster via ntg-context
@ 2022-06-07 5:25 ` Stefan Nedeljkovic via ntg-context
2022-06-07 10:34 ` Stefan Nedeljkovic via ntg-context
2022-06-07 15:05 ` Wolfgang Schuster via ntg-context
0 siblings, 2 replies; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-07 5:25 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Stefan Nedeljkovic
[-- Attachment #1.1: Type: text/plain, Size: 1951 bytes --]
Thank you very much Wolfgang! But, there is still something weird going on
with the font. I updated the files on Drive. Please see line 19, the last
word "and". It is clearly out of alignment with the gid. I tested the
alignment in MP and it should work, ie 2 characters are indeed one grid
cell (semms from the fact that IBM Plex Mono was designed from a typewriter
typeface where 12 characters are exactly 1 inch long).
On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl> wrote:
>
>
> Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
> > Wolfgang, Aditya, thank you both very much!
> >
> > I have 2 more questions:
> >
> > Observe the files here:
> >
> https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
> >
> > 1. I'd like to shift the text area down so that the red lines
> > align with the blue lines (I think this amount is called depth). How
> > would I do that?
>
> Quick and dirty:
>
> \setuplayout
> [...,
> topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
> ...]
>
> > 2. The font is such that exactly 2 characters fit into the grid cell,
> > but I see that towards the end of the line it gets out of sync with
> > the grid. How would I ensure that all text rendered is strictly
> > monospaced without any stretching/shrinking trickery?
>
> Change the text alignment:
>
> \setupalign[flushleft,broad]
>
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3019 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-07 5:25 ` Stefan Nedeljkovic via ntg-context
@ 2022-06-07 10:34 ` Stefan Nedeljkovic via ntg-context
2022-06-07 15:05 ` Wolfgang Schuster via ntg-context
1 sibling, 0 replies; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-07 10:34 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Stefan Nedeljkovic
[-- Attachment #1.1: Type: text/plain, Size: 2287 bytes --]
I tried \setupspacing[fixed] but it didn't help. To prove that the font
characters really are half a cell wide I added the line \emdash
\dorecurse{39}{ \emdash}. Files on drive are updated.
On Tue, Jun 7, 2022 at 7:25 AM Stefan Nedeljkovic <tsar.srb@gmail.com>
wrote:
> Thank you very much Wolfgang! But, there is still something weird going on
> with the font. I updated the files on Drive. Please see line 19, the last
> word "and". It is clearly out of alignment with the gid. I tested the
> alignment in MP and it should work, ie 2 characters are indeed one grid
> cell (semms from the fact that IBM Plex Mono was designed from a typewriter
> typeface where 12 characters are exactly 1 inch long).
>
> On Mon, Jun 6, 2022 at 10:52 PM Wolfgang Schuster via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>>
>>
>> Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07:
>> > Wolfgang, Aditya, thank you both very much!
>> >
>> > I have 2 more questions:
>> >
>> > Observe the files here:
>> >
>> https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing
>> >
>> > 1. I'd like to shift the text area down so that the red lines
>> > align with the blue lines (I think this amount is called depth). How
>> > would I do that?
>>
>> Quick and dirty:
>>
>> \setuplayout
>> [...,
>> topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,
>> ...]
>>
>> > 2. The font is such that exactly 2 characters fit into the grid cell,
>> > but I see that towards the end of the line it gets out of sync with
>> > the grid. How would I ensure that all text rendered is strictly
>> > monospaced without any stretching/shrinking trickery?
>>
>> Change the text alignment:
>>
>> \setupalign[flushleft,broad]
>>
>> 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://context.aanhet.net
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
[-- Attachment #1.2: Type: text/html, Size: 3589 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-07 5:25 ` Stefan Nedeljkovic via ntg-context
2022-06-07 10:34 ` Stefan Nedeljkovic via ntg-context
@ 2022-06-07 15:05 ` Wolfgang Schuster via ntg-context
2022-06-07 15:20 ` Stefan Nedeljkovic via ntg-context
1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-06-07 15:05 UTC (permalink / raw)
To: Stefan Nedeljkovic; +Cc: Wolfgang Schuster, ntg-context
Stefan Nedeljkovic schrieb am 07.06.2022 um 07:25:
> Thank you very much Wolfgang! But, there is still something weird
> going on with the font. I updated the files on Drive. Please see line
> 19, the last word "and". It is clearly out of alignment with the gid.
> I tested the alignment in MP and it should work, ie 2 characters are
> indeed one grid cell (semms from the fact that IBM Plex Mono was
> designed from a typewriter typeface where 12 characters are exactly 1
> inch long).
Do you use double hyphens (--) in your document because this is what
causes the problem.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-07 15:05 ` Wolfgang Schuster via ntg-context
@ 2022-06-07 15:20 ` Stefan Nedeljkovic via ntg-context
2022-06-07 16:22 ` Stefan Nedeljkovic via ntg-context
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-07 15:20 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: Stefan Nedeljkovic, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 827 bytes --]
Yes I may use them. Why is that a problem? Is it some special context
syntax? How do I escape them or turn them off?
On Tue, Jun 7, 2022 at 5:05 PM Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:
> Stefan Nedeljkovic schrieb am 07.06.2022 um 07:25:
> > Thank you very much Wolfgang! But, there is still something weird
> > going on with the font. I updated the files on Drive. Please see line
> > 19, the last word "and". It is clearly out of alignment with the gid.
> > I tested the alignment in MP and it should work, ie 2 characters are
> > indeed one grid cell (semms from the fact that IBM Plex Mono was
> > designed from a typewriter typeface where 12 characters are exactly 1
> > inch long).
>
> Do you use double hyphens (--) in your document because this is what
> causes the problem.
>
> Wolfgang
>
>
[-- Attachment #1.2: Type: text/html, Size: 1203 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Two minor questions
2022-06-07 15:20 ` Stefan Nedeljkovic via ntg-context
@ 2022-06-07 16:22 ` Stefan Nedeljkovic via ntg-context
0 siblings, 0 replies; 10+ messages in thread
From: Stefan Nedeljkovic via ntg-context @ 2022-06-07 16:22 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: Stefan Nedeljkovic, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]
I just found out that it's a tex shorthand for an endash. Is there a way to
globally turn that shortcut off?
On Tue, Jun 7, 2022 at 5:20 PM Stefan Nedeljkovic <tsar.srb@gmail.com>
wrote:
> Yes I may use them. Why is that a problem? Is it some special context
> syntax? How do I escape them or turn them off?
>
> On Tue, Jun 7, 2022 at 5:05 PM Wolfgang Schuster <
> wolfgang.schuster.lists@gmail.com> wrote:
>
>> Stefan Nedeljkovic schrieb am 07.06.2022 um 07:25:
>> > Thank you very much Wolfgang! But, there is still something weird
>> > going on with the font. I updated the files on Drive. Please see line
>> > 19, the last word "and". It is clearly out of alignment with the gid.
>> > I tested the alignment in MP and it should work, ie 2 characters are
>> > indeed one grid cell (semms from the fact that IBM Plex Mono was
>> > designed from a typewriter typeface where 12 characters are exactly 1
>> > inch long).
>>
>> Do you use double hyphens (--) in your document because this is what
>> causes the problem.
>>
>> Wolfgang
>>
>>
[-- Attachment #1.2: Type: text/html, Size: 1690 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-06-07 16:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 5:55 Two minor questions Stefan Nedeljkovic via ntg-context
2022-06-06 15:46 ` Wolfgang Schuster via ntg-context
2022-06-06 15:50 ` Aditya Mahajan via ntg-context
2022-06-06 20:07 ` Stefan Nedeljkovic via ntg-context
2022-06-06 20:48 ` Wolfgang Schuster via ntg-context
2022-06-07 5:25 ` Stefan Nedeljkovic via ntg-context
2022-06-07 10:34 ` Stefan Nedeljkovic via ntg-context
2022-06-07 15:05 ` Wolfgang Schuster via ntg-context
2022-06-07 15:20 ` Stefan Nedeljkovic via ntg-context
2022-06-07 16:22 ` Stefan Nedeljkovic via ntg-context
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).