Re: [NTG-context] Formulas include chapter number
Hi Marco, It's a bug, I think. The keys that control this are way and prefixsegments: \setupformulas[way=bychapter, prefixsegments=chapter] way=bychapter means 'resume numbering at each chapter' prefixsegments=chapter means 'precede each formula number with the chapter number': chapter.formula Right now, as soon as I set 'prefixsegments' to 'section' or 'chapter' or a number, the prefix segments disappear. Ditto when I set 'way' to anything. This suggests that it is a bug. Is it indeed, Hans? I've attached a test file for you. You can use \setupformulas[prefixsegments=] to solve your problem if you never want prefixes; that also specifies the correct behaviour once the bug is fixed. Cheers, Sietse test.tex Description: TeX 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 ___
Re: [NTG-context] Math and units
Am 04.10.2012 um 11:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : > Hello, > > which is the most correct way to display units (here: kN) in math formula? > > > \starttext > \startformula >a = 210 kN % "kN" is shown like a variable (here: like 'a'), which is > unwanted > \stopformula > > \startformula >a = 210 \unit{kN} % No unit is displayed (?!) > \stopformula > > \startformula >a = 210 \text{~kN} % '~' required?, ugly way > \stopformula > \stoptext > The units code doesn’t know how to deal with “N” but you can use the full name of the unit (can also be lowercase) or “n” which is also accepted. \starttext \startformula a = \unit{210 kilo Newton} \stopformula \startformula a = 210 \unit{kilo Newton} \stopformula \startformula a = 210 \unit{k Newton} \stopformula \startformula a = 210 \unit{kn} \stopformula \stoptext 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Math typesetting problems
Hi all, I've run into a couple of problems with math typesetting. (I'm using the latest ConTeXt standalone beta.) The following doesn't print [x,x] at all: \startformula [x,x]_t = x \stopformula It can be fixed by using \left[x,x\right]_t, but I find the behaviour weird. Another problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \startformula -\frac{e^{\frac{4}{5}}}{4} \stopformula Janne ___ 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] colored backgrounds in displayed math
Wolfgang Schuster wrote: > Hi Sanjoy, welcome back Thanks! It's absurdly enjoyable but exhausting raising a small child (22 months old)...and we have only one so I don't know how people with two or more children manage even to tie their shoes. >> In displayed math I was trying to highlight a piece of a formula >> using a gray background. > Use backgroundoffset, not frameoffset. Ah! Because I used frame=off, I did not notice that frameoffset=5pt was correctly moving the frame (rather than the background) outward. So, thanks for the recipe; it works perfectly, I've wikified at <http://wiki.contextgarden.net/Framed>. -Sanjoy `Until lions have their historians, tales of the hunt shall always glorify the hunters.' --African Proverb ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mframed, setupinteractions
On Mon, 11 May 2009, Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B + \mframed[frame=off,background=color,backgroundcolor=gray]{C} \stopformula \stoptext the question is ... what are reasonable defaults ... maybe set offset to 0 or use \inframed in display as well ... needs some testing and discussion Aside for "inline" framed boxes for math, it will be nice to support "display" framed boxes. For example, see the attached image from the empheq package for latex (I know Hans doesn't like to read big pdfs from latex packages, hence the attached image ;-) If framed could be incorporated into formula, we could easily create many fancy boxes.<>___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Insufficient symbol fonts error
I am getting some puzzling errors when I try to use the Greek fonts in math formulae (to represent Greek numerals as written in mss.) In a short file, both \overbar{\grk{kj}} and $\overline{\hbox{\grk{kj}}}$ work as expected, even when they occur in Greek text. But in a long, complicated file with lots of Greek etc. and the same environment file, I get ! Math formula deleted: Insufficient symbol fonts. \stopmathmode ->$ \dodounderbar ...nderbar {-\dimen 0}{\dimen 2}{#1} \egroup \processisolatedwords ...dwordsfalse #2{\unhbox 0} \else \isolatedwordstrue \... \redounderbar ...sisolatedwords {#2}\dodounderbar \egroup l.1 ...-n'o\-menocka`i pr'wtwn \rescanwithsetup ...\scantokens {#2\ignorespaces } \egroup l.81 ...wn >embol'imwn ep'ages\-jai.} [8.44] \grk {<'ojen o>u de... I am note really sure what this error message means or how to deal with it. Any suggestions will be gratefully received. I am running the latest ConTeXT on the latest teTeX distribution. Best, Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Inconsistent behaviour of placefigure[left] for math and text
Hi, When I use \placefigure[left] with some test, the text wraps around the figure. But if the paragraph, contains some formula, it does not wrap even after the figure is complete. How can I prevent such a behaviour. Example \startbuffer[figure] \placefigure [left] {}{} \stopbuffer \startbuffer[test] \dorecurse{3}{\input knuth} \stopbuffer \startbuffer[mathtest] \dorecurse{3}{ This is a dummy paragraph to support a little bit of math to show the trouble with placefigure \startformula a = b \stopformula This is a dummy paragraph to support a little bit of math to show the trouble with placefigure This is a dummy paragraph to support a little bit of math to show the trouble with placefigure} \stopbuffer \starttext \getbuffer[figure] \getbuffer[test] \page \getbuffer[figure] \getbuffer[mathtest] \stoptext Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \AA cannot be uesed in math mode?
2007/4/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Aditya Mahajan wrote: > On Thu, 26 Apr 2007, [EMAIL PROTECTED] wrote: > > >> Hi, >> >> I want to get a sign of angstrom in an math formula, here is my example: >> % >> \starttext >> $\AA$ >> \stoptext >> > > $\Angstrom$ > > Also see the units modules for proper typesetting of units. > > Aditya > Thanks. Since I use ConTeXt to typeset math formulas frequently, I want to know more about this. Why \AA doesn't work? \AA is defined in plain TeX, and I think all plain TeX macros should work in ConTeX. Am I right ? Regrads, xiaojf Hi, you should also use the \text macro to write normal text in math mode. \starttext $$\text{\AA}^{\text{\AA}}$$ $$\Angstrom^{\Angstrom}$$ $$\text{\Angstrom}^{\text{\Angstrom}}$$ \stoptext 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MathML in Context
>> Hi, >> >> I've been trying to learn how to insert MathML in >> Context file. I found many examples of how MathML >> code should look like, formula or presentational, >> but no example on how to actually insert it >> in Context. I tried \math{ mathml stuff} >> and it didn't work. Can you guys point me to >> an example? >> > Have you looked at the mathml and xml manuals at pragma-ade's website? > > Aditya > Yes. Some of them show examples of MathML code and how Context would deal with them. But I couldn't find one that shows how to insert MathML inside a Context document. I'm probably missing something just in front of my face, but I've looked many times already and can't find that. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Aligned numbered math formulas
Hi, On Thu, 14 Aug 2003, Tobias Burnus wrote: > On Thu, 14 Aug 2003, Holger Schöner wrote: > > Thanks, Tobias! This works for me, if I place a "\placeformula" before > > formulas enclosed by "$$". Funny, though, that I get an error if I instead > > enclose the formula with "\startformula ... \endformula": > Here it works with \startformula \stopformula [stop not end]. All right, I used \stopformula ... And I just found out the reason, it seems: I used \setupformulae[align=right] Then, if I use $$ instead of \startformula, I get centered formulas anyway. If I remove the \setupformulae, then I can also use \startformula ... So in the moment I have resolved to using centered formulae. Best regards, -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hi, On Thu, 14 Aug 2003, Tobias Burnus wrote: > On Thu, 14 Aug 2003, Holger Schöner wrote: > > Thanks, Tobias! This works for me, if I place a "\placeformula" before > > formulas enclosed by "$$". Funny, though, that I get an error if I instead > > enclose the formula with "\startformula ... \endformula": > Here it works with \startformula \stopformula [stop not end]. All right, I used \stopformula ... And I just found out the reason, it seems: I used \setupformulae[align=right] Then, if I use $$ instead of \startformula, I get centered formulas anyway. If I remove the \setupformulae, then I can also use \startformula ... So in the moment I have resolved to using centered formulae. Best regards, -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re[2]: [NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
Monday, December 8, 2003 David Munger wrote: >> What version of ConTeXt are you using? > texexec says: > ConTeXt ver: 2003.1.31 fmt: 2003.10.4 int: english mes: english > I'm using the version included in debian unstable's tetex package. That's pretty old. May I suggest an upgrade? (It wouldn't have fixed the problem, and actually created a couple of new ones, but at least we would have been using the same versions ;)) >> * formula (sub)numbering needs a good cleanup in ConTeXt (just >> like math support in general ...). I need to discuss the thing >> with Hans before being able to fix the thing in amsl and/or >> nath. > I just started using ConTeXt for writing scientific papers. Before I was aware > of the nath module, writing math was tedious. But now, in my opinion, your > nath module does the trick pretty well. > Thanks for helping, Thank you too :) -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Known nath bugs?
Hello all, is there a list of know nath bugs somewhere on the web? I tried to find one using Google, but unfortunately without success. The reason I'm asking this is that I'm encountering some problems with the module and would like to know if they are common or if it's related to my configuration. First of all, using the units module together with nath doesn't seem to work - for instance, $1\Micro\Coulomb$ works as expected without nath, but produces the error message "Please don't say \def cs{...}, say \def\cs{...}" when used together with nath. I also thought that delimiters like ( or [ should automatically adjust to the formula they contain, but (\sum_{something} \frac{something}{something}) only produces standard parentheses. Commands like \lbrace or \lbrack work as expected, though. If these problems are unknown, I can post a small example file and my logfile. Best regards, Sebastian ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \mathstrut in \underbrace and nath
Christopher Creutzig wrote: Nikolai Weibull wrote: ! Undefined control sequence. \dodosmash [#1]->\edef \@@smash {#1}\futurelet \nexttoken \dododosmash \relbar ->\mathrel {\smash -} Uh-uh. The problem is clear: \inlinemath tries (in the definition of \inlinemath@) to expand the formula (in the sense of TeX macro expansion). \longrightarrow cum suis are, however, not expandable in ConTeXt. Now, I do believe the xdef is a bug in nath, but the following workaround does work: \protected\def\longrightarrow{\relbar\joinrel\rightarrow} Hans, do you have a command that sort of changes an existing definition as if \protected had been used in the first place? first of all, \protected is not what you think it is; i had a \protected before etex was around; the context name is \unexpanded \let\unprotectedlongrightarrow\longrightarrow \unexpanded\def\longrightarrow{\unprotectedlongrightarrow} Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Updated math modules
Hello Giuseppe, Thanks for your good work. Sorry for reminding this bug to you, but it's the only reason why I can't use nath even though I wish a lot. About the problem unicode characters in toc. Ref.: http://www.ntg.nl/pipermail/ntg-context/2004/005306.html I attached a minimal example unicode file. You'll get garbage instead of the expected the "e acute" on the word "MathÃmatiques" in the table of contents. No matter wheter I use the amsl module or not, I get the following entry in my tuo file: \listentry{section}{1}{1}{Math^^c3^^a9matiques}{2::0:0:1:0:0:0:0::1}{1} Moreover, if you replace [nath] with just [amsl], you'll get different alignment of the formula. BTW: my TeX doesn't seem to like DOS-style newlines in t-amsl.tex, so I had to convert them to Unix-style ones. David \usemodule [nath] \enableregime [utf] \starttext \completecontent \section{MathÃmatiques} \[ f(x)= \frac 1x \] \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize error in setbodyfont
� wrote: Hi This error massage in \startitemize[1, packed] with \setbodyfont[22pt]. this is solved in the current release you can try \definebodyfontenvironment[22pt] (funny, this \ is a backslasg but shows asn an crossed W in my mail agent) How can I do systems : begin file paint at line 11 title : - \midaligned {자전거 폐기안내} ! Math formula deleted: Insufficient symbol fonts. \mathematics #1->\relax \ifmmode #1\else $#1$ \fi \dodosymbol ...bol \csname \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi \relax \dodosymbol ...name \??ss :#1:#2\endcsname \relax }\relax \dosymbol ...fnosymbol \redosymbol \currentsymbol \fi \fi .. l.19 \item ? 茶穗六? ? Terminating on signal SIGHUP(1) [파란1GB 메일] 개성있는 서명,비즈니스용 명함~ 파란명함으로 쏴주세요! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \vec in zfaqcmrm font
Hi, I do not have this font, so cannot really help. Wild guess: some of the font parameters are wrong, perhaps because you are using a constituent of a virtual font directly instead of the composed virtual font it is a part of. But I'm only guessing... Greetings, Taco Radhelorn wrote: Hello! Sorry for being so active lately but I've run into problem after problem... This formula $\vec{}\vec a\vec A$ fives first vector at baseline, second a little higher and third somewhere at the middle of letter A. \showfont shows nice vector at 7e in right position but \showmathcharacters shows vec at baseline. I'm using zfaqcmrm from pscyr package. I don't know where to start looking for source of problem. Is there a way to manualy adjust vector position? Other symbols seem to work well -- problem just with \vec. In LaTeX all works well too. Thanks for your patience. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Wrong prefix in cross references to formulas in external document
Dear Hans and all contributors, I really appreciate ConTeXt for the right way to obtain high quality documents. I'm a theoretical physicist and I'm going to write a book. I think ConTeXt is the right choice to work with a number of formulas, figures and cross-references. The visual quality of formulas is better than in regular LaTeX. The new feature with formula autosplitting looks also very promising. For me it is important to obtain the high quality without a lot of manual tweaks of each formula for each given document format and figure placement. However, I have found a problem with references if I compile one component only. The references to formulas in other components have wrong prefixes, e.g. (2.1) instead of (3.1). Needless to say, the right formula references are very important. I started looking into this issue. The references to other components are taken from the whole product as from an external document. It turned out that this is a general problem with references with prefixes to external documents. The prefix is stored in a tuc file as a reference to a section as a sequential number of the header in the document. As a result, the prefix from the external document is calculated using the structure of the current document. Here is the MWE, which consists of two files: foo.tex: \defineenumeration[remark][prefix=yes, prefixsegments=chapter:section] \starttext Equations: \in[eq1], \in[eq2], \in[eq3], \in[eq4] Sections: \in[sec1], \in[sec2], \in[sec3], \in[sec4] Chapters: \in[chap1], \in[chap2], \in[chap3], \in[chap4] Remarks: \in[remark1], \in[remark2] \startbodymatter \chapter[chap1]{Chapter} \placeformula[eq1]\startformula x = y\stopformula \chapter[chap2]{Chapter} \section[sec1]{Section} \section[sec2]{Section} \placeformula[eq1]\startformula x = y\stopformula \placeformula[eq2]\startformula x = y\stopformula \stopbodymatter \startappendices \chapter[chap3]{Chapter} \section[sec3]{Section} \placeformula[eq3]\startformula x = y\stopformula \section[sec4]{Section} \startremark[remark1]\stopremark \placeformula[eq4]\startformula x = y\stopformula \startremark[remark2]\stopremark \chapter[chap4]{Chapter} \stopappendices \stoptext bar.tex: \starttext Equations: \in[foo::eq1], \in[foo::eq2], \in[foo::eq3], \in[foo::eq4] Sections: \in[foo::sec1], \in[foo::sec2], \in[foo::sec3], \in[foo::sec4] Chapters: \in[foo::chap1], \in[foo::chap2], \in[foo::chap3], \in[foo::chap4] Remarks: \in[foo::remark1], \in[foo::remark2] % any chapters and sections here \stoptext It is expected to have the same first page on these documents: Equations: 1.1, 2.2, A.1, A.2 Sections: 2.1, 2.2, A.1, A.2 Chapters: 1, 2, A, B Remarks: A.2.1, A.2.2 However, the bar.tex produces wrong prefixes to formulas and remarks. The output depends on the document structure of bar.tex, not foo.tex. I started looking into the source code. Thanks to lua, it is not a big deal to track the problem. The prefixdata is complemented by the sectiondata after the loading the tuc file. So, the question is: is it possible to store the full prefixdata with all necessary prefix numbers in the tuc file? Here is my proposal to change the source code: --- strc-lst-old.lmt2023-01-29 11:30:15.610309948 +0300 +++ strc-lst.lmt2023-01-29 12:10:08.864228923 +0300 @@ -266,6 +266,16 @@ if r and not r.section then r.section = structures.sections.currentid() end +-- store sectiondata in prefixdata (necessary for external files) +if t.prefixdata and r.section then +local sectiondata = structures.sections.collected[r.section] +if sectiondata then +for k, v in next, sectiondata do +t.prefixdata[k] = v +end +end +end +-- local b = r and t.block if r and not b then local s = r.section --- strc-ref-old.lmt2023-01-29 11:30:15.823643904 +0300 +++ strc-ref.lmt2023-01-29 12:07:45.697109862 +0300 @@ -2318,7 +2318,17 @@ if data then numberdata = lists.reordered(data) -- data.numberdata if numberdata then -helpers.prefix(data,prefixspec) +-- helpers.prefix(data,prefixspec) +-- use the actual numbers from prefixdata +local prefixdata = data.prefixdata +if prefixdata then +-- adapted from helpers.prefix (not sure) +if (prefixspec and prefixspec == no) or prefixdata.prefix == no then +prefixdata = false +end +sections.typesetnumber(prefixdata,"prefix", prefixspec or false, prefixdata) +end +-- sections.typesetnumber(numberdata,"number",numberspec,numberdata) else local useddata = data.useddata After this small change, all the references are correct. However, I'm quite new to ConTeXt, so maybe here are some caveats. It would be great to fix the references to formu
[NTG-context] Example is not working
Dear List, i hope somone can help me. This litte example is from the wiki, i wanted to try \placeformula \placeformula[formula:aformula] \startformula y=x^2 \stopformula \placeformula \startformula \int_0^1 x^2 dx \stopformula After compiling there is no PDF Page . But this: Command Line: context.exe --synctex=-1 "mathtry.tex" Startup Folder: C:\Users\Administrator\Downloads\cont-tmf\doc\context\sources\general\magazines resolvers | formats | executing runner 'run luametatex format': luametatex --jobname="./mathtry.tex" --socket --shell-escape --fmt=C:/texlive/2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/formats/luametatex/cont-en.fmt --lua=C:/texlive/2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./mathtry.tex" --c:input="./mathtry.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" --c:texmfbinpath="C:/texlive/2023/bin/windows" system > system > ConTeXt ver: 2023.05.05 18:36 LMTX fmt: 2023.6.1 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name 'C:/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name 'C:/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl' system > 'cont-sys.mkxl' loaded open source > level 1, order 2, name 'C:/texlive/2023/texmf-dist/tex/context/texlive/cont-sys.mkxl' close source> level 1, order 2, name 'C:/texlive/2023/texmf-dist/tex/context/texlive/cont-sys.mkxl' system > files > jobname './mathtry', input './mathtry.tex', result './mathtry' fonts > latin modern fonts are not preloaded languages > language 'en' is active system > synctex functionality is enabled, expect 5-10 pct runtime overhead! open source > level 1, order 3, name './mathtry.tex' fonts > beware: no fonts are loaded yet, using 'lm mono' in box tex error > tex error on line 4 in file ./mathtry.tex: \textfont0 is undefined in ordinal, font id 0, character 63) \endgroup \Ustopmathmode \stopforceddisplaymath \egroup \ifcase \c_strc_formulas_frame_mode \else \strc_math_number_check_offsets \fi \ifcase \c_strc_formulas_frame_mode \strc_math_number_check \or \strc_math_number_check_outside \else \strc_math_number_check_inside \fi \str \endgroup \strc_formulas_endstrut \stopinnermath \afterdisplayspace \egroup \p_threshold \strc_formulas_place_number \strc_formulas_flush_number \dostarttagged \t!formulacontent \empty \dotagregisterformula \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative \v!formula \endcsname \dostoptagged \dostoptagged \nonoindentati \stopformula 1 \placeformula[formula:aformula] 2 \startformula 3 y=x^2 4 >> \stopformula 5 \placeformula 6 \startformula 7 \int_0^1 x^2 dx 8 \stopformula 9 10 Somewhere in the math formula just ended, you used the stated character from an undefined font family. For example, plain TeX doesn't allow \it or \sl in subscripts. Proceed, and I'll try to forget that I needed that character. mtx-context | fatal error: return code: 1 Many regards Uschi Hermann _ ConTeXt Compilation Report (Pages: 0) Errors: 0 Warnings: 0 Bad Boxes: 0 ___ 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: can we do binding correction?
There is some mention of a mechanism to get binding correction from an old article in the wiki about emulating the Koma TypeArea from LaTeX, you can see it in https://wiki.contextgarden.net/KOMA-scrartcl_Type_Area There is also some discussion about the subject in SE: https://tex.stackexchange.com/questions/38682/rules-of-thumb-for-size-of-binding-correction-bcor However, that discussion is 12 years old and the links referenced as sources are dead now. I have found with experience that a formula to calculate the binding correction for a saddle stitch binding, not more than 4 pages in a signature (only one fold in the middle) usually is 1/2 the circumference of a circle with radius *r*, being *r* the thickness of the paper times the amount of physical signatures. Something like: \frac{π \times t \times s}{2}. I have not tried a formula for more folds in a signature. The thing is, you have to recalculate for each signature fold. The innermost will have displacement zero, the second one a little bit more, the third a little bit more, and on and on until we reach the outermost signature. However, it is necessary to say that unless you are using a particularly thick paper, or you are using too many pages for a saddle stitch bind (my personal and professional opinion would be no more than 80, but better 60), the displacement is usually negligible. For example, let's say the paper thickness is 0.1 mm (which is 0.0001 meters) and there are 40 pages in 10 signatures. The radius would be 0.0001 meters per signature * 10 signatures = 0.001 meters. Then, half the circumference would be 1/2 * 3.14159 * 0.001 meters ≈ 0.0016 meters or 1.6mm at the last signature. Unless there was a displacement of more than, say, 4 mm, I wouldn't worry too much about it. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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] startitemize bad with columns
On 9/21/2013 1:14 PM, Xan wrote: By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column. How can I force that number of itemize and the formula will be in the same column: Simplifiqueu (potser sigui conveninent factoritzar el nombres més grans): \startitemize[a,columns] \item \startformula 5^{-3} \colon 5^4 \stopformula \item \startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \item \startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \item \startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \item \startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \item \startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \item \startformula \left(\frac{1}{2}\right)^{-2} \stopformula \item \startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \item \startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \item \startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \item \startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \item \startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopitemize \startformula goes into displaymode so is used in cases like \startmixedcolumns[balance=yes] \placeformula\startformula 5^{-3} \colon 5^4 \stopformula \placeformula\startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \placeformula\startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \placeformula\startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \placeformula\startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \placeformula\startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \placeformula\startformula \left(\frac{1}{2}\right)^{-2} \stopformula \placeformula\startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \placeformula\startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \placeformula\startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \placeformula\startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \placeformula\startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopmixedcolumns you can try \snappedmath {\displaystyle ...} instead - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}
On Tue, 09 Dec 2014 09:42:03 +0100, Wolfgang Schuster wrote: Am 08.12.2014 um 17:41 schrieb j. van den hoff : hi list, new to `context' and my first question to the list: how can I achieve the following (`latex') behaviour: \newcommand{\km}{\ensuremath{K_m}} We can now use \km\ in the body text as well as in this \begin{equation} \km = 1 \end{equation} display equation. in `context'? I've tried something like \def\km{\math{K_m}} We can now use \km\ in the body text but get sytnax errors when putting it in this \startformula \km = 1 \stopformula formula. but this fails for obvious reasons (as would using `$$' instead of `ensuremath' in the `latex' case). so what I need is a way of defining (potentially complex) math-expressions via some shortcuts/definitions/macros/abbreviations (whatever) which I can then use in the formula environment (or whatever it's called in `context'...) as well as in the body text. any help appreciated, In ConTeXt you have to write \define\km{\mathematics{K_m}} but there is not much to gain from this because you can enter math mode in the text with \m{…}. thanks for the response. in my silly example you are right (but even there it saves more than 50% of keystrokes). but I'm thinking of course of more tedious math expressions where it rapidly is handy to use such abbreviations -- the more so, if you have, say, 20 different ones appearing repeatedly in the document. but that would work with the `\def..\math' construct in the body text. what does _not_ work, then, is to use the definition in a display (\startformula...\stopformula) equation (which it _does_ in latex when isolating the math expression with `ensuremath'). so my real question(s) are: 1. is there any way to achieve the same functionality in `context' (expansion of math-containing defintion/macro/abbreviation in text _and_ math environment? if yes, how would I do this? 2. if no, would it be sensible (and feasible) to modify `\math' behaviour and to make it aware of whether it is called from within text or from within a display equation (in which case it should do nothing...), i.e. mkae it behave like `\ensuremath' in latex? thx/joerg 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Using Opera's revolutionary email client: http://www.opera.com/mail/ ___ 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] Purpose of backend (export=yes)
Hi Hans. ** Hans Hagen [2010-11-09 17:40:44 +0100]: > On 8-11-2010 3:52, Vladimir Lomov wrote: > >>I compiled them with context (mkIV, context minimal) and got >>ex{1,2,3}.export. I thought that I get not only the document content but >>also its logical structure (for example some markup for font switching). > > Bold in itself is not structure so best tag it as (e.g.) important: > > \setupbackend[export=yes] > > \definestartstop[important][style=bold] > > \starttext > > This is second example. > This time we try to use font switching mechanism: > This is normal, but this \important{one is bold}. Normal again. > > \stoptext So, if I want to get structured xml file I need to either redefine all usual command to be tagged (start/stop) and, that is more logical define my own tag commands. IMHO the use of 'important' as in example above is logical, the actual presentation of 'importtant' words could be define separately and in different ways (I like idea of xml+styles). >>Is it true that 'backend' only output document content not its logic >>strcuture? Does it work with math? The third example gives for math only >>not letters. > > Math becomes: > > This is inline formula > > > 𝐸 > = > 𝑚 > > 𝑐 > 2 > > > > . > > This is display formula > > > > >𝐸 > = > 𝑚 > > 𝑐 > 2 > > > > > E-er, yes. I don't see characters (my terminal use UTF8 and good font) even now. But I saw them in web intterface to ML (contextgarden because another shows something different). Also I saw tthem in Emacs. AFAIU, this is in private region of Unicode, these are _italic_ E, m and c. I thought that there should be letter from ASCII (codes < 127). >>I attached the resulted export files. >> >>P.S. Then I saw the announce about 'backend'& 'export=yes' I thought >>that context would be good tool for notes. I imagine that I could wrote >>a text file and make from it either pdf (for printing/screening) or html >>(for screening) or may be convert xml (using existing tools and >>methods) to other formats (rtf/odt/xhtml) that would contain math, >>images, tables. But seems that I was wrong or this will be in future >>of the backend? > > indeed it should be possible to use context that way and afaik the > export is already quite okay (you might need a recent luatex as > there have been issues with attributes in math mode that were sorted > out a while ago) Well, this were simple tests. I'll make more complex one in next weeks. Texts, with font switching, maths, images, tables. I want to have tool using which I could convert from one source to several formats (pdf, xhtml, rtf/odt). --- WBR, Vladimir Lomov -- Have a nice day! ___ 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] small caps italic and font switching inside math
On Thu, 29 Jun 2006, Mojca Miklavec wrote: > On 6/28/06, Taco Hoekwater wrote: >> Aditya Mahajan wrote: >>> Some catcode trickery might work. This is all I could manage. >> >> This does not work well, because >> >> HSO\low{4}\high{-} >> >> is not correct. > > True, but if I'm aware of it, I can use \lohi{4}{$-$} if needed, which > works even better in some cases, see below. Or use some more catcode trickery to ensure that - is equivalent to \mathematics{-} ;) > I converted the document from LaTeX and I didn't came to the idea of > using low and high (perhaps just because that's "not possible" > there). Latex is not all that bad :) It has \textsuperscript and \textsubscript (though most people still write 29$^\text{th}$ June rather than 29\textsuperscipt{th} June) > You could compare it to {\bf How to loose a guy in $10$ days}. > > I have a strange feeling that handling fonts in math is rather > limited, but no knowledge how to fix anything (just remembering that I > still don't know how to properly switch to bold math with some other > fancy font except with dirty tricks). The wrapping in \hbox is not that bad. A lot of math trickery happens inside a \hbox. The example on contextgarden (http://wiki.contextgarden.net/Bold_Math) is not too different from how bm.sty implements bold symbols in latex (which is the best bold math implementation in latex, AIUI). However, the \boldmath definition on contextgarden lacks 1. Use of pmb (poor man's bold) when a true bold character is not present. \boldsymbol{\sum} does not work. 2. Does not take care of the math spacing \formula{ a \boldsymbol{=} a } does not look correct. 3. Does not take care of delimiters \formula { \boldsymbol{\left(}\frac 1n\right)} does not work. 4. bm.sty goes into some trouble to define bold accents. So \bm{\hat}{a} produces a bold accent over a non-bold a. (I can not understand why would someone ever use that). Hans, why is [boldmath] not defined by default in all the typescripts? > I guess that it should be possible to remember the font before > switching to math and then switch to that font again, but that's all > black magic for me. A site on ConTeXt garden solves that for titles in > such a way that there's an additional command provided which also > appends bold to all the mathematics in titles, but that's useful for > titles only. It can be used everywhere. For example \def\myrmbf{\boldmath\rm\bf} {\myrmbf How to loose a guy in $10$ days} It will be nice if one could write \def\mybf{\boldmath\previousfont\bf} Maybe what is needed is a \beforemathswitch token set. Then one could do \appendtoks \boldmath to \beforemathswitch Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unconnected \mathboxanchored produces unexpected results
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). MWE and unexpected output below. Thanks, Gavin \starttext \startboxanchoring[+] \connectboxanchors[top][top][distance=1ex,arrow=no] {c1}{c2} %\connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} % <-- I decided not to use this connector, producing unexpected results. \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} \mathboxanchored[nucleus]{c2}{e}_{\mu} \mathboxanchored[nucleus]{c3}{e}^{\beta} = \frac{1}{\sqrt{2}} \bar\sigma^{\dot\alpha\beta}_{\mu} \stopformula \stopboxanchoring \stoptext anchors-002-copy.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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Math Formula Alignment
Hi, On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context wrote: > > Hi Hans, hi all, > > the alignment of formulas seems broken: > > \setuppapersize[A5] > \starttext > \setuplayout[textwidth=8cm] > \setupformulas[align=left] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=middle] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=right] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=left] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=middle] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=right] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \stoptext > > All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX > > Greetings Lutz Indeed, but align=flushleft and align=flushright seems to work. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Linebreak in formual
Hi, you can try something like \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} but it will not be too pretty with such a large sub-index to the sum. /Mikael On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal wrote: > > I have following formula > \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break > the line below Sigma. How can I achieve this because AFAIK it will work in > LaTeX? > > -- > Respect, > Shiv Shankar Dayal > ___ > 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 > ___ ___ 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] epub-mkiv-demo.epub
On 4/13/2015 3:37 PM, Piotr Kopszak wrote: ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79): Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''. we can probably catch that one epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML should either have an alt text attribute or annotation-xml child element. but this is crap .. i see no tex user adding an alternate to each formula in fact, the epub script has the option to turn the mathml into svg, this was added after google decided to kick out mathml (ok, we could push some svg into the annotation-xml i guess) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug with ConTeXt and pgfplot library fillbetween
Aditya Mahajan <mailto:adit...@umich.edu> 22. Oktober 2015 um 02:52 Hi, The following example fails: \usemodule[pgfplots] \usepgfplotslibrary[fillbetween] \starttext \startformula \left. a \right| \stopformula \stoptext with tex error > tex error on line 7 in file /private/tmp/test.tex: ! Missing \endgroup inserted \endgroup \Ucheckedstopdisplaymath \stopdisplaymath ...math \Ucheckedstopdisplaymath \par \ifvmode \ifcase \c_s... \strc_formulas_stop_formula ...native \v!formula } \dostoptagged \dostoptagge... l.7 \stopformula This is a weird bug. Only \left. \right| fails; \left| \right| works correctly. If I remove the fillbetween library, the error goes away. Any hints as to what is happening will be appreciated. The fillbetween library changes the catcode of the bar character. \starttext \the\catcode`| \usemodule[pgfplots] \usepgfplotslibrary[fillbetween] \the\catcode`| \stoptext You get the same error when you use \asciimode in your document. \asciimode \starttext \startformula \left. a \right| \stopformula \stoptext 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] strange output in math display mode
Dear Hans, After updating the minimal, I got a strange output of math display mode. Would you please check it? Here is an example. Best regards, Thank you. Dalyoung \starttext Here is a strange output of math formula. It is displayed correctly in text line, but is displayed strangely in math display mode. \blank Here is a correct output in text line. $\int_0^t B(s)\ dB(s) = \frac{1}{2} B^2(t) - \frac{1}{2} t.$ \blank But in the output of display mode, the location of the sub- super-script of the integral sign is not normal and the output of \type{ \frac{1}{2} B^2(t)} is wrong. \startformula \int_0^t B(s)\ dB(s) = \frac{1}{2} B^2(t) - \frac{1}{2} t. \stopformula \stoptext %% ___ 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] Strange behavior with Utopia fonts in math mode
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 17. April 2016 um 11:16 Hello, I compiled this file with a strange exit for mathematical formula. What do you mean with "strange exit"? What's missing in my file ? You get the necessary font when you use the "--fonts=mathdesign" for first-setup, e.g. sh first-setup.sh --fonts=mathdesign and your example can be reduced to (you can drop encoding=...) %% begin example \loadtypescriptfile[mathdesign] \definetypeface[mainface][rm][serif][palatino] [default] \definetypeface[mainface][ss][sans] [helvetica][default][rscale=auto] \definetypeface[mainface][mm][math] [utopia] [default][rscale=auto] \setupbodyfont[mainface,12pt] \starttext \input knuth \startformula f(x) = \sum_{i=1}^n a_i x^i \stopformula \stoptext %% end example There are a few mistakes in the output because the mapping from glyphs to unciode values for the math font has to be improved. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Nolimits not working with Unicode characters
> On 14 May 2016, at 01:25, Hans Hagen wrote: > installing and running the garden distribution is quite simple (as is > updating) .. there are less files too (so no big burden to have it alongside > tex live) With this installation, I get a strange bug: In the example below, the first integral gets ‘limits' in the displayed formula, as though ‘nolimits’ has not been defined. It works if one puts a character before the first integral sign. So it seems that the \startformula command misses the ∫ definition on the first non-space character. \setupbodyfont[xits,10pt] \appendtoks \catcode`∫=\activecatcode \letcharcode `∫ \int \to \everymathematics \setupmathematics[integral=nolimits] Nolimits $\int_0^∞ f ω$, and $∫_0^∞ f ω$ \startformula ∫_0^∞ f ω, \quad ∫_0^∞ f ω, \quad \int_0^∞ f ω \stopformula ___ 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] Underlining formulas and units
Hi, Maybe you should use rather $\underbar{F_C=\unit{1e2 newton}}$ or \underbar{\unit{1e2 newton}} since otherwise \underbar considers each character in the math formula as a word, which should be underlined separately. Best regards: OK > On 5 Oct 2016, at 22:01, Florian Leupold wrote: > > Dear list, > > underbar behaves weirdly when it comes to indexes, exponents, and units: > > \starttext > \underbar{$F_C=\unit{1e2 newton}$} or \underbar{\unit{1e2 newton}} > \stoptext > > Am I doing something wrong? Is there maybe a setting to correct for this? > > Thanks, > Florian > ___ > 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 > ___ ___ 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] Formula numbering conversion
Thanks. I updated the wiki. On 27 February 2017 at 17:18, Pablo Rodriguez wrote: > On 02/27/2017 04:55 PM, Antoine Cailliau wrote: > > The following code is documented to change the numbering of the > equations. > > However, this still use numerals for the equations. > > [...] > > Is this a bug ? Is it the correct way to change the numbering ? > > Hi Antoine, > > it’s numberconversion (as it reads in “ConTeXt Commands”): > > \setupformulas[numberconversion=greek] > \setupbodyfont[dejavu] > \starttext > \placeformula[test] > \startformula E = mc^2 \stopformula > \stoptext > > BTW, if this is wrong documented in the wiki, please correct it for > future reference. > > 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 > > ___ ___ 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] Unable to switch math fonts
On 07/20/2017 09:38 AM, Kumar Appaiah wrote: > Hi. > > I'm using the Debian packaged ConTeXt, version 2017.05.15.20170613-2. > I have the Neo Euler OTF font and mtxrun --script fonts finds it. > > I am unable to get the following to work: > > \definefontfamily [myfamily] [math] [Neo Euler] > \setupbodyfont[myfamily] > > The above code doesn't build for me with errors in the formula > portion. However, removing the Neo Euler line makes it work. Moreover, > this works: > > \definefontfamily [myfamily] [serif] [Neo Euler] > \setupbodyfont[myfamily] > > But this makes everything, including math, Euler. Could you please help me > out? Hi Kumar, this seems to work with latest beta: \definefontfamily [myfamily] [rm] [TeX Gyre Pagella] \definefontfamily [myfamily] [mm] [Neo Euler] \setupbodyfont[myfamily] \starttext This is plain text. \startformula x + y = z \stopformula \stoptext I hope it helps, 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 ___
Re: [NTG-context] Reference links with focus=standard option
On 04/11/2018 07:14 PM, Pablo Rodriguez wrote: > On 04/11/2018 04:35 PM, Lawrence Bell wrote: >> [...] >> What's going on here? > > I generated an uncompressed PDF document from your source: > http://pdf.ousia.tk/focus-standard.pdf. > [...] > (eq:ref) seems to be missing there. But I have to investigate the issue > further to get a more accurate report. Lawrence, all I got is that floats have problems with named destinations (the ones you get with \setupinteraction[focus=standard]). \setupexternalfigures[location=default] \setupinteraction [state=start, focus=standard] \starttext \startplacechemical[reference=ch:ref] \startchemicalformula \chemical{(C_2H_5)_2Zn}{DEZ} \stopchemicalformula \stopplacechemical \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]} formula \in[ch:ref] figure \in[fl:ref] \stoptext Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I hope Hans can fix it. 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 ___
[NTG-context] White Space after \startalign
Dear all, I have noticed a new problem in the \startalign environment recently. \startalign adds whitespace after the formula. If I remove the *\NR* from the last equation then the white space disappears. But I need to keep it for numbering the last equation. In any case, I thought that the last *\NR* is required in the *math align* environment. I remember getting errors for not including the last \NR when I was just starting out with ConTeXt. May be something has changed or my memory is not quite what I thought it was. Please let me know if I am making a silly mistake. Thank you for your time in advance. *MWE* \starttext¬ Some text before the equation.¬ \placeformula¬ \startformula \startalign¬ \NC a \NC= b\NR¬ \NC c \NC= d\NR[eq:trivial]¬ \stopalign \stopformula¬ Some text after the equation.¬ \stoptext¬ Regards, Devendra Ghate ___ 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] Mixing math and text font
Am 04.01.2014 um 16:04 schrieb Joshua Krämer : > Dear list, > > in my math, I would like one font (the text font) to be used for letters > and digits and another font (the math font) to be used for mathematical > symbols. I have tried it like that: > > % Example 1 > \usemodule[simplefonts][size=40pt] > \setmathfont[termes] > \setmainfont[latinmodernroman] > \starttext > 123\\$ 123 \coprod \leftrightarrow $ > \stoptext > > % Example 2 > \definetypeface [fonttest] [rm][serif] [modern] > \definetypeface [fonttest] [mm][math] [termes] > \setupbodyfont[fonttest, 40pt] > \starttext > 123\\$ 123 \coprod \leftrightarrow $ > \stoptext > > In both examples, the math font is used for the whole formula. How can I > mix the fonts? This is possible but you have to use the context suite [1] and not texlive or miktex because the context version they provide doesn’t include the necessary mechanism. [1] http://wiki.contextgarden.net/ConTeXt_Standalone 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mixing math and text font
On Sat, 4 Jan 2014, Joshua Krämer wrote: Dear list, in my math, I would like one font (the text font) to be used for letters and digits and another font (the math font) to be used for mathematical symbols. I have tried it like that: % Example 1 \usemodule[simplefonts][size=40pt] \setmathfont[termes] \setmainfont[latinmodernroman] \starttext 123\\$ 123 \coprod \leftrightarrow $ \stoptext % Example 2 \definetypeface [fonttest] [rm][serif] [modern] \definetypeface [fonttest] [mm][math] [termes] \setupbodyfont[fonttest, 40pt] \starttext 123\\$ 123 \coprod \leftrightarrow $ \stoptext In both examples, the math font is used for the whole formula. How can I mix the fonts? You ask for modern as the text font and termes as the math font, and that is what you get. Can you elaborate what do you mean by 'mix the fonts'? What output do you want to get. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mixing math and text font
Am Sat, 04 Jan 2014 12:47:24 -0500 schrieb Aditya Mahajan: > You ask for modern as the text font and termes as the math font, and > that is what you get. Can you elaborate what do you mean by 'mix the > fonts'? > What output do you want to get. For the text font I use (it's a commercial typeface), a matching math font doesn't exist. Now if I use for example Termes as the math font, the formulae don't match the regular text, because the letters and digits differ. That's why I want in the formulae math symbols like special arrows and operators to be taken from Termes, but regular alphanumeric characters from my text font. So in my minimal examples, "123" should look the same in the text and the formula. Kind regards, Joshua Krämer ___ 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] How to place a verbatim environment in the text such that the following paragraph is not indented?
Dear list, how do I place a verbatim environment in the text such that the following paragraph is not indented? I expect the environment to behave the same as the formula-environment. How can I achieve this? --- minimal example --- \starttext \setupindenting[1.3em] \setupindenting[yes] \definetyping [R] [options=R, style={\ss}, before={\startframedtext [width=.975\makeupwidth, frame=off, bottomframe=on, topframe=on, background=screen, backgroundscreen=.95]}, after={\stopframedtext}, bodyfont=9pt, margin=1.3em] \input ward You can use the following syntax \startR f <- function(x) x^2 \stopR to define a function. (Begging of line should not be indented.) \input ward Have a look at \startformula f(x) = x^2 \stopformula where $f$ is a function. (No indent as expected.) \input ward \stoptext ___ 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] Bug in indenting after formula
Selon Taco Hoekwater <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > Hi, > > > > We had similar problems with indenting after floats (figures and > > tables) and after headings. Paragraphs after these kind of objects > > seem to refuse indenting. We tried several options including "always" > > or "next" with the \setupindenting and \indenting commands. Is there > > any possibility to indent paragraphs after floats, headings and > > equations? > > The most important of the block commands accept an indentnext key, > for example: > >\setuptyping [indentnext=yes] >\setupitemize [each] [indentnext=yes] >\setupfloats [table] [indentnext=yes] >\setupformulas [indentnext=yes] >\setuphead [section] [indentnext=yes] > > > Best wishes, > Taco > Thank you. In this case, it would be great to have an option in \setupindenting that enables all of these in one time. By the way, shouldn't it be the role of the 'always' option? It would make sense... Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing sections, formula,... numbering order
On Wed, Aug 20, 2008 at 05:49:31PM +0330, Mehdi Omidali wrote: > Hi everyone, > I want to use context+xetex for right-to-left typesetting and need to > know if it is possible to use the command \pagedir TRT in this > situation. (I tested that apparently only \pardir TRT is active). > If the answer of the above question is negative I would like to know > how can I change numbering direction of sections, formulas, etc. > Thanks \pardir \textdir etc. are LuaTeX specific, it seems that CpnTeXt emulates \textdir TRT for XeTeX/e-TeX, dunno how to set par direction to RTL in XeTeX though, may be ConTeXt should emulate \pardir as well or may be there is some way to do this that I'm not aware of. Regards, Khaled -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Translating PDF-files
2011/1/19 luigi scarso > On Wed, Jan 19, 2011 at 3:14 PM, Cecil Westerhof > wrote: > > Already done. What looked the most promissing was pdftohtml. Just > wondering > > if there is a better way. > What y do you want exactly ? > Preserve structure ? formulas ? layout ? > As far as these informations are not embedded (tagged) into the pdf > you have to do (a lot of) manual work . > My contact 'just' wants to translate the document. I already told him that this is easier said than done. But he is adamant. (Notwithstanding that several people already gave up on his quest.) I think structure and layout should be maintained. But I think it will be mostly 'simple' documents with text and some graphics. So I do not expect to have formula trouble. Also google for pdfdraw mupdf > I will do that. -- Cecil Westerhof ___ 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] Pipe symbol
On Tue, Jan 25, 2011 at 09:31:06AM +0100, Wolfgang Schuster wrote: > > Am 24.01.2011 um 13:44 schrieb Khaled Hosny: > > > On Mon, Jan 24, 2011 at 01:01:10PM +0100, Wolfgang Schuster wrote: > >> > >> Am 24.01.2011 um 12:47 schrieb Khaled Hosny: > >> > >> > >>Just wondering, what is special about | now we can even have ^ and $ > >>in text mode? > >> > >> > >> http://wiki.contextgarden.net/Composed_words > > > > I see, but it is a feature I'd never need (not when typesetting Arabic > > at least), is there a way to switch it off and get regular | instead? > > \asciimode > \starttext > a $ b % c _ d ^ e | f \formula{a^2} > \stoptext Just in time! exactly what I was googling for a second ago (apart from the bar, I wanted the others too!) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] displaying lines of formulas one by one
Am 13.05.2011 um 02:13 schrieb Jeong Dalyoung: > Dear all, > > I'd like to show the following formula line by line in a presentation, > For example, > \startformula\startalign > \NC T(4) \NC = T(3) + 4 \NR > \NC \NC= T(2) + 3 + 4 \NR > \NC \NC= T(1) + 2 + 3 + 4 \NR > \NC \NC= 1 + 2 + 3 + 4 = 10 \NR > \stopalign\stopformula > > > I tried to use \StartSteps and \StopSteps but not succeed. > > \starttext > \usemodule[pre-60] > > \StartSteps > \startformula\startalign > \NC T(4) \NC = T(3) + 4 \NR\FlushStep %(nor \FlushStep\NR) > \NC \NC= T(2) + 3 + 4 \NR\FlushStep > \NC \NC= T(1) + 2 + 3 + 4 \NR\FlushStep > \NC \NC= 1 + 2 + 3 + 4 = 10 \NR\FlushStep > \stopalign\stopformula > \StopSteps > > \stoptext > > Is there a way to do so? Add \setupinteraction[state=start] to your document and open it with Adobe Reader. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A couple of setupcaptions questions
Le 04 août à 19:24:20 Wolfgang Schuster écrit notamment: | Am 04.08.2011 um 19:17 schrieb Jean Magnan de Bornier: > | > Le 04 août à 18:14:45 Wolfgang Schuster écrit notamment: | > | > | It’s no surprise that you don’t get a chapter prefix because there is | > | no in your document. You forgot the title after \startcomponent and | > | ConTeXt took “\chapter{…}” as argument for the component title. | > | > Right, my mistake! | > | > However, with such mistake we have a prefix for formulas anyway! > | \setupcaptions[way=bysection,prefixsegments=chapter] | \setupformulae[way=bysection,prefixsegments=section] > | You use for the formula the section number as prefix while floats use chapters. > | In your example there had been section but no chapter and therefore | you get a prefix for formulas but none for floats. Wolfgang, thank you for your patience, I do need rest! -- Jean ___ 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] \blackrule and margin
On 2/19/21 4:02 PM, Ursula Hermann wrote: > Dear List, > i have the little following example: > > \setuppapersize[A8,landscape] > \setuplayout[leftmargin=2.5cm, > leftmargindistance=0.2cm, > backspace=2.9cm, > width=4cm] > \showframe > \starttext > \blackrule > \margintext{Me} > \blackrule[color=black, height=0.5ex, width=1cm] > \stoptext > \startformula > a^n + b^n = c^n. > \stopformula > \stoptext > What i want is a\blackrule over the margintext, but i do not get what I > wantend. Hi Uschi, I don’t know whether this is similar to whay you might intend: \setuppapersize[A8,landscape] \setuplayout[leftmargin=2.5cm, leftmargindistance=0.2cm, backspace=2.9cm, width=4cm] \showframe \starttext \blackrule \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me} \startformula a^n + b^n = c^n. \stopformula \stoptext BTW, it isn’t also clear to me whether the formula is part of your document or not. Just in case it helps, 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 ___
[NTG-context] Chemical reaction formulas
Dear list, According to the information on contextgarden (section chemistry) chemical reactions should be entered as follows: \usemodule[chemic] \startformula \chemical{CaCO_3(s),+,HCl(g),->,CaCl(HCO_3)(s)} \stopformula That produces a formula with the comma's in it, so that's not good. If I enter it as follows \usemodule[chemic] \startformula \chemical{CaCO_3(s) + HCl(g) \rightarrow CaCl(HCO_3)(s)} \stopformula Then somehow after the \rightarrow the math/chemical environment is lost and the remainder gets typeset as text. The same is true if I use any math command such as \beta or \cdot. The closest I get to the desired result is with the following: \usemodule[chemic] \startformula \chemical{CaCO_3(s) + HCl(g) --> CaCl(HCO_3)(s)} \stopformula But that is a bit of a compromise. Regards, David van Diepen ___ 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] help! formulas set smaller?
On Fri, 5 Feb 2010, Steffen Wolfrum wrote: Am 05.02.2010 um 00:34 schrieb Aditya Mahajan: On Thu, 4 Feb 2010, Steffen Wolfrum wrote: Hi, while I want to have my bodyfont in Times 10pt, my specs force me to set my formulas 1pt smaller: 9pt! As far as I have seen setupformulas doesn't provide setting a smaller font ... What can I do?? \definetypescript[...][mm][...][...][...][..., rscale=...,] Try for a rscale of 0.9 and measure the actual height and tweak accordingly. hm ... meanwhile, in core-mat I found: %D \startbuffer %D \startformula[9pt] x = 1 \stopformula %D \startformula[7pt] x = 1 \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer So, setting a smaller formula can also be done by \startformula[9pt] ?! Yes, but then you will have to do this for every \startformula individually. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Italic correction is missing.
Mehdi Omidali wrote: Hi If you run \starttext \startformula V) V\exists F\exists \stopformula \stoptext the space between V and ) for example is not correct. (luatex .50) The reason why there is no italic correction is because luatex sees a simple list of mathords, and it does not apply italic corrections between those when a 'new math font' is being used. (if it did, operators like "sin" would come out badly). Instead, it relies on ordinary inter-glyph kerning. I am not at all sure what the best solution for this is, as I have no idea how MS Word differentiates between the formula above and 'multi-letter identifiers'. Perhaps luatex should look at the \catcode of the characters in question? Or perhaps these inter-char kerns actually exist in Cambria? Best wishes, Taco ___ 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] 10+ reasons why I still use MKII
On Wed, 12 May 2010, Taco Hoekwater wrote: Aditya Mahajan wrote: 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}} \exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. Taco, is there a difference between the default math parameters for MkIV? Hans now uses OpenType Math (sometimes faked) fonts always, and his initial version of the reimplemenation of \big was wrong. But I thought this had been fixed a few weeks ago. I am using a month old version. I'll update and check again. Mojca's question was regarding the shape of \sqrt. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math alignment broken? (was \startmathalignment vertical spacing)
Is \startformula\startalign\stopalign\stopformula broken in context mkiv? After just updating the minimals, I now get (using the example below): ! Missing $$ inserted. \Ustopdisplaymath \stopdisplaymath ...opinnermath \Ustopdisplaymath \par \afterdisplayspace \p... \dostopformula ...eter \c!alternative \v!formula } \nonoindentation \checknex... l.5 \stopalign \stopformula Alan On Wednesday 31 March 2010 18:26:47 Aditya Mahajan wrote: > On Wed, 31 Mar 2010, Troy Henderson wrote: > > Is there any way to change the amount of vertical space produced by > > \NR within \startmathalignment ... \stopmathalignment? > > There is no such high-level interface. You will have to resort to a > low-level \openup. > > \starttext > \startformula \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > > \startformula \openup 50pt \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > > \startformula \startalign >\NC a \NC = b \NR >\NC c \NC = d \NR > \stopalign \stopformula > \stoptext > > 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange behavior of '\setupmathematics' and '\iint'
Hi. I faced with strange (for me) behavior of combination of '\setupmathematics' and '\iint'. Consider the following example: \setupbodyfont[xits] \setupmathematics[integral=displaylimits] \starttext This is a sample. \startformula \exp^{\imath\phi}=\cos\phi+\imath\sin\phi \stopformula \startformula \int_{a}^{b}f(x)\text{d}x=F(x)+C \stopformula \startformula \iint_{D}f(x,y)\text{d}x\text{d}y=\mu(D),\quad\text{here $\mu$ is a measure} \stopformula \stoptext If I comment line with '\etupmathematics' then I could compile the example without error. The shown example however gives error when compiled by context (mkiv): ! Missing } inserted. } $ \stopdisplaymath ->\stopinnermath $ $\par \afterdisplayspace \par \egroup \dostopformula ...eter \c!alternative \v!formula } \dostoptagged \dostoptagge... l.21 \stopformula ? Does this mean that 1) something wrong with font setup? 2) mathematics setup? P.S. I took fonts (symlink) from TL2010 installed in parallel. --- WBR, Vladimir Lomov ___ 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] Broken Nightly (2012.01.23)
Hey Hans et al., Using ConTeXt ver: 2012.01.23 19:45 MKIV fmt: 2012.1.24 int: english/english and LuaTeX, Version beta-0.71.0-2012012215 (rev 4358), I get the following error while typesetting my book: ! Undefined control sequence. \doconvertedstructurecounter [\v!formula ][] \flushbothlabelclass #1#2#3->#1#3 #2 ...spaces \doplacecurrentformulanumber \removeunwantedspaces \dos... \flushbothlabelclass #1#2#3->#1#3 #2 \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}} \dostoptagged \endgroup \placecurrentformulanumber ...moveunwantedspaces } \formulaparameter \c! right... ... l.120 \stopformula ? E You want to edit file Source/Terms_and_Concepts/Terms_and_Concepts.tex at line 120 The line it is referring to is the last line of the following code snippet: ... \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 {\it e}^{rt}} {K + P_0({\it e}^{r t} - 1)}} \stopformula % Line 120 ... -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] mathml
On 12-3-2012 10:12, Meer, H. van der wrote: I ventured a first try of mathml in my code, but clearly I am doing something wrong. One of the examples in the XML-publication is: 3 ab cd It doesn't result in a neat formula, but there only appears: "3 ab cd". Is there a module I have to include? or what else? \usemodule[mathml] Hans van der Meer ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] about \startformula\startalign error
On 2012-07-22, at 8:21 AM, dalyoung wrote: > Dear all, > > In the following sample file, an error occurs in \startformula\startalign ... > \stopalign\stopformula. > The similar error occurs if I use \startformula\startmathcases. > > but \startmatrix works well. > > Did I do something wrong? > > Thank you for reading. > > Best regards, > > Dalyoung > > %% > \starttext > \starttable[|c|c|w4cm|w4cm|] > \HL > \NC A \VL B \VL C \VL D \NC\SR > \HL > \NC $x$ \VL \startmatrix > \NC x' = \NC \NR > \NC y' = \NC \NR > \stopmatrix \VL \VL \NC\FR > \HL > \NC $y$ \VL \startformula\startalign > \NC x' = \NC \NR > \NC y' = \NC \NR > \stopalign\stopformula \VL \VL \NC\LR > \HL > \stoptable > \stoptext > %%% \startformula must occur inside a vbox. So, use a matrix environment as you are doing, or wrap the formula inside a \framed[align=normal]. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Wrong results for chemical structures and reactions
2012-10-02 Alan BRASLAU : Hi Alan > > chemical structures and reactions produce wrong results. Here is one > > example from the wiki and two from the manual. > > > > […] > > > \startchemicalformula > not > \startformula > > \startchemicalformula > \chemical{2H_2} > \chemical{PLUS} > \chemical{O_2} > \chemical{GIVES} > \chemical{2H_2O} > \stopchemicalformula The spacing is still wrong. Compare: \starttext \chemical{2H_2,+,O_2,->,2H_2O}\blank \startchemicalformula \chemical{2H_2} \chemical{PLUS} \chemical{O_2} \chemical{GIVES} \chemical{2H_2O} \stopchemicalformula \stoptext How to mid-align the reaction? Wrapping the \startchemicalformula in \startformula works, but it's clumsy. > Also, the shorthand "+" for "PLUS", "->" for "GIVES", etc. > seems to be interpreted only inline, not in displayed chemical formula > mode. > > > I am working (with Hans) to correct the mkiv chemical code, > which has been completely re-written (from ppchTeX macros). > Also working on a new manual, at the same time... That's brilliant! Marco ___ 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] Euler Constant and limit
Hey list, I am trying to typeset the Verhulst equation which contains a Euler constant which I cannot get to display correctly: \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 \Eulerconst^{rt}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The location for the \Eulerconst just shows up blank with nothing there, so I am assuming this is the wrong command. I am using ConTeXt 2012.11.16 under Ubuntu Precise. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula PS Please cc me, as I am not on the list currently. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Math typesetting problems
Le 27 janv. 13 à 12:52, Janne Junnila a écrit : Hi all, Another problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \startformula -\frac{e^{\frac{4}{5}}}{4} \stopformula Janne Hi Janne, With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland ___ 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 ___ ___ 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] Umlaute in Formula
On Mon, Apr 13, 2009 at 11:01, Florian M. Baudach wrote: > Dear all, > > I need german Umlaute in my formulas of my master thesis. > > I used \ddot{a} for ä. It had worked fine until I updated Context > yesterday :-(. Since that update I only get an crossed a with an accent, > but no ä. > > I still use MKII. Hello Florian, (I fear to update ConTeXt now that you mention it, so I won't try out your example :) :) :) Do you need "a umlaut" or do you need a double differential (d^a/dt^2)? I just wanted to say that if you need ä as "a umlaut" in formulas, you would probably want to use $\text{bär}$ rather than $\rm b\ddot ar$ in such cases. But if there's indeed a problem, it needs to be fixed anyway. Mojca ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mathalign with \{ ?
Hi, I have \placeformula[-] \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula and I want to put \placeformula[-] \{ \startformula F(n) = \startdisplaycases \NC F(0) + 2 \ln n!! - \frac{n}{2} \ln 2 \MC \text{si } n \text{ parell} \NR \NC F(1) + 2 \ln n!! - \frac{n+1}{2} \ln 2 \MC \text{si } n \text{ senar} \NR \stopdisplaycases \stopformula But I received error. I have MKII. How can I put braces and do that enumeration formula is at middle possition (not in first or last line, just in the middle). I use Aditya manual but I did not see it. Xan. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Urgent: Strange index problems
Taco Hoekwater wrote: Hi Hans, Hans Hagen wrote: I was refering to what \mathematics works and $$ does not. there are only a few cases where $$ (in the sense of empty inline math) works ok so best use $ $ then; \mathematics does this automatically You should go back in the thread a bit. It looks like Xan's \index entry (containing the simple math formula $k$) got cut off just before the closing $ for some reason that I can't figure out. btw, i noticed in one of the examples ... {amplada+mitjan respecte de \mathematics k+1 valors} so, that's then $k$ and not $k+1$ anyhow, what is the smallest example showing the problem? I can get $x$ in an index here Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Insufficient symbol fonts error
Giuseppe— I am not using either the amsl or the nath modules. Never had to before. (The file has compiled successfully in its current form, but that was about a week ago.) If I should be using one of these modules, which do you recommend? Alan On Oct 30, 2005, at 9:43 AM, Giuseppe Bilotta wrote: Sunday, October 30, 2005 Alan Bowen wrote: I am getting some puzzling errors when I try to use the Greek fonts in math formulae (to represent Greek numerals as written in mss.) In a short file, both \overbar{\grk{kj}} and $\overline{\hbox{\grk{kj}}}$ work as expected, even when they occur in Greek text. But in a long, complicated file with lots of Greek etc. and the same environment file, I get ! Math formula deleted: Insufficient symbol fonts. Are you using the amsl or nath modules? -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX & chemistry (was: alignment of figures)
>> I'm playing a bit with drawing formulas in metafun, but my question >> is: are there any guidelines about how a nice formula should look like? >> (Yes, I have problems to decide how thick the lines have to be, how to draw >> a triple or a steric bond properly, which size of letters to use). Knuth did >> a marvellous job with drawing math formulae in TeX, there are many books >> about typography, but I've never seen anything about chemistry and I haven't >> found anyone who could answer me this question. Keith McKay wrote: > A quick search on Google found this. > Keith > > http://www.rsc.org/Publishing/ReSourCe/AuthorGuidelines/Illustrations/sect1. > asp > http://pubs.acs.org/books/artwork.shtml (Although a bit late:) thank you very much for the two links above. The rules don't cover everything, but they represent an important part. (I didn't have any such list before and data like "space between bonds has to be 18% of bond length" are pretty useful and exactly part of those rules that I was looking for.) Thanks again, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] vertical stretch problem
On Sun, 8 Jan 2006, Taco Hoekwater wrote: > You can fix the sections by > >\setupalign[line] >\setuphead[chapter][before={\hbox{}\blank[2*line]\vfill}] >\setuphead[section][before={\blank[2*line]\vfil}] > > But I wouldn't call that a true solution. Better (perhaps) is: > >\scratchskip 0pt plus 1 fill >\advance\topskip\scratchskip Thanks Taco! The normal setup for section header is before=\blank[2*big] and after=\blank I wonder, why "\blank" is stretching, but not \blank[2*big]... ? With LaTeX, I had really good experience: all vertical spaces stretch in the right proportions and a big float alone on a page gets centred. Now I would like to achieve the same with ConTeXt, but I'm frightened about spending days to find the right combination of \vfil, \vfill and \vfills around every head, formula, float, description, paragraph etc etc... Ok, if there is no easy way, I will try all "before=" and "after=" possibilities. Or should I better play with \topskip and other such skips (which ones?) ? Greetings, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dot & lucida
Hi all, My solution to this issue is: 1 - texexec ec-bh-lucida 2 - search the hex code 05 as in math-lbr.tex -> it's a " 3 - search the correct symbol (dot) and the hex code (it is 0A) 4 - replace 05 by 0A (line 390 of math-lbr.tex) Now, it works for me but I'm not sure that this solution is "correct" ;-) Your opinion ? Renaud PS: I have not checked other symbols but if I will encounter the same kind of issue, I will post it... Renaud AUBIN a écrit : Hi all, I use lucida fonts for my documents with \usetypescriptfile[type-buy] \loadmapfile[ec-bh-lucida.map] \usetypescript[lucida][ec] \setupbodyfont[lucida,10pt] When I will use \dot in math formula, the result seems to be a \prime\prime. It works without lucida... Strange ??? I don't understand the reason of this behavior. I suspect the use of ec, am I right ? Anyway, it's strange ! Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mml
nico wrote: > > - The bar above "x+y+z" does not cover the formula, and it still small > (mover2): > > > > > > x > + > y > + > z > >¯ > > vs > > > > x > + > y > + > z > >¯ > > > > The problem with this kind of situations is that the unicode spec permits / or is vague / or is messy with regards to things like bars over whatever; in this case you use a macron for something overline one way to deal with it is to define additional entities (we already have \defineXMLentity [OverBar]{\normalorfiller\hrule\hrulefill} etc for math) \usemodule[newmml] \defineXMLentity[x000AF]{\normalorfiller\macron\hrulefill} \startXMLdata x + y + z ¯ \stopXMLdata but then we miss the utf 8 encoded ones, so we then need to hook it into the utf handler i.e. redefine the macron there; yet another option is to 'normalize the file' by preprocessing this is something that needs discussion Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] not working
Louis Springer wrote: > I have a simple formula where I would like to use the times symbol > and the directive does not appear to be working. Am I doing something > wrong here? > > \usemodule[MathML] > \useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content > > \starttext > > \startXMLdata > > > > >c > >s >f > > > > > \stopXMLdata > > \stoptext > > > Using a setup also appears to be ineffective, e.g. > > \setupMMLappearance[times][symbol=yes] > change this in xtag-mmc: \def\MMLcTIMES#1#2#3\empty {\setMMLcreset{\MMLcfunctionlist,\MMLcconstructlist}% \doifelse\@@MMLtimesauto\v!no {\let\@@MMLtimes@@symbol\@@MMLtimessymbol} {\doifelseXMLRneighbors{cn}{#3} {\let\@@MMLtimes@@symbol\v!yes} {\let\@@MMLtimes@@symbol\@@MMLtimessymbol}}% \doifelse\@@MMLtimes@@symbol\v!yes {\encapsulateXMLR{}{\times}{}{#3\empty}} {\doifelse\@@MMLtimes@@symbol{dot} {\encapsulateXMLR{}{\cdot}{}{#3\empty}} {#3\empty}}} however, better si to use \usemodule[newmml] % soon thsi will be the default \usemodule[MathML] ^^ mathml \useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content this is then not needed! (the mathml module does this) -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Breaking large equations across pages
Pagebreak of formula across pagebreaks is broken in the new release (ConTeXt ver: 2006.04.27 15:59). Consider \starttext \placeformula \startformula \startalign \dorecurse{50} {\NC a \NC = b \NR[+]} \stopalign \stopformula \stoptext (This used to work earlier, I can not test this, but I have document where the display broke across pages. Can somewith with an old ~ Mar, 2006 release test this?) Also, is it possible to have more control over where the display breaks. With latex, I can force equation break by using \allowdisplaybreaks[1|2|3|4] \documentclass{article} \usepackage{amsmath} \allowdisplaybreaks %< Try with and without this. \begin{document} \begin{align} a &= b \\ % Paste the above line 50 times a &= b \end{align} \end{document} Ideally, context should also provide something configurable. Maybe, it should be part of \setupformulas[displaybreak=tolerant|verytolerant|strict|verystrict] Also there should be something like \NC \NR \allowdisplaybreak[yes|no|disable...same meaning as in \page[] \NC . \NR to have more control over the pagebreak. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula legend
Jörg Hagmann wrote: > Hi all, > > I am using formulas and legends as described in the manual and > encountered the 2 following (minor) problems (see example at the end > of the message): > > 1. Legends: when using the units module (e.g. \Joule), the alignement > is not the same as when using normal characters (in the example: the > number 8314 is more to the left than the J of \Joule etc.. Replacing > \Joule by J aligns it with the number below. This also occurs when > running the example live on context-garden. Adding \null in front of > 8314 doesn't help (why not?). Start with \Unit \Joule. From the Wiki page (by Aditya): Units act upon signals that they insert in the text, in case no quantity is given you need to start the unit sequence using \Unit > 2. The RT of the equation is not slanted as are the other variables > -- on my two setups (on contextgarden it is). Is this a version They are slanted in my setup (beta 2006.06.23) and they were also slanted in 2006.06.07. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.08.08 released
On Tue, 8 Aug 2006, Taco Hoekwater wrote: > Hello all, > > I am pleased to announce that the new ConTeXt release from Hans Hagen > can be downloaded as of now from the Pragma ADE website or one of its > mirrors. > >http://www.pragma-ade.com/context/current/cont-tmf.zip >http://context.aanhet.net/context/current/cont-tmf.zip >http://mirror.contextgarden.net/context/current/cont-tmf.zip > > The current release has version 2006.08.08 > > A very short list of changes is given below. As usual, there is an > html page with more detailed release notes available on the Wiki, see: > >http://wiki.contextgarden.net/Release_Notes Something broke with formula numbering, and it is due to the numbering changes. \preparethenumber is commented from core-sec.tex, dododoformulanumber in core-mat.tex still uses it. As a result even the simple \placeformula \startformula a = b \stopformula fails with ! Undefined control sequence. \dododoformulanumber [EMAIL PROTECTED] \preparethenumber \??fm \composedsectionnumb... \normalreqno {\doformulanumber [][][]{} } \secondoftwoarguments #1#2->#2 \dostopformula ->\doplaceformulanumber \getvalue {\e!stop \formulaparameter ... l.3 \placeformula \startformula a = b \stopformula Changing preparethenumber in dododoformula by preparefullnumber gets rid of the problem. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] common counter
Hallo! This is a question to a somewhat older post: > Date: Tue, 11 Jul 2006 09:55:28 +0200 > From: Hans Hagen <[EMAIL PROTECTED]> > Subject: Re: [NTG-context] Common counter > To: mailing list for ConTeXt users > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8; format=flowed > > David Arnold wrote: > > This is excellent. Now, how can I include this > > > > \placeformula[eq:nine] > > \startformula > > f(x)=x^2 > > \stopformula > > > > with the same common counter as remark and definition below? > > > hm, it's incredible what users come up with but this time you're > lucky -) > > \defineenumeration[whatever] > > \definenumber[davidsnumber] > > \setupnumber[whatever][number=davidsnumber] > \setupnumber[formula] [number=davidsnumber] % If one says additionally here: \setupnumber[figure][number=davidsnumber] > > \starttext > > \placeformula[x] > \startformula x\stopformula > > \startwhatever x\stopwhatever > > \placeformula[x] > \startformula y\stopformula > > \startwhatever y\stopwhatever % and here for example: \placefigure{image}{\framed[width=1cm,height=1cm]{image}} > \stoptext then, davidsnumber is incremented by \placefigure but not used for the caption etc. How can I extend the usage of davidsnumber to captions and figuretables? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula, bookmarks and misc
On Tue, 31 Oct 2006 15:55:08 -0500 (EST) Aditya Mahajan <[EMAIL PROTECTED]> wrote: > On Tue, 31 Oct 2006, Wolfgang Schuster wrote: > > > 2006/10/29, Sebastian Rooks <[EMAIL PROTECTED]>: > >> > >> 2/ I'm using bookmarks but abbreviations in heads do not work properly. > >> I've used a workaround some 3 years ago but I cannot remember which. Any > >> suggestion ? (see test file below) > > > > \appendtoks \def\UK{UK} \to \simplifiedcommands > > > Why doesn't > > \doglobal\appendtoks\setvalue{#2}{#2}\to\simplifiedcommands > > line in the definition of dodocomplexsynonym do this automatically? > Hi Aditya, this was new to me. You are right, this did work as expected but only when you place the definition of the abbreviation and the \placebookmarks command in the right order. The following order in the souce works. \abbreviation [UK] {UK} {United Kingdom of Great Britain and Northern Ireland} \placebookmarks[chapter,section,subsection] The problems is, the token register \simplifiedcommands is called by the \placebookmarks command and every abbreviations, that follows after the command is ignored. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Theorems, etc with ConTeXt
Hi Aditya, > I have rudimentary support for titled theorems and end of proof > markers working. It also takes care of your bug-report. That's great news! My fingers are itching to test it ;-) > I have patched core-des so that stopper is also honored when number=no > is set. Does this mean that your patch has already been merged with the official release? > I have a very basic end of proof marker working. Basically, it will > handle the marker correctly for proofs that end with paragraphs, and > works hard to avoid a page break when the proof ends with a formula or > an itemize (in this case, the end of proof marker is in a line of its > own). The main macro for putting the proof marker on the right is from > Paul Taylor's qed.sty. If you want to test this, I can send you the > file offlist. This file is not in a state to be merged into the core > right now. Please send it to me ... Thanks, Oliver ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hallo Holger, hi all Holger Schöner schrieb: > 1) Some of the formulas should be numbered, some not; and at the same time > I would like to align several of them. > For alignment I seem to be able to use \eqalign (or \startalign ... > \stopalign from the t-amsl.tex sent around here lately). But if I place a > \placeformula in front of this, the whole aligned block only gets one > number; I would need a number for every line (or even better: a possibility > to state, which lines should be numbered, and which not). I use \eqalignno{ left & right & \formulanumber \cr left & right & \formulanumber \cr } or \eqalignno{ left & right & \formulanumber{a}\cr left & right & \subformulanumber{b} \cr } If I have a longer formula which should only get one number, I use \eqalignno{ left & right1 & \cr & right2 & \formulanumber{} \cr } With warm regards also from Berlin, Tobias -- This above all: To thine own self be true / And it must follow as the night the day / Thou canst not then be false to any man. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Vertical alignment of formulas
At 17:59 17/09/2003 +0200, you wrote: You don't :\ Sadly, Hans decided that the difference between abovedisplayskip and abovedisplayshortskip was unnecessary. Hans? that's not true -) the problem is that it is quite hard to get the spacing ok in situations like text formula text this has to do with the fact (and i spent days on that topic) that tex only knows the length of the last line when in display math mode and even then not always this means that when one wants control over spacing, and to take the length of the last lin einto account, one has to go through a lot of trouble; i once had it working but somehow lost something in the code, so i need to look at it suggestion for gbetex: lastlinelength always available Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: [NTG-context] Re: [NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
Monday, December 8, 2003 Giuseppe Bilotta wrote: > Regarding your problem(s): > * with the ConTeXt version I have (2003.09.26), all lines in > the gather are separate. The whole block has a single number, > though. This is both with, and without nath. > * formula (sub)numbering needs a good cleanup in ConTeXt (just > like math support in general ...). I need to discuss the thing > with Hans before being able to fix the thing in amsl and/or > nath. Ok, I think I found what's going wrong. David, please download the updated t-amsl.tex and t-nath.tex from CTAN; then edit t-nath.tex and look for the line \usemodule[amsl] move it to the top of the file (after the "%D updated ..." line). Secondly, look for the definition of [EMAIL PROTECTED] and replace it with [EMAIL PROTECTED] \dmathoff@ \egroup \stopnatheq \stopformula \stop \ifnumberedgather \expandafter\plaatsformule \fi \start [EMAIL PROTECTED]@cr}% [EMAIL PROTECTED] \dostartformula{nathgather} \startnatheq \hbox\bgroup \dmathon@ \mathopen{}% } And have another go :) -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] 10+ reasons why I still use MKII
Dear Hans, since you have promissed another hotfix release for TL 2010, here's a list of issues that I had with my thesis and MKIV (some have already been fixed in the due time, but many remained). I probably wouldn't have had those "problems" if I was designing my document in MKIV from scratch, but just recompiling in MKIV didn't work out for several reasons listed below. 1.) Minimal example: \usetypescript[iwona] \setupbodyfont[iwona] \starttext $a+b$ \stoptext Output: !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona6ptmmmr33* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona8ptmmmr22* !define font: font with name Iwona-Math-Letters-Regular is not found !define font: unknown font Iwona-Math-Letters-Regular, loading aborted !define font: unable to define Iwona-Math-Letters-Regular as \*iwona11ptmmmr11* !define font: font with name Iwona-Math-Letters-Regular is not found etc. I need to figure out why, though it works (I don't see deficiencies in output yet). 2.) Recently discussed on the mailing list - stopper has no influence in MKIV: \setupcaptions[stopper={:}] \starttext \placefigure{title}{\framed{bla}} \stoptext 3.) Bibliography citations give different result with the same setup (different numbers and different spacing in \placepublication - might be also worth testing with grid typesetting as I wasn't able to set up the alignment properly in MKII last time when I have tried). I'm not sure which one is right, but there's probably no reason to produce different results. \usemodule [bib] \setuppublications [alternative=num, criterium=all, sorttype=cite] \starttext \startpublication[k=a,t=article]\arttitle{a}\stoppublication \startpublication[k=b,t=article]\arttitle{b}\stoppublication \startpublication[k=c,t=article]\arttitle{c}\stoppublication x\cite[a,b,c] \placepublications \stoptext 4.) The following problem must have appeared recently (it was working ok in September): in MKII the encoding is completely screwed up: \usemodule[gnuplot] \enableregime[utf-8] \starttext \startGNUPLOTscript[integrated risetime] plot sin(x) t 'šin(čix)' \stopGNUPLOTscript \useGNUPLOTgraphic[integrated risetime][1] \stoptext A slightly more basic example: \enableregime[utf-8] \starttext \startbuffer[gnu] \startMPcode draw \sometxt{čšž}; \stopMPcode \stopbuffer čšž \getbuffer[gnu] \stoptext 5.) Weird formula number placement when long equations are used in MKIV \def\oklepaj#1{\left(#1\right)} \starttext \placeformula \startformula {\dot N}(t)= A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+ B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow} \stopformula \stoptext 6.) I know that \NR is not the most appropriate way to go into next row, but the following gives considerably different results in MKII and MKIV: \starttable[|l|] \NC \type{a} \NC\NR \NC \type{a} \NC\NR \NC \type{a} \NC\NR \stoptable 7.) I know that there's a longstanding left vs. right bug, but flushleft is no solution in the following case (compare MKII and MKIV again): \definedescription [latexdesc] [headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm] \latexdesc{step E (expectation):} \input tufte \latexdesc{step M (maximization):} \input tufte 8.) \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default] \starttext $\boldsymbol{\theta}$ \stoptext 9.) Note the big difference of when the formula starts vertically on page: \starttext \startformula a+b \stopformula \stoptext 10.) Different square root shape/variant used: $\frac{1}{\sqrt{2πσ_i^2}}$ Original formula: \startformula \startcases \NC ρ_0, \NC for $i=0$, \NR \NC ρ_i\,\frac{1}{\sqrt{2πσ_i^2}}\exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr), \NC for $i\in\left\{1,2\right\}$. \NR \stopcases \stopformula but I cannot reproduce the big difference it makes in original document on a smaller scale. 11.) Missing bibliography entries: \usemodule[bib] % this line spoils the show \setuppublications[alternative=num] \setuppublicationlayout[webpage]{% \inserttitle{\bgroup\it }{\egroup. }{}% \inserturl{}{}{}% } \startpublication [k=FAIR,t=webpage,u=http://www.gsi.de/fair/] \biburl{http://www.gsi.de/fair/} \title{FAIR -- Facility for Antiproton and Ion Research} \stoppublication \starttext \cite[FAIR]\par \placepublications \stoptext 12.) \nocite[nonexistent] generates an empty [n] in bibliography in MKII, while it has zer
Re: [NTG-context] Lucida-1.901 (2023-01-21) available
On 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote: On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context wrote: Hi, Thanks Hraban for the information and the link to the article by Hans and Mikael about the math fonts in Lucida. I very much appreciated that article: one sees how the handling of almost impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… So a great thank you to Hans and Mikael for all this work! Regarding the details of vertical alignment in math, I wonder whether the column « : » in front of the equal sign « = », in the combination « := » (used to define for instance a new variable) should be alos centered around the math axis, as explained in the article. For instance in the following example \setupbodyfont[lucidaot,12pt] \starttext \startformula f(x) := -(u|x) := - \langle u, x \rangle \stopformula \stopformula \startformula f : A \longrightarrow B \stopformula \stoptext it seems to me that the lower dot (or square…) in the semicolumn of the first formula (in front of the equal sign) is lower than in the second formula. Best regards: Otared Thank you for the kind words, Otared, Regarding the colons (and other symbols with "dots"), I would say it is still not optimal in Lucida (and difficult to make it "consistent", there are too many symbols that are at the moment different). But in your example you can use \colonequals and \colon if you prefer. They are centered around the math axis. Best, Mikael \setupbodyfont[lucidaot,12pt] \starttext \startformula f(x) := -(u|x) \colonequals - \langle u, x \rangle \stopformula \startformula f : A \longrightarrow B \breakhere f \colon A \longrightarrow B \stopformula \startformula \mathaxisbelow := \colonequals : \colon \stopformula \stoptext There is a (experimental as we played with it and then got distracted) feature that makes some symbols adapt to spacing in the input. \starttext \setupmathematics[autospacing=yes] \setupmathematics[collapsing=2] \im{A:B} and \im{A : B}\par \im{A:=B} and \im{A := B}\par \im{A\colonequals B} and \im{A {\colonequals} B}\par \stoptext the second line is not yet ok as collapsing the := (old feature) comes at the wrong time when we do autospacing (something Mikasl and I now need to discuss and test) This autospacing is part of some larger effort, for instance we can also auto handle fences and so. All this relates to minimizing the input and make it a bit more natural. Think (1,2) vb (1, 2) where we - due to the many more classes that we have - want spacing to be right. All will be revealed in the upcoming releases and the upcoming 3145 page math manual. 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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Vertical space around displayed formulas
Hi Hans, Thanks for your attention which fixed most of the difficulties with vertical distances around math formulas. However, after typesetting a long document, I noticed that there are still some incorrect behaviours. The following minimal example, extracted from that long document, shows what is wrong: please have a look at the second formula in the attached PDF. (The output with the older version from TeXLIve 2016 is correct). %% begin vertical-space-bug.tex \starttext \input knuth.tex \startformula a \leq a_{n+1} \leq a_{n} \leq b_{n+1} \leq b_{n} \leq b, \qquad\mbox{et}\qquad 0 \leq b_{n} - a_{n} \leq 2^{-n}(b_{0} - a_{0}). \stopformula \input ward.tex \startformula g(x_{*}) = \lim_{n\to\infty} g(a_{n}) \leq 0 \leq \lim_{n\to\infty} g(b_{n}) = g(x_{*}), \stopformula \input knuth.tex \stoptext %% end vertical-space-bug.tex vertical-space-bug-2017-01-17.pdf Description: Adobe PDF document > On 18 Jan 2017, at 19:15, Hans Hagen wrote: > > On 1/18/2017 6:23 PM, Nicola wrote: >> On 18/01/2017 17:53, Otared Kavian wrote: >>> Hi Nicola, >>> >>> In fact, if you are in a hurry and don’t use subtle things >>> introduced since May 2016, you can use the stable version of ConTeXt >>> from TeXLive >>> 2016 (the bug noticed by Mikael, and you, is absent from that version >>> of ConTeXt). >> >> Thanks, that's what I am doing now. Strangely enough, it fixes the >> layout for all the slides, *except* the one I have posted before. But >> that one I can easily fix. > > the current (yesterdays) beta should be ok .. (the midpar flushing of a > formula) > > a while ago i reimplemented spacing around display math and as a side effect > there might be slightly different spacing (in which case probably the old > situation was wrong > > it relates to the fact that tex (traditionally) has some assumptions and does > some spacing that interferes with the way we want to control spacing (e.g. it > always forces baselineskips while we don't always want them) and it was close > to impossible to identify such cases robustly > > (think of preceding lines with different depths) > > recent luatex has ways to disable that so i could finally come up with > cleaner spacing models for display math > > so, apart from bugs the current model is the one that will stay (or course > more control can be added) > > 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 > ___ ___ 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] startitemize bad with columns
By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column. How can I force that number of itemize and the formula will be in the same column: Simplifiqueu (potser sigui conveninent factoritzar el nombres més grans): \startitemize[a,columns] \item \startformula 5^{-3} \colon 5^4 \stopformula \item \startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \item \startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \item \startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \item \startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \item \startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \item \startformula \left(\frac{1}{2}\right)^{-2} \stopformula \item \startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \item \startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \item \startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \item \startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \item \startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopitemize Thanks, On Thu, 19 Sep 2013 17:21:07 +0200 Hans Hagen ha escrit: > On 9/19/2013 3:19 PM, Xan wrote: > > Hi, > > > > With this minimal example: > > > > \starttext > > \startitemize[a,columns,four] > > \item $5^3$ > > \item $\left(\frac{2}{3}\right)^4$ > > \item $254^0$ > > \column > > \item $\left(\frac{-8}{12}\right)^3$ > > \item $\left(-3\right)^5$ > > \item $\left(-50\right)^5$ > > \column > > \item $\left(-10\right)^7$ > > \item $0,2^3$ > > \item $\left(-0,22\right)^4$ > > \column > > \item $\left(\frac{3}{2}\right)^4$ > > \item $22^1$ > > \item $22^0$ > > \stopitemize > > \stoptext > > > > I get "mis-ordered" columns > > > > What can I do? > > download the beta that i just uploaded (i merged some experimental code > in mixed columns) > > i also added a math snapper ... because that's what one should actually > do when not in grid mode > > \starttext > > \startbuffer > \startitemize[a,columns,four][grid=] > \startitem 1: \snappedmath { 5^3} \stopitem > \startitem 2: \snappedmath { \frac{2}{3}^4 } \stopitem > \startitem 3: \snappedmath { 254^0 } \stopitem %\column > \startitem 4: \snappedmath { \frac{-8}{12}^3} \stopitem > \startitem 5: \snappedmath { -3^5 } \stopitem > \startitem 6: \snappedmath { -50^5 } \stopitem %\column > \startitem 7: \snappedmath { -10^7 } \stopitem > \startitem 8: \snappedmath { 0,2^3 } \stopitem > \startitem 9: \snappedmath { -0,22^4} \stopitem %\column > \startitem 10: \snappedmath { \frac{3}{2}^4 } \stopitem > \startitem 11: \snappedmath { 22^1 } \stopitem > \startitem 12: \snappedmath { 22^0 } \stopitem > \stopitemize > \stopbuffer > > \input ward \getbuffer > > \let\snappedmath\ruledmbox > > \input ward \getbuffer \input ward > > \stoptext > > > > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
[EMAIL PROTECTED] wrote: > > Sorry, I wasn't precise enough: I would like to indent paragraphs inside a > block > created with \defineenumeration (like theorems...), not inside an itemize > block. > The output in this latter case is indeed quite awful. \defineenumeration[theorem][indenting=always] This is actually easier to find, because it actually is documented in texshow: http://texshow.contextgarden.net/ > Every paragraph (preceded by an empty line or \par) in the "text flow" will > get > indented, independently of: > * what is above (formula, float, etc) > * what environment it belongs to (quote, theorem, abstract, etc.), as long as > this environment doesn't need alignment (like itemize, tabular, etc.) > > Of course, "particular" objects like captions, tables, footnotes, won't be > concerned by indenting. > > I hope my explanations were clear enough... If needed, I can write a small > LaTeX > example and send it to the list. The thing is that the formal specification is not clearly defined, not even if you mention all cases. _You_ may not want indented footnotes, but _I_ have typeset a book that did. And consider this: Text text text text \startquotation Quoted text quoted text \stopquotation Text text text text is the next "Text" indented, yes or no? Whether this is a 'display' or a standalone paragraph is very much up to the document designer. In english mathematical texts, Theorems and such are often seen as a kind of run-in header, so that "Theorem 1. Text text text" is not indented, but that usually does not apply to "Proof. Text text text" and "Remark 1. Text text text": those usually _are_ indented. I am being hesitant about a 'global switch' because I fear that any automated solution only takes care of one particular set of settings, and so does will really help that much and will become a documentation nightmare. Imagine: The command \indentallparagraphs will make sure that every paragraph in the document will get indented, regardless of its surroundings, with the following exceptions: * the bodies of the predefined floating objects figures, tables, intermezzos, graphics. * the bodies of the predefined footnotes & endnotes, and floating marginals * the contents of float captions * the paragraph following a \stopformula, if that formula is not preceded by \placeformula, and there is not empty line inbetween. * any itemgroups, enumerations, descriptions, floats etc. that were not predefined in the context core. * ... I hope you see the problem with that. Even a simple command like \setupindentnext[yes] does not work out-of-the-box, because you actually wanted \setupformulae[indentnext=auto] % not yes As I said before, it may be much easier to put all this in a module (by you, or someone else, but I guess you now have the list of desired commands pretty much at hand?). Then you can say \usemodule[indentall] and the context core would not have to think about all these border cases. Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and CMYK
Mojca Miklavec wrote: > On 2/5/07, Peter Rolf <[EMAIL PROTECTED]> wrote: >> Mojca Miklavec wrote: >>> On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: >>>> Mojca Miklavec wrote: >>>>> On 2/4/07, Hans Hagen <[EMAIL PROTECTED]> wrote: >>>>> >>>>>> Peter Rolf wrote: >>>>>> >>>>>>> But to my surprise ConTeXt automatically converts my RGB colors (even >>>>>>> the MP defined ones), except that the final colors are in the CMY >>>>>>> instead of CMYK color space. All I want is a true RGBtoCMYK conversion. >>>>>>> I know about the calculating limitations in TeX, so I can wait for an >>>>>>> implemetation of that macro in LuaTeX. >>>>>>> >>>>>>> >>>>>> but even then ... we need a formula ... >>>>>> >>>>> Most pages on the internet list the following simple conversion formula: >>>>> >>>>> C' = 1 - (R/range) C = (C' - K') / (1 - K') >>>>> M' = 1 - (G/range) M = (M' - K') / (1 - K') >>>>> Y' = 1 - (B/range) Y = (Y' - K') / (1 - K') >>>>> K' = MIN(C',Y',M') K = K' >>>>> >>>>> In the special case of K'=1, use (0,0,0,1) >>>>> >>>>> (I'm not a TeX guru, but I assume that conversion with current macros >>>>> should not be much more difficult than conversion with luaTeX.) >>>>> >>>>> >>>> this is what we have now >>>> >>>> \def\doconvertRGBtoCMYK#1\to#2% >>>> {\colordimen#1\points >>>>\multiply\colordimen \plusthousand >>>>\colorcount\colordimen >>>>\advance\colorcount \medcard >>>>\divide\colorcount \maxcard >>>>\colorcount-\colorcount >>>>\advance\colorcount \plusthousand >>>>\edef#2{\realcolorvalue\colorcount}} >>>> >>>> \def\convertRGBtoCMYK#1#2#3% >>>> {\doconvertRGBtoCMYK#1\to\@@cl@@c >>>>\doconvertRGBtoCMYK#2\to\@@cl@@m >>>>\doconvertRGBtoCMYK#3\to\@@cl@@y >>>>\let\@@cl@@k\@@cl@@z} >>>> >>>> well, you can spent the rest of the evening writing an alternative >>> Since writing reports can sometimes be really boring, you can test if >>> the following works, but please don't ask me what it does ;) >>> >> I doubt that writing such macros is a better activity ;) >> Thanks to you Mojca for this nice and clean structured solution. > > Nice and clean structured??? I hope that you're joking ... ;) > :)) It's working and this is more than I can say from my first attempt. But you are right. There is much room for optimization. I'll try to cook up something new tomorrow and then send you the result. Calculating in TeX can be so much fun ;) >> The conversion works ok, but the accuracy is not good enough. I have >> translated some parts into etex (better accuracy in divisions using >> dim|numexpr), but it's still lacks of accuracy. I will try to use a >> special macro (blow up numerator) for all divisions. > > The problem with accuracy appears at more steps: > - I used RGB->CMY->CMYK conversion, CMY is round off to 3 decimal places > - (c-k)/(1-k) probably works disastrous for large values of k > - (I had quite some problems understanding how conversion between > counters and dimensions works, and even more problems to find a clean > solution - eTeX is surely a better choice) > > Mojca > > (no ConTeXt on this computer, so I'll reply about the rest later) > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bug in maths environment: thematrix
Hi Hans, I noticed that in some situations the command \thematrix does not show all its arguments correctly: some parts are omitted in the typeset formula. In some occasions adding some groupings solves the issue, but not always. I noticed this bug two weeks ago, but could not produce a minimal example until now… Please see below, in particular the output for the matrices M_1, M_2 and M_3… Best regards: Otared % begin bug-thematrix.tex \starttext \startformula M_{1}(t) := \thematrix{{\rm e}^s ; {\rm e}^t}, \qquad B_{1}(t) := \thematrix{1 , {\rm e}^t}, \stopformula \startformula M_{2}(t) := \thematrix{{{\rm e}^s} , {{\rm e}^t}}, \qquad B_{2}(t) := \thematrix{0 ; {{\rm e}^t}}, \stopformula \startformula M_{3}(t) = \thematrix{{\rm e}^s, {\rm e}^t ; 0 , {\rm e}^t}. \stopformula \startformula M_{4}(t) = \thematrix{1, {{\rm e}^t} + 1 ; 0 , {{\rm e}^t}}. \stopformula \stoptext % end bug-thematrix.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Nested aligns in formulasjj
On 8/14/2023 1:16 PM, Gerion Entrup wrote: Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible? it will work if you configure the inner align to be tight (i delegate that answer) \startformula a = \alignhere (b, c) \quad \text{with} \breakhere b = \text{something} \breakhere c = \text{someother} \breakhere \text{somelong} = \alignhere bla \stopformula might be okay for your purpose 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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Math alignment issue
Dear Dalyoung, Thank you for testing, which shows that there is a bug somewhere. Mikael who follows the math stuff is aware of the problem, and I guess Hans will be informed. Best wishes for 2024: Otared > On 17 Jan 2024, at 14:10, Jeong Dal via ntg-context > wrote: > > Dear Otared, > > I got the same output in which there is an overlap of the formula on the last > line of the paragraph. The following line shows the version of my > installation. > > system > > system > ConTeXt ver: 2024.01.08 11:23 LMTX fmt: 2024.1.17 int: > english/english > system > > > Best wishes, > > Dalyoung > ___ > 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 > ___ 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 ___
Re: [NTG-context] Smallmatrix not implemented
[I do not get copies from the list, though having signed up.] >> Smallmatrix from AMS-TeX is not implemented in ConTeXt (Tex Live 2015), >> though crossed out in m-newmat.tex. > > You can create your own matrix environment for inline use: > > \definemathmatrix >[smallmatrix] >[left=\Big(, > right=\Big), > style=\scriptstyle, > strut=0.7, > distance=.25em] > > \starttext > > This is a example \m{ \startsmallmatrix \NC a \NC b \NR \NC c \NC d \NR > \stopsmallmatrix } for a smallmatrix environment. It looks pretty much like the AMS-LaTeX variation. Below is another example of use, as a displayed formula. % Defines a small two-by-two matrix. \def\twomatrix#1#2#3#4{\startsmallmatrix\NC{#1}\NC{#2}\NR\NC{#3}\NC{#4}\NR\stopsmallmatrix} % The Pauli spin matrices, explicit forms. \def\pspint{{\twomatrix1001}} \def\pspinx{{\twomatrix0110}} \def\pspiny{{\twomatrix0{-𝕚}𝕚0}} \def\pspinz{{\twomatrix100{-1}}} Pauli spin matrices \startformula σ^0 ≔ \pspint, \quad σ^3 ≔ \pspinz, \quad σ^1 ≔ \pspinx, \quad σ^2 ≔ \pspiny \stopformula ___ 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] Stacking math symbols
On 2/23/2016 7:31 PM, Nicola wrote: I find it a bit surprising that ConTeXt gives 'missing } inserted' with: \starttext\startformula \mathop=^{\rm def} \stopformula\stoptext (\mathop{=}^... is fine, though). The above formula is correct in Plain (Lua)TeX (in fact, it is copied from The TeX Book). Why does ConTeXt need braces? this is because \mathop is redefined (in th eprocess assuming a braced argument) ... this is a mkii leftover which is actually no longer needed (mkii needed more tweaks to get fonts right) you can add this to cont-new.mkiv \let\mathop\normalmathop but i'd use { } anyway (Before you point it out: I know that I should use \stackrel…) don't worry ... i would not have thought of it (i never have to enter that kind of math) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Nolimits not working with Unicode characters
On Sat, 14 May 2016, Hans Åberg wrote: On 14 May 2016, at 01:25, Hans Hagen wrote: installing and running the garden distribution is quite simple (as is updating) .. there are less files too (so no big burden to have it alongside tex live) With this installation, I get a strange bug: In the example below, the first integral gets ‘limits' in the displayed formula, as though ‘nolimits’ has not been defined. It works if one puts a character before the first integral sign. So it seems that the \startformula command misses the ∫ definition on the first non-space character. I haven't debugged this, but my guess is that the int symbol is read before \everymathematics is executed (because \startformula is looking ahead for the optional arguments in [...] and the only way to do so is read the next symbol and check if it is [). Use \startformula\relax ... \stopformula 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Flushleft formula
On 6/16/2016 6:58 PM, Aditya Mahajan wrote: Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip, but now it does. it doesn't but somehow it's not effective (indeed spacing was updated, some more - future - possibilities and bester handling in boxes and such) Consider the following example: \showframe \setupitemize[margin=6em] \setupformula[align=flushleft] \starttext \startitemize \item An equation inside an itemize \startformula E = mc^2 \stopformula \stopitemize \stoptext The output of 2016.05.06 is attached as test-old.pdf; that of 2016.06.16 is attached as test-new.pdf Is it possible to revert to the old behavior? can you test with \hskip\d_strc_formulas_display_margin_left % was kern but that doesn't indent line 1153 in math-ali.mkiv Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Flushleft formula
On 6/17/2016 12:18 AM, Aditya Mahajan wrote: On Thu, 16 Jun 2016, Hans Hagen wrote: On 6/16/2016 6:58 PM, Aditya Mahajan wrote: Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip, but now it does. it doesn't but somehow it's not effective (indeed spacing was updated, some more - future - possibilities and bester handling in boxes and such) And some stage, it will be nice to discuss the possiblility of adding background to formulas, especially aligned formulas. Similar to some of the examples in http://texdoc.net/texmf-dist/doc/latex/mathtools/empheq.pdf actually, backgrounds were a reason for some changes but the code that does that is not yet integrated (still considering the interface) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] rightaligned formulas stick out in the margin
Hi! Look at the following example (pdf attached) \setupformulas[ align=flushleft, leftmargin=3em, ] \starttext \input tufte % Some text to see where the margin is This looks OK: \startformula 1+1=2 \stopformula This does not look OK: \startformula 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1=19 \stopformula This looks OK again: \startformula \startalign \NC 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1=19\NR \stopalign \stopformula \stoptext The result is attached. I would expect the second display math to behave as the third, i.e. move to the left so that it fits. As a workaround I can put every problematic formula I have in aligns, but I have a feeling this might be a bug. /Mikael ctx-example11.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 ___
Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt
Thanks Nicola and Alan. I'll look into that. Best Wishes Keith On 05/04/2018 17:42, Nicola wrote: On 05/04/2018 18:24, Alan Braslau wrote: On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: I use a mac-mini and it seems that mupdf, of which mutools is part off, does not have a macOS version, or I would have to build from source. However it looks like I can use Inkscape with a wee bit thought to do pretty much the same. mupdf is available on MacPorts... ...also in Homebrew (mupdf formula, or mupdf-tools if you don't need the viewer). Nicola ___ 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] Issues with RGB to CMYK conversion with color profiles
Jan U. Hasecke schrieb am 14.11.18 um 11:39: Hi all, attached you find my colormanagement tests and I need your help to understand and debug the situation. I am testing together with a friend of mine, a professional colormanager, who does not know ConTeXt. Even without a color profile the results from the normal conversion of colors from cmyk to rgb can result in differences between ConTeXt and Gimp because both use different formulas. This is the formula from ConTeXt (attr-col.lua) r = 1.0 - math.min(1.0,c+k) g = 1.0 - math.min(1.0,m+k) b = 1.0 - math.min(1.0,y+k) and this is the one from Gimp (https://gitlab.gnome.org/GNOME/gimp/blob/master/libgimpcolor/gimpcolorspace.c) r = 1.0 - math.min(1.0,c*(1.0-k)+k) g = 1.0 - math.min(1.0,m*(1.0-k)+k) b = 1.0 - math.min(1.0,y*(1.0-k)+k) 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 ___
Re: [NTG-context] Nabla operator appears italic in formula
On 24 mars 2013, at 11:24, Hans Hagen wrote: > On 3/23/2013 9:34 PM, Xenia wrote: >> Dear context list, >> >> using the nabla symbol ∇ in formulas, I wondered why it looks italic and >> not upright as for example in [1]. >> I attach an example. > > Because that's how it's defined in math italics ... is nabla always supposed > to be upright in standard math italic mode? > > (I'll change the \nable definition to \unexpanded\def\nabla{∇}.) > > Hans Hi, \nabla should be italic if all other math greek symbols, like \Omega, \Gamma, \sum, ect are set in italic. Otherwise \nabla and all such symbols should be upright. Would it be possible to make this optional in math italics, something like \setupmathematics[mathsymbols=italic] or \setupmathematics[mathsymbols=upright] Maybe this should be set when one chooses the greek letters to be italic or upright in mathematics. Best regards: OK ___ 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] NTG-context] How to hack the lua files
I haven't been using the project structure. From your question, I am inferring that this might help. At present I have treated the files as two separate documents. I didn't take too much time looking at how to set up the project structure because it wasn't clear that I needed it. But I can see how this might impact cross references between documents. -Lance On 6/17/2013 3:25 PM, Lance Larsen wrote: > Hans, > > Thankyou for your suggestion of using the \usereferences tag to reference > formulas in another document. This is a good solution. However the example > below doesn't give usable results because the references to the external > formula output by test2.tex does not include the chapter number: Do you use the project structure? components and such? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sample farsi file
Ilda Khaki wrote: 1) numbers in maths formula is Persian, possible? luatex will have unicode math and then we can look into that (it does not make sense to do that in traditional tex math) 2) is it hard to write a converter? no, it's done in core-con.lua etc 4) there are two footnote commands. one for persian and one for english. persian footnotes will be on left and persian footnotes on right. also if the first footnote in a page is persian, footnote rule is on the right and if first footnote is english, footnote rule is on left. is that persian or general rl ? who is idris? Idris Samawi Hamid [project leader of the oriental tex project which supports luatex] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Translating PDF-files
On Wed, Jan 19, 2011 at 3:35 PM, Cecil Westerhof wrote: > 2011/1/19 luigi scarso >> >> On Wed, Jan 19, 2011 at 3:14 PM, Cecil Westerhof >> wrote: >> > Already done. What looked the most promissing was pdftohtml. Just >> > wondering >> > if there is a better way. >> What y do you want exactly ? >> Preserve structure ? formulas ? layout ? >> As far as these informations are not embedded (tagged) into the pdf >> you have to do (a lot of) manual work . > > My contact 'just' wants to translate the document. I already told him that > this is easier said than done. But he is adamant. (Notwithstanding that > several people already gave up on his quest.) I think structure and layout > should be maintained. But I think it will be mostly 'simple' documents with > text and some graphics. So I do not expect to have formula trouble. hm, maybe you can have a look at inkscape then (at least 0.48) -- luigi ___ 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] Arbitrary equation tags... again
On 2/22/2021 2:05 PM, Jairo A. del Rio wrote: Hi. list. Is it possible to assign an arbitrary equation tag in ConTeXt? I've seen solutions here; https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text <https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text> but none of them works as expected (either the formula counter is still incrementing with arbitrary conversions or cross-references don't work). Define 'expected' ... \eqno is something low level (a primitive) and we have that nilled at the user level and only use it deep down. It was never meant as user command. I imagine some things have changed in 2021 and I hope a better solution is feasible nowadays. \startTEXpage[offset=2bp] \startplaceformula[title=A] \startformula 1 + 1 = 2 \stopformula \stopplaceformula \stopTEXpage 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 ___