[NTG-context] Feature Request: Set Output Directory
Hi, Summary: If the --result parameter includes a path then ConTeXt should assume that that directory is writable thus read/write its temporary flies at that location instead of the current working directory (CWD). Consider the following three accounts: - ConTeXt installation account (e.g., context) - Web server account (e.g., web) - Application account (e.g., app) ConTeXt is run using the web server account. The web server's CWD is set to the application directory. For security reasons, the web account may not create files in the app account. When ConTeXt is called by the web account, the CWD is an app account subdirectory. This subdirectory contains scores of .tex input files that control various themes for the final rendered document. Many different users, through this web-based application, create different content .tex files. I would like to run context as the web user within the app directory, where the input .tex files are located; effectively, as the web account, this would look like: cd /home/app/public_html/book/context source /home/context/bin/context/tex/setuptex /home/context/bin/context/tex/texmf-linux-64/bin/context /home/web/users/1/book.tex --result=/home/web/users/1/book.pdf Since the web account cannot write to the app directory, this causes the following error: ! I can't write on file `book.log'. The following is also not possible as the web account: cd /home/web/users/1/ source /home/context/bin/context/tex/setuptex /home/context/bin/context/tex/texmf-linux-64/bin/context book.tex This fails because the book.tex file includes files that are in the app directory, which cannot be found. Since the book.tex file will be in a different directory for every user, a symbolic link in each book directory would probably resolve the issue, but that's a bit wasteful. I have updated TEXMFCACHE in texmfcnf.lua to point to /var/cache/context/texmf-cache/ (world-writable), but it didn't help. It seems that ConTeXt assumes write permissions to the current working directory, which is not a valid assumption. Thoughts? P.S. Also, the --result parameter should be listed in the --help page (or the --help page should list --all as a way to see all the options). ___ 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] Include PDF Fails
Hi, I am trying to include a single test page in my document. The following code fails to set the PDF as the background layer for the cover page. I've tried several variations (http://wiki.contextgarden.net/Including_pages_from_PDF_documents), but nothing works. It seems to be a problem with this specific PDF being included. The code: -- 8 -- \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} \definelayer[page:CoverPicture][ x=0mm,y=0mm,width=\paperwidth,height=\paperheight, ] % Set the layer content to be an image that is scaled to fit the page. \setlayer[page:CoverPicture]{% \externalfigure[\PictureFrontCover][ width=\paperwidth,height=\paperheight, ] } \starttext \startfrontmatter \setupbackgrounds[page][background=page:CoverPicture] \startstandardmakeup \stopstandardmakeup \setupbackgrounds[page][background=] \stopfrontmatter \startbodymatter Hello world! \stopbodymatter \stoptext -- 8 -- Thoughts? ___ 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] setuphead for in-paragraph head ?
Am 13.01.2014 um 04:41 schrieb Otared Kavian ota...@gmail.com: Hi Wolfgang, Thanks for the tip: I’ll try to adapt what you suggest to the case of blocks and question-hint-answer, and then let you know if I succeed. Out of curiosity, how can one access the counter associated to an enumeration or an item? You can use \rawcountervalue[name of the enumeration environment] or \convertedcounter[name of the environment]. Also, if I understand correctly, the command \increment\QuestionCounter creates first a counter named QuestionCounter, if it does not exist yet, and then increments its value: so one does not need anymore commands such as \newcounter\QuestionCounter before incrementing it. Am I right? No, you don’t need \newcounter because \increment checks if the counter exists because it tries to increase the value. The \newcounter command which creates the counter can also be used to reset the value and not only to create the counter. 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] Bug in \placefigure[right]?
Hello! For a while I've been baffled by a weird bug where sometimes I get overset text when using \placefigure[right]. The problem appeared sometime this autumn in places where everything has worked before. This far I've (reluctantly) worked my way around the bug by using hard line breaks where needed, but the current project has so many of those spots that a more flexible solution would be nice. On the other hand, just because I have so many of them and some appeared today, I realized that the problem can be related to {\tfx } in the beginning of the line. Here's a minimal example: \starttext \placefigure [right][cow] {A cow} {\externalfigure[cow]} {\tfx SET TIME/DATE} allows you to (re)set the instrument date and time. Time is set by inputting a certain amount of digits. Possible inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4 digits. To set day of month and time input 6 digits. To set month, day and time input 8 digits. To set year, month, day and time input 12 digits. In all cases seconds can be set by separating them with a dot. The format can be seen below. \input tufte \stoptext === I know it is not beautiful, but I'm doing something very specific where this is needed. In a real pinch I can probably rewrite every problem sentence to put the \tfx in the middle instead of the beginning, but this still doesn't make the original problem go away. (Although I may be the only one bothered by it...) Mari PS. Hmm... Same thing if I use {\sc blabla} so while I reallly should switch to small caps, that is not the solution. PS2. I just tried with \placefigure[left] and I get overset text with it, too. right_bugi.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] Bug in \placefigure[right]?
Am 13.01.2014 um 12:22 schrieb Mari Voipio mari.voi...@iki.fi: Hello! For a while I've been baffled by a weird bug where sometimes I get overset text when using \placefigure[right]. The problem appeared sometime this autumn in places where everything has worked before. This far I've (reluctantly) worked my way around the bug by using hard line breaks where needed, but the current project has so many of those spots that a more flexible solution would be nice. On the other hand, just because I have so many of them and some appeared today, I realized that the problem can be related to {\tfx } in the beginning of the line. Here's a minimal example: \starttext \placefigure [right][cow] {A cow} {\externalfigure[cow]} {\tfx SET TIME/DATE} allows you to (re)set the instrument date and time. Time is set by inputting a certain amount of digits. Possible inputs are 4, 6, 8 and 12 digits. To set hours and minutes, input 4 digits. To set day of month and time input 6 digits. To set month, day and time input 8 digits. To set year, month, day and time input 12 digits. In all cases seconds can be set by separating them with a dot. The format can be seen below. \input tufte \stoptext === I know it is not beautiful, but I'm doing something very specific where this is needed. In a real pinch I can probably rewrite every problem sentence to put the \tfx in the middle instead of the beginning, but this still doesn't make the original problem go away. (Although I may be the only one bothered by it…) It’s a known problem when you have a font switch at the begin of a paragraph and you can avoid it only when you force horizontal mode before you change the font with \dontleavehmode{\tfx …} … 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] Include PDF Fails
Hi, Am 13.01.2014 06:37, schrieb Thangalin: Hi, I am trying to include a single test page in my document. The following code fails to set the PDF as the background layer for the cover page. I've tried several variations (http://wiki.contextgarden.net/Including_pages_from_PDF_documents), but nothing works. It seems to be a problem with this specific PDF being included. The code: -- 8 -- \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Mh, is there a resolver for http-adresses in ConTeXt? I guess if you use a local file path, things should work as expected (not tested). Peter \definelayer[page:CoverPicture][ x=0mm,y=0mm,width=\paperwidth,height=\paperheight, ] % Set the layer content to be an image that is scaled to fit the page. \setlayer[page:CoverPicture]{% \externalfigure[\PictureFrontCover][ width=\paperwidth,height=\paperheight, ] } \starttext \startfrontmatter \setupbackgrounds[page][background=page:CoverPicture] \startstandardmakeup \stopstandardmakeup \setupbackgrounds[page][background=] \stopfrontmatter \startbodymatter Hello world! \stopbodymatter \stoptext -- 8 -- Thoughts? ___ 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] Include PDF Fails
On 1/13/2014 1:13 PM, Peter Rolf wrote: Hi, Am 13.01.2014 06:37, schrieb Thangalin: Hi, I am trying to include a single test page in my document. The following code fails to set the PDF as the background layer for the cover page. I've tried several variations (http://wiki.contextgarden.net/Including_pages_from_PDF_documents), but nothing works. It seems to be a problem with this specific PDF being included. The code: -- 8 -- \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Mh, is there a resolver for http-adresses in ConTeXt? I guess if you use a local file path, things should work as expected (not tested). sure there is ... already for many years (as luigi mentioned, the pdf is bugged so it depends on how good a pdf handler can recover) 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] Include PDF Fails
Am 13.01.2014 13:29, schrieb Hans Hagen: On 1/13/2014 1:13 PM, Peter Rolf wrote: Hi, Am 13.01.2014 06:37, schrieb Thangalin: Hi, I am trying to include a single test page in my document. The following code fails to set the PDF as the background layer for the cover page. I've tried several variations (http://wiki.contextgarden.net/Including_pages_from_PDF_documents), but nothing works. It seems to be a problem with this specific PDF being included. The code: -- 8 -- \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Mh, is there a resolver for http-adresses in ConTeXt? I guess if you use a local file path, things should work as expected (not tested). sure there is ... already for many years I see. Never tried, never needed it. But I guess I was naive to assume the lack of such a feature.. ;-) Peter (as luigi mentioned, the pdf is bugged so it depends on how good a pdf handler can recover) 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 ___ ___ 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 \placefigure[right]?
On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: It’s a known problem when you have a font switch at the begin of a paragraph and you can avoid it only when you force horizontal mode before you change the font with \dontleavehmode{\tfx …} … Ah, I just haven't known what to look for, then. The magic formula works and it is *much* better than hardcoding the line breaks. :-) Thank you for your quick reply, Wolfgang! Mari ___ 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] Include PDF Fails
Am 2014-01-13 um 11:37 schrieb Thangalin thanga...@gmail.com: It seems to be a problem with this specific PDF being included. \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Yes, the PDF is encrypted; it is only displayable, but not changeable or embeddable. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 \placefigure[right]?
On Mon, 13 Jan 2014 16:23:24 +0200 Mari Voipio mari.voi...@iki.fi wrote: On Mon, Jan 13, 2014 at 1:27 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: It’s a known problem when you have a font switch at the begin of a paragraph and you can avoid it only when you force horizontal mode before you change the font with \dontleavehmode{\tfx …} … Ah, I just haven't known what to look for, then. The magic formula works and it is *much* better than hardcoding the line breaks. :-) Wikified: http://wiki.contextgarden.net/Font_Switching Alan ___ 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] Include PDF Fails
On 01/13/2014 03:39 PM, Henning Hraban Ramm wrote: Am 2014-01-13 um 11:37 schrieb Thangalin thanga...@gmail.com: It seems to be a problem with this specific PDF being included. \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Yes, the PDF is encrypted; it is only displayable, but not changeable or embeddable. I didn't think we cared about that ... 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] Include PDF Fails
On 1/13/2014 4:12 PM, Taco Hoekwater wrote: On 01/13/2014 03:39 PM, Henning Hraban Ramm wrote: Am 2014-01-13 um 11:37 schrieb Thangalin thanga...@gmail.com: It seems to be a problem with this specific PDF being included. \def\PictureFrontCover{http://www.education.gov.yk.ca/pdf/pdf-test.pdf} Yes, the PDF is encrypted; it is only displayable, but not changeable or embeddable. I didn't think we cared about that ... aha, encrypted we missed that 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 ___
[NTG-context] Luajittex 0.78.2 announcement
New release Luajittex beta-0.78.2, which follows luatex beta-0.78.2 . From NEWS.luajittex: This update is brought to you by the crited project where we need a fast luatex / context combi in order to meet our demands. This version is optimized for typesetting critical editions with context. Given that the current plan is to merge luatex and luajittex, it's possible that this is last release of luajittex as a distinct project from luatex. -- 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] unknown library 'loc'
Hi Hans, Suppressing the message of a loc that is not needed would be the cleanest method. IMHO, it should not be even causing a warning. regards Keith. Am 12.01.2014 um 23:50 schrieb Hans Hagen pra...@wxs.nl: On 1/12/2014 11:23 AM, Keith J. Schultz wrote: Hi Hans, Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl: On 1/3/2014 2:33 PM, H. van der Meer wrote: Has someone an idee what causes the unknown library message as in the log below? Is it harmful? fontstypescripts unknown library 'loc' you can add a file type-loc.mkiv someplace in your local tree with % dummy file \endinput this file can be used for local overrides (just some mkii compatible feature). If this is the case, should not the the dummy-file be in the distribution! That way if somebody has local overrides they can modify it if needed, and the rest of have one lees message we need to worry, about? It depends ... there are some more loc files, like cont-loc.mkiv and we don't ship these either. Normally users would put such files in texmf-local nowadays but in the past that tree has changes positions in texlive (loading order) so we make no assumptions i.e. it can even be in the main base path which in turn means that we need to make sure it doesn't get overwritten. Easier is probably to suppress the message (ugly but doable). 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 ___ ___ 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] \defineframedtext take precedence over \defineframed and add extra padding
In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. (By the way, the construction \blueframed{\startformula hello\stopformula \input knuth} behave badly.) % \starttext \setupcolor[x11] \defineframed [blueframed] [width=local,frame=off,rulethickness=2mm,backgroundoffset=1mm,% align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \defineframedtext [blueframed] [width=local,frame=on,%rulethickness=2mm,backgroundoffset=1mm,% margin=no, align=yes,background=color,backgroundcolor=lightblue,% corner=round,radius=1.5mm] \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext % Regards, Chris ___ 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] \defineframedtext take precedence over \defineframed and add extra padding
Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy elspethmcgullicu...@gmail.com: In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. \usemodule[annotation] \defineannotation [blueframed] [alternative=command, command=\BlueFramedCommand] \define[2]\BlueFramedCommand {\BlueFramed{#2}} \defineframed [BlueFramed] [width=local, frame=off, rulethickness=2mm, backgroundoffset=1mm, align=yes, background=color, backgroundcolor=lightblue, corner=round, radius=1.5mm] \setupcolor[x11] \starttext \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \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] \defineframedtext take precedence over \defineframed and add extra padding
On Mon, Jan 13, 2014 at 8:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy elspethmcgullicu...@gmail.com: In the following example \defineframedtext take precedence over \defineframed, and also I don't know how I can get rid of the extra padding (looks like a good \baselineskip before the text). (What I want is the first output, but with the readability of \startXY \stopXY) As for the take precedence, I can change the name; But for the extra padding I don't know how to remove it. I could add a \vskip-\baselineskip at the beginning, but there is probably a better solution. \usemodule[annotation] \defineannotation [blueframed] [alternative=command, command=\BlueFramedCommand] \define[2]\BlueFramedCommand {\BlueFramed{#2}} \defineframed [BlueFramed] [width=local, frame=off, rulethickness=2mm, backgroundoffset=1mm, align=yes, background=color, backgroundcolor=lightblue, corner=round, radius=1.5mm] \setupcolor[x11] \starttext \blueframed{\input{knuth}} \startblueframed \input{knuth} \stopblueframed \stoptext Thanks, it works. Chris 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 ___ ___ 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] autohang doesn't work (Mk IV)
Dear list, I'm using an updated Context minimals beta, and can't get autohang to work (in Mark IV). autohang=yes seems to be ignored. It doesn't help to add totalnumber= \setupbibtex[database=sample] \setuppublications [alternative=apa, criterium=all, numbering=yes, autohang=yes] \setuppublicationlist[totalnumber=1000] \starttext \completepublications \stoptext 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] Difficulties with \startformula
Hi, 1- I put here a far too long example to show difficulties that I have with formulas in conjunction with framed: I haven't find a way to insert a formula (displaystyle, vertical mode), at the beginning of a \framed. 2- It might be related with this other thing: The last examples are about mouse text selection with Okular (haven't tried with another viewer): When I mouse text select elements of the formula, when the \startformula \stopformula in embeded in a \hbox, what is highlighted looks alright. Instead, when it's in vertical mode, what is highlighted is very very large. It's probably not the purpose of pdf documents, but this select (and copy) feature is very convenient. This feature is rather impinged with this not so nice looking behavior. Also in these conditions Okular can't select the text precisely, but instead select a much wider area of text (one example here does this). 3- When embedded in \hbox (not vertical mode then), the height of mouse text section is alright is formula is 'x+y', but there is an error if the formula in instead '\int_a^b'. % \starttext \setupformulas[spacebefore=-1ex] \framed[width=5cm,align=yes]{% Hello } \framed[width=5cm,align=yes]{% Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% %Hello \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \vskip-1.3\baselineskip \startformula x+y \stopformula } \framed[width=5cm,align=yes]{% \hairline \startformula x+y \stopformula \hairline } \hairline \startformula x+y \stopformula \hairline \framed[align=yes]{% \type{\vrule \hrule \vbox $$}\\ \hbox{\vrule{\hsize=7cm\vbox{\hrule $$ x+y $$ \input{knuth} \hrule}}\vrule}} \framed[align=yes]{% trying to select the ``x'' in the next formula, select text [\type{he ``xhe \vbox x+ syste conyer and}]\\ \type{\vrule \hrule \vbox \startformula}\\ \hbox{\vrule{\hsize=7cm\vbox{\hrule \startformula x+y \stopformula \input{knuth} \hrule}}\vrule}} \framed[align=yes]{% \type{\framed \vbox \startformula}\\ \framed{% {\hsize=5cm\vbox{% \startformula x+y \stopformula \input{knuth} \framed[align=yes]{% \type{\framed $$}\\ \framed[align=yes,width=5cm]{% $$ x+y $$ \input{knuth} }} \startbuffer \hbox{\vrule\startformula \int_a^b x+y \stopformula} \stopbuffer \framed[align=yes]{% This line generates an error\\ \typebuffer} \framed[align=yes]{% When one ``text select'' with mouse with Okular, height of selection is correct.\\ \hbox{\vrule\startformula x+y \stopformula}} \framed[align=yes]{% When one ``text select'' with mouse with Okular, height of selection is much larger than expected.\\ \startformula x+y \stopformula} \stoptext Regards, Chris ___ 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] Invoice Example
On Mon, 13 Jan 2014 13:49:39 +0600 Henning Hraban Ramm te...@fiee.net wrote: Am 2014-01-02 um 21:07 schrieb hwit...@gmail.com: __ There are horses for courses. I write invoices using plain pdftex. Not much code required, I just change the data fields for each new iteration. I also use the antique TeXsis tables for structure. Here is an example: -- \input TXSruled.tex \def\today{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September \or October\or November\or December\fi \space\number\day, \number\year} \nopagenumbers \parindent=0pt \parskip=0pt \font\bigss=cmss17 at 25pt \centerline{\bigss INVOICE} \noncenteredtables \vskip .25in \hrule height 1.5pt \bigskip \line{\hfill Date: \today} \vskip .25in \line{\ruledtable VENDOR \cr John Culleton \hfill\crnorule 2401 Haight Avenue\hfill\crnorule Eldersburg, MD 21784 \hfill\endruledtable \hfill \ruledtable CUSTOMER\cr Independent Contract Services\hfill\crnorule Landmark Community Newspapers\hfill\crnorule Carroll County Times\hfill\crnorule P.O. Box 346\hfill\crnorule Westminster, MD 21158\hfill\endruledtable } \centeredtables \bigskip \ruledtable Item\dbl Desc|Date |Amount \cr 1 \dbl \para{Column}| Dec 10 2013|\$40.00* \cr 2 \dbl \para{Column}| Dec 24 2013|\$40.00 \cr \dbl \multispan2 \hfil TOTAL: | \$80.00\endruledtable \def\uline#1{\vrule height 0pt depth .75pt width #1 in} \centerline{\bf DIRECT DEPOSIT HAS BEEN REQUESTED} {\baselineskip=25pt \vskip 30pt Signed:\uline{2} \vskip 30pt Approved:\uline{2} \hfill Approved Date:\uline{1.5}\break} %%Begin addressing code for reverse side. \vfil\eject\null \vskip -.5in \moveleft .75truein \vbox{{\bf John Culleton}\par 2401 Haight Ave\par Eldersburg MD 21784\par } \vskip 30pt \moveright 3truein \vbox{\obeylines Independent Contract Services Landmark Community Newspapers Carroll County Times P.O. Box 346 Westminster, MD 21158 }\vfill \bye -- I print the first page, flip the paper, print the address info, and fold the paper into threes. Glue the edge, affix a stamp and mail. Run the above code and look at the results. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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] invoices: make module or wikify
Hi, I'm writing my invoices like this: \environment e-invoice \beginInvoice \startInvItem[amount=123] bla bla 1 \stopInvItem \startInvItem[amount=456] bla bla 2 \stopInvItem \endInvoice If anybody is interested (e.g. for using it, making a module or wikifying), then I can send my files (no time to do it myself...) There are also calculations: \environment e-calculation \beginCalculation \startCalcItem[title=Title 1][hours=123] Do this and that, bla bla bla. \stopCalcItem \startCalcItem[title=Title 2][hours=456] Do something else, a lot of work. \stopCalcItem \endCalculation -- Peter ___ 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 ___