Re: [NTG-context] punctuation vs font switch
On Wed, 3 Oct 2012, Andreas Mang wrote: Dear all, at the risk of being met with an incredulous shake of the head: I am using xits as math font and pagella as main font (for several reasons). Obviously, the punctuation (in particular "comma") does not match. Is there an easy and quick global fix!? Your help is very much appreciated. Cheers, Andreas % minimal example \starttypescript [myface] \definetypeface [\typescriptone] [rm] [serif] [pagella] [default] \definetypeface [\typescriptone] [ss] [sans] [helvetica] [default] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] \definetypeface [\typescriptone] [mm] [math] [xits] [default] \stoptypescript \setupbodyfont[myface,11pt] \starttext $1{,}2$ 1,2 % difference $1\text{,}2$ % not so nice work around and problematic since the font size does not change (superscript, subscript,...) (Untested), but I thought that \text should change the size of the text font in superscripts and subscripts, otherwise it is a bug in the implementation (wrt amsmath implementation) \stoptext % stop minimal example This is something I'd be interested in as well, but for a different reason. I like to use Pagella + Euler for math, but there are some symbols missing in Euler (in particular, black board bold (https://github.com/khaledhosny/euler-otf/issues/2), but other symbols as well). As an emergency measure, it will be useful to pick these symbols from a fallback font). So, an interface for something like this will be useful (I believe that simplefonts does something similar for Asian languages, but I am not sure if it can handle math fonts as well). 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] punctuation vs font switch
Dear all, at the risk of being met with an incredulous shake of the head: I am using xits as math font and pagella as main font (for several reasons). Obviously, the punctuation (in particular "comma") does not match. Is there an easy and quick global fix!? Your help is very much appreciated. Cheers, Andreas % minimal example \starttypescript [myface] \definetypeface [\typescriptone] [rm] [serif] [pagella] [default] \definetypeface [\typescriptone] [ss] [sans] [helvetica] [default] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] \definetypeface [\typescriptone] [mm] [math] [xits] [default] \stoptypescript \setupbodyfont[myface,11pt] \starttext $1{,}2$ 1,2 % difference $1\text{,}2$ % not so nice work around and problematic since the font size does not change (superscript, subscript,...) \stoptext % stop minimal example P.S. Clearly, this does not matter for formulas but its different for inline (in text) math expressions. ___ 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] Alignment in combination
Am 03.10.2012 um 13:47 schrieb Marco Patzer : > Hi, > > how to left align the elements of a combination? > > \useMPlibrary [dum] > \setupexternalfigures [height=2cm] > \starttext > > %% does nothing: \setupcombinations [align=flushleft] > \startcombination [2*2] > {\externalfigure[dummy][width=2cm]} {} > {\externalfigure[dummy][width=2cm]} {} > {\externalfigure[dummy][width=4cm]} {} > {\externalfigure[dummy][width=3cm]} {} > \stopcombination \blank[2cm] > > %% desired: > \startcombination [2*2] > {\kern-2cm\externalfigure[dummy][width=2cm]} {} > {\kern-1cm\externalfigure[dummy][width=2cm]} {} > {\externalfigure[dummy][width=4cm]} {} > {\externalfigure[dummy][width=3cm]} {} > \stopcombination > > \stoptext The align key controls the alignment of the caption, to change the position of the content you need the location key, e.g. \setupcombination [location=left] 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] Strange behaviour by processing a project file
2012-10-03 pa...@hanak.name: Hi Pavel > But when I try to process the whole project with "context > my-project.tex", the file is processed but I get no pdf output, > which surprise me, because in the reference manual contextref.pdf > I read: A project cannot be typeset, only products and components. The mechanism was recently changed from a tolerant to a more strict version that now causes your problem. “Projects are just there to help clever editors to identify products.” [1] Marco [1] http://article.gmane.org/gmane.comp.tex.context/70876 ___ 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 behaviour by processing a project file
Hello, I have the following file structure: * file "my-project.tex" contains: \environment my-environment \startproject my-project \product my-product1 \product my-product2 \stopproject * file "my-environment.tex" contains: ... font definitions, style definitions etc. * file "my-product1.tex" contains: \project my-project \startproduct my-product1 ... \stopproduct * file "my-product2.tex" contains: \project my-project \startproduct my-product2 ... \stopproduct Now, when I process the product1 with "context my-product1.tex" I get the output in my-product1.pdf as expected. But when I try to process the whole project with "context my-project.tex", the file is processed but I get no pdf output, which surprise me, because in the reference manual contextref.pdf I read: "In principal a project file contains only a list of products and environments. If you would process the project file all products will be placed in one document. This is seldom wanted." So I would expect to get one pdf outputfile with all products. Could anyone explain me, why I don't get any pdf output? Best regards Pavel ___ 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] Alignment in combination
Hi, how to left align the elements of a combination? \useMPlibrary [dum] \setupexternalfigures [height=2cm] \starttext %% does nothing: \setupcombinations [align=flushleft] \startcombination [2*2] {\externalfigure[dummy][width=2cm]} {} {\externalfigure[dummy][width=2cm]} {} {\externalfigure[dummy][width=4cm]} {} {\externalfigure[dummy][width=3cm]} {} \stopcombination \blank[2cm] %% desired: \startcombination [2*2] {\kern-2cm\externalfigure[dummy][width=2cm]} {} {\kern-1cm\externalfigure[dummy][width=2cm]} {} {\externalfigure[dummy][width=4cm]} {} {\externalfigure[dummy][width=3cm]} {} \stopcombination \stoptext 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 ___
Re: [NTG-context] TABLE and row/column align settings
The \setupTABLE calls do only store the settings but the values are used later when each cell is formatted and at this step row settings are processed before column settings BTW: Wouldn't be more flexible if the (stored) settings were processed in the order they have been defined? but when you want a different format for the header you can use \setupTABLE[header][…]which has a higher priority than these two setups. OK, it's useful in my case. Thanks anyway. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] TABLE and row/column align settings
Am 03.10.2012 um 11:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : > ... Thanks for the answer but - > > - I generated a macro just do demonstrate different behavior in row #1 > depending on whether settings for columns were specified for a PARTICULAR > column ("\setupTABLE[column][2][...]") or for columns IN GENERAL > ("\setupTABLE[column][][...]"). > > I need the case with a particular column settings to work: > > > \starttext > \bTABLE >\setupTABLE[width=2cm] >\setupTABLE[column][2][align=flushright] >\setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 > should be overwritten; but are not (?!) >\bTABLEhead[align=middle] > \bTR >\bTH[align=middle] a\eTH >\bTH[align=middle] b\eTH > \eTR >\eTABLEhead >\bTABLEbody > \bTR >\bTD a\eTD >\bTD b\eTD > \eTR >\eTABLEbody > \eTABLE > \stoptext > > > You can see that "\setupTABLE[row][1][align=middle]" doesn't affect column > #2, which keeps its previously setting > "\setupTABLE[column][2][align=flushright]"; this is unwanted. > > I'd need "\setupTABLE[row][1][align=middle]" to overwrite the column #2 > setting, so that all columns in the row #1 be mid-aligned. The \setupTABLE calls do only store the settings but the values are used later when each cell is formatted and at this step row settings are processed before column settings but when you want a different format for the header you can use \setupTABLE[header][…] which has a higher priority than these two setups. 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] TABLE and row/column align settings
... Thanks for the answer but - - I generated a macro just do demonstrate different behavior in row #1 depending on whether settings for columns were specified for a PARTICULAR column ("\setupTABLE[column][2][...]") or for columns IN GENERAL ("\setupTABLE[column][][...]"). I need the case with a particular column settings to work: \starttext \bTABLE \setupTABLE[width=2cm] \setupTABLE[column][2][align=flushright] \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 should be overwritten; but are not (?!) \bTABLEhead[align=middle] \bTR \bTH[align=middle] a\eTH \bTH[align=middle] b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE \stoptext You can see that "\setupTABLE[row][1][align=middle]" doesn't affect column #2, which keeps its previously setting "\setupTABLE[column][2][align=flushright]"; this is unwanted. I'd need "\setupTABLE[row][1][align=middle]" to overwrite the column #2 setting, so that all columns in the row #1 be mid-aligned. Lukas On Wed, 03 Oct 2012 10:53:39 +0200, Wolfgang Schuster wrote: Am 03.10.2012 um 10:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : Hello, I have a complicated TABLE, but I simplified it to the following example: \def\DoTable#1{% \bTABLE \setupTABLE[width=2cm] \setupTABLE[column][#1][align=flushright] % ... [1] \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 should be overwritten ... [2] \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE } \starttext No column specification: \DoTable{} With column specification: \DoTable{2} \stoptext The problem is that row #1 should be mid-aligned in all columns. So I wrote: \setupTABLE[column][2][align=flushright] % Column #2 has its own alignment... \setupTABLE[row][1][align=middle] % ... but overwrite here for the whole row #1 (including column #2) But column #2 keeps the previously assigned alignment. The situation doesn't change even if I swap [1] and [2] (for the case "the earlier setting, the higher priority"). Moreover, if the column number if not specified (\DoTable{}), the row setting overwrites setting for ALL columns; so only if the column is specified precisely, its setting is kept. So how to overwrite row #1 setting globally? And how setting priorities are evaluated? I guessed the later specification, the higher weight (which would allow overwriting)... Note that in the example it would be possible to specify settings for each row/column, but it not useful way in the case of more/very complicated tables. \def\DoTable {\dosingleempty\DodoTable} \def\DodoTable[#1]% {\bgroup \setupTABLE[width=2cm]% \doifsomething{#1}{\setupTABLE[column][#1][align=flushright]}% \setupTABLE[header][align=middle]% \bTABLE \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE \egroup} \starttext No column specification: \DoTable With column specification: \DoTable[2] \stoptext Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] TABLE and row/column align settings
Am 03.10.2012 um 10:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : > Hello, > > I have a complicated TABLE, but I simplified it to the following example: > > > \def\DoTable#1{% > \bTABLE >\setupTABLE[width=2cm] >\setupTABLE[column][#1][align=flushright] % > ... [1] >\setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 > should be overwritten ... [2] >\bTABLEhead > \bTR >\bTH a\eTH >\bTH b\eTH > \eTR >\eTABLEhead >\bTABLEbody > \bTR >\bTD a\eTD >\bTD b\eTD > \eTR >\eTABLEbody > \eTABLE > } > > \starttext > No column specification: \DoTable{} > > With column specification: \DoTable{2} > \stoptext > > > The problem is that row #1 should be mid-aligned in all columns. So I wrote: > > >\setupTABLE[column][2][align=flushright] % Column #2 has its own > alignment... >\setupTABLE[row][1][align=middle] % ... but overwrite here for the whole > row #1 (including column #2) > > > But column #2 keeps the previously assigned alignment. > > The situation doesn't change even if I swap [1] and [2] (for the case "the > earlier setting, the higher priority"). > > Moreover, if the column number if not specified (\DoTable{}), the row setting > overwrites setting for ALL columns; so only if the column is specified > precisely, its setting is kept. > > So how to overwrite row #1 setting globally? > > And how setting priorities are evaluated? I guessed the later specification, > the higher weight (which would allow overwriting)... > > Note that in the example it would be possible to specify settings for each > row/column, but it not useful way in the case of more/very complicated tables. \def\DoTable {\dosingleempty\DodoTable} \def\DodoTable[#1]% {\bgroup \setupTABLE[width=2cm]% \doifsomething{#1}{\setupTABLE[column][#1][align=flushright]}% \setupTABLE[header][align=middle]% \bTABLE \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE \egroup} \starttext No column specification: \DoTable With column specification: \DoTable[2] \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 ___
Re: [NTG-context] Defining a title font.
Am 02.10.2012 um 23:38 schrieb john Culleton : > Trying to use an OTF font just for the title page. > Ran mkluatexfontdb > Used the name as defined in ../otfl-names.lua > Here is my actual code: > -- > > \usemodule[simplefonts] > \definefont [titlefont][MyriadPro-Bold at 50bp] > \startstandardmakeup > \titlefont > \centerline{Scribus} > \centerline {for} > \centerline{Book Covers} > \centerline{Free Publishing Software Series} > \rm > \stopstandardmakeup > -- > And here are the pertinent error messages: > -- > (title.tex > resolvers > modules > loaded: 'simplefonts' > (/home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv > loading > ConTeXt User Module / Simplefonts > <+ > /home/safe/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua>) > fonts > defining > font with asked name 'MyriadPro-Bold' is not > found using lookup 'file' > fonts > defining > unknown font MyriadPro-Bold, loading aborted > fonts > defining > unable to define MyriadPro-Bold as [titlefont--0] > ) > --- > Clearly I don't know what I am doing. Can someone help? The command “ mkluatexfontdb” creates a font database for LaTeX (or more concrete the luaotfload package) but context has always used it’s own font database. To update the font database for context you have to call “mtxrun --script fonts --reload” but the script searches for system fonts only on windows and mac machines. When you’re working on a linux system you have to set the “OSFONTDIR” variable first. Read also this: http://wiki.contextgarden.net/Fonts_in_LuaTeX#Building_the_font_database 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] Problem with new version
Am 02.10.2012 um 19:43 schrieb pa...@hanak.name: > Hello, > > yesterday I upgraded my debian and I found out that my previsously prepared > publication > cannot be compiled with the new version of ConTeXt. > > The publication looks like: > > * main file "ausgewaehlte.tex" > > \startproject ausgewaehlte > > \environment ausgewaehlte_environment > > \startfrontmatter > > \setuppagenumbering[state=stop] > \product titelpage > > \stopfrontmatter > \startbodymatter > \setuppagenumbering[state=start] > \product first > \product second > ... > \stopbodymatter > > \stopproject > > * environment file "ausgewaehlte_environment.tex" > > \startenvironment ausgewaehlte_environment > > \usemodule[typo-krn] >[…] > > Could anyone explain me what happened? Why the new context version complains > about "duplicate core namespace" when the previous version worked without > problems? > > Any help will be appreciated. You try to load the file typo-krn.mkiv in your document which is already loaded by context when it generated the format and one of the commands in the file complains when it is defined twice. Remove the line from your document and it should work. 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] TABLE and row/column align settings
Hello, I have a complicated TABLE, but I simplified it to the following example: \def\DoTable#1{% \bTABLE \setupTABLE[width=2cm] \setupTABLE[column][#1][align=flushright] % ... [1] \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 should be overwritten ... [2] \bTABLEhead \bTR \bTH a\eTH \bTH b\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD a\eTD \bTD b\eTD \eTR \eTABLEbody \eTABLE } \starttext No column specification: \DoTable{} With column specification: \DoTable{2} \stoptext The problem is that row #1 should be mid-aligned in all columns. So I wrote: \setupTABLE[column][2][align=flushright] % Column #2 has its own alignment... \setupTABLE[row][1][align=middle] % ... but overwrite here for the whole row #1 (including column #2) But column #2 keeps the previously assigned alignment. The situation doesn't change even if I swap [1] and [2] (for the case "the earlier setting, the higher priority"). Moreover, if the column number if not specified (\DoTable{}), the row setting overwrites setting for ALL columns; so only if the column is specified precisely, its setting is kept. So how to overwrite row #1 setting globally? And how setting priorities are evaluated? I guessed the later specification, the higher weight (which would allow overwriting)... Note that in the example it would be possible to specify settings for each row/column, but it not useful way in the case of more/very complicated tables. TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-TabAli.mkiv Description: Binary data t-TabAli.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] Split \starttabulates
2012-10-03 Malte Stien : Hi Malte > \placetable[here][tab:some-table]{Some Table} > \starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] > \HL > \NC {\bf Animal} \NC {\bf Comment} \NC\FR > \HL > \NC Cat \NC Pretty cool \NC\MR > \NC Bear \NC Kind of lazy\NC\MR > \NC Sheep\NC Always hungry \NC\MR > \HL > \stoptabulate > > However, I need one of these tables to split over adjacent pages, which > according to the documentation should be achievable with > > \setuptabulate[split=yes] > > However, that does not seem to work in connection with the \placetable line. \startplacetable [title=Some Table, reference=tab:some-table, location={split,here}] \starttabulate[|w(.30\textwidth)p|w(.70\textwidth)p|] \HL \NC {\bf Animal} \NC {\bf Comment} \NC\FR \HL \NC Cat \NC Pretty cool \NC\MR \NC Bear\NC Kind of lazy\NC\MR \NC Sheep \NC Always hungry \NC\MR \HL \stoptabulate \stopplacetable 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 ___