Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
Hi Mojca, (I mistakenly sent this only to Mojca. I’m sending again to the group.) >> Is there anything I can do to aid in getting this fixed in the distribution? > > Can you please try updating and checking again (at least with the > "legacy installer", I'm not sure how Hans handles the modules

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 7:20 AM, Hans Hagen via ntg-context > wrote: > > On 8/22/2021 2:25 PM, Gavin via ntg-context wrote: >> Hi Mojca, >> (I mistakenly sent this only to Mojca. I’m sending again to the group.) >>>> Is there anything I

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:13 AM, Hans Hagen wrote: >> >>> you haven't post the tex code that fails so no one can check it >>> >>> Hans >> usemodule[tikz] >> \usemodule[pgfplots] >> \usetikzlibrary[pgfplots.polar] >> \startTEXpage >> \starttikzpicture >> \startpolaraxis >> \addplot

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:44 AM, Mojca Miklavec > wrote: > > I tried a fresh installation of both MKIV and LMTX and both seem to > work fine for me, so sadly I cannot reproduce the problem. > (The files comes from rsync, from the same folder as shown here: >

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
>> Hi Hans, >> It doesn’t keep failing for me because the fix is well documented, so I >> fixed it on my machine. I am just imagining that it might be nice to put >> that fix in the modules that people download. For example, a teacher wants >> to help me test my book, so he followed the

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
On Aug 22, 2021, at 10:27 AM, Mojca Miklavec wrote: > > I didn't have to fix anything in the code, but the git repository was moved, > so the module wasn't kept up to date for a while. I just updated the URL for > fetching the latest sources. > > Mojca Thanks for making that fix. I am not

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> V ned., 22. avg. 2021 19:32 je oseba Gavin napisala: > >> I am not sure what my next step should be. Should I wait a day for the >> system to do its fetching thing and then try the same instructions I >> followed before (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)? >> >> I know

Re: [NTG-context] numbered exercises

2021-08-24 Thread Gavin via ntg-context
> On Aug 24, 2021, at 1:26 PM, Henning Hraban Ramm via ntg-context > wrote: >> Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context >> : >> Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31: >>> Hi, I’m typesetting a textbook that contains numbered and indented >>>

[NTG-context] pgfplots module needs update from December

2021-08-20 Thread Gavin via ntg-context
Hello list, The module pgfplots has a bug that produces an error for polar plots, and perhaps in other situations. tex error > tex error on line 20 in file ./chapter02-t-b-728d71c9823ff6bed735c6d6e1758718.tmp: Undefined control sequence \pgfplots@environment@polaraxis@ [#1]->\begin

[NTG-context] Making metafun pictures fainter

2021-10-10 Thread Gavin via ntg-context
Hi list, I’m trying to produce figures like this, showing motion as a series of snap-shots, with the earlier moments more faint. PastedGraphic-1.pdf Description: Adobe PDF document Here are three examples of metafun code using transparency and “decorated". \startMPinclusions picture ball;

[NTG-context] Solved: Making metafun pictures fainter

2021-10-12 Thread Gavin via ntg-context
Hi List,Thanks, Hans, for your suggestion. In the end, I decided that I actually liked the silhouettes better than a faint version of the whole picture. Silhouettes clearly show the motion, but are far less visually distracting. In the figure below, the projectile motion’s are clear, including the

[NTG-context] Solved: Making metafun pictures fainter

2021-10-12 Thread Gavin via ntg-context
hadow(ball shifted p, (i+1)/10) ; endfor draw ball shifted(1.1cm, -1.92cm) ; \stopMPpage > On Oct 11, 2021, at 2:53 AM, Hans Hagen wrote: > > On 10/11/2021 6:30 AM, Gavin via ntg-context wrote: >> Hi List, >> I made good progress producing fainter pictures in metafun

Re: [NTG-context] Making metafun pictures fainter (shading, uncolored clash)

2021-10-10 Thread Gavin via ntg-context
Hi List, I made good progress producing fainter pictures in metafun. Here is a uniformly accelerated cow in the style of my book. PastedGraphic-2.pdf Description: Adobe PDF document I abandoned transparency, since I actually don’t want to see through anything. I am using uncolored to get

Re: [NTG-context] ConTeXt's equivalent of standalone class

2021-10-02 Thread Gavin via ntg-context
noib3 via ntg-context schrieb am 02.10.2021 um 17:50: > Coming from LaTeX, when I had some TikZ pictures I wanted to add in my > document I would usually keep them on a separate file, I would compile them > with the standalone class so that the resulting PDF's size would be limited > to exactly

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Gavin via ntg-context
Hi Alex, I don’t know the status of Asymptote. I am using TikZ and pgfplots for 3D, with satisfactory results (example below). However, it is slow, so use the buffer mechanism to prevent redrawing with every run. TIkZ/pgfplots is the best short term solution for diagrams I need right now. I

Re: [NTG-context] tikzplot displacement result

2021-12-12 Thread Gavin via ntg-context
Hi Jan-Erik, Use the \addplot command when you use pgfplots. The manual, pgfplots.pdf, is quite good. \setupbodyfont[10pt] \enableregime[utf] \usemodule[tikz] \usemodule[pgfplots] \usetikzlibrary[arrows] \setuppagenumbering[location=] \starttext

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-27 Thread Gavin via ntg-context
Hi All, Getting Closer I asked: >> 2) While I’m having good luck with paths, colors are causing trouble. In the >> data set the color information is in strings with French names of the color, >> like “rouge.” If I hand this string to MetaPost, MetaPost doesn’t expand it >> into a color. It

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-26 Thread Gavin via ntg-context
Hi everyone, I’ve made great progress creating globes for my diagrams using the data in the mp-geo package and some ideas from Hans. I have a couple questions about moving information from Lua to MetaPost. Below is a MWE for illustration. I have two related questions: 1) Is there a way for

Re: [NTG-context] \sub conflict with my def

2022-01-13 Thread Gavin via ntg-context
Thanks, Hans! Appending to \everymathematics is a powerful trick, which I will not overuse. -Gavin > On Jan 12, 2022, at 12:14 PM, Hans Hagen wrote: > > On 1/12/2022 7:34 PM, Gavin via ntg-context wrote: >> Hi List, >> I am converting problem sets from LaTeX to ConTeXt an

[NTG-context] MetaFun: textext.origin, thelabel.origin not positioned on baseline

2022-01-13 Thread Gavin via ntg-context
Hello again List, Now I’m making diagrams using MetaFun. The MetaFun manual describes an “origin” option for positioning textext’s and label’s on the baseline. However, this dose not appear to be happening with the code in the manual (below). In fact, the diagram in the manual dose not show

Re: [NTG-context] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
was certainly surprised by the result. Now I’m moving on to the problem set's diagrams with MetaFun. Gavin > On Jan 13, 2022, at 10:15 AM, Aditya Mahajan via ntg-context > wrote: > > On Thu, 13 Jan 2022, Gavin via ntg-context wrote: > >> Hi list, >> >> When

[NTG-context] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
Hi list, When I define an items group, it seems to mess up the spacing for a nested item group. See example below. Any ideas? I’m typesetting with > ConTeXt ver: 2022.01.06 19:51 LMTX fmt: 2022.1.9 int: english/english on an M1 Mac. Thanks! Gavin \usemodule[visual]

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-12 Thread Gavin via ntg-context
ote: > > On Tue, 11 Jan 2022, Gavin via ntg-context wrote: > >> Hello List, >> >> I am making problem sets for a physics class. Solutions use the style >> defined in the example below, and only appear if the “solution” mode is >> enabled. I am struggling to g

[NTG-context] \sub conflict with my def

2022-01-12 Thread Gavin via ntg-context
Hi List, I am converting problem sets from LaTeX to ConTeXt and ran into a puzzling problem. I define \sub to produce subscript text in math mode. (See definition below.) This worked for my ConTeXt book, but fails in the problem sets because in ConTeXt \sub is a special item command, and I use

[NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Gavin via ntg-context
Hello List, I am making problem sets for a physics class. Solutions use the style defined in the example below, and only appear if the “solution” mode is enabled. I am struggling to get a vertical space for the solution which is the same whether or not the solution is printed. Different

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Gavin via ntg-context
Hans Hagen wrote: > > On 1/11/2022 8:50 PM, Gavin via ntg-context wrote: >> Hello List, >> I am making problem sets for a physics class. Solutions use the style >> defined in the example below, and only appear if the “solution” mode is >> enabled. I am struggling to

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-15 Thread Gavin via ntg-context
Hi Thomas, > I can confirm that context version: 2022.03.12 17:56 is running fine on my > MacBook M1. Thanks for that. I’ll troubleshoot my installation. > And excuse my snark, but…. Snark excused. Thanks! Gavin

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-16 Thread Gavin via ntg-context
Hi List, ConTeXt is running well after a fresh install. (context version: 2022.03.12 17:56, I didn’t even need to mess with permissions.) I don’t know why the usual update procedure failed for me before. I look forward to checking out the new math spacing with Libertinus. Sorry for the noise,

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-15 Thread Gavin via ntg-context
to get confirmation that somebody got the new upload to work on an M1 Mac. Gavin > On Mar 13, 2022, at 5:53 PM, Bruce Horrocks wrote: > > > >> On 12 Mar 2022, at 19:55, Gavin via ntg-context wrote: >> >> Hi Hans, >> >>> i uploaded a new instal

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-12 Thread Gavin via ntg-context
Hi Mojca, I think my security settings are preventing me from using this luametatex file. When trying to update the installation, I got a window that says: “luametatex” can’t be opened because Apple cannot check it for malicious software. When I tried running mtxrun --generate, in

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-12 Thread Gavin via ntg-context
Hi Mojca, > Gavin, are you willing to try the binary from >https://dl.contextgarden.net/build/luametatex/arm64-darwin/ > ? I am willing to try. I downloaded the luametatex file at that address, but I’m not sure what to do with it. Do I just replace the luametatex in my installation, or

[NTG-context] New upload is DOA on my M1 Mac

2022-03-12 Thread Gavin via ntg-context
Hi List, I just installed the new upload on my M1 mac using my usual procedure, which is to update the modules and then run sh ./install.sh (details here: https://wiki.contextgarden.net/Modules#ConTeXt_LMTX, simplified method). Afterwords, a hello world context document produced no effect, not

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-12 Thread Gavin via ntg-context
Hi Hans, > i uploaded a new installer / uopdates with mojca's bin Thanks for putting that together. Unfortunately, same result: TeXShop produces no output in console "mtxrun —generate” produces "zsh: killed mtxrun --generate" JP, The control-open trick seemed like a good

Re: [NTG-context] Suggestions for more math classes?

2022-02-16 Thread Gavin via ntg-context
Hi Mikael, A while back you asked the list about math class ideas. > Q1: Do you have any further suggestions on new classes (or comments on > these)? It might be good to think about situations where you have felt > that you need to insert manual spaces such as \, or \! to obtain a > better

Re: [NTG-context] Solved! Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Hi List, I solved this problem, but the solution is a bit mysterious to me. I was trying to solve another problem – removing the small space underneath the graphic in the framed box. I did this by adding boffset=-\strutdepth to the framed command. That not only got rid of the space inside the

Re: [NTG-context] Solved! Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Thanks, Hans! That works, and it makes sense. Playing with frames always pays, indeed. -Gavin > On Jan 14, 2022, at 3:18 PM, Hans Hagen wrote: > > On 1/14/2022 8:10 PM, Gavin via ntg-context wrote: >> Hi List, >> I solved this problem, but the solution is a bi

[NTG-context] Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Hi List, I need to itemize graphics when I use those graphics as the choices in a multiple choice question. When I do that in columns, I am getting excess space below the graphics. See example code and output below. Any suggestions for how I get rid of this space? I’m not sure if this is

Re: [NTG-context] Spacing issue in itemize

2022-01-14 Thread Gavin via ntg-context
Hi Hans, Aditya, and all, Let me add another case to this discussion. For multiple choice questions, it is nice to have the columns option. However, this produces somewhat inconsistent results. In the code below, without Aditya's tweak, there is space before the choices in the first two cases,

[NTG-context] MetaFun manual's "texvar" is not working for me

2022-05-21 Thread Gavin via ntg-context
Hello list, I’m trying to reproduce the positional graphics examples in the MetaFun manual on pp. 151-153. There are two examples of code for the mpos:box. The first example uses \MPvar to retrieve variables set using \setupMPvariables. This works fine. The second example uses texvar to

Re: [NTG-context] is something wrong with the mailing list?

2022-10-30 Thread Gavin via ntg-context
Hi Hraban, It has been pretty quiet, but there were some posts on Oct 27. You could check the bottom of the web version to see if you have been missing activity. https://mailman.ntg.nl/pipermail/ntg-context/2022/date.html

Re: [NTG-context] What to do when ConTeXt not revealing the error details?

2022-10-30 Thread Gavin via ntg-context
Hi Joel, I get this error frequently when I forget to stop an environment, for example a \startsection with no \stopsection or a \startplacefigure with no \stopplacefigure. This freqeuntly doesn’t cause an error because the engine is happily packing my entire book into a margin figure. See if

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-21 Thread Gavin via ntg-context
Hi Hans, > I'll look into it (with Mikael as some relates to math) once you're done > playing and provide suggestions and tests. I’m done playing. Below are tests and suggestions. Sorry it has taken so long for me to put this together. Tests I attached two test files. The first,

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-21 Thread Gavin via ntg-context
Hans, I made a small mistake in the phys-dim.mkxl file I sent you. I removed a % at the end of lines 469 and 485. Without the %, using alternative=text causes extra space before the unit. A corrected phys-dim.mkxl is attached. Gavin phys-dim.mkxl Description: application/applefile

[NTG-context] Formula has excess vertical spacing when in two column itemize

2022-10-21 Thread Gavin via ntg-context
Hi List, I am getting better at adjusting the space in enumerations, but I just put a formula inside an enumeration, and the formula’s vertical spacing became excessive. I’m not sure how the enumeration caused this problem. \starttext Evaluate the following derivatives. \startitemize[n,

Re: [NTG-context] Spacing in \unit

2022-09-25 Thread Gavin via ntg-context
list! Gavin (I sent the above message to Hans, but failed to cc the mailing list. Sorry if some of you get this twice.) > On Sep 25, 2022, at 9:19 AM, Hans Hagen wrote: > > On 9/25/2022 3:30 PM, Gavin via ntg-context wrote: >> Hello list, >> I have a few questions

[NTG-context] Spacing in \unit

2022-09-25 Thread Gavin via ntg-context
Hello list, I have a few questions about space produced by the unit command. Consider this MWE \starttext \unit{3.00e8 kg m/s} $\unit{3.00e8 kg m/s}$ \stoptext The dot between “kg” and “m” has different spacing depending on whether the \unit command is in text or math mode. I think that the

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
Hi list, I have been trying to understand the workings of the \unit command, which is producing strange spacing in math mode. In an effort to be more systematic, I began by investigating the related \digit command. \digit works well in text, but in math mode the comma separators produce

[NTG-context] Dimension atom in math? (was: Spacing in \unit)

2022-10-12 Thread Gavin via ntg-context
Hi List, I am trying to improve the spacing produced by the \unit command. I have solved three of my four issues by modifying phys-dim.mkxl, but the fourth issue has me stumped. Consider this example: \showmakeup[mathglue] \mathspacingmode=1 \starttext \startformula \unit{1.23e5 kg m^2/s^2}

Re: [NTG-context] Spacing in \unit - degrees

2022-10-12 Thread Gavin via ntg-context
Hi Alan > On Oct 12, 2022, at 5:55 PM, Alan Braslau via ntg-context > wrote: > > \unit{135℃} adds a space after the digits 135. > I do not believe that this is correct > (for ℃ is *not* a "real" unit, unlike \unit{408.15 K} which *is* a real > unit). According to “Scientific Style and Format:

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Gavin via ntg-context
Hi Max, Alan, Bruce, Hans, et.al I solved my four issues with \unit spacing. In the process, I prevented unwanted line breaks and removed an overzealous backspace before division symbols. Below is a MWE that shows all of these issues, as well as pictures of the result with the unmodified

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Gavin via ntg-context
Hi Max and Rik > On Oct 12, 2022, at 4:49 PM, Max Chernoff wrote: > > This new output looks *much* better than the old one, thanks! Thank you! > My only comment is that the spacing around the multiplication sign looks > a little too tight to me. The original spacing was probably too large, >

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Gavin via ntg-context
Hi Oli, > Thank four your effort. I found out, that the following definition of a new > unit, i called it SI, results also in a correct spaceing in the math > environment: > > \defineunit[SI][alternative=text] > > It seems, that the option alternative=text solves the problem with no spaces >

[NTG-context] \text{...} inside \sqrt is tiny

2022-10-13 Thread Gavin via ntg-context
Hi List, When I use text inside a radical, the text is script-script size. $\text{Radius} = \sqrt{\text{Area}/\pi}$ It should be normal size. Any ideas for a fix? I stumbled on this issue when working with \units, but it is not specific to units. Thanks! Gavin

[NTG-context] Spacing in \unit

2022-10-08 Thread Gavin via ntg-context
Hi list, I made a small example with all of the issues I am trying to fix for the \units command. The first formula below uses the \unit command, but produces strange spacing. The second formula produces the desired spacing, without using the \unit command. \showmakeup[mathglue]

Re: [NTG-context] synctex problem

2022-10-15 Thread Gavin via ntg-context
Hi Alan, I have an almost identical set-up (M1, MacOS12.6, TexShop, useAlternatePath, useConTeXtSyncParser). One important difference, I use sync method: SyncTeX (TeX ≥ 2010) I’d recommend trying that. There are some other differences in my setup that probably are not important. At the

Re: [NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Gavin via ntg-context
Hi Hans, > can you try the latest binary fron the farm (remake th eformat) I haven’t done that before, so I don’t know. I’d certainly need a link, and I might need some guidance if I run into trouble. I’m happy to try. Gavin

[NTG-context] Accent wrecking \mathboxanchored

2022-12-22 Thread Gavin via ntg-context
Hi Hans, Mikael and list, I’ve been testing the connectors, which work great with the latest upload. One problem I found: an accent in the \mathboxanchored causes a "Missing number, treated as zero” error and no output. MWE below. Thanks for all of the improvements. I’m making all kinds of

[NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Gavin via ntg-context
Hi Hans, MIkael and list, I got an unexpected result when I asked for a \mathboxanchored, but then did not use it with a connector. I expected the \mathboxanchored contents to be typeset as usual, without a connector. Instead I got “ ::: c3” added into the formula (“c3” was the anchor’s tag).

Re: [NTG-context] Problem with latest version ?

2023-01-06 Thread Gavin via ntg-context
Hi Hans, > On Jan 5, 2023, at 5:49 AM, Hans Hagen via ntg-context > wrote: > On 1/5/2023 11:40 AM, Gavin via ntg-context wrote: >> ...I can try with the latest LMTX later today. The test file works with >> TeXLive 2022 >> Gavin >> TEST FILE: >>

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Gavin via ntg-context
Hi Alex, > Is there a way to "continue" an MP figure? Like keeping the axes, etc. and > just adding code to the figure? Buffers might be what you want. From the MetaFun manual: > Buffers can be used to stepwise build graphics. By putting code in multiple > buffers, you can selectively process

Re: [NTG-context] Problem with latest version ?

2023-01-07 Thread Gavin via ntg-context
-tikz-pgfplotstable.tex Description: Binary data > On Jan 6, 2023, at 9:09 AM, Fabrice Couvreur via ntg-context > wrote: > > Hi, > From my side, after the last update, it works. > Thank you Hans. > Fabrice > > Le ven. 6 janv. 2023 à 14:17, Gavin via ntg-context a > écrit

Re: [NTG-context] Problem with latest version ?

2023-01-04 Thread Gavin via ntg-context
Hi List, I could not figure out the right spot for the files m-tikz-pgfplots.tex and m-tikz-pgfplotstable.tex. I don’t currently have files with those names anywhere, and files with similar names and contents appear in a couple different places. I had to put off sorting it out until I had some

Re: [NTG-context] Problem with latest version ?

2023-01-05 Thread Gavin via ntg-context
Hi Hans, > On Jan 5, 2023, at 12:39 AM, Hans Hagen via ntg-context > wrote: > > On 1/5/2023 2:40 AM, Gavin via ntg-context wrote: >> Hi List, >> I could not figure out the right spot for the files m-tikz-pgfplots.tex and >> m-tikz-pgfplotstable.tex. I don’t c

[NTG-context] pgfplots module wrecks in latest

2022-12-29 Thread Gavin via ntg-context
Hi List, The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture \stoptext

Re: [NTG-context] \hpos in math

2022-12-06 Thread Gavin via ntg-context
Hi Hans, > On Dec 6, 2022, at 2:15 AM, Hans Hagen via ntg-context > wrote: > On 12/6/2022 12:39 AM, Gavin via ntg-context wrote: >> 1) Is there a mathematics version of \hpos? The contents of \hpos are set as >> text, even when \hpos is in mathematics, so I wrote an

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Gavin via ntg-context
ntg-context > wrote: > > On 12/7/2022 1:42 PM, Gavin via ntg-context wrote: >> Hi List, >> I solved my original problem 2, allowing me to reuse the same \hpos labels >> in different equations without interference. I added an equation counter and >> set up my custom ma

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Gavin via ntg-context
Hi Uschi, I use the MetaFun features of ConTeXt to cross out stuff. % Cancel command for use in equations. \startuniqueMPgraphic{cross out} picture cross; cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle

[NTG-context] TEXpage cropping math

2022-12-05 Thread Gavin via ntg-context
Hi List I’m having trouble with \startTEXpage cropping off tops and bottoms of equations. For example. \startTEXpage $E_1$ \stopTEXpage Produces: TEXpage.pdf Description: Adobe PDF document Any suggestions?

Re: [NTG-context] TEXpage cropping math

2022-12-05 Thread Gavin via ntg-context
Hi Pablo and Mikael, offset=none does exactly what I need. Thank you, both! Gavin > On Dec 5, 2022, at 11:40 AM, Pablo Rodriguez via ntg-context > wrote: > > On 12/5/22 13:42, Mikael Sundqvist via ntg-context wrote: >> Hi, >> >> One usually need an offset. > > ... or even none (which

[NTG-context] Mathematical MetaFun Mania

2022-12-14 Thread Gavin via ntg-context
Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has examples of almost everything I need. It’s a lot, but

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Gavin via ntg-context
Hi Hans and List, >> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value >> pairs like I do with \setMPpositiongraphic? > see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Gavin via ntg-context
Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine with ConTeXt ver: 2022.12.07 20:24 LMTX fmt:

[NTG-context] \hpos in math

2022-12-05 Thread Gavin via ntg-context
Hello List, I am working on a project which combines graphics with formulas, like this: hposQuestion.pdf Description: Adobe PDF document My code for creating this formula is attached. It works well, but I have a couple of questions that could make it work better. 1) Is there a mathematics

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Gavin via ntg-context
Hi List, I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label internally. I tried to do this with a regular ConTeXt

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
On Mar 14, 2023, at 10:08 AM, Alan Braslau via ntg-context wrote: > Right now, \unit{1 mm-1} and \unit{1 m m-1} give the same result: > inverse millimeters (whereas the second should be m•m^{-1}…) > > Alan Alan, I’d like to better understand how the \unit{} command works and why those

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
I wrote > Perhaps we could use a \registershortcut command that does not get the > “lower" treatment. without seeing that Hans had already read my mind and provided: \registerunitshortcut [unit] [C=coulomb] That should work great. Thanks! Gavin

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
Hi Alan, Hans, and List, > On Mar 13, 2023, at 8:10 PM, Alan Braslau via ntg-context > wrote: > On Mon, 13 Mar 2023 15:55:50 -0600 Gavin via ntg-context > wrote: >>> you can look at phys-dim and see plenty of short and long keys and >>> making all case inse

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
On Mar 14, 2023, at 3:32 PM, Hans Hagen via ntg-context wrote: > On 3/14/2023 7:14 PM, Alan Braslau via ntg-context wrote: >> On Tue, 14 Mar 2023 12:03:23 -0600 >> Gavin wrote: >>> I’d really like one of the acceptable forms to be the form prescribed >>> by Le Système international d'unités >

[NTG-context] Spacing problem around decimal point

2023-03-25 Thread Gavin via ntg-context
Hi List, I’m getting strange spaces around some decimal points after a clean LMTX install. MWE: \starttext \startformula v = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This produces the result attached below. The 1.32 looks fine, but the next two numbers have excess space around

[NTG-context] \definemathfence broken in latest

2023-03-25 Thread Gavin via ntg-context
Hi List, The command \definemathfence seems to not be working as it did in other recent LMTX. MWE: \definemathfence[abs][bar][command=yes] \starttext \startformula \abs{v} = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This causes an error, complaining that \abs is undefined.

[NTG-context] \unit parser ignoring case, in some cases.

2023-03-09 Thread Gavin via ntg-context
Hello list, I continue to work with the \unit command, and found some behavior very surprising. When I try to register units with capital letter names, it breaks lowercase metric prefixes. For example, registering C=coulomb, K=kelvin and N=newton breaks metric units cm, kg, and ns. The file

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-13 Thread Gavin via ntg-context
> On Mar 13, 2023, at 3:44 PM, Hans Hagen via ntg-context > wrote: > > On 3/9/2023 2:04 PM, Gavin via ntg-context wrote: >> \startformula >> \unit{3 meter} \qquad >> \unit{6 Meter} \qquad >> \unit{3 mEtEr} \qquad >> \stopformula

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
Hi Hans, Alan, Mikael, and other Feynman fans, I do think Alan's node module could do a good job with this. > It would be nice to have a not too complicated syntax, but maybe just have > some of the > "shapes" of paths available. So, which ones are actually needed? I think the needed shapes

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
Hi Aditya, Thanks for the suggestions. I hadn’t thought to dig into the MetaPost produced when typesetting a LaTeX document. > In principle, it should be easier to adapt the feynmp.mp (attached) code to > make it work with LMTX. This sounds like a good summer project for me. I’ll be doing a

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
Hi Aditya, > Have you tried using feynmp (the metapost macros) directly instead of the > LaTeX wrapper? Can you create an example that works with metapost but fails > in ConTeXt? No, I’m not sure how to do that. I looked at the manual, and it has some examples where new styles are written in

Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
Hi List, I am still interested in knowing if there is a good way to do nuclear reactions using \chemical. But I found something that works for my current needs: \define[1]\Sr{\mathord{\rm Sr}__{38}^^{#1}} \define[1]\Xe{\mathord{\rm Xe}__{54}^^{#1}} \define[1]\U{\mathord{\rm U}__{92}^^{#1}}

[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
Hi list, I’m writing nuclear reactions. When add prescripts to atomic symbols with two letters, (Be, Sr, Xe, etc.) the prescripts split the atoms! (See output below.) \starttext Text: \lohi[left]{4}{10}Be. Reaction: \startformula {\rm U}^^{235}__{92} + n \rightarrow {\rm Sr}^^{94}__{38} +

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Gavin via ntg-context
Hi Willi, What fun! I think I found a couple math items to correct. 1) The second line of the tables at the top of page 2 should be: 1000' 100, 10, 1; 8000, 400, 20, 1 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 1). This will give a three digit Kaktovik

Re: [NTG-context] Spacing problem around decimal point

2023-03-28 Thread Gavin via ntg-context
Hi Hans, Jim, Bruce, et.al. Han’s asked me > can you pick up a binary from: > > https://dl.contextgarden.net/build/luametatex/work/ > > and test it? Maybe. I picked up the binary, but testing it is not quite as easy as it might be due to the MacOS security settings. I’ll see what I can do,

[NTG-context] Feynman Diagrams

2023-04-11 Thread Gavin via ntg-context
Hi List, I’m looking for a way to include Feynman diagrams in my ConTeXt documents. I’ve used feynMF/feynMP and TikZ-feynman with LaTeX in the past, but it doesn’t look like either works directly with ConTeXt. My diagrams are pretty basic (example below). Does anyone have a ConTeXt solution

Re: [NTG-context] regular online meet-up

2023-02-08 Thread Gavin via ntg-context
Hi List, I will attempt to join the online meet-up today. I'm in Fort Collins, Colorado, so you might notice some lag in my interactions. (And if I’m still in my pajamas, I have a good excuse.) I’d like to meet some other members of the ConTeXt community. If there is time in the discussion,

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Gavin via ntg-context
Hi fellow Tik-Z users, Tik-Z, including circuitikz, is working for me after adding two files from Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX fmt: 2023.3.14). I do not know if these files are of any use with the current versions, but I am quoting a list email from

[NTG-context] TikZ \shade broken

2023-06-17 Thread Gavin via ntg-context
Hi List, First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That was a show-stopper on my Mac. Now that I can use TikZ again, I am running into a problem with the \shade command. Below is a small working example from the TikZ manual [pp.39-41]. The first tikzpicture is

Re: [NTG-context] TikZ \shade broken

2023-06-26 Thread Gavin via ntg-context
Fixed in the latest. Thanks Hans! > On Jun 19, 2023, at 5:57 AM, Gavin via ntg-context wrote: > > Hi Hans, > >>> I am running into a problem with the \shade command... >>> tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword

Re: [NTG-context] TikZ \shade broken

2023-06-19 Thread Gavin via ntg-context
Hi Hans, >> I am running into a problem with the \shade command... >> tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword >> expected, likely 'direction' >> \pgfsys@vertshading >> #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa >> =\hbox dir >>

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-20 Thread Gavin via ntg-context
Hi Uschi, I think there are two separate issues. The first is possible trouble with the install from the ConTeXt garden. (Maybe this is related to “startup error : no format file given, quitting.”) The second is that you call PdfLaTeX to typeset your document, even though I know that is not

[NTG-context] Re: New upload doesn't work on macOS 10.13.6

2024-02-18 Thread Gavin via ntg-context
Hi Ralf I keep TeX Live on my Mac. It’s a great fall-back when I have new version surprises with ConTeXt. tug.org/mactex/ TeX Live has a friendly installer. Updates are easy with TeX Live Utility. TeX Live has a version of ConTeXt from last May, and it’s quite a good version, in my

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-19 Thread Gavin via ntg-context
Hi Uschi, The log file is certainly helpful. It tells me two things. First, you have TeX Live 2023 installed. TeX Live 2023 has a good version of ConTeXt. Unless you need specific, newer ConTeXt features, you can use the ConTeXt version in TeX Live that you already have. Second, when you

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Gavin via ntg-context
Hi Hans, Thanks for all the suggestions! I am going through them carefully. > - in mp you can do this > > vardef theglobe(expr lat, lon) = >for i = 1 upto lua.mp.makeglobe(lat, lon): >(lua.mp.getglobepath(i)) >endfor >cycle > enddef ; Does "" allow a disconnected

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Gavin via ntg-context
Hi Hans, > On Dec 18, 2023, at 3:12 AM, Hans Hagen via ntg-context > wrote: > > about names: > > how about > > t-luageo.lmt > t-luageo.mpxl > > so that one knows what comes with the module (we do the same with s-* modules) "t-luageo.lmt" is fine, but "t-luageo.mpxl" breaks the module. I

  1   2   >