[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris

-- Original Message --
From "Henning Hraban Ramm" mailto:te...@fiee.net>>
To "ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>" 
mailto:ntg-context@ntg.nl>>
Date 10/24/2023 8:04:34 AM
Subject [NTG-context] Re: sidebar and marginrule not working

** Caution: EXTERNAL Sender **

Am 24.10.23 um 15:33 schrieb Hamid,Idris:
Hi Otared,

Many thanks. Could you kindly open the pdf I sent as well? How does that
look?

Here, on Windows 11, the bars do not appear on sumatra, adobe, or nitropdf.

I checked on MacOS with Preview, Acrobat Pro and PDF Studio – no bars in
your PDF.

But your code gives apparently correct results on my machine,
ConTeXt ver: 2023.09.26 18:19 LMTX fmt: 2023.10.19

Maybe try to re-make the format? Check all files in the log – is there
something from a local/personal texmf tree?
Many thanks, Henning. I tried remaking the format, updating -- to no avail. The 
log doesn't seem to show anything unusual, no texmf-project files, etc.

Finally, I shutdown and restarted the system, on the premise that some pdf 
library or other file is acting up. And voila! it seems to work now -- see 
attached.

It remains a mystery as to what could possibly have caused this problem, or why 
a system restart made it go away.

Hopefully the problem will not return, but we'll see..

Thanks to all who replied.

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523


test-sidebar.pdf
Description: test-sidebar.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Henning Hraban Ramm

Am 24.10.23 um 15:33 schrieb Hamid,Idris:

Hi Otared,

Many thanks. Could you kindly open the pdf I sent as well? How does that 
look?


Here, on Windows 11, the bars do not appear on sumatra, adobe, or nitropdf.


I checked on MacOS with Preview, Acrobat Pro and PDF Studio – no bars in 
your PDF.


But your code gives apparently correct results on my machine,
ConTeXt  ver: 2023.09.26 18:19 LMTX  fmt: 2023.10.19

Maybe try to re-make the format? Check all files in the log – is there 
something from a local/personal texmf tree?


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
Hi Otared,

Many thanks. Could you kindly open the pdf I sent as well? How does that look?

Here, on Windows 11, the bars do not appear on sumatra, adobe, or nitropdf.

Best wishes
Idris

-- Original Message --
From "Otared Kavian" mailto:ota...@gmail.com>>
To "Hamid,Idris" mailto:idris.ha...@colostate.edu>>; 
"mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>>
Date 10/24/2023 7:18:40 AM
Subject Re: [NTG-context] sidebar and marginrule not working


** Caution: EXTERNAL Sender **

Hi Idris,

Your code works fine on my machine (version 2023.09.26 18:19 LMTX on MacOS 
11.7.10). I see both bars correctly.

Best regards: Otared

On 24 Oct 2023, at 02:24, Hamid,Idris 
mailto:idris.ha...@colostate.edu>> wrote:

Dear gang,

The appears to be something wrong with the sidebar and marginrule mechanisms. 
MWE:

==
% ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupmarginrule[1][rulecolor=darkred]

\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]

\starttext
\startmarginrule[1]
\input ward
\stopmarginrule

\blank

\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==

In the output, either

i)  the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the 
viewer, so the pdf updates on the fly).

Is is a bug?

A second question: Is either mechanism preferable over the other? That is: In 
LMTX, what is the best mechanism to use?

Thank you in advance for any guidance.

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl<https://www.pragma-ade.nl/> / 
https://context.aanhet.net<https://context.aanhet.net/> (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net<https://wiki.contextgarden.net/>
___

Otared Kavian
e-mail: ota...@gmail.com<mailto:ota...@gmail.com>
Phone: +33 6 88 26 70 95





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Otared Kavian
Hi Idris,

Your code works fine on my machine (version 2023.09.26 18:19 LMTX on MacOS 
11.7.10). I see both bars correctly.

Best regards: Otared

