Re: [NTG-context] Unwanted change of paper size; extra opt for \externalfigure
Am 10.06.2011 um 02:06 schrieb Marco: On 2011-06-08 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Wouldn't be good to have an option rotation (among scale, factor, width...) to rotate the inserted figure, at least in multiples of 90 degrees? To allow something like: \externalfigure[Model.pdf][width=180mm,rotation=-90] Rotation and clipping is implemented as separate commands, I don't know about the reason, not to have them as well in \externalfigure. Clipping isn’t but rotation is (inherited from \framed): \externalfigure[...][orientation=-90] 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] can't set simplified chinese font (Taco Hoekwater)
Yes, I make sure that the Adobe Song Std.otf is in /usr/share/fonts/adobe and OSFONTDIR is director to /usr/share/fonts/adboe___ 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] [layers] unsolicited “0” after setting background
Hi again, when setting a background layer combined with an early font setup there appears a “0” (ascii 0x30) right after “\starttext”: · \setupbodyfont[sans] %%% -- comment this out and the “0” vanishes \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% -- or this \setlayer[bg]{% \startMPcode draw fullcircle scaled (.5*PaperWidth) withpen pencircle xscaled 7 withcolor \MPcolor{gray:7}; \stopMPcode } \setupbackgrounds[paper][background=bg] \starttext \input dawkins \stoptext · Removing either the “\definelayer” or “\setupbodyfont” statement makes it go away. What have I come across this time? Philipp pgp0qo5NQO3ng.pgp Description: PGP 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [layers] unsolicited “0” after setting background
Am 10.06.2011 um 12:07 schrieb Philipp Gesang: Hi again, when setting a background layer combined with an early font setup there appears a “0” (ascii 0x30) right after “\starttext”: · \setupbodyfont[sans] %%% -- comment this out and the “0” vanishes \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% -- or this “x” and “y” expect a dimension but you assign a number, remove the setting (because both are set to 0pt by default) or change the values to 0pt. 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] Unwanted change of paper size; extra opt for \externalfigure
Thanks, - On Fri, 10 Jun 2011 09:00:32 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \externalfigure[...][orientation=-90] Wolfgang - orientation looks useful - I'll try it later. Anyway, I've added the option to wiki; it was not mentioned there. 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] [layers] unsolicited “0” after setting background
On 2011-06-10 12:12:15, Wolfgang Schuster wrote: Am 10.06.2011 um 12:07 schrieb Philipp Gesang: Hi again, when setting a background layer combined with an early font setup there appears a “0” (ascii 0x30) right after “\starttext”: · \setupbodyfont[sans] %%% -- comment this out and the “0” vanishes \definelayer[bg][x=0,y=0,width=\paperwidth,height=\paperheight] %%% -- or this “x” and “y” expect a dimension but you assign a number, remove the setting (because both are set to 0pt by default) or change the values to 0pt. Thanks, I found this out by experimenting … Best regards Philipp 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 ___ pgpHEspqmxWTd.pgp Description: PGP 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] can't set simplified chinese font (Taco Hoekwater)
2011/6/10 m00nlight dot_wangyu...@yeah.net: Yes, I make sure that the Adobe Song Std.otf is in /usr/share/fonts/adobe and OSFONTDIR is director to /usr/share/fonts/adboe If you use \definefont[song][name:adobesongstd] to define a font you can not get it. However \definefont[song][adobesongstd] can do it. Maybe name keyword is skipped as default now. -- Best regards, Li Yanrui (李延瑞) ___ 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] XeLaTeX or ConTeXt?
I'm still wrestling with this issue of doing InDesign-like documents. Does ConTeXt provide a way to simulate multiple stories or flows of text? For example, suppose I have a newspaper with two articles on page 1. One of them continues on page 2, and the other on page 3. Is there a way to do that? Alternatively, I could consider plain TeX or LuaTeX, but I know very little about either of those. I'm prepared to learn, but I'd like to get some hints about what seems like the likliest path to produce this kind of document. Thank you! -pd -- Forwarded message -- From: Peter Davis p...@pfdstudio.com Date: Sat, Jun 4, 2011 at 5:36 PM Subject: XeLaTeX or ConTeXt? To: texhax tex...@tug.org I'm looking for a way to produce InDesign-like documents with TeX. By InDesign-like, I mean, apart from excellent typography, the abillity to have 'stories' automatically overflow from one container to another, either on the same page or on additional pages, to embed graphics into the text, to copyfit, to wrap text around irregular shapes, etc. I've been working with XeLaTeX, using the Textpos package, which is very useful. However, I think I need to switch to (or add?) the Flowfram package to get automatic overflow handling. I think that will let me get the effect of multiple stories by concatenating the stories together into one document environment, and using explicit frame breaks to start a new 'story.' However, I'm wondering if I should be considering ConTeXt at this point. I keep seeing that it's supposed to provide more sophisticated typographic control than LaTeX, but I don't know what. Is there a way to get this multiple story, automatic overflow effect with ConTeXt? Layers seem a little like text frames, but I don't see anything about overflow. What about copyfitting? Wrapping around irregular shapes? I've looked at the ConTeXt docs, but it seems mostly to be a different way to get the same effects as LaTeX, rather than a way to get a whole new range of effects. Thanks, -pd -- The Tech Curmudgeon http://www.techcurmudgeon.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] Problem installing minimals on PowerMac G4
On Mon, Jun 6, 2011 at 10:05:15, Mojca Miklavec wrote Please try to open Terminal.app and write: source /Users/robert/context-minimals-04-06/tex/setuptex context /Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex and see if that one fails as well. When I write: source /Users/robertblackstone/context-minimals-04-06-11/tex/setuptex, (this is the correct name) in all but one caseTerminal responds with: /Users/robertblackstone/context-minimals-04-06-11 is not a valid TEXROOT path. (There is no file /Users/robertblackstone/context-minimals-04-06-11/texmf/tex/plain/base/plain.tex) provide a proper tex root (like '. setuptex /something/tex') Only if I change the working directory to /Users/robertblackstone/context-minimals-04-06-11/tex/ the response is: Setting /Users/robertblackstone/context-minimals-04-06-11/tex as ConTeXt root. and I can process tex-files both with mkii and mkiv . The resulting pdf, however, placed in the same working directory, is not correct. I found, helped by ConTeXt garden, that I could activate ConTeXt-minimals-04-06-11 on this machine by typing: export PATH=/Users/robertblackstone/ConTeXt-minimals-04-06-11/tex/texmf-osx-ppc/bin:$PATH from any directory and get the correct output. I accordingly changed the TeXShop engine and that also works now. The only issue still remaining is the interruption during the installation process. I have no clue as to what could be the cause. I tried to avoid it by running umask 0022 and even umask 0002 before creating the new minimals directory, but that did not help. But using ctrl-D a few times, as Mojca suggested, when the installation process stops midway, eventually results in a usable minimals. Maybe some functions do not work but I have not yet discovered any. So that might not be a real problem after all. Thanks for the help. Kind regards, Robert Blackstone ___ 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] can't set simplified chinese font (Taco Hoekwater)
2011/6/10 Li Yanrui (李延瑞) liyanrui...@gmail.com: 2011/6/10 m00nlight dot_wangyu...@yeah.net: Yes, I make sure that the Adobe Song Std.otf is in /usr/share/fonts/adobe and OSFONTDIR is director to /usr/share/fonts/adboe If you use \definefont[song][name:adobesongstd] to define a font you can not get it. However \definefont[song][adobesongstd] can do it. Maybe name keyword is skipped as default now. Very strange. After using typescript to define fonts the name keyword can work again in \definefont macro. -- Best regards, Li Yanrui (李延瑞) ___ 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] can't set simplified chinese font (Taco Hoekwater)
Am 10.06.2011 um 13:20 schrieb Li Yanrui (李延瑞): Very strange. After using typescript to define fonts the name keyword can work again in \definefont macro. Accessing a font by name requires a entry on the database while access by file doesn’t need one. It’s possible \definefont doesn’t force an automated update while typescripts do. 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] XeLaTeX or ConTeXt?
Am 10.06.2011 um 13:17 schrieb Peter Davis: I'm still wrestling with this issue of doing InDesign-like documents. Does ConTeXt provide a way to simulate multiple stories or flows of text? For example, suppose I have a newspaper with two articles on page 1. One of them continues on page 2, and the other on page 3. Is there a way to do that? Not yet because nobody needed this feature yet but the mechanism to write a command for this is available. 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] can't set simplified chinese font (Taco Hoekwater)
2011/6/10 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 10.06.2011 um 13:20 schrieb Li Yanrui (李延瑞): Very strange. After using typescript to define fonts the name keyword can work again in \definefont macro. Accessing a font by name requires a entry on the database while access by file doesn’t need one. It’s possible \definefont doesn’t force an automated update while typescripts do. Thanks for the explanation. Maybe I made a mistake. Now I could not reproduct the working example which has no name keyword even though I cleaned texmf-cache directory. -- Best regards, Li Yanrui (李延瑞) ___ 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] \activatespacehandler
Hi, \activatespacehandler{on} does not work in MkIV. I guess that this is because \controlspace does not give the right glyph in MkIV, possibly because, in opentype fonts, \char 32 is the same as regular space. Any idea how to fix this? Is there a unicode character for visible space. A discussion on the xetex mailing list suggests http://www.tug.org/pipermail/xetex/2006-February/003095.html 0x2423, but that looks very different from \tt\char 32. 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] Disable line-break when \typefile
On Wed, 8 Jun 2011, Wolfgang Schuster wrote: Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to out-of-page area)? The following example: % This a very long line which should be typeset to one line even if there'll be overfull hbox \definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace] \starttext \typefile[Std]{TypeFi.mkiv} \startcolumns[n=2,rule=on] \typefile[Std]{TypeFi.mkiv} \stopcolumns \stoptext gives a result where there is new line between overfull and hbox in normal mode and between be and typeset and be and overfull in column mode. Is there a way how to avoid this, how to force continuing on the same line? Add “space=fixed” to your setup. Why does activatespacehandler behave differently. { \activatespacehandler{fixed} A very very very very very very very very very very very very very long line to see if it breaks or not \par} { \activatespacehandler{on} A very very very very very very very very very very very very very long line to see if it breaks or not \par} 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] \activatespacehandler
On Fri, 10 Jun 2011, Aditya Mahajan wrote: Hi, \activatespacehandler{on} does not work in MkIV. I guess that this is because \controlspace does not give the right glyph in MkIV, possibly because, in opentype fonts, \char 32 is the same as regular space. Any idea how to fix this? Is there a unicode character for visible space. A discussion on the xetex mailing list suggests http://www.tug.org/pipermail/xetex/2006-February/003095.html 0x2423, but that looks very different from \tt\char 32. Actually, the relavant code is in enco-ini.mkiv. So the fix is to set \def\controlspace{\fastcontrolspace} in char-act.mkiv, or use \fastcontrolspace in spac-hor.mkiv 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] \activatespacehandler
On Fri, Jun 10, 2011 at 12:49:43PM -0400, Aditya Mahajan wrote: Hi, \activatespacehandler{on} does not work in MkIV. I guess that this is because \controlspace does not give the right glyph in MkIV, possibly because, in opentype fonts, \char 32 is the same as regular space. Any idea how to fix this? Is there a unicode character for visible space. A discussion on the xetex mailing list suggests http://www.tug.org/pipermail/xetex/2006-February/003095.html 0x2423, but that looks very different from \tt\char 32. The Unicode annotation of that character says graphic for space, so I guess it is the right character, but fonts might have not-so-suitable glyph Regards, Khaled -- Khaled Hosny Egyptian Arab ___ 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] \activatespacehandler
The Unicode annotation of that character says graphic for space, so I guess it is the right character, but fonts might have not-so-suitable glyph That's two different things: U+2423 is the visual representation of a white space character (hence it can't be white space since it's meant to give a cue to the reader that there is something here), while Aditya actually wants white space. In this case, U+2423 isn't appropriate. Arthur ___ 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] [metafun] MPenvironment / font switching
On Thu, Jun 9, 2011 at 23:20, Philipp Gesang wrote: Hi all, I’m struggling with the font used in metapost. The only way to actually change it appears to be enclosing the mp graphic in two statements of \setupbodyfont[…] -- which I need to avoid. In the following example, the background text should be typeset (drawn) as lm sans, whereas the main font should be left untouched (serif). An alternative to Wolfgang's answer when you want to use complex font definitions (or other complex commands) is to use \sometxt. \usetypescript[iwona] \definetextext[myfont]{\switchtobodyfont[iwona,ss,30pt]\bi} \starttext \startuseMPgraphic{bg} draw \sometxt[myfont]{I wanna get rid of those serifs!} withcolor blue ; \stopuseMPgraphic \useMPgraphic{bg} \stoptext 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 ___