Re: [NTG-context] Defined and not defined and better be done global
2013/4/27 Hans Hagen pra...@wxs.nl: On 4/26/2013 10:43 PM, Cecil Westerhof wrote: When running ConTeXt I see a lot of this kind of messages: fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined What am I doing wrong? switching a bodyfont with an undefined bodyfontenvironment inside a group, which is very inefficient (and a 1.5em bodyfont switch can probably better be replaced by a direct font definition) I will look into the bodyenvironment stuff. Is not much to go on. :-( Had to delve into what I am doing. Was a ‘little while ago’ I wrote it. I thought that 1.5em was used for relative definitions. I have a inc file that I use. In this I have: \def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[15] \fi \startalignment[center] { \myblank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \myblank \stopalignment } In this case I have in my mane document: \input /home/cecil/ConTeXt-inc/standard-init.inc \setupbodyfont[palatino,10pt] What would be a better way to do this? I prefer my include file deciding the increase of the font. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to center with picture taken into consideration
I keep bugging the list. ;-) I center some text on a place where I also place a picture on the right site. Is it possible to center on the part that is not taken up by the picture? The picture is placed with: \definelayer[picture][ preset=righttop, width=\textwidth, ] \setlayer[picture]{\externalfigure[graphics/pasfoto]} \setupbackgrounds[text][text][background=picture] \setupbackgrounds[state=repeat] To make things a little more complicated, the placing of the picture is conditional. So it is not always done. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Heading in setuplayout from a variable
It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables[layout][ header=0mm, ] \fi But that does not work. For the conditional I also tried: \ifx\getvariable{meta}{type}\cecil But that does not work either. What is the correct way to define the comparison? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: Heading in setuplayout from a variable
Send to Hans instead of to the list. :-( -- Forwarded message -- From: Cecil Westerhof cldwester...@gmail.com Date: 2013/4/26 Subject: Re: [NTG-context] Heading in setuplayout from a variable To: Hans Hagen pra...@wxs.nl 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 1:27 PM, Cecil Westerhof wrote: It is a long time since I used ConTeXt. I am starting again. I have the following code: \setvariables[meta][type=cecil] \if\getvariable{meta}{type}=cecil \setvariables[meta][ name={Cecil Westerhof}, ] \setvariables[layout][ header=0mm, ] \fi But that does not work. For the conditional I also tried: \ifx\getvariable{meta}{type}\cecil But that does not work either. What is the correct way to define the comparison? \doifelse {\getvariable{meta}{type}} {cecil} { ... } { ... } Thanks. That works. In my case I use a \doif. Is there also something like a switch statement? If not I could use a nested \doifelse. -- Cecil Westerhof -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heading in setuplayout from a variable
2013/4/26 Cecil Westerhof cldwester...@gmail.com: I have the following code: \setvariables[meta][type=cecil] This variable is hard coded. Is it possible to set it with a value I send as a command line parameter? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heading in setuplayout from a variable
2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 2:35 PM, Cecil Westerhof wrote: 2013/4/26 Cecil Westerhof cldwester...@gmail.com: I have the following code: \setvariables[meta][type=cecil] This variable is hard coded. Is it possible to set it with a value I send as a command line parameter? \getdocumentargument{myargument} My first try did not work, but now it does. Properly made a silly mistake somewhere. of use modes (often more natural) In this case it is not something to use, but it is certainly something to look into. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Why does startlines not work in a function
I have the following code: \startlines \startalignment[center] \setupindenting[no] \doifelse {\getvariable{meta}{personalInfo}} {long} { longline 1 longline 2 longline 3 longline 4 longline 5 longline 6 longline 7 longline 8 } { shortline 1 shortline 2 shortline 3 shortline 4 } \stopalignment \stoplines I wanted to put this in a function. So I wrote: \def\Foo{ \startlines \startalignment[center] \setupindenting[no] \doifelse {\getvariable{meta}{personalInfo}} {long} { longline 1 longline 2 longline 3 longline 4 longline 5 longline 6 longline 7 longline 8 } { shortline 1 shortline 2 shortline 3 shortline 4 } \stopalignment \stoplines } But then the text becomes one line instead of several lines. So I had to rewrite it to: \def\FooTwo{ \startalignment[center] \setupindenting[no] \doifelse {\getvariable{meta}{personalInfo}} {long} { longline 1 longline 2 longline 3 longline 4 longline 5 longline 6 longline 7 longline 8 } { shortline 1 shortline 2 shortline 3 shortline 4 } \stopalignment } I called it first Foo2, but that worked havoc on Foo. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Is it possible to set the output file name in the script
I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to set the output file name in the script
2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename That is on the command line. Then you need to give two parameters. Not a very big problem, but I would prefer one parameter. I like DRY. Less that can go wrong. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to set the output file name in the script
2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 6:50 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename That is on the command line. Then you need to give two parameters. Not a very big problem, but I would prefer one parameter. I like DRY. Less that can go wrong. not possible but you can access the outputfilename at the tex and lua end What do mean with that? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: Is it possible to set the output file name in the script
Again to Hans instead of to the list. I ‘hate’ gmail. -- Forwarded message -- From: Cecil Westerhof cldwester...@gmail.com Date: 2013/4/26 Subject: Re: [NTG-context] Is it possible to set the output file name in the script To: Hans Hagen pra...@wxs.nl 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 7:01 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 6:50 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename That is on the command line. Then you need to give two parameters. Not a very big problem, but I would prefer one parameter. I like DRY. Less that can go wrong. not possible but you can access the outputfilename at the tex and lua end What do mean with that? just grep for outputfile in lua and mkiv files I have now (I need to use jobfilename, because I get an error when I use outputfilename): \def\outputfilename{\jobfilename -\getvariable{meta}{type}} \def\outputfilenametwo{\jobfilename -\getvariable{meta}{type}} When displaying outputfilenametwo I see that it is filled with the correct value, but the output is still written to the same file. -- Cecil Westerhof -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to set the output file name in the script
2013/4/26 Cecil Westerhof cldwester...@gmail.com: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 7:01 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 6:50 PM, Cecil Westerhof wrote: 2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 5:34 PM, Cecil Westerhof wrote: I am using a command line parameter to change the generated output. Is it also possible to set the output file name depending on the parameter? --result=somename That is on the command line. Then you need to give two parameters. Not a very big problem, but I would prefer one parameter. I like DRY. Less that can go wrong. not possible but you can access the outputfilename at the tex and lua end What do mean with that? just grep for outputfile in lua and mkiv files I have now (I need to use jobfilename, because I get an error when I use outputfilename): \def\outputfilename{\jobfilename -\getvariable{meta}{type}} \def\outputfilenametwo{\jobfilename -\getvariable{meta}{type}} When displaying outputfilenametwo I see that it is filled with the correct value, but the output is still written to the same file. The following script does what I want: #!/usr/bin/env bash set -o errexit set -o nounset declare -r DEFAULT=cecil declare -r DIR=${HOME}/Documenten/CV declare -r FILE=CV-Cecil-Westerhof declare -r SCRIPTNAME=$(basename ${0}) declare RESULT declare TYPE if [[ ${#} -ge 1 ]] ; then TYPE=${1}; shift else TYPE=${DEFAULT} fi readonly TYPE if [[ ${#} -ne 0 ]] ; then echo USAGE: ${SCRIPTNAME} [TYPE] exit 1 fi cd ${DIR} RESULT=${FILE} if [[ ${TYPE} != ${DEFAULT} ]] ; then RESULT+=-${TYPE} fi readonly RESULT context --CVType=${TYPE} --result=${RESULT} CV-Cecil-Westerhof There is only one problem. If I first generate the default one and after that a specific one, the default one does not exist anymore. I suppose that when --result is used, first the pdf with the same name as the tex file is generated and then moved. A little nuisance, but I can live with it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to set the output file name in the script
2013/4/26 Cecil Westerhof cldwester...@gmail.com: The following script does what I want: #!/usr/bin/env bash set -o errexit set -o nounset declare -r DEFAULT=cecil declare -r DIR=${HOME}/Documenten/CV declare -r FILE=CV-Cecil-Westerhof declare -r SCRIPTNAME=$(basename ${0}) declare RESULT declare TYPE if [[ ${#} -ge 1 ]] ; then TYPE=${1}; shift else TYPE=${DEFAULT} fi readonly TYPE if [[ ${#} -ne 0 ]] ; then echo USAGE: ${SCRIPTNAME} [TYPE] exit 1 fi cd ${DIR} RESULT=${FILE} if [[ ${TYPE} != ${DEFAULT} ]] ; then RESULT+=-${TYPE} fi readonly RESULT context --CVType=${TYPE} --result=${RESULT} CV-Cecil-Westerhof There is only one problem. If I first generate the default one and after that a specific one, the default one does not exist anymore. I suppose that when --result is used, first the pdf with the same name as the tex file is generated and then moved. A little nuisance, but I can live with it. That can be solved by renaming the tex-file to CV.tex. The script is now: #!/usr/bin/env bash set -o errexit set -o nounset declare -r DEFAULT=cecil declare -r DIR=${HOME}/Documenten/CV declare -r FILE=CV declare -r SCRIPTNAME=$(basename ${0}) declare RESULT=CV-Cecil-Westerhof declare TYPE if [[ ${#} -ge 1 ]] ; then TYPE=${1}; shift else TYPE=${DEFAULT} fi readonly TYPE if [[ ${#} -ne 0 ]] ; then echo USAGE: ${SCRIPTNAME} [TYPE] exit 1 fi cd ${DIR} if [[ ${TYPE} != ${DEFAULT} ]] ; then RESULT+=-${TYPE} fi readonly RESULT context --CVType=${TYPE} --result=${RESULT} ${FILE} -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why does startlines not work in a function
2013/4/26 Hans Hagen pra...@wxs.nl: On 4/26/2013 5:19 PM, Cecil Westerhof wrote: I have the following code: ... But then the text becomes one line instead of several lines. because catcode changes are involved \startbuffer [meta:personalInfo:long] \startlines longline 1 longline 2 longline 3 longline 4 longline 5 longline 6 longline 7 longline 8 \stoplines \stopbuffer \startbuffer [meta:personalInfo:] \startlines shortline 1 shortline 2 shortline 3 shortline 4 \stoplines \stopbuffer \starttext \getbuffer[meta:personalInfo:\getvariable{meta}{personalInfo}] \stoptext Works. Thanks. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is it possible to set the output file name in the script
2013/4/26 Peter Münster pmli...@free.fr: On Fri, Apr 26 2013, Cecil Westerhof wrote: The following script does what I want: Or shorter: --8---cut here---start-8--- #!/usr/bin/env bash context --result=cv-${1:-cecil} CV-Cecil-Westerhof --8---cut here---end---8--- Nope, when the parameter is cecil, I want to add nothing. Also I am a little paranoid, so I want the script to not execute when there are to many parameters. There is only one problem. If I first generate the default one and after that a specific one, the default one does not exist anymore. A known bug: http://www.ntg.nl/pipermail/ntg-context/2008/035125.html You could add it to the tracker: http://tracker.luatex.org/ I already went around it. But it would not hurt to report it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Defined and not defined and better be done global
When running ConTeXt I see a lot of this kind of messages: fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 15pt is defined (can better be done global) fontsbodyfont 1.25em is defined (can better be done global) fontsbodyfont 1.25em is not defined What am I doing wrong? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] one small remark and one broad question
Op zaterdag 15 dec 2012 17:07 CET schreef Thomas A. Schmitz: And now for the overly broad question: I'm embarking on what could become a long project. One part of it is typesetting a book (with many graphics). On the one hand, it would be wonderful to use the project structure and break it down into several components to make things manageable. On the other hand, it would be great to code in xml (because I might want to publish this as a website too). can these things be combined? Does the xml engine handle xinclude (or could this be added to it)? Or would another approach be better? Thanks for your insights! I understood that you can generate HTML with ConTeXt also. So there would not be a need to use xml then. (I do not have experience with this.) -- Cecil Westerhof M cldwester...@gmail.com O ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___ 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] Footnote numbering pro page
A footnote is placed (at least the way I use it) on the same page as it is referred. But the numbering of the footnotes is continues. How can I make the footnote numbering reset to one at every page? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Errors installing ConTeXt on Windows
2011/8/20 Alasdair McAndrew amc...@gmail.com Well, I've now got linux reinstalled, so I no longer need Windows. (Huge sigh of relief.) Sorry about the anguished initial email! I feel your pain. :-D -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/17 Wolfgang Schuster schuster.wolfg...@googlemail.com The filename of the font is “windings.ttf”. I now have: \def\numcharacter#1{\char#1{}} \let\dochar\numcharacter \definefont[wingding][windings.ttf at 12pt] \starttext windings: {\wingding \dochar{74}\dochar{75}\dochar{76}} \stoptext But it just gives: windings: JKL -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/18 Wolfgang Schuster schuster.wolfg...@googlemail.com It’s “wingdings” with a “g” in the name! \definefontsynonym[Wingdings][file:wingdings] \def\WingdingsSymbol{\getglyphdirect{Wingdings}} \definesymbol[smiley:1][\WingdingsSymbol{74}] \definesymbol[smiley:2][\WingdingsSymbol{75}] \definesymbol[smiley:3][\WingdingsSymbol{76}] \starttext \symbol[smiley:1] \symbol[smiley:2] \symbol[smiley:3] \stoptext It is still the same. I know used context instead of my script. (Normally I compile with a script, because I do not like all the output. When there is an error I show the last part of the output.) I saw: fontsdefining font with asked name 'wingdings' is not found using lookup 'file' fontsdefining unknown font wingdings, loading aborted fontsdefining unable to define wingdings as \**currentsymbolfont** So properly I need to install the font. Would it not be better to have at least the option that not finding a font is an error? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Errors installing ConTeXt on Windows
2011/8/18 Vyatcheslav Yatskovsky yatskov...@gmail.com Looks like the are problems with my installer and I'm not aware of. Alasdair McAndrew, can we collaborate on this issue (since I don't have Win7 64 bit to do tests?) I had the same problem. I was told it was broken for a few years. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Errors installing ConTeXt on Windows
2011/8/18 Alasdair McAndrew amc...@gmail.com My laptop running ubuntu died this evening, so as an interim measure I'm trying to install ConTeXt on a windows machine, using the GUI ConTeXt minimals installer. However, after only a few seconds of running, I get two popup errors: Update Failed: error code: 1, Make Failed: error code: 1, after which the installation exits. Does anybody know what's going on here, and how I can get it working? I just made this work for a client. The parts of the manual that are interesting I have attached. This installation takes the assumption you are going to work with MKIV. If you also want to work with MKII you have to install Ruby. If you do not want to work with TeXworks, you can skip the second part. :-D -- Cecil Westerhof installConTeXtWithTeXworks.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] Smileys
2011/8/16 Wolfgang Schuster schuster.wolfg...@googlemail.com Instead of using something like ;-}, what looks nice, but is not the highpoint of typography, I would like to use something like \smiley, \grin, \cool, … You need a font with the symbol, there are also fonts available where you can use layers to use different colors for parts of the symbol. - http://www.ffdingbatsfont.com/ - http://www.ntg.nl/pipermail/ntg-context/2011/057859.html I am still quite inexperienced with ConTeXt. I found the following document: http://statweb.calpoly.edu/jdoi/web/reference/symbols-a4.pdf It is for LaTeX, but I can not find ConTeXt specific stuff. In table 188 there is a smiley. This brought me to to following: \starttext \usesymbols[wasy] \symbol[was][smiley] \symbol[was][qed] \showsymbolset[general] % \showsymbolset[music] % \showsymbolset[astronomy] % \showsymbolset[astrology] % \showsymbolset[geometry] % \showsymbolset[physics] % \showsymbolset[apl] \stoptext The smiley does not display, instead I get the text smiley. Also it is not shown with the \showsymbolset. Why? Is there any documentation about how to work –for example– with the dingbats font. At the moment I am just feeling like shooting in the dark. :-{ When knowing how to do it, I could try to make a smiley module. ;-} By the way: do I understand correctly that with \showsymbolset the second column shows how the character is displayed and the third columns shows the used space for the character? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Two rotates on the same line
I am still expanding my knowledge of ConTeXt. At the moment I am playing with \rotate. When using: \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.} This is displayed as: / \ I would like it displayed as: /\ How can I do that? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/17 Mojca Miklavec mojca.miklavec.li...@gmail.com Is it possible to work with smileys in ConTeXt? Instead of using something like ;-}, what looks nice, but is not the highpoint of typography, I would like to use something like \smiley, \grin, \cool, … My suggestion would be to find a set of PNG (or other) images that you like, put them all into some subfolder and then define a list in the spirit of: \def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]} Of course you can also use fonts (even marvosym), but they will only show ugly black-and-white strokes which is probably not what you want. At least originally was it what I wanted. Because when you use fonts they scale to the fontsize you are using. So I would think that looks the best. But you make a good point. (If you want auto-replacement to work, you need a few more hacks, but I would personally not like smilies to be inserted automatically.) Neither do I. ;-} -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two rotates on the same line
2011/8/17 Peter Rolf indi...@gmx.net Am 17.08.2011 12:51, schrieb Peter Rolf: Am 17.08.2011 12:40, schrieb Cecil Westerhof: I am still expanding my knowledge of ConTeXt. At the moment I am playing with \rotate. When using: \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.} This is displayed as: / \ I would like it displayed as: /\ How can I do that? 0° lies on the right (W), rotation is counter clockwise. The rest is up East :-D to you :-) You lost me. :-{ When playing with it, I found that it seems like every rotation wants its own vertical space. But this is only the case when the rotation is the first thing to be printed on the line. So I changed it to: \ \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.} and because it is nicer to have it centered: \midaligned{ \ \rotate[rotation=42]{Tekst kan ook worden geroteerd.} \rotate[rotation=-42]{In elke richting die je maar wilt.} } -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Centering 'clipping' text logo
I like the last example on: http://wiki.contextgarden.net/Graphical_text_manipulation This creates a left aligned 'logo'. I would like it to be centered. I tried several things, but until now to no avail. How can I get it centered? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering 'clipping' text logo
2011/8/17 Peter Rolf indi...@gmx.net Am 17.08.2011 13:50, schrieb Cecil Westerhof: I like the last example on: http://wiki.contextgarden.net/Graphical_text_manipulation This creates a left aligned 'logo'. I would like it to be centered. I tried several things, but until now to no avail. How can I get it centered? my first guess would be \midaligned{\vbox{% \clip \clip \clip }} I tried a lot, but just this one not. I got one long line with the three parts beside each-other, a little room between the parts, no effect, … untested.. ;-) It does exactly what I want. :-D Would be a nice one to make a macro from. Have to delve first more deeply into ConTeXt. I do not know enough about parameter handling. (Named, variable, …) I went one step further. Because I found the upper and lower parts to small, I used: \midaligned{\vbox{% \clip[ny=5,y=1]{\color[blue]\MyLogo} \clip[ny=5,y=2]{\color[blue]\MyLogo} \clip[ny=5,y=3]{\color[yellow]\MyLogo} \clip[ny=5,y=4]{\color[red]\MyLogo} \clip[ny=5,y=5]{\color[red]\MyLogo} }} But now the second blue and the second red part become black. Why? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/17 Jaroslav Hajtmar hajt...@gyza.cz Hello Cecil ... Here is my simple tip. All you need is a font set, which are needed emoticons ... \def\numcharacter#1{\char#1{}} \let\dochar\numcharacter \definefont[wingding][**wingding.ttf at 12pt] \starttext {\wingding \dochar{74}\dochar{75}\dochar{**76}} \stoptext That just gives JKL. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why is the \crlf needed to display the table correctly
2011/8/16 Wolfgang Schuster schuster.wolfg...@googlemail.com I think it is an obscure bug. If I take your code but change the following: \setupTABLE[c][1][align=right,width=.35\textwidth] \setupTABLE[c][2][width=.65\textwidth] I have the same problem. Change “align=right” to “align={right,broad}”. At the moment I am not at the (Windows) computer where I write this document. I'll try it tonight. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with installing ConTeXt
I am still struggling to get ConTeXt running under Windows. At home where (when I work with Windows) I work with Vista it worked. At the company they use XP. I did the same as I did at home, but now I get error messages about configuration files that can not be found in the non existing directory c:\contextminimal. I installed ConTeXt in c:\context. Is it possible that something changed since yesterday? The way I try to couple ConTeXt and TeXworks is described in the following document: http://www.decebal.nl/ConTeXtManual.pdf -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with installing ConTeXt
2011/8/16 Cecil Westerhof cldwester...@gmail.com I am still struggling to get ConTeXt running under Windows. At home where (when I work with Windows) I work with Vista it worked. At the company they use XP. I did the same as I did at home, but now I get error messages about configuration files that can not be found in the non existing directory c:\contextminimal. I installed ConTeXt in c:\context. I found the problem. I had previously tried to install with Vyatcheslav Yatskovsky's installer, which did not work. After cleaning up, it seems to work. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Smileys
Is it possible to work with smileys in ConTeXt? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Smileys
2011/8/16 Henning Hraban Ramm hra...@fiee.net Is it possible to work with smileys in ConTeXt? Why not? But perhaps you could specifiy what you'd like to achieve. Instead of using something like ;-}, what looks nice, but is not the highpoint of typography, I would like to use something like \smiley, \grin, \cool, … -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Installing ConTeXt in Windows (XP)
2011/8/12 Willi Egger w.eg...@boede.nl just out of curiosity I installed TeXWorks under Windows (XP). In order to let TeXWorks use the minimals one needs to set things up. 1. create a batch file e.g. TW-context.bat with the following content: call c:\context\tex\setuptex.bat c:\context\tex context %~dpn1.tex I saved the file in the Owners folder. Of course the path in the call statement must reflect the situation on your machine. 2 Start TeXWorks 3 Open under 'Edit' 'Preferences' and there the tab 'Typeseting' 4 Add in the top window with plus the path to the batch-file e.g. C:/Documents and Settings/Owner 5 Add with + in the processing tools window a new entry, fill the configuration screen in: Name: e.g. ContextMKIV 6 Fill the Programme: (easiest with the Browse button) C:/Documents and Settings/Owner/TW-context.bat 7 Add with + an new argument and fill in $basename 8 Click the checkbox to have TW showing the generated pdf 9 Click OK 10 Change the default tool to be used to ContextMKIV 11 Click OK and you are done! For one reason or another it does not work. I think because the batch setups an environment and does not compile the source. I do not get an error message, but the pdf is not generated. When I open a DOS prompt, I need to execute the batch file to get context recognized as a command. When I execute context after executing the batch file, the pdf is generated. But when I change the batch file for: C:/context/tex/texmf-mswin/bin/context.exe The compilation is started, but does not work correctly, because the environment is not set correctly. I tried executing the batch file to set the environment, but that is not recognised in TeXworks. I first tried to change the batch file and let it start TeXworks. That worked, but then I had a better idea. In step four I set the path to: C:/context/tex/texmf-mswin/bin And now it works completely correct I think. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Different output formats
I am writing a document for our client that has accepted to work with ConTeXt. One of the things I want to mention is the different output formats. I know PDF and xhtml and that in the near future epub will be available. Are there others? (I know dvi, but I do not think it is worth mentioning.) -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Different output formats
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com I am writing a document for our client that has accepted to work with ConTeXt. One of the things I want to mention is the different output formats. I know PDF and xhtml and that in the near future epub will be available. Are there others? (I know dvi, but I do not think it is worth mentioning.) MkII with pdfTeX as engine supports PDF, PS and DVI as output formats but with XeTeX you have only PDF as output. With MkIV you can produce PDF and also XML (and afterwards epub) besides the PDF. As your client doesn’t know anything about TeX and ConTeXt i would ignore MkII and mention only the output formats of MkIV. I was planning on only mentioning MKIV. These are the only output formats? At the moment only PDF and XML then. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Formatting lines in TeXworks and using spellchecking
Until now I worked with Emacs to edit ConTeXt documents. Because I have to make a manual for the client, I now work under Windows with TeXworks. In Emacs I could easily reformat my (source) lines, to be not wider as 72 characters. Is something like that possible with TeXworks. Also: there is a spell-checking option, bet there are no languages to choose from. How can I install languages? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formatting lines in TeXworks and using spellchecking
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Until now I worked with Emacs to edit ConTeXt documents. Because I have to make a manual for the client, I now work under Windows with TeXworks. In Emacs I could easily reformat my (source) lines, to be not wider as 72 characters. Is something like that possible with TeXworks. You can change it in the menu bar: Format - Hard Wrap… Works, thanks. Also: there is a spell-checking option, bet there are no languages to choose from. How can I install languages? Take a look at the TeXworks manual: http://www.tug.org/texworks/#Documentation I'll do that. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indenting in footnotes
I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 15.08.2011 um 12:56 schrieb Cecil Westerhof: I use: \setupindenting[yes, small, next] This works on the main text, but not on the footnotes. In \setupfootnotes I do not find an option to do the same. Am I overlooking something, or is it really not possible? \setupnotedefintion[footnote][indenting=…] Does not exist. What comes closest is the following: \setupfootnotedefinition[footnote][indenting=yes,small,next] But that does not have the required effect. It even generates a blanco page. I attached the tex and pdf files. -- Cecil Westerhof dummy.tex Description: TeX document dummy.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] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? Yes, it now 'distracts' from the main info. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting in footnotes
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com BTW: is it possible to define the footnotes somewhere else? You mean like \useurl and \url? Yes, it now 'distracts' from the main info. No, what’s possible is this: \startbuffer[footnote:a] Note A \stopbuffer \startsetups[footnote:b] Note B \stopsetups %\setvariables[footnote][c={Note C}] \setvariable{footnote}{c}{Note C} \starttext A\footnote{\getbuffer[footnote:a]} B\footnote{\texsetup{footnote:b}} C\footnote{\getvariable{footnote}{c}} \stoptext That is already a lot better as it was first. ;-} You can write a feature request because it’s easy to add this functionality but it depends on Hans. I'll do that. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] List of special characters
While writing the documentation about using ConTeXt I need some 'special' characters. A few I have found, for example \%, \backslash, \texttilde, \percent. But until now I did not find how to represent [ and ]. How would I use those characters in my document? Also: is there somewhere a 'complete' list? I found several, but they where all for LaTeX and are not completely the same. For example LaTeX uses \textbackslash which does not work in ConTeXt which uses \backslash. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Cecil Westerhof cldwester...@gmail.com While writing the documentation about using ConTeXt I need some 'special' characters. A few I have found, for example \%, \backslash, \texttilde, \percent. But until now I did not find how to represent [ and ]. How would I use those characters in my document? Also: is there somewhere a 'complete' list? I found several, but they where all for LaTeX and are not completely the same. For example LaTeX uses \textbackslash which does not work in ConTeXt which uses \backslash. I could not find it at first (there are so many things), but one solution I found: \startasciimode %\backslash setupbackend[export=yes,xhtml=yes,css=yes] \stopasciimode And while searching a little further I also found: \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} This has the added benefit that it displays somewhat better because of the increased indentation (for which I misuse spaces). -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com While writing the documentation about using ConTeXt I need some 'special' characters. A few I have found, for example \%, \backslash, \texttilde, \percent. But until now I did not find how to represent [ and ]. How would I use those characters in my document? Also: is there somewhere a 'complete' list? I found several, but they where all for LaTeX and are not completely the same. For example LaTeX uses \textbackslash which does not work in ConTeXt which uses \backslash. \starttext [ ] @ _ ^ % normal characters \startlines \textbackslash\ or \letterbackslash \textbraceleft\ or \letterleftbrace\ or \{ \textbraceright\ or \letterrightbrace\ or \} \percent\ or \letterpercent\ or \% \textdollar\ or \letterdollar\ or \$ \letterampersand\ or \ \letterhash\ or \# \stoplines \asciimode % $ # %% this is a comment \stoptext I found it also. I new that there was something like it (I had it seen passing on the mailing list), but could not find it at first. Do I understand correctly that '%% this is a comment' should not be in the PDF? Because it is when I compile the document. 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 ___ -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com 2011/8/15 Cecil Westerhof cldwester...@gmail.com While writing the documentation about using ConTeXt I need some 'special' characters. A few I have found, for example \%, \backslash, \texttilde, \percent. But until now I did not find how to represent [ and ]. How would I use those characters in my document? Also: is there somewhere a 'complete' list? I found several, but they where all for LaTeX and are not completely the same. For example LaTeX uses \textbackslash which does not work in ConTeXt which uses \backslash. I could not find it at first (there are so many things), but one solution I found: \startasciimode %\backslash setupbackend[export=yes,xhtml=yes,css=yes] \stopasciimode And while searching a little further I also found: \type{%\setupbackend[export=yes,xhtml=yes,css=yes]} This has the added benefit that it displays somewhat better because of the increased indentation (for which I misuse spaces). \setuptyping[margin=yes] \starttext before \starttyping \setupbackend[export=yes] \stoptyping after \stoptext Very nice. I now use: \setuptyping[ blank=small, lines=no, margin=30pt, ] I have a bigger margin now. The problem is that there is a lot of white space above and under the typed text. I tried the blank and lines parameters to get rid of it, but that does not work. How can I get rid of the unwanted white space? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Do I understand correctly that '%% this is a comment' should not be in the PDF? Because it is when I compile the document. Yes, with \asciimode “%” is a normal character but to put comments in your document you can use “%%”. Does not work on my side. Both percentage signs and the text after it are displayed in my document. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Do I understand correctly that '%% this is a comment' should not be in the PDF? Because it is when I compile the document. Yes, with \asciimode “%” is a normal character but to put comments in your document you can use “%%”. Does not work on my side. Both percentage signs and the text after it are displayed in my document. Does this work? \asciimode \starttext % this is visible %% and this is not \stoptext When you can read the text after “%%” you need a newer context. I can read it, but I doubt it that I need a newer ConTeXt. I just this morning executed: first-setup.bat --context=current --extras=al It can not be much newer I would think. When compiling, the output starts with: mtx-context | run 1: luatex --fmt=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./manualInterflon This is LuaTeX, Version beta-0.70.1-2011080612 (rev 4277) \write18 enabled. (manualInterflon.tex ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.15 int: english/english -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com Do I understand correctly that '%% this is a comment' should not be in the PDF? Because it is when I compile the document. Yes, with \asciimode “%” is a normal character but to put comments in your document you can use “%%”. Does not work on my side. Both percentage signs and the text after it are displayed in my document. Does this work? \asciimode \starttext % this is visible %% and this is not \stoptext When you can read the text after “%%” you need a newer context. I can read it, but I doubt it that I need a newer ConTeXt. I just this morning executed: first-setup.bat --context=current --extras=al It can not be much newer I would think. ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.15 int: english/english ^^ You use a ConTeXt from May and comments for asciimode where added in Juli. I overlooked the first date. :-{ I guess you have TeXLive 2011 installed which interferes with ConTeXt Standalone. I thought I only installed ConTeXt Standalone. (The one from http://minimals.contextgarden.net/setup/context-setup-mswin.zip.) How can I find the problem? I just checked with my version on Linux, there it works like it should. Now I have to make sure it works also under Windows. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Use latest or current version
I work 'always' with the latest version of ConTeXt. Now a client is going to use it. Should I install for them also the latest version, or is it better to use the current version (--context=current)? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List of special characters
2011/8/15 Cecil Westerhof cldwester...@gmail.com Do I understand correctly that '%% this is a comment' should not be in the PDF? Because it is when I compile the document. Yes, with \asciimode “%” is a normal character but to put comments in your document you can use “%%”. Does not work on my side. Both percentage signs and the text after it are displayed in my document. Does this work? \asciimode \starttext % this is visible %% and this is not \stoptext When you can read the text after “%%” you need a newer context. I can read it, but I doubt it that I need a newer ConTeXt. I just this morning executed: first-setup.bat --context=current --extras=al It can not be much newer I would think. ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.15 int: english/english ^^ You use a ConTeXt from May and comments for asciimode where added in Juli. I overlooked the first date. :-{ I guess you have TeXLive 2011 installed which interferes with ConTeXt Standalone. I thought I only installed ConTeXt Standalone. (The one from http://minimals.contextgarden.net/setup/context-setup-mswin.zip.) How can I find the problem? I just checked with my version on Linux, there it works like it should. Now I have to make sure it works also under Windows. I found the problem. On Windows I installed the current version (for a client looks like the better option), while on Linux (where I work) I always use the latest version. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Use latest or current version
2011/8/15 Mojca Miklavec mojca.miklavec.li...@gmail.com On Mon, Aug 15, 2011 at 19:03, Cecil Westerhof wrote: I work 'always' with the latest version of ConTeXt. Now a client is going to use it. Should I install for them also the latest version, or is it better to use the current version (--context=current)? If the latest version works fine, I would install the latest one. Current is not ready to use yet :) :) :) I would expect it the other way around. ;-} Well, now you are welcome to install current of course, but until I do some modifications/completely decouple it, it often happens that current breaks/becomes out-of-sync with the rest of distribution. Then I'll take the part of the current version out of my document. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Why is the \crlf needed to display the table correctly
On of the things I need to do for the manual about ConTeXt is a list of the most frequently used commands. I am using some macros to display them correctly in a table. Attached a strange effect I got. The second row is displayed wrongly. The third is the same row, but with a \crlf added. This displays correctly. But I am wondering why it is needed. Attached the tex and pdf files. -- Cecil Westerhof dummy.tex Description: TeX document dummy.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 ___
[NTG-context] Footnote numbering pro page
I would like my footnote numbering start on every page with 1. I thought this should be done with: \setupnote[footnote][way=bypage] I also tried: \setupnotedefinition[footnote][indenting={yes, small, next}, way=bypage] But both do not work. What is the right way to do it? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why is the \crlf needed to display the table correctly
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com On of the things I need to do for the manual about ConTeXt is a list of the most frequently used commands. I am using some macros to display them correctly in a table. Attached a strange effect I got. The second row is displayed wrongly. The third is the same row, but with a \crlf added. This displays correctly. But I am wondering why it is needed. Use “align=right” for the first column. I changed: \setupTABLE[c][1][width=.35\textwidth] into: \setupTABLE[c][1][align=right, width=.35\textwidth] But it does not change anything. (It is the right place I think, because when using left, or center the formatting changes. But not in a way that is satisfactory. With center the text stays in the box, but not with left and right.) Also it overrides the: \setupTABLE[r][1][align=center, style=bold] (The align, not the style.) -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Why is the \crlf needed to display the table correctly
2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com 2011/8/15 Wolfgang Schuster schuster.wolfg...@googlemail.com On of the things I need to do for the manual about ConTeXt is a list of the most frequently used commands. I am using some macros to display them correctly in a table. Attached a strange effect I got. The second row is displayed wrongly. The third is the same row, but with a \crlf added. This displays correctly. But I am wondering why it is needed. Use “align=right” for the first column. I changed: \setupTABLE[c][1][width=.35\textwidth] into: \setupTABLE[c][1][align=right, width=.35\textwidth] But it does not change anything. (It is the right place I think, because when using left, or center the formatting changes. But not in a way that is satisfactory. With center the text stays in the box, but not with left and right.) Also it overrides the: \setupTABLE[r][1][align=center, style=bold] (The align, not the style.) Then set the alignment with \bTD in your \StartTable command or just use normal table commands. \startsetups mytable \setupTABLE[header][align=middle,style=bold] \setupTABLE[start][align=normal] \setupTABLE[c][1][align=right,width=.30\textwidth] \setupTABLE[c][2][width=.70\textwidth] \stopsetups \starttext \bTABLE[setups=mytable] \bTABLEhead \bTR \bTD[nx=2] The most important commands \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD \type{\completecontent} \eTD \bTD This generates a Table of Content. Should be the first statement of a document. \eTD \eTR \bTR \bTD \type{\startchapter[title=chapterName]} \eTD \bTD Starts a chapter with the named title. Is ended with \type{\stopchapter}. \eTD \eTR \bTR \bTD \tex{startchapter [title=chapterName]} \eTD % space needed! \bTD Starts a chapter with the named title. Is ended with \tex{stopchapter}. \eTD \eTR \eTABLEbody \eTABLE \stoptext I think it is an obscure bug. If I take your code but change the following: \setupTABLE[c][1][align=right,width=.35\textwidth] \setupTABLE[c][2][width=.65\textwidth] I have the same problem. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Runaway argument with \stoptabulate in a macro
I have the following code: \usemodule[fancybreak] \definefancybreak[myblank][indentnext=no] \define[2]\StartWorkTable{ \myblank[2*big] \starttabulate[|w(.1\textwidth)|p(.9\textwidth)|] \HL \NC #1 \NC #2 \NC\NR \HL \NC\NC {\bf Gedaan} \NC\NR } \define[1]\ActivityWorkTable{ \NC\NC \bullet\space #1 \NC\NR } \define\StopWorkTable{ \HL \stoptabulate } \starttext \StartWorkTable{Huidig}{Senior software engineer bij Artex} \ActivityWorkTable{Teamleader voor een groep van 5 PHP-programmeurs die werken volgens scrum/agile principes. Dit team ontwikkeld grootschalige web applicaties met gebruikmaking van PHP/AJAX/Zend en HTML5. } \ActivityWorkTable{Quality Management} \ActivityWorkTable{Schrijven documentatie, zowel technische als gebruikers} \ActivityWorkTable{Definieren nieuwe functionaliteiten} \ActivityWorkTable{Installeren subversion server en definiëren werkwijze} \StopWorkTable \stoptext When I compile this I get: compileContextFiles.sh --verbose * CV.tex was already up to date mtx-context | run 1: luatex --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui --backend=pdf ./dummy.tex \stoptext This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (dummy.tex ConTeXt ver: 2011.07.14 16:09 MKIV fmt: 2011.7.19 int: english/english system cont-new.mkiv loaded (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system dummy.top loaded (dummy.top) fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'fancybreak' (/home/cecil/ConTeXt/tex/texmf-modules/tex/context/third/fancybreak/t-fancybreak.mkiv loading ConTeXt User Module / Fancybreak ){/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv) filesreadfile asked name: 'loc', not found {/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ) Runaway argument? \HL \NC Huidig \NC Senior software engineer bij Artex \NC \NR \HL \NC \ETC. ! File ended while scanning use of \doprocesscontent. system tex error on line 0 in file : File ended while scanning use of \doprocesscontent ... empty file inserted text \par * ./dummy.tex \stoptext ? When I put a \stoptabulate after \StopWorkTable it compiles as expected. But why does the \stoptabulate in \StopWorkTable not work? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can ConTeXt generate QR-codes
2011/7/26 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz But it seem that something doesn't work correctly under Windows - see the result attached and the log. Pictures to be involved to the document are not generated and (error) messages zint není názvem vnitřního ani vnějšího příkazu, spustitelného programu nebo dávkového souboru. (which means zint is not a name of an internal or an external command, an executable or a batch file.) Did you install zint? It is an external program that you need to instal. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Can ConTeXt generate QR-codes
I would like to integrate qr-codes into documents. ( http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can ConTeXt generate QR-codes
2011/7/23 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 23.07.2011 um 11:28 schrieb Cecil Westerhof: I would like to integrate qr-codes into documents. ( http://en.wikipedia.org/wiki/QR_code) Is this possible with ConTeXt? \usemodule[zint] There is a example at the end of the module. Works thanks. I had to install zint, but now I can generate them. (And I have to delve into the matter of-course.) One strange thing. Sometimes I get: dummy.texerror: No data received, no symbol generated The generated PDF looks okay to me and when I generate him again, I do not get the error and the generated PDF looks the same to me. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can ConTeXt generate QR-codes
2011/7/23 Marcin Borkowski mb...@wmi.amu.edu.pl \usemodule[zint] Out of curiosity: how do I install zint? That is depending on your operating system. I am using (openSUSE) Linux. I installed libzint2_4-2.4.0-1.2.i586.rpm and zint-2.4.0-1.2.i586.rpm with rpm -i. Different Linuxen can have different methods (for example Debian/Ubuntu uses apt-get) and for Windows I suppose you have to download an installer. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt - LaTeXt - ODT?
I another thread I talked about my problems with converting my ConTeXt file to an editable format. In principal going the xhtml way seemed best. But yesterday I got talking with someone in the train. He told me that it was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This could solve my problem. Was this person correct? If yes, how would I do this? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt - LaTeXt - ODT?
2011/7/19 Hans Hagen pra...@wxs.nl On 19-7-2011 10:47, Cecil Westerhof wrote: I another thread I talked about my problems with converting my ConTeXt file to an editable format. In principal going the xhtml way seemed best. But yesterday I got talking with someone in the train. He told me that it was possible to convert ConTeXt to LaTeXt and LaTeXt to an ODT file. This could solve my problem. Was this person correct? If yes, how would I do this? context - latex sounds like a no-go to me Okay, I'll discard this option then. (Or someone else must have a way to do the ConTeXt - LaTeXt part.) At some point if could be interesting to see if we could go from the context xml export (structure makeup) to odt (office makeup) but it's not something that I'll do for fun (I have no need for it anyway). If I could help in a way … -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Use of \hairline in the header
I have the following document: \setupheader[ after={\startalignment[center]\hairline\stopalignment}, style={\switchtobodyfont[9pt]}, ] \setuplayout[ footer=0mm, header=10mm, ] \setupheadertexts[] \setupheadertexts[Documentation for product XYZ –concept–] [version: 2001-07-19] \starttext Just some text to fill the document. \stoptext I would expect the hairline to be at the same place as the text of the document, but instead it is completely left aligned. What am I doing wrong? -- Cecil Westerhof dummy.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] ConTeXt to Markdown (was Edit a ConTeXt generated document with Adobe Acrobat Professional)
2011/7/18 Aditya Mahajan adit...@umich.edu On Thu, 14 Jul 2011, John Haltiwanger wrote: PS. For what it is worth, I do not think it would be _too_ hard to create a Context to Markdown translator. Yes. A while back I did some tests (though I cannot find them now), and had most of the basic ConTeXt-to-markdown working (sections, blockquotes, typing, itemize, footnotes (via endnotes); but no tables and figures). The main idea was to *typeset* the output as you would expect a markdown documnet to be, and then use pdftotext to convert it to text. (Hans had mentioned this as a possible way to convert to HTML during TUG 2009). When you find them, I would be interested in them. And maybe I can improve on them. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] General suggestion: Unit tests for ConText
2011/7/18 Peter Schorsch trala...@freenet.de during my work with context I wrote a bunch of fewliners mainly to test how to do things. When there change from mkii to mkiv occured many of my mini-tests failed and later with the growing of mkiv restartet to work - some just without adaption.. some with some adjustment to a new syntax. I realize that they have the same functionality like unit-tests - just instead of comparing classes and variables - a pdf-output is visually compared. So I like to suggest to introduce unit tests for context. It would a) increase the quality of context as it makes the testing easier for the developer b) it also would be a great source of minihowtos for learning context. Before I write my technical ideas about this I would like to know what are you thinking about this idea? I think it is a great idea. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] General suggestion: Unit tests for ConText
2011/7/19 Hans Hagen pra...@wxs.nl fyi: there is an archive with a bunch of tests (mostly mine but I occasionally add -adapted- samples from the list): http://www.pragma-ade.nl/**context/latest/cont-tst.7zhttp://www.pragma-ade.nl/context/latest/cont-tst.7z Quite some of these can be used for testing, some can also serve as examples of usage. I have a script that can process them and keep track of changes at a rough pixel level but simply have no time to keep up with that. How much time would cost that? Maybe I could do that. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt - LaTeXt - ODT?
2011/7/19 Martin Schröder mar...@oneiros.de 2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com: If you can throw away any formatting you did and if you didn't use too many ConTeXt specific tricks, you can simply rewrite your code to LaTeX with a few regular expressions etc. But in the same spirit it might be way easier to just convert the document straight to ODT using copy-paste and applying some formatting there. Or, if you know up front that you need multiple output formats, you could use Markdown/Pandoc etc. and let it generate ConTeXt as needed. I did not know. They where happy with PDF's all the time, but when the project was almost finished, they changed the requirements. But maybe good to keep in mind for the next project. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt - LaTeXt - ODT?
2011/7/19 Hans Hagen pra...@wxs.nl Concerning OTD: if you need to be roundtrip, then you also need to be able to convert back, which might be non trivial. Roundtrip is not necessary I think (in this case). As I understand it: after delivery we do not have to change the document anymore. And if we have, well we just use Open Office. (Or Libre.) -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt - LaTeXt - ODT?
2011/7/19 Mojca Miklavec mojca.miklavec.li...@gmail.com As I understand it: after delivery we do not have to change the document anymore. And if we have, well we just use Open Office. (Or Libre.) I wonder why someone would want to hire third-party to create them a document in OpenOffice if they: - know how to use OpenOffice - don't need proffessional typography - have to provide input/text in some form anyway What was their input? Was it a database at least? They use a program that is been made by the company I am working for. It was used for ten years, but never documented. First it was they wanted documentation because they did not want to be lost if our company stops working on the application. Now they want to further develop the application themselves.(They have the rights on the sources.) And then it is handy that you can change the documentation. ;-} It was quite a learning experience altogether. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Use of \hairline in the header
2011/7/19 Wolfgang Schuster schuster.wolfg...@googlemail.com I have the following document: \setupheader[ after={\startalignment[center]\hairline\stopalignment}, style={\switchtobodyfont[9pt]}, ] \setupheader[text][after=\hairline,...] Works. Thanks. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Export to xhtml and useurl
2011/7/18 Hans Hagen pra...@wxs.nl On 16-7-2011 12:32, Cecil Westerhof wrote: I need to export my document. For this I use: \setupbackend[export=yes,**xhtml=yes,css=yes] I have update my document with start and stop for chapter, section and subsection, but I have one problem. I have: \useURL [UUID] [http://en.wikipedia.org/wiki/**Uuidhttp://en.wikipedia.org/wiki/Uuid ] [] [universally unique identifier] and when I also have: \from[UUID] I get: system end file documentatie.tex at line 3398 )/home/cecil/ConTeXt/tex/**texmf/fonts/opentype/public/** tex-gyre/texgyreheros-**bolditalic.otf{/home/cecil/** ConTeXt/tex/texmf/fonts/enc/**dvips/lm/lm-mathsy.enc}/home/** cecil/ConTeXt/tex/texmf/fonts/**opentype/public/tex-gyre/** texgyreheros-bold.otf/home/**cecil/ConTeXt/tex/texmf/fonts/** opentype/public/tex-gyre/**texgyreheros-regular.otf/** home/cecil/ConTeXt/tex/texmf/**fonts/type1/public/lm/lmsy10.**pfb backend export finalizing ! LuaTeX error ...TeXt/tex/texmf-context/tex/** context/base/back-exp.lua:328: bad argument #2 to 'write' (string expected, got nil). a real small test file is needed This works: \setupinteraction[ color=blue, contrastcolor=red, focus=standard, state=start, ] %\setupbackend[export=yes,xhtml=yes,css=yes] \useURL [UUID] [http://en.wikipedia.org/wiki/Uuid] [] [universally unique identifier] \starttext This new id is generated much like an \from[UUID]. The reason for the change was that in this way a client number could be generated offline and/or different databases could be merged without the risk that id's would clash. \stoptext But when the \setupbackend is taken out of comment, it goes wrong. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Export to xhtml and useurl
I need to export my document. For this I use: \setupbackend[export=yes,xhtml=yes,css=yes] I have update my document with start and stop for chapter, section and subsection, but I have one problem. I have: \useURL [UUID] [http://en.wikipedia.org/wiki/Uuid] [] [universally unique identifier] and when I also have: \from[UUID] I get: system end file documentatie.tex at line 3398 )/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf{/home/cecil/ConTeXt/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf/home/cecil/ConTeXt/tex/texmf/fonts/type1/public/lm/lmsy10.pfb backend export finalizing ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/back-exp.lua:328: bad argument #2 to 'write' (string expected, got nil). system tex error on line 0 in file : LuaTeX error ... empty file * ./documentatie.tex So properly I need to change something. But what? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/15 John Haltiwanger john.haltiwan...@gmail.com Cecil, I don't think its fair to constrain yourself from ever using Context again. That was not what I mend. When making my own stuff where I do not have the need off interoperability I will keep using it. But in other case I should evaluate the situation correctly. Between a rock an a hard place is not a nice position. ;-} What does 'competely independent' mean? Properly that anybody that knows how to write a document in Microsoft Office can change the document. So standard software, with a low learning curve. I had some problems getting them to accept to use Adobe. And now that turns out to be not a real option. Learning all the time as Benny Hill said. If you have been asked to hand over layout decisions, the best is to reproduce your document in XHTML, copy it into a word processor, and let them proceed with their own desing in their proprietary WYSIWYG software. No the problem is not the layout. They are satisfied with that. They just do not want to be dependent on our company. Even if they just want to make textual changes, this is probably still be your best bet. You can then relatively easily convert them back to Context (a matter of re-mapping text into Context). That sounds like a good plan. Converting back is properly not necessary. But it would not hurt if it is possible. There is a plan I have to produce an easier-for-point-and-clickers interface to collaborate on high quality Context based layouts, but the time hasn't appeared to materialize it yet. Sounds good. If I could be of help … If you search through the archives for 'pandoc' you will see that many of us have chosen to abstract ourselves from direct dependence on Context for our document 'coding'. There is a tangible flexibility provided by writing in a visually semantic preformat like Markdown. It helps during the editing stages because it is easy to generate other formats that people are more familiar with (OpenOffice can be converted to Word---then it is a matter of 'backporting' changes to the Context source). I'll do that. If they weren't clear about planning to take on this design responsibility--which they should have long before the deadline--than I feel it is the fault of the editors and not the fault of Context. Under such conditions I would have written text for these people in something they understand, like an word processor document (LibreOffice can save as MS Word easily enough). That is what I mend that in hindsight I should not have used ConTeXt. ;-} Sorry to hear you are having trouble with this. I know what it is like to face the edge of a deadline. I'll survive, I always did. :-D I have to thank this list for the help and support. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/15 Taco Hoekwater t...@elvenkind.com MkIV can create XML. :-) That is something I have heard much more than I have seen. If it can so easily do so, could a wizard please intervene and provide a recipe for producing XHTML from standard Context input?[^1] \setupbackend[export=yes,**xhtml=yes,css=yes] But it still has a few issues, so any problem reports are more than welcome. I tried that, but it ends with: pagesflushing realpage 109, userpage 109 system end file documentatie at line 2618 )/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf{/home/cecil/ConTeXt/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf/home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf/home/cecil/ConTeXt/tex/texmf/fonts/type1/public/lm/lmsy10.pfb backend export finalizing ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/back-exp.lua:328: bad argument #2 to 'write' (string expected, got nil). system tex error on line 0 in file : LuaTeX error ... empty file * ./documentatie ? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/15 Andreas Schneider ak...@gmx.de At Friday, 15.07.2011 on 10:17 Cecil Westerhof wrote: Properly that anybody that knows how to write a document in Microsoft Office can change the document. So standard software, with a low learning curve. I had some problems getting them to accept to use Adobe. And now that turns out to be not a real option. Learning all the time as Benny Hill said. That's absolutely not true. MS Office Word has a pretty steep learning curve, people just neglect that and take it for a slightly more complex notepad. It's not, as can be seen be the loads of completely unprofessional done documents ... not consistent styles, no auto generated index, no cross references, no proper bibliography (where it applies), etc. (Hell, I even saw documents where footnotes where done [superscript] and numbered manually.) That's exactly the problem with Word, Writer, etc., that people think it's an easy to use tool, just because it's WYSIWYG. If you don't know what you are doing, you WILL do it wrong, even (or especially) with such an easy tool as Word or Writer. I agree. But that is accepted practice. I find that most times it is more important to generate something fast and then have to use a lot of time to get things changed or right, then to setup things correctly (which takes time) and in the future can change things faster, more efficient en more consistent. In a way I am even afraid that the better pleasing document I generated could be pearls to the swines. Also with TeXworks it's already pretty WYSIWYG, imho. Change the code, hit run, and see the result :) Something to look into then. No the problem is not the layout. They are satisfied with that. They just do not want to be dependent on our company. They don't have to. Give them ConTeXt, give them TeXworks, give them the source to the documents. Then they can do whatever they want. I'll give it a try. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] From \chapter to \startchapter \stopchapter
Instead of only pdf I also need to generate XHTML. For this I need to use \startchapter and \stopchapter instead of \chapter. When it is like: \chapter{A descriptive title} I have to change it to: \startchapter[title=A descriptive title] . . . \stopchapter But how do I change something like: \chapter[aboutLink]{A descriptive title} -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
Two days ago I already posted about this. But because of a glitch at my side, it became a conversation between me and Hans Hagen. I have almost finished writing documentation with ConTeXt. Now the client also needs to have the possibility to change the document. We are so far that the client will work with Adobe Acrobat. Now I have to prove that they can edit it. My boss has a 'recent' version 8 (latest is X). It does not look very promising to edit a document, but that is at this moment not the biggest problem. When I try to change text, I get: All or part of the selection has no available system font. You cannot add or delete text using the currently selected font. I have added a screenshot of the font properties. Is this a problem because of the old Adobe version, or the used fonts? If the latter, which fonts should I use to circumvent this problem? At the moment I am using: \usetypescript[helvetica] \setupbodyfont[helvetica] because they did not like the default font. -- Cecil Westerhof attachment: properties.png___ 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] Edit a ConTeXt generated document with Adobe Acrobat Professional
Thanks for the speedy reply. 2011/7/14 luigi scarso luigi.sca...@gmail.com Is this a problem because of the old Adobe version, or the used fonts? If the latter, which fonts should I use to circumvent this problem? At the moment I am using: \usetypescript[helvetica] \setupbodyfont[helvetica] because they did not like the default font. It's simple: the host where the adobe pro is run has not the fonts. So the host must install these fonts --- they have a permissive license and they come with the minimals too. This will be true whatever version of Acrobat Pro you will use, even X. I did not think it had to do with 8, but it is never wrong to ask. Maybe a dump question, but how do I install the fonts? Or how do I determine a font that is installed with ConTeXt and Adobe? They have about 700 fonts. So maybe there is an usable font that both systems have. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 luigi scarso luigi.sca...@gmail.com Is this a problem because of the old Adobe version, or the used fonts? If the latter, which fonts should I use to circumvent this problem? At the moment I am using: \usetypescript[helvetica] \setupbodyfont[helvetica] because they did not like the default font. It's simple: the host where the adobe pro is run has not the fonts. So the host must install these fonts --- they have a permissive license and they come with the minimals too. This will be true whatever version of Acrobat Pro you will use, even X. I did not think it had to do with 8, but it is never wrong to ask. Maybe a dump question, but how do I install the fonts? Or how do I determine a font that is installed with ConTeXt and Adobe? They have about 700 fonts. So maybe there is an usable font that both systems have. The font with the minimals are inside the minimals and they can be query with mtxrun. They are independent and separated from the system. The same for texlive. I just ran: mtxrun --script fonts --list --info --pattern=* but only get: mtx-fonts | mtx-fonts | mapping : texmfhome mtx-fonts | fontname: texmfhome mtx-fonts | fullname: texmfhome mtx-fonts | filename: texmfhome.otf mtx-fonts | family : texmfhome mtx-fonts | weight : medium mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : mtx-fonts | I also ran: mtxrun --script fonts --reload But that does not change the output from: mtxrun --script fonts --list --info --pattern=* Windows and MacOS have they way to install/query system fonts. Usually one install a font from context into the system fonts as an ordinary font, at least under Windows. I work with ConTeXt under Linux and Adobe runs under Windows. What do I need to do to get things working. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Hans Hagen pra...@wxs.nl you can look at the list of reported fonts, and put those in the windows/fonts (forget about type1, just stick to the ttf/otf) I executed find . -name '*Gyre*' But that does not find anything. or instead you can use fonts that come with the operating system when making the pdf I am building on Linux and the editing has to be done on Windows. So I am afraid that it is not going to work. (But I like to be proven wrong.) I removed all setting of fonts, so I think the OS font was used. But the same problem in Adobe. (LMRoman) -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Cecil Westerhof cldwester...@gmail.com 2011/7/14 Hans Hagen pra...@wxs.nl you can look at the list of reported fonts, and put those in the windows/fonts (forget about type1, just stick to the ttf/otf) I executed find . -name '*Gyre*' But that does not find anything. Found them. The names are all lowercase. I have: ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-italic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bold.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-regular.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bolditalic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-italic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bold.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-regular.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bolditalic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf I can install them without problems? There is no restricting copyright on them? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Cecil Westerhof cldwester...@gmail.com Found them. The names are all lowercase. I have: ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-italic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bold.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-regular.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bolditalic.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf ./context/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-italic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bold.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-regular.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheroscn-bolditalic.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf ./ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bolditalic.otf I can install them without problems? There is no restricting copyright on them? I installed them. (When you know what to do, it is not hard.) Now I can change the document. The only problem is that when deleting a page, or adding a page, etc., the index and the page numbering does not change. But that could be that I do not understand Adobe. Five minutes is hardly enough to learn to work with it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Mojca Miklavec mojca.miklavec.li...@gmail.com From Adobe's point of view the page number is just a string that has nothing to do with the page number itself. And so is the index. Adobe has no information at all that the thing on the first page is an index and thus won't update it. Then I have a problem. :-{ You also cannot expect from Adobe to support editing equations. I agree. You would need to convince your clients to use something similar to LyX (and convince TeX developers to write a better LyX) in order to do that. That is not going to work I am afraid. Besides that uses TeX/LaTeX and my document is ConTeXt. Is there a possibility to export to a format that is editable? HTML is possible of-course, but is there a better possibility? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 John Haltiwanger john.haltiwan...@gmail.com I installed them. (When you know what to do, it is not hard.) Now I can change the document. The only problem is that when deleting a page, or adding a page, etc., the index and the page numbering does not change. But that could be that I do not understand Adobe. Five minutes is hardly enough to learn to work with it. This would be a funciton of typesetting. The table of contents is indexed to the document as it is typeset, not dynamically throughout its existence. If you were to delete all the pages except for the table of contents, it would still refer to all the same pages. If this is a necessary part of your workflow, then it sounds like a WYSIWYG tool like Scribus or InDesign is more appropriate (unfortunately). The problem is that my document already is finished. First I could just deliver a PDF file. Now they want to edit it themselves. Or can I generate from my tex file something that has the meta information and can be edited in Scribus? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 John Haltiwanger john.haltiwan...@gmail.com This would be a funciton of typesetting. The table of contents is indexed to the document as it is typeset, not dynamically throughout its existence. If you were to delete all the pages except for the table of contents, it would still refer to all the same pages. If this is a necessary part of your workflow, then it sounds like a WYSIWYG tool like Scribus or InDesign is more appropriate (unfortunately). The problem is that my document already is finished. First I could just deliver a PDF file. Now they want to edit it themselves. Or can I generate from my tex file something that has the meta information and can be edited in Scribus? Nope. As Mojca mentioned, PDF does not account for this kind of thing. I mentioned those tools as a basis for constructing an entire document from scratch. They have automatic page referencing similar to Context, but not in a post-hoc fashion. If they are only copy editing, I think you would be best served by exporting to xhtml. I generally write all my documents in Markdown and convert using Pandoc, so I'm not familiar with Context's xhtml capacities. If they are doing layout.. Ouch. I typesetted my document yes. The client has to receive a deliverable this weekend, so my stress hormones will be high the coming days. I have to count my options and select the best. (Or least bad.) Everyone thanks. And next time I want more information when starting writing documentation. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Peter Münster pmli...@free.fr The problem is that my document already is finished. First I could just deliver a PDF file. Now they want to edit it themselves. They could install context on their computer... They could, but they will not. Some facts of life are not easily changed. To be honest I do not think it is a real solution. If I see how much work it was for me to get things done and taking into account that I am a command-line 'freak', you can not expect point and click people to do it. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Edit a ConTeXt generated document with Adobe Acrobat Professional
2011/7/14 Mojca Miklavec mojca.miklavec.li...@gmail.com I typesetted my document yes. The client has to receive a deliverable this weekend, so my stress hormones will be high the coming days. I have to count my options and select the best. (Or least bad.) If there are tiny corrections to do they can just as well edit the sources themselves (or send you corrections). That was as how I expected it to going to work. But (now) they want to be completely independent. 'Everybody' should have the possibility to edit the document. In hindsight it was properly the wrong decision to work with ConTeXt. The quality of the document is high, but because of the shift in requirements there is now a problem. Well, I like a challenge. Now I got one. :-) Maybe I should dedicate a page to this problem. I am taken by surprise, but if I can circumvent others to have the same surprise ... -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Can not become member of NTG
I tried to become a member, but after submitting the form I get: Not acceptable! I entered all the fields except postbus and telefoon. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Editable PDF-document
I am creating a PDF document with ConTeXt. This document should also be editable by the client itself. Two persons in the company I am working for tried to add annotations for me. One was using Infix. When trying to edit the document, he auto magically was transferred to a place in the document 30 or 40 pages further. Someone else worked with NitroPDF. He managed (as far as I know without problems) to give 38 annotations, but the size of the document increased from 5.4 MB to 102 MB. This looks not workable. Is there a way I can change the generated PDF so that the client will be able to edit the PDF when he gets it, or could I better generate HTML? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Links
De links naar de PDF bestanden op http://www.ntg.nl/maps/42/index.html werken niet. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] 'Rainbow' header/footer
I am using ConTeXt to make documentation for a webbased application. (100+ document) Last week they showed me another document with used a kind of rainbow (but completely filled at the upper part) for the page header and a 180 degrees rotated one with different colors for the page footer. Now they want me to do the same. What is the best way to do this? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to get the chapter number
At the moment I have the following in my document: In the chapters 7 to 12 a more in depth description of the functionalities will be given. For this document it is not a real problem. (I do not expect the chapter structure to change often.) But it would be nicer to get the chapter numbers auto generated. Is this possible? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to get the chapter number
2011/7/6 luigi scarso luigi.sca...@gmail.com On Wed, Jul 6, 2011 at 10:48 AM, Cecil Westerhof cldwester...@gmail.com wrote: At the moment I have the following in my document: In the chapters 7 to 12 a more in depth description of the functionalities will be given. For this document it is not a real problem. (I do not expect the chapter structure to change often.) But it would be nicer to get the chapter numbers auto generated. Is this possible? I (and I suppose others) don't understand your question. Does not \chapter work ? Sorry, communication is not my strong point. :-{ What I mean. I have something like: \chapter{General description} . . This is explained in chapters 7 to 12. . . \chapter{another} . . \chapter{first explaining} % this is (now) chapter 7 . . \chapter{last explaining} % this is (now) chapter 12 When chapters are added, moved or removed. The chapter numbers in the above sentence have to be changed manually. As a real programmer I am lazy and want the computer do it for me. :-D -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to get the chapter number
2011/7/6 Pontus Lurcock p...@talvi.net On Wed 06 Jul 2011, Cecil Westerhof wrote: What I mean. I have something like: \chapter{General description} . . This is explained in chapters 7 to 12. . . \chapter{another} . . \chapter{first explaining} % this is (now) chapter 7 . . \chapter{last explaining} % this is (now) chapter 12 When chapters are added, moved or removed. The chapter numbers in the above sentence have to be changed manually. As a real programmer I am lazy and want the computer do it for me. :-D See http://wiki.contextgarden.net/References . Works, thanks. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Changing the colors of a button
I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? Also would it not be better when clicking on this button, the highlighting also works with rounded corners? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com I am trying the following: \button[backgroundcolor=darkgray,framecolor=black,framecorner=round]{Go Back}[PreviousJump] The parameter framecolor works (I tried it with green). Framecorner works also, but backgroundcolor not. How can I change the background and text color of the button? ...,background=color,backgroundcolor=darkgray,color=NAME,... Works. I now have: \button[ background=color, backgroundcolor=darkgray, color=white, framecolor=black, framecorner=round, rulethickness=2pt] {Go Back} [PreviousJump] and this does what I want. One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing the colors of a button
2011/7/5 Wolfgang Schuster schuster.wolfg...@googlemail.com One slight problem. The backgroundcolor is a rectangle en goes out of the rounded button. Add “backgroundcorner=round”. Overlooked it. Now added. But did not solve my problem. What I mend is that when I click on the button, the inversion is done for the rectangle. So the button is displayed correctly with rounded corners, but when clicking on the button, the inversion goes out of the button because the complete rectangle is inverted. I would like to have the part outside of the rounded button not inverted. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___