[NTG-context] New module: pararef
Hallo, after so many of you helped me, I want to give back. I just made my t-pararef module public for everyone: http://modules.contextgarden.net/pararef http://wiki.contextgarden.net/Paragraph_Referencing Please feel free to send me comments about the coding style and what I could have done in a better way. E.g. the interface file is missing, but I don't know how it should look like. But I hope mainly that it will prove beneficial for some of you. H. ___ 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] nil error in guess
! LuaTeX error ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:221: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:221: in function 'guess' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:1145: in function ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:1143 (tail call): ? ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:767: in function 'locate' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:844: in function 'identifier' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:862: in function 'identify' main ctx instance:1: in main chunk. The version used is: ConTeXt ver: 2012.10.06 15:31 MKIV fmt: 2012.10.13 int: english/english Is there a quick fix, or I get stuck at a bad moment. Thanks in advance. Hans van der Meer ___ 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] New module: pararef
Am 13.10.2012 um 01:44 schrieb Zenlima p...@zenlima.eu: Hallo, after so many of you helped me, I want to give back. I just made my t-pararef module public for everyone: http://modules.contextgarden.net/pararef http://wiki.contextgarden.net/Paragraph_Referencing Please feel free to send me comments about the coding style and what I could have done in a better way. E.g. the interface file is missing, but I don't know how it should look like. But I hope mainly that it will prove beneficial for some of you. You can replace these two lines \definecounter[ParagraphNumber][way=bytext,prefix=no] \setuphead[chapter,section,subsection,subsubsection][insidesection={\resetcounter[ParagraphNumber]}] with \definecounter[ParagraphNumber][way=byhead,prefix=no] The “way=byhead” settings resets the counter with each heading. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New module: pararef
Hello Zenlima, Nice work. I very much approve of the 'a paragraph is one coherent thought/argument' school, and this is definitely more useful than the \setupparagraphnumbering mechanism which numbers every TeX paragraph. I've added some wikilinks to your [[Paragraph Referencing]] page from related pages ([[Paragraph Enumeration]], [[Modules]], [[Command/setupparagraphnumbering]] to make it easier to find. About the crossref command: 'brakets' is spelled 'brackets' in English... Perhaps you can change it while the module is still young. Congratulations on shipping a module! All the best, Sietse On Sat, Oct 13, 2012 at 1:44 AM, Zenlima p...@zenlima.eu wrote: Hallo, after so many of you helped me, I want to give back. I just made my t-pararef module public for everyone: http://modules.contextgarden.net/pararef http://wiki.contextgarden.net/Paragraph_Referencing Please feel free to send me comments about the coding style and what I could have done in a better way. E.g. the interface file is missing, but I don't know how it should look like. But I hope mainly that it will prove beneficial for some of you. H. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New module: pararef
Am 13.10.2012 um 12:55 schrieb Sietse Brouwer sbbrou...@gmail.com: About the crossref command: 'brakets' is spelled 'brackets' in English... Perhaps you can change it while the module is still young. Instead of a key to enable/disable the bracket I would use left/right keys to set the symbols and add a label key to disable/enable the label text. Congratulations on shipping a module! To include the module in the minimals he should send a mail to Mojca. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New module: pararef
Hi Sietse, hi Wolfgang, thanks for your first feedback. Right now I am working on your suggestions. @Wolfgang: I don't understand your suggestion: add a label key to disable/enable the label text. Can you describe it more detaily or in other words? I am not sure how to implement it with the refs to a paragraph. To include the module in the minimals he should send a mail to Mojca. That will come, but I wanted to get some feedback first.. and it was necessary as we saw :-) H. ___ 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] New module: pararef
Am 13.10.2012 um 18:53 schrieb Zenlima p...@zenlima.eu: Hi Sietse, hi Wolfgang, thanks for your first feedback. Right now I am working on your suggestions. @Wolfgang: I don't understand your suggestion: add a label key to disable/enable the label text. Can you describe it more detaily or in other words? I am not sure how to implement it with the refs to a paragraph. Here is a example where I used a few helpers, e.g. \installdirectcommandhandler creates \setupreferencecommand and \referencecommandparameter. \unprotect \installnamespace {referencecommand} \installdirectcommandhandler \referencecommand {referencecommand} \def\referencecommand {\dodoubleempty\referencecommand_direct} \def\referencecommand_direct[#1][#2]% {\begingroup \ifsecondargument \setupreferencecommand[#1]% \edef\m_reference{#2}% \else \edef\m_reference{#1}% \fi \usereferencecommandstyleandcolor\c!style\c!color \getreference[title][\m_reference]% \doif{\referencecommandparameter\c!label}\v!yes{\referencetext\v!page}% \referencecommandparameter\c!left \getreference [page][\m_reference]% \referencecommandparameter\c!right \endgroup} \definelabelclass[reference] \setupreferencetext[\s!en][page={ on page }] \setupreferencetext[\s!de][page={ auf Seite }] \setupreferencecommand [\c!label=\v!yes, \c!left=(, \c!right=)] \protect \starttext \dontleavehmode\reference[knuth]{Donald E. Knuth}% \input knuth \blank \referencecommand[knuth] \blank \referencecommand[left={[},right={]}][knuth] \blank \referencecommand[style=italic,color=red][knuth] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF security settings
Setting author, title, keywords metadata is rather simple. Is there a corresponding way to set PDF security properties, e.g. allow/disallow comments, allow/disallow printing c. -- Bill Meahan Westland, Michigan USA ___ 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] PDF security settings
On Sat, Oct 13, 2012 at 8:12 PM, Bill Meahan subscribed_li...@meahan.netwrote: Setting author, title, keywords metadata is rather simple. Is there a corresponding way to set PDF security properties, e.g. allow/disallow comments, allow/disallow printing c. Have you seen qpdf ? http://qpdf.sourceforge.net/files/qpdf-manual.html -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF security settings
On 10/13/2012 02:32 PM, luigi scarso wrote: On Sat, Oct 13, 2012 at 8:12 PM, Bill Meahan subscribed_li...@meahan.net mailto:subscribed_li...@meahan.net wrote: Setting author, title, keywords metadata is rather simple. Is there a corresponding way to set PDF security properties, e.g. allow/disallow comments, allow/disallow printing c. Have you seen qpdf ? http://qpdf.sourceforge.net/files/qpdf-manual.html -- luigi I was hoping to do it directly from ConTeXt instead of using a separate application. -- Bill Meahan Westland, Michigan USA ___ 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] Index and Publications suddenly remain empty???
Dear ConTeXt users, I am bothered by this seemingly simple problem that suddenly occurred these days, while the same TeX code produced the Index and Publications chapters properly when compiling the document last May. I use the latest stable version (from May 2012) of ConTeXt on a recent Linux with TeXLive 2012 and bibtex 0.99d. The PATH is correct. The bad PDF: https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis.pdf?at=default The environment: https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/bachelors_thesis_environment.tex?at=default The text source files for the Publications and Index chapters: https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/references.tex?at=default https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new/index.tex?at=default All files: https://bitbucket.org/SMaijers/bachelor_project/src/df9027aa04ea96e846173fe35b2a2715a742ad40/bachelors_thesis.new?at=default I have been trying to solve this this evening and finally I decided to move from ConTeXt stable to the beta version, but now I cannot get *any* PDF output anymore ... Can anyone spot problems with the TeX source code that prevent the document compilation, with whichever version of ConTexT??? Kind regards, Sander Maijers ___ 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] Index and Publications suddenly remain empty???
Hello, Here is the context run log related to the remark in the last paragraph of my previous e-mail, about no output at all when running the beta version on the said TeX source files. mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-context/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-fonts/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-linux-64/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-local/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-modules/ls-R... mktexlsr: Updating /home/sander/software/installations/ConTeXt/tex/texmf-project/ls-R... mktexlsr: Done. resolvers | resolving | creating instance resolvers | resolving | variable 'SELFAUTOLOC' set to '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin' resolvers | resolving | variable 'SELFAUTODIR' set to '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64' resolvers | resolving | variable 'SELFAUTOPARENT' set to '/home/sander/software/installations/ConTeXt/tex' resolvers | resolving | variable 'TEXMFCNF' set to '' resolvers | resolving | variable 'TEXMF' set to '' resolvers | resolving | variable 'TEXOS' set to 'texmf-linux-64' resolvers | resolving | resolvers | resolving | using configuration specification 'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf/web2c,selfautoparent:/../texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf/web2c}' resolvers | resolving | resolvers | resolving | unknown configuration file '/home/sander/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin/share/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin/share/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/bin/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/share/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/share/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-linux-64/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/../texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/share/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/share/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/home/sander/software/installations/ConTeXt/tex/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | found configuration file '/home/sander/software/installations/ConTeXt/tex/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | locating list of 'home:texmf' (runtime) (tree:///home:texmf) resolvers | methods | resolver: method=locators, how=uri, scheme=tree, argument=tree:///home:texmf resolvers | trees | locator 'home:texmf' not found resolvers | resolving | locating list of 'selfautoparent:texmf-project' (cached)
Re: [NTG-context] New module: pararef
On Sat, Oct 13, 2012 at 6:53 PM, Zenlima wrote: To include the module in the minimals he should send a mail to Mojca. That will come, but I wanted to get some feedback first.. and it was necessary as we saw :-) I didn't inspect the module closely, but it seems short and general enough that the functionality could in principle also end up in the core. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug?: component inside component
Hi, I tried to recompile a book (no project file, 1 product file, many component files) the first time for a while - but now it breaks with weird and random error messages. It starts when I have a component inside a component.. but only when I have more than just a few pages text. And is stops with e.g. a missing bracket, one bracket more than needed, math module missing etc etc. It is definitely not one of the reported errors.. and the error message changes as I add or remove some text (letters, paragraph). Also I realized that references over components borders don't work any more (they link to an external document: componentname.pdf). Is this a known bug? I found some remarks regarding broken references over component borders. Does there exists any other way of integrating tex-file into tex-files for context? I will continue trying to isolate the error.. but atm it tricks me pretty well. Thanks in advance H. ___ 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 ___