Re: [NTG-context] Position of prime for derivatives
Hi Mikael, Indeed your observation is correct, but using \over instead of \frac yields the correct behavior. Please try the following sample: %%% begin derivatives-prime-4.tex \setupbodyfont[lucidaot] \starttext Compare the position of the prime sign in $f'/g$ in these two expressions: the first one using \type{{... \over ...}} \startformula \left({f \over g}\right)' = {f' \over g} - {f \over g^2}g' \stopformula (which yields a correct position of the prime for $f'$ in $f'/g$), and the second using \type{\frac{...}{...}} \startformula \left(\frac{f}{g} \right)' = \frac{f'}{g} - \frac{f}{g^2} g' \stopformula which yields a prime sign for $f'$ a little bit lower. \stoptext %%% end derivatives-prime-4.tex derivatives-prime-4.pdf Description: Adobe PDF document > On 4 Jun 2017, at 19:42, Mikael P. Sundqvistwrote: > […] > > I hate to bring this up again, but look at the attached output of > > %%% > %\setupbodyfont[lucidaot] > > \starttext > \startformula > f'(0)=2\frac{f'(0)}{2} > \stopformula > \stoptext > %%% > > The prime in the fraction is in my opinion too low (it is more clear > in the example with lucida). > > /Mikael > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Position of prime for derivatives
On Thu, May 25, 2017 at 8:05 PM, Mathias Schickelwrote: > >> Am 25.05.2017 um 18:59 schrieb Mikael P. Sundqvist : >> >> On Tue, May 23, 2017 at 5:02 PM, Mikael P. Sundqvist >> wrote: >>> On Tue, May 23, 2017 at 11:58 AM, Mathias Schickel >>> wrote: Hi Mikael and Otared, I can confirm issues regarding primes, too. If you are using the STIX 2 fonts (http://www.stixfonts.org) and my example below you get a somewhat strange behaviour of primes that is pretty obvious. I think the issues should be fixed. By the way the issue seems to depend to some extend on the fonts. Using Lucida by \setupbodyfont[lucidaot] it is not that obvious but still present. Using Latin Modern it seems that the spacing between the primes changes between f'' and f^{''}. Cambria seems to show that behaviour (like Latin Modern), too, but less obvious. Best regards Mathias %% example \unprotect \definefontfeature [stixtwo-math-feature] [kern=yes, ss01=no,% calligraphic letters ss02=yes, % lowercase italic variants (e.g. open g) ss03=no, % hbar und lambdabar variants ss04=yes, % larger and lower primes, minute etc. ss05=no, % shorter arrows ss06=no, % narrower and shorter element and similar symbols ss07=no, % some smaller operators and emptyset variant ss08=yes, % upright integrals etc. ss09=no, % variant negated symbols ss10=yes, % variants of greater and lesser and similar symbols ss11=yes, % variant of negated set (inclusion etc.) symbols ss14=yes, % ss16=yes] % variants of circled operators \starttypescriptcollection[Stix2] \starttypescript [\s!serif] [Stix2] [\s!all] \definefontsynonym [Stix2Regular] [file:STIX2Text-Regular.otf] \definefontsynonym [Stix2Bold] [file:STIX2Text-Bold.otf] \definefontsynonym [Stix2Italic] [file:STIX2Text-Italic.otf] \definefontsynonym [Stix2BoldItalic] [file:STIX2Text-BoldItalic.otf] \definefontsynonym[\s!Serif] [Stix2Regular] [\s!features=\s!default] \definefontsynonym[\s!SerifBold] [Stix2Bold] [\s!features=\s!default] \definefontsynonym[\s!SerifItalic] [Stix2Italic] [\s!features=\s!default] \definefontsynonym[\s!SerifBoldItalic] [Stix2BoldItalic] [\s!features=\s!default] \stoptypescript \starttypescript [\s!math] [Stix2] \definefontsynonym [Stix2Math] [file:STIX2Math.otf] [features=math\mathsizesuffix] \definefontsynonym [\s!MathRoman] [Stix2Math] [\s!features={\s!math\mathsizesuffix,mathextra,stixtwo-math-feature},\s!designsize=\s!auto] \stoptypescript \starttypescript [Stix2] \definetypeface [\typescriptone] [\s!rm] [\s!serif] [Stix2] [\s!default] \definetypeface [\typescriptone] [\s!mm] [\s!math] [Stix2] [\s!default] \stoptypescript \stoptypescriptcollection \protect \setupbodyfont[Stix2] \starttext % Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$. % \stoptext %% end of example Am 22.05.2017 um 09:50 schrieb Otared Kavian : Hi Mikael, You are correct, the position of \prime depends on whether there is a next character or not after it, and it seems that this has an effect on its position for characters having a subscript as in $f_{1}''(x) \neq f''_{1}(x)$ $f'f''f'’'$ Best regards: OK On 22 May 2017, at 08:51, Mikael P. Sundqvist wrote: On Sun, May 21, 2017 at 10:29 PM, Otared Kavian wrote: Hi Mikael, I agree with what you are reporting: the current behavior of the \prime operator is not completely satisfying when using ConTeXt mkiv, while in mkii it is the most satisfying (in my opinion…). The turn around consisting in using $f^{‘’}$ or $f^{\prime\prime}$, or even $f^{{}^{\prime\prime}}$, is not really satisfying either. But I think (or I hope that) at some point Hans will fix it in mkiv. Best regards: OK On 21 May 2017, at 08:14, Mikael P. Sundqvist wrote: […] And just for reference, the document below gives the attached pdf, compiled with lualatex. I think the location of the primes there look better. Sorry for spamming about this issue, but I think it is important for all people writing math with ConTeXt. /Mikael \RequirePackage{luatex85}
[NTG-context] synctex
Hi, For those using synctex, an alternative method is: \setupsynctex[state=start] It is tuned for use in a more complex setup where one wants access to source files (with content) and not to e.g. styles in a tex tree. It also works reasonable well with (also included) xml files. Personally I never use synctex but for some projects it came in handy for authors (think of proofing xml files with hundreds of nested inclusions and files in a rather branched tree.) Of course you can expect a similar performance hit as normal synctex but commenting the above line in production results in zero overhead. Using the syntex flag on the command line (--synctex=context will work) can be messy. This currently only works with the windows binaries version on the garden (as we need luatex 1.0.5). 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 / 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 ___
Re: [NTG-context] overrule italics
On 6/2/2017 2:45 PM, Florian Grammel wrote: I have a long text with section headers partly in italics and/or emphasis. I'd like to setup the formatting in a way that overrules these. \setuphead[section][style=\tfb\up] In LaTeX there would be \upshape/\textup -- is there an equivalent in ConTeXt? Did you try \tf ? yes I did, unfortunately it doesn't work Otherwise \emph{italics \emph{upright} italics} should work (didn’t try). Nested emph to invert works. But my text has both italicised and regular headers -- both should be printed upright with the modified style. Even though I can modify them manually in this present case, something like \upshape would be good to have. I uploaded a beta with a new option (in addition to an old one). I need to discuss with Wolfgang etc what default makes sense (topic for upcoming context meeting). \usemodule[art-01] \starttext \startbuffer \startbuffer[demo] \start \getbuffer[setup] \subject{[ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ]} [ {\myslanted myslanted} ] [ {\it it} ] [ {\slanted slanted} ] [ $x=1$ ] \typebuffer[setup] \blackrule[width=\textwidth,height=1pt,depth=0pt] \stop \stopbuffer \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [] \stopbuffer \getbuffer[demo] \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [\bi] \stopbuffer \getbuffer[demo] \startbuffer[setup] \setuphead[subject][style=\tfb,before=,after=] \definealternativestyle [myslanted] [\it] [\tf] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\normalitalicface] \setuphead[subject][style=bold,before=,after=] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\normalitalicface] \setuphead[subject][style=\bfd,before=,after=] \stopbuffer \getbuffer[demo] \startbuffer[setup] \definealternativestyle [myslanted] [\slantedface] \setuphead[subject][style=boldface,before=,after=] \stopbuffer \getbuffer[demo] \stopbuffer \unprotect \setupalternativestyles[method=normal] \getbuffer \page \setupalternativestyles[method=auto] \getbuffer \page \starttyping \emphasistypeface \emphasisboldface \normaltypeface== \typeface \normalboldface== \boldface \normalslantedface == \slantedface \normalitalicface == \italicface \swaptypeface == \swapface \stoptyping \stoptext - 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 / 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 ___
Re: [NTG-context] align inner items vertically
On 6/3/2017 6:11 PM, Mikael P. Sundqvist wrote: Hi, is it possible to align the inner itemgroup vertically with the outer enumeration, even if there is a "big" math expression? See the example below (where I have made the enumeration serried, just to see the _vertical_ misalignment better)? I think I miss something simple, but looking in setup-en.pdf I cannot find the necessary key. this is rather nasty code but i'll see what i can do - 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 / 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 ___
[NTG-context] aligning external figures
Dear list, I have the following sample: \setupexternalfigure[location=default, align=middle] \starttext \dontleavehmode\externalfigure[cow.pdf] \externalfigure[cow.pdf] \stoptext As you can see, \dontleavehmode makes no difference. Does anyone know how the align key in \setupexternalfigure works? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___