* xrightarrow is not straight @ 2018-08-07 8:42 Joshua Moerman 2018-08-07 15:01 ` Alan Braslau 2018-08-07 17:04 ` Aditya Mahajan 0 siblings, 2 replies; 6+ messages in thread From: Joshua Moerman @ 2018-08-07 8:42 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 655 bytes --] Hi ConTeXt mailing list, I am using the extensible arrows and I am not really satisfied with the looks of it. The most important issue I have is that the vertical spacing is too much. You can see this in the attached picture: the left arrow is using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq a}{\longrightarrow}. I think the right one (with stackrel) looks more natural. Is there a way to setup the vertical spacing? Another thing I noticed is that the line is not very consistent. This might be a font issue (I am using Euler). Luckily, the inconsistent overlap is barely visible when printed. Thanks again! Groetjes, Joshua [-- Attachment #2: Capture.PNG --] [-- Type: image/png, Size: 17454 bytes --] [-- Attachment #3: Type: text/plain, Size: 492 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] 6+ messages in thread
* Re: xrightarrow is not straight 2018-08-07 8:42 xrightarrow is not straight Joshua Moerman @ 2018-08-07 15:01 ` Alan Braslau 2018-08-07 17:06 ` Aditya Mahajan 2018-08-08 10:39 ` Joshua Moerman 2018-08-07 17:04 ` Aditya Mahajan 1 sibling, 2 replies; 6+ messages in thread From: Alan Braslau @ 2018-08-07 15:01 UTC (permalink / raw) To: Joshua Moerman; +Cc: mailing list for ConTeXt users On Tue, 7 Aug 2018 10:42:01 +0200 "Joshua Moerman" <context@joshuamoerman.nl> wrote: > Hi ConTeXt mailing list, > > I am using the extensible arrows and I am not really satisfied with > the looks of it. > > The most important issue I have is that the vertical spacing is too > much. You can see this in the attached picture: the left arrow is > using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq > a}{\longrightarrow}. I think the right one (with stackrel) looks more > natural. Is there a way to setup the vertical spacing? > > Another thing I noticed is that the line is not very consistent. This > might be a font issue (I am using Euler). Luckily, the inconsistent > overlap is barely visible when printed. > > Thanks again! > > Groetjes, > Joshua > Hello, You can also use MetaPost to render math stackers, rather than relying on TeX constructs and any particular font. For example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp] \definemathextensible [mp] [leftarrow] ["2190] \definemathextensible [mp] [rightarrow] ["2192] \definemathextensible [mp] [leftrightarrow] ["2194] \definemathextensible [mp] [longleftrightarrow] ["27F7] \definemathextensible [mp] [rightoverleftarrow] ["21C4] \definemathextensible [mp] [underbrace] ["FE3DF] \setupbodyfont [dejavu-condensed,12pt] \starttext $\rightarrow{≠a}$ \stoptext Furthermore, the MP arrow can be tuned \startMPinitializations ahlength := .5EmWidth ; ahvariant := 1 ; % dimpled straight \stopMPinitializations as can line widths, etc. Alan ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: xrightarrow is not straight 2018-08-07 15:01 ` Alan Braslau @ 2018-08-07 17:06 ` Aditya Mahajan 2018-08-07 17:32 ` Alan Braslau 2018-08-08 10:39 ` Joshua Moerman 1 sibling, 1 reply; 6+ messages in thread From: Aditya Mahajan @ 2018-08-07 17:06 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1014 bytes --] On Tue, 7 Aug 2018, Alan Braslau wrote: > Hello, > > You can also use MetaPost to render math stackers, rather than relying > on TeX constructs and any particular font. > > For example: > > > \useMPlibrary[mat] > > \definemathstackers > [mp] > [alternative=mp] > > \definemathextensible [mp] [leftarrow] ["2190] > \definemathextensible [mp] [rightarrow] ["2192] > \definemathextensible [mp] [leftrightarrow] ["2194] > \definemathextensible [mp] [longleftrightarrow] ["27F7] > \definemathextensible [mp] [rightoverleftarrow] ["21C4] > \definemathextensible [mp] [underbrace] ["FE3DF] > > \setupbodyfont [dejavu-condensed,12pt] > > \starttext > $\rightarrow{≠a}$ > \stoptext > > > > Furthermore, the MP arrow can be tuned > > \startMPinitializations > > ahlength := .5EmWidth ; > ahvariant := 1 ; % dimpled straight > > \stopMPinitializations > > as can line widths, etc. Shouldn't we use a dedicated MP instance for stackers? Aditya [-- Attachment #2: Type: text/plain, Size: 492 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] 6+ messages in thread
* Re: xrightarrow is not straight 2018-08-07 17:06 ` Aditya Mahajan @ 2018-08-07 17:32 ` Alan Braslau 0 siblings, 0 replies; 6+ messages in thread From: Alan Braslau @ 2018-08-07 17:32 UTC (permalink / raw) To: Aditya Mahajan; +Cc: mailing list for ConTeXt users On Tue, 7 Aug 2018 13:06:23 -0400 (EDT) Aditya Mahajan <adityam@umich.edu> wrote: > > Furthermore, the MP arrow can be tuned > > > > \startMPinitializations > > > > ahlength := .5EmWidth ; > > ahvariant := 1 ; % dimpled straight > > > > \stopMPinitializations > > > > as can line widths, etc. > > Shouldn't we use a dedicated MP instance for stackers? MPinitializations are shared by all instances (normally), that is if initializations=yes is set in \defineMPinstance. Alan ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: xrightarrow is not straight 2018-08-07 15:01 ` Alan Braslau 2018-08-07 17:06 ` Aditya Mahajan @ 2018-08-08 10:39 ` Joshua Moerman 1 sibling, 0 replies; 6+ messages in thread From: Joshua Moerman @ 2018-08-08 10:39 UTC (permalink / raw) To: 'Alan Braslau', mailing list for ConTeXt users Dear Alan, Thanks for the reply! Using \definemathstackers I can set the voffset to adjust the vertical spacing. This is exactly what I needed, thanks! However, I couldn't use the ahlength variable. I tried different values, but it doesn't seem to change anything (and the current arrowhead is tiny). (Using startMPcode and drawarrow gives a big arrowhead.) Also I noticed that the content of \rightarrow{...} was not in mathmode, so I tried using middlecommand=\mathermatics (I found this on the wiki and in the docs). But that doesn't change anything. Is this a bug? Example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp, voffset=-.3\mathexheight, middlecommand=\mathematics] \definemathextensible [mp] [rightarrow] ["2192] \startMPinitializations ahlength := EmWidth ; % Does not work? ahangle := 30 ; ahvariant := 1 ; ahdimple := 4/5 ; \stopMPinitializations \setuppapersize[A7] \starttext $A \rightarrow{$\neq f$ and $\neq g$} B$ $A \rightarrow{\neq f \text{ and } \neq g} B$ % Is not typeset in mathmode \stoptext Thanks in advance, Kind regards, Joshua -----Original Message----- From: Alan Braslau <braslau.list@comcast.net> Sent: 07 August 2018 17:01 To: Joshua Moerman <context@joshuamoerman.nl> Cc: mailing list for ConTeXt users <ntg-context@ntg.nl> Subject: Re: [NTG-context] xrightarrow is not straight On Tue, 7 Aug 2018 10:42:01 +0200 "Joshua Moerman" <context@joshuamoerman.nl> wrote: > Hi ConTeXt mailing list, > > I am using the extensible arrows and I am not really satisfied with > the looks of it. > > The most important issue I have is that the vertical spacing is too > much. You can see this in the attached picture: the left arrow is > using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq > a}{\longrightarrow}. I think the right one (with stackrel) looks more > natural. Is there a way to setup the vertical spacing? > > Another thing I noticed is that the line is not very consistent. This > might be a font issue (I am using Euler). Luckily, the inconsistent > overlap is barely visible when printed. > > Thanks again! > > Groetjes, > Joshua > Hello, You can also use MetaPost to render math stackers, rather than relying on TeX constructs and any particular font. For example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp] \definemathextensible [mp] [leftarrow] ["2190] \definemathextensible [mp] [rightarrow] ["2192] \definemathextensible [mp] [leftrightarrow] ["2194] \definemathextensible [mp] [longleftrightarrow] ["27F7] \definemathextensible [mp] [rightoverleftarrow] ["21C4] \definemathextensible [mp] [underbrace] ["FE3DF] \setupbodyfont [dejavu-condensed,12pt] \starttext $\rightarrow{≠a}$ \stoptext Furthermore, the MP arrow can be tuned \startMPinitializations ahlength := .5EmWidth ; ahvariant := 1 ; % dimpled straight \stopMPinitializations as can line widths, etc. Alan ___________________________________________________________________________________ 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] 6+ messages in thread
* Re: xrightarrow is not straight 2018-08-07 8:42 xrightarrow is not straight Joshua Moerman 2018-08-07 15:01 ` Alan Braslau @ 2018-08-07 17:04 ` Aditya Mahajan 1 sibling, 0 replies; 6+ messages in thread From: Aditya Mahajan @ 2018-08-07 17:04 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, 7 Aug 2018, Joshua Moerman wrote: > Another thing I noticed is that the line is not very consistent. This might > be a font issue (I am using Euler). Luckily, the inconsistent overlap is > barely visible when printed. It is a viewer issue. It should also go away if you zoom the pdf. 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] 6+ messages in thread
end of thread, other threads:[~2018-08-08 10:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-08-07 8:42 xrightarrow is not straight Joshua Moerman 2018-08-07 15:01 ` Alan Braslau 2018-08-07 17:06 ` Aditya Mahajan 2018-08-07 17:32 ` Alan Braslau 2018-08-08 10:39 ` Joshua Moerman 2018-08-07 17:04 ` Aditya Mahajan
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).