> On 24 Oct 2023, at 02:24, Hamid,Idris  wrote:
> 
> Dear gang,
> 
> The appears to be something wrong with the sidebar and marginrule mechanisms. 
> MWE:
> 
> ==
> % ConTeXt  ver: 2023.09.26 18:19 LMTX
> 
> \setupmarginrule[1][rulecolor=darkred] 
> 
> \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
> \setupsidebar[rulecolor=darkgreen] 
> 
> \starttext 
> \startmarginrule[1] 
> \input ward 
> \stopmarginrule 
> 
> \blank 
> 
> \startsidebar[Sidebar] 
> \input zapf 
> \stopsidebar 
> \stoptext
> ==
> 
> In the output, either
> 
> i)  the rules do not appear at all (most attempts); or
> ii) the rules appear for a split-second then disappear (using sumatrapdf as 
> the viewer, so the pdf updates on the fly).
> 
> Is is a bug?
> 
> A second question: Is either mechanism preferable over the other? That is: In 
> LMTX, what is the best mechanism to use? 
> 
> Thank you in advance for any guidance.
> 
> Best wishes
> -- 
> Idris Samawi Hamid, Professor
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
> archive  : https://github.com/contextgarden/context 
> <https://github.com/contextgarden/context>
> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
-- Original Message --
From "Hans Hagen" mailto:j.ha...@xs4all.nl>>
To "ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>" 
mailto:ntg-context@ntg.nl>>
Date 10/24/2023 6:17:24 AM
Subject [NTG-context] Re: sidebar and marginrule not working

** Caution: EXTERNAL Sender **

On 10/24/2023 1:39 PM, Hamid,Idris wrote:
-- Original Message --
From "Hamid,Idris" 
mailto:idris.ha...@colostate.edu><mailto:idris.ha...@colostate.edu>>
To "mailing list for ConTeXt users" 
mailto:ntg-context@ntg.nl><mailto:ntg-context@ntg.nl>>
Date 10/23/2023 6:24:38 PM
Subject [NTG-context] sidebar and marginrule not working

Dear gang,

The appears to be something wrong with the sidebar and marginrule mechanisms. 
MWE:

==
% ConTeXt ver: 2023.09.26 18:19 LMTX

\setupmarginrule[1][rulecolor=darkred]

\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]

\starttext
\startmarginrule[1]
\input ward
\stopmarginrule

\blank

\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==

In the output, either

i) the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the 
viewer, so the pdf updates on the fly).

Is this a bug?
maybe your viewer is bugged

Before sending to the list, I tested the pdf in sumatra (default), adobe, and 
nitropdf - same result. If three distinct viewers don't show it, then something 
else must be wrong.

Could you open the pdf I sent to the list? What do you see?

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hans Hagen

On 10/24/2023 1:39 PM, Hamid,Idris wrote:

-- Original Message --
 From "Hamid,Idris" 
mailto:idris.ha...@colostate.edu>>
To "mailing list for ConTeXt users" 
mailto:ntg-context@ntg.nl>>
Date 10/23/2023 6:24:38 PM
Subject [NTG-context] sidebar and marginrule not working

Dear gang,

The appears to be something wrong with the sidebar and marginrule mechanisms. 
MWE:

==
% ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupmarginrule[1][rulecolor=darkred]

\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]

\starttext
\startmarginrule[1]
\input ward
\stopmarginrule

\blank

\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==

In the output, either

i)  the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the 
viewer, so the pdf updates on the fly).

Is this a bug?

maybe your viewer is bugged

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
-- Original Message --
From "Hamid,Idris" mailto:idris.ha...@colostate.edu>>
To "mailing list for ConTeXt users" 
mailto:ntg-context@ntg.nl>>
Date 10/23/2023 6:24:38 PM
Subject [NTG-context] sidebar and marginrule not working

Dear gang,

The appears to be something wrong with the sidebar and marginrule mechanisms. 
MWE:

==
% ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupmarginrule[1][rulecolor=darkred]

\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]

\starttext
\startmarginrule[1]
\input ward
\stopmarginrule

\blank

\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==

In the output, either

i)  the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the 
viewer, so the pdf updates on the fly).

Is this a bug?

A second question: Is either mechanism preferable over the other? That is: In 
LMTX, what is the best mechanism to use?

Thank you in advance for any guidance.

Here is the pdf that is a result of the MWE above:

https://www.dropbox.com/scl/fi/r18ao8dhpz8m5cj3jk7kv/test-sidebar.pdf?rlkey=slgmiu2wst5xfv3adydhbprj4=0

Also attached.

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523


test-sidebar.pdf
Description: test-sidebar.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] sidebar and marginrule not working

2023-10-23 Thread Hamid,Idris
Dear gang,

The appears to be something wrong with the sidebar and marginrule mechanisms. 
MWE:

==
% ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupmarginrule[1][rulecolor=darkred]

\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]

\starttext
\startmarginrule[1]
\input ward
\stopmarginrule

\blank

\startsidebar[Sidebar]
\input zapf
\stopsidebar
\stoptext
==

In the output, either

i)  the rules do not appear at all (most attempts); or
ii) the rules appear for a split-second then disappear (using sumatrapdf as the 
viewer, so the pdf updates on the fly).

Is is a bug?

A second question: Is either mechanism preferable over the other? That is: In 
LMTX, what is the best mechanism to use?

Thank you in advance for any guidance.

Best wishes
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan

On Sun, 28 Aug 2016, Aditya Mahajan wrote:


Hi,

This is based on a question on TeX.SE
https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule

All marginrules except those of level 1 stop working after 
\placefigure[right]. Here is a minimal example:


\useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
\starttext

\placefigure[here,none,right]{}{\externalfigure[ctanlion]}
\input knuth

\startmarginrule[2]
 \input ward
\stopmarginrule

\startmarginrule[1]
 \input ward
\stopmarginrule

\startmarginrule[3]
 \input ward
\stopmarginrule

\stoptext

The output is attached.


The attached patch seems to fix the bug.

Aditya*** /opt/context-minimals/tex/texmf-context/tex/context/base/mkiv/anch-bar.mkiv	2016-08-28 16:55:00.0 -0400
--- anch-bar.mkiv	2016-08-28 16:52:47.0 -0400
***
*** 111,118 
 \advance\d_anch_sidebars_distance\scratchdistance\relax
   \fi
 \else
   \ifnum\m_level=\plusone
-\scratchdimen\sidebarparameter\c!leftmargindistance\relax
 \ifdim\scratchdimen=\zeropoint
   \advance\d_anch_sidebars_distance\scratchdistance\relax
 \else
--- 111,118 
 \advance\d_anch_sidebars_distance\scratchdistance\relax
   \fi
 \else
+  \scratchdimen\sidebarparameter\c!leftmargindistance\relax
   \ifnum\m_level=\plusone
 \ifdim\scratchdimen=\zeropoint
   \advance\d_anch_sidebars_distance\scratchdistance\relax
 \else
___
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
___

[NTG-context] Marginrule levels after \placefigure[right]

2016-08-28 Thread Aditya Mahajan

Hi,

This is based on a question on TeX.SE
https://tex.stackexchange.com/questions/326653/context-wrapfigure-interacts-with-marginrule

All marginrules except those of level 1 stop working after 
\placefigure[right]. Here is a minimal example:


\useexternalfigure[ctanlion][http://www.ctan.org/lion/ctan_lion_350x350.png][width=4cm]
\starttext

\placefigure[here,none,right]{}{\externalfigure[ctanlion]}
\input knuth

\startmarginrule[2]
  \input ward
\stopmarginrule

\startmarginrule[1]
  \input ward
\stopmarginrule

\startmarginrule[3]
  \input ward
\stopmarginrule

\stoptext

The output is attached.

Aditya

min.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] marginrule does not work properly in wiki

2010-04-11 Thread Vyatcheslav Yatskovsky

Hello,

The following example does not work properly in wiki (the rule is 
missed), while in mkIV it's OK.


\starttext
\startmarginrule
The sound of a duck is a good demonstration of how different people
listen to a sound. Everywhere in Europe the sound is equal. But in
every country it is described differently: kwaak||kwaak (Netherlands),
couin||couin (French), gick||gack (German), rap||rap (Danish) and
mech||mech (Spanish). If you speak these words aloud you will notice
that in spite of the consonants the sound is really very
well described. And what about a cow, does it say boe, mboe or mm?
\stopmarginrule
\stoptext

http://wiki.contextgarden.net/Reference/en/startmarginrule

Regards,
Vyatcheslav
___
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
___


Re: [NTG-context] marginrule does not work properly in wiki

2010-04-11 Thread Vyatcheslav Yatskovsky
Looks like I understood the reason. It's not visible because it's inside 
the margin, and wiki does margins. :) Am I right?



Hello,

The following example does not work properly in wiki (the rule is
missed), while in mkIV it's OK.

\starttext
\startmarginrule
The sound of a duck is a good demonstration of how different people
listen to a sound. Everywhere in Europe the sound is equal. But in
every country it is described differently: kwaak||kwaak (Netherlands),
couin||couin (French), gick||gack (German), rap||rap (Danish) and
mech||mech (Spanish). If you speak these words aloud you will notice
that in spite of the consonants the sound is really very
well described. And what about a cow, does it say boe, mboe or mm?
\stopmarginrule
\stoptext

http://wiki.contextgarden.net/Reference/en/startmarginrule

Regards,
Vyatcheslav



--
Best Regards,
Vyatcheslav Yatskovsky
___
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
___