Re: [NTG-context] upright lowercase Greek letters in math formulas
Hi Mojca, it seems font switches do not work here. You must define your own commands for upright Greek letters, e.g. \def\muup {\Umathchar 00B5 } At least this works, maybe there is a better way to do it. Johannes Am 26.05.14 14:12, schrieb Mojca Miklavec: Hi, How could I get upright lowercase Greek letters in math formulas (provided that such a symbol exists, of course)? Here's a minimal example: \setupbodyfont[times] \starttext $15{\rm\frac{μm}{μs}}$ 15 μs \stoptext Thank you, 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 : 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 ___
[NTG-context] Guttenberg's dissertation typeset in ConTeXt
Did anyone on this list know (or did anyone notice yet) that the print version of the much-discussed dissertation by Karl-Theodor zu Guttenberg was (allegedly) typeset in ConTeXt? See http://de.wikipedia.org/wiki/Verfassung_und_Verfassungsvertrag._Konstitutionelle_Entwicklungsstufen_in_den_USA_und_der_EU (in section Äußere Form). -- Johannes Kuester typoma mailto:j...@typoma.com http://www.typoma.com ___ 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] Guttenberg's dissertation typeset in ConTeXt
The Google Docs version -- https://docs.google.com/viewer?a=vpid=explorerchrome=truesrcid=0BxWgi9nKtBIUNGNmYWM3ZDgtMjUwYy00YjZkLWExZWQtNDY1MDZmMTQ3MGI3hl=en -- does not look like ConTeXt. But I think this is not the typeset and published version. I suppose by the Satz: entry on p. 5, the Wikipedia author guessed that it was typeset in ConTeXt. And yes, it will definitely bring some attention to ConTeXt. When you look at Links auf diese Seite (i.e. What links here), the article on the dissertation is the first untypical / unexpected link: http://de.wikipedia.org/wiki/Spezial:Linkliste/ConTeXt Johannes On 02/21/2011 06:43 PM, Arthur Reutenauer wrote: Did anyone on this list know (or did anyone notice yet) that the print version of the much-discussed dissertation by Karl-Theodor zu Guttenberg was (allegedly) typeset in ConTeXt? From my German colleague: We should test if he masters ConTeXt. If he doesn't... Arthur P-S: Whether that particular piece of information is true or not, it will bring some attention to ConTeXt! The ConTeXt community should try and take advantage of that :-) I wonder how the author of the Wikipedia article knows that, though. Presumably, someone got hold of a PDF version of the dissertation? ___ 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 ___ -- Johannes Kuester typoma mailto:j...@typoma.com http://www.typoma.com ___ 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] defined symbols - question/feature suggestion
On 02/20/2011 12:40 AM, Hans Hagen wrote: On 20-2-2011 12:24, C. wrote: I see. So from your and all the other responses I take that matching math font for Minion is not available until (I) Minion Math supports ConTeXt (= commercial?!) (II) Somebody ports MnSymbol files to ConTeXt Isn't the minion math companion an opentype math font then? Open type math works out of the box. For type1's one needs to create a definition set (not that complex if tex default encoding is used). The Minion Math fonts are OpenType fonts. The next release (March 2011, hopefully) will include the OpenType MATH table. And ConTeXt support. For ConTeXt I haven't tested yet what will work out of the box and what will need additional support (e.g. to access additional characters encoded in the PUA; to access the 4 weights and the optical sizes). And yes, the fonts are commercial. But Minion itself is commercial as well. Of course all support files (for ConTeXt, LaTeX, ...) are / will be available for free. Johannes -- Johannes Kuester typoma mailto:j...@typoma.com http://www.typoma.com ___ 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] defined symbols - question/feature suggestion
On 02/18/2011 02:50 PM, C. wrote: ...and I was just about to ask how to use MnSymbol with context. What a shame. Any suggestions for a decent looking math font that pairs well with Minion? Minion Math. See http://www.typoma.com/en/fonts.html -- Johannes Kuester typoma mailto:j...@typoma.com http://www.typoma.com ___ 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] Grid-keeping list (again)
Dear Luigi, luigi scarso wrote: hmm maibe i have not understand, but \zeichen{0002}{b}{second letter \vrule width 0.1pt height 1em depth2em }{}% %% or this %% \zeichen{0002}{b}{second letter \blank Mlg() }{}% breaks the rule. Or not ? Yes, it does, definitely. So it's my (or any other user's) responsibility that the cells contain only allowed stuff. I still have to see how to deal with large symbols (bigops and integrals). Maybe with \blank[medium] in between (and some \smash), so that every second line will be on the grid again. When I typeset a similar list previously (for Detailtypografie), I still did that in LaTeX. That required a lot of trickery and manual correction, but at least I was able to do it (and yes, it was arranged on a grid, but LaTeX didn't know that). That is currently my main conceptual problem with ConTeXt: sometimes it's too high-level and too clever, and it's hard to figure out how to do the trickery and the tweaking ... Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping list (again)
Hans Hagen wrote: there is some some gridmath support available; see details.pdf Hans Yes, I know, I use that already. Very helpful for my display formulas. I didn't try it yet on my symbols list, here the module from Wolfgang and blanks will do, I think. Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping list (again)
Maybe a strategy is to use a vbox with ht+dp multiple of a grid space ...but the first line of every page has another height Each first line will be some heading, so that's not a problem in my case. My grid-keeping list problem is solved, the module by Wolfgang serves my purpose very well. There are many pdf about context; I try to have a 'programmer view' of these things. Among others, see and criticize http://wiki.contextgarden.net/User:Luigi.scarso/modules.pdf#modules.pdf Nice and interesting (although I didn't had enough time to look at it thoroughly). I'm aware of all the pdf manuals, and I use the wiki, source browser, mailing list + archive. Still it's sometimes hard to find one's way through. But on to my next problems ... Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Grid-keeping list (again)
Hello, I'm still trying to typeset a grid-keeping list (or table). Wolfgang Schuster supplied me off-list with the attached module. This works fine except for one problem: Only the first few lines are placed on the grid, then the grid is lost. After the next pass (i.e. after the next texmfstart texexec testfile), some more lines are placed on the grid. (So I need many passes to typeset the complete list correctly). Why? Any idea? (I fiddled around with \synchronizegrid, \placeongrid, \moveongrid, and \startlinecorrection \stoplinecorrection, but none of these seems to work.) You could try the effect with the following example: %% \setuplayout[grid=yes, columns=2] \showgrid %\showstruts \usemodule[gridlist] \starttext \startcolumns[n=2, balance=no] %% (columns are not necessary to show the effect) \dorecurse{20}{ \zeichen{0001}{a}{first letter}{}% \zeichen{0002}{b}{second letter}{}% \zeichen{0002}{c}{third letter, this one has a longer entry which needs more than one line}{}% } \stopcolumns \stoptext %% (This should result in an annotated list of mathematical symbols, showing the Unicode number, the math symbol, and some explanation (and where the explanation could need more than one line); quite similar to the list I published in Detailtypografie (2nd ed. 2004), but for another -- quite pressing -- project.) Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com \startmodule[gridlist] \unprotect \def\ze{ze} % ZEichen \newcount\zeichencolumn \def\setupzeichen {\dodoubleempty\dosetupzeichen} \def\dosetupzeichen[#1][#2]% {\ifsecondargument \dodosetupzeichen[#1][#2] \else \dodosetupzeichen[\v!line][#1] \fi} \def\dodosetupzeichen[#1][#2]% {\def\docommand##1% {\getparameters[\ze##1][#2]} \processcommalist[#1]\docommand} \def\zeichenparameter#1% {\csname \ifcsname\ze\number\zeichencolumn#1\endcsname \ze\number\zeichencolumn \else \ze\v!line \fi #1\endcsname} \definehspace[myindent][10pt] \def\startunisym% {\bgroup% \setbox\scratchbox\hbox\bgroup} \def\stopunisym% {\egroup% \raise.3ex\hbox{\box\scratchbox} \egroup} \def\zeichen% {\ignorespaces\permitspacesbetweengroups \doquadruplegroupempty\dozeichen} \def\dozeichen#1#2#3#4% {\begingroup \zeichenparameter\c!before \zeichencolumn\zerocount \hbox\!!to\zeichenparameter\c!textwidth {\zeichenzelle{#1}% \zeichenzelle{#2}% \hfill \zeichenzelle{#3}}% \zeichenparameter\c!after \endgroup} \def\zeichenzelle#1% {\advance\zeichencolumn\plusone \hbox {\vtop {\hsize\zeichenparameter\c!width \zeichenparameter\c!before \begstrut \dostartattributes{\ze\number\zeichencolumn}\c!style\c!color \zeichenparameter\c!left #1 \zeichenparameter\c!right \dostopattributes \endstrut \zeichenparameter\c!after}}} \setupzeichen [\c!textwidth=63.8833mm,% \c!before=\noindenting\synchronizegrid,% \c!after=\synchronizegrid,% ] \setupzeichen [1,2,3,4] [\c!before=, \c!after=, \c!left=, \c!right=] \setupzeichen [1] [\c!width=6.5mm, \c!left=\startunisym, \c!right=\stopunisym, \c!align=right, \c!before=\raggedright, \c!after=, \c!style={\switchtobodyfont[6.8pt]\tt\bf}] \setupzeichen [2] [\c!width=7.5mm, \c!left=$, \c!right=$, \c!before=\raggedcenter, \c!style={\switchtobodyfont[9.6pt]}] \setupzeichen [3] [\c!width=49.883mm, \c!style={\switchtobodyfont[8.4pt]}, \c!before=\hangindent10pt\hangafter1\raggedright] \protect \stopmodule \endinput ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping list (again)
luigi scarso wrote: On 4/12/07, Johannes Kuester [EMAIL PROTECTED] wrote: Hello, I'm still trying to typeset a grid-keeping list (or table). Sorry, no answer. Only to say that I'm following this subject, and I'm doing some private tests. Thank you! I hope you will be more successful than I am. I do not understand why this is such a problem. Basically, it's just about paragraph boxes and their proper alignment on a grid. To me, such a list seems like a basic typographic requirement, so it should be possible to do that in ConTeXt. Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping list (again)
Hi Wolfgang, perfect, now everything works as expected! Thank you! Johannes Wolfgang Schuster wrote: Hi Johannes, replace the current definition of \zeichenzelle with the following: \def\zeichenzelle#1% {\advance\zeichencolumn\plusone \hbox {\vtop {\hsize\zeichenparameter\c!width \normalbaselines \zeichenparameter\c!before \begstrut \dostartattributes{\ze\number\zeichencolumn}\c!style\c!color \zeichenparameter\c!left #1 \zeichenparameter\c!right \dostopattributes \endstrut \zeichenparameter\c!after}}} \synchronizegrid in \setupzeichen is not neccessary \setupzeichen [\c!textwidth=63.8833mm, \c!before=\noindenting, %\synchronizegrid, \c!after=, %\synchronizegrid ] add the next two commands to your module \def\startzeichen{\begingroup\offinterlineskip} \def\stopzeichen{\endgroup} a alternative version %\def\startzeichen{\offinterlineskip} %\def\stopzeichen{\oninterlineskip} and put \startzeichen and \stopzeichen before and after your lines with all \zeichen commands \startzeichen \zeichen ... \zeichen \stopzeichen and everything should work as expected Wolfgang -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] math: \usemathcollection and \enablemathcollection
I'm quite lost with \usemathcollection and \enablemathcollection -- I checked the manual, the wiki, and the source browser, but without success for my problems. I just don't get how math font switching works for e.g. Lucida fonts, and why it does not for my fonts in my setup. So: What is the correct use of \usemathcollection and \enablemathcollection i.e. where should these appear (and where not)? Do I need \enablemathcollection at all? In my current setup (see below), I have two problems: Major problem: I would like to switch my math fonts globally. Currently I have to apply \enablemathcollection e.g. after every \startcolumns (and after other environments as well), otherwise my math fonts are used, but not in the desired encoding, which results in wrong symbols shown. Minor problem: I would like make sure that all math symbols do come from my math fonts and aren't taken from CM or other fonts. Is this possible? E.g. could I get an error message (or some special black box or the like in my pdf file) for each math control sequence which is not (yet) defined in my current mathcollection? My current setup: -- an environment file env-signa.tex with (among many other definitions) \usetypescriptfile[type-opticals] \usetypescriptfile[type-minionpro] \usetypescriptfile[type-tymnmath] \usetypescript[MinionPro][ec] \setupbodyfont[MinionPro] \switchtobodyfont[MinionPro,9.6pt] -- a type-minionpro.tex file with \starttypescript [serif] [MinionProSizes] [ec] % (followed by many \definefontsynonym) \stoptypescript \starttypescript[MinionPro][ec] \usetypescript[serif][Opticals][size] \usetypescript[serif][MinionProSizes][ec] \usetypescript[newmath][MinionMath] %[size] \definebodyfontenvironment [9.6pt] [\s!text=9.6pt,\s!script=6.8pt,\s!scriptscript=4.9pt, \c!x=8.4pt,\c!xx=5.8pt,\c!big=11pt,\c!small=7.6pt] % further \definebodyfontenvironment entries \enablemathcollection[newmath] \usemathcollection[newmath] \quittypescriptscanning \stoptypescript -- a math-newmath.tex file with math font synonyms, definitions and some blocks like \startmathcollection[newmath] % (many \definemathsymbol entries) \stopmathcollection This is a general file for math fonts following TeX NewMath encodings (this should develop in a real ConTeXt module for general use) -- a type-tymnmath.tex file, setting up my math fonts, with \starttypescript[newmath][MinionMath] % (with % \definefontsynonym % and % \definebodyfont [9.6pt] [mm] % [ ... ] % entries) \stoptypescript -- and of courese a main file with \startproject project_signa \environment env_signa and components (chapter files) with \startcomponent kap_01 \project project_signa Thanks for any help! Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping table
Dear Luigi, dear Rolf, thank you for your help. Below is a (hopefully) better example of what I try to do and where it fails. The last line in tabulate (starting with 22C6) loses the grid, and I can't see why. Unfortunately the solutions you suggested did not work for me. I do want to avoid to specify cell heights, I just want to arrange paragraph boxes, all (horizontally) top-aligned with each entry in my table. TABLE with \synchronizegrid would do the trick (a non-framed table would have grid-keeping rows). Still it seems to fail in my specific setting (two-column, I could not trace down what the problem really is). And the need to specify the number of rows is a problem in my case, as I would need to add a parameter to my macro etc. Johannes %% \setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \starttabulate[|p(.1\textwidth)|p(.1\textwidth)|p(.5\textwidth)|p(.2\textwidth)|]% \NC 002B \NC $+$ \NC plus; Addition \NC \NR \NC 00D7 \NC $\times$ \NC kartesisches Produkt (von Mengen);\hfill\break Kreuzprodukt (Vektorprodukt);\hfill\break mal; Produkt (bei Zahlwerten) \NC \NR \NC 2217 \NC $*$ \NC (Stern, Asterisk); Konvolution; Faltung; Produkt \NC \NR \NC 22C6 \NC $\star$ \NC (Stern); Zeichen fuer spezielle Produkte \NC \NR \stoptabulate \blank \input tufte \stoptext %% -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping table
It seems linetable would do just what I need (at least I get rid of the strut / unwanted vertical spacing problem, so I do get a grid-keeping table), but: Is there a way to use linetable in two-column mode? (i.e. the consecutive lines of my table should be set just like normal text would in two-column mode). Currently linetable just streches over the whole textwidth, as it adds white space between columns. Johannes %% In my previous example below, using \setuplinetable[n=4] \setuplinetable[c][1] [width=6mm] \setuplinetable[c][2] [width=5mm] \setuplinetable[c][3] [width=51mm] \setuplinetable[c][4] [width=1mm] and then startlinetable / stoplinetable instead of start/stoptabulate works fine for the vertical spacing problem. %% \setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \starttabulate[|p(.1\textwidth)|p(.1\textwidth)|p(.5\textwidth)|p(.2\textwidth)|]% \NC 002B \NC $+$ \NC plus; Addition \NC \NR \NC 00D7 \NC $\times$ \NC kartesisches Produkt (von Mengen);\hfill\break Kreuzprodukt (Vektorprodukt);\hfill\break mal; Produkt (bei Zahlwerten) \NC \NR \NC 2217 \NC $*$ \NC (Stern, Asterisk); Konvolution; Faltung; Produkt \NC \NR \NC 22C6 \NC $\star$ \NC (Stern); Zeichen fuer spezielle Produkte \NC \NR \stoptabulate \blank \input tufte \stoptext %% -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Grid-keeping table
Wolfgang Schuster wrote: 2007/3/28, Johannes Kuester [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: It seems linetable would do just what I need (at least I get rid of the strut / unwanted vertical spacing problem, so I do get a grid-keeping table), but: Is there a way to use linetable in two-column mode? (i.e. the consecutive lines of my table should be set just like normal text would in two-column mode). Hi Johannes, a short example to play for you. The important things are the stretch and the lines key in \setuplinetable. You should also look at the end of core-ltb, it contains a few interresting examples. \setuplinetable[stretch=yes,lines=fit] \starttext \startcolumns \startlinetable \dorecurse{80}{\NC Text \NC Text \NC\NR} \stoplinetable \stopcolumns \stoptext Wolfgang Hi Wolfgang, I already looked at the examples in core-ltb, and on the wiki. Still linetable does not work in my specific case (with my layout options etc.), but I can't trace down why it does not. But linetable seems to have problems in general, when used in columns. When I try your example with more input lines (thus running over more than one page), say %% \setuplayout[grid=yes] \showgrid \setuplinetable[stretch=yes,lines=fit] \starttext \startcolumns \startlinetable \dorecurse{180}{\NC Text \NC Text \NC\NR} \stoplinetable \stopcolumns \stoptext %% I get a correct left column (on page 1 and 2), but the right column is three lines too long. Setting the number of lines: \setuplinetable[lines=41] would help for one-line cell entries (then each column has the correct number of lines on the page), but in my case with multi-line entries, each such entry is counted as one line, thus resulting in a too long column. So, linetable does not do the job. Back to tabulate, I presume, but tabulate has the strut problem. Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Grid-keeping table
Dear all, I'm trying to typeset a rather simple list or table where each line should keep the overall grid of my page design. For this I tried tabulate, table, and TABLE, but all failed. What I need is the following: 4 columns, each with a fixed width. One of the columns may contain a paragraph (i.e. more than one line), like: Axxx first entry with zzz more text Bxxx next entryzzz The line starting with B does not keep the grid -- at least in most cases; I couldn't trace down when and why this fails. (The specific environment is not important (whether tabulate, table, TABLE, or some other solution), as all entries are supplied by a macro which I could adapt easily). Johannes -- Johannes Kuester typoma mailto:[EMAIL PROTECTED] http://www.typoma.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context