Re: [NTG-context] Support for musl
Am Freitag, den 19.01.2018, 12:22 +0100 schrieb Mojca Miklavec: > On 19 January 2018 at 11:40, Henri Menke wrote: > > Dear list, > > > > I'd like to support Linux platforms which use musl (https://www.mus > > l-libc.org/) instead of glibc, like for instance Alpine Linux. > > > > How would I go about this? Can you share existing build scripts > > for, e.g. Linux-64? Do I have to provide build infrastructure? > > Can you please raise that question on the TeX Live mailing list? > > If TL team is not willing to support it, we can still do it > ourselves, > but let's first see if there's an "official" way to support it, also > with respect to naming. You can link musl statically which makes these binaries run basically everywhere, so it's actually a win for everybody. The only downsides of musl against libc that I am aware of are some restrictions in DNS lookups (it doesn't use NSS) and that it may not link easily against C++ ... but that should be a one-time-fix at source code level and full fledged DNS support shouldn't matter for TeX anyway. Anyway: IMHO it's worth it and I'm also all for it since I prefer Alpine as well :D (I compile my projects using Alpine as well and statically link it against musl to have binaries that run on all possible linux distributions independant of their underlying libc.) Best regards Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote in TABLE isn't rendered anywhere
Am 2017-07-05 20:51, schrieb Pablo Rodriguez: this might do what you intend: \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \stoptext Just in case it helps, Hello Pablo, yes, this does the trick. Thank you very much for that solution! :-) Best regards Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Footnote in TABLE isn't rendered anywhere
Hello, in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta fmt: 2017.7.3) the following example doesn't show any footnotes: \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \stoptext That second note reference (\note[x]) even causes a warning: references > unknown reference '[][x]' (Local footnotes work in this case, but I prefer global ones.) Best regards Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] labeltext via lua
Am 2017-02-16 17:13, schrieb Hans Hagen: On 2/16/2017 3:06 PM, Andreas Schneider wrote: `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label: \setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode The title correctly reads "Something", but the bookmark in the PDF viewer shows "test". also with this? \enabledirectives[references.bookmarks.preroll] Nope, that works :-) I certainly can live with that solution. Is there reason to not have this enabled by default? (I know, there is a slight performance penalty, but it seems strange that the bookmark defaults to the title, while the title gets expanded but the bookmark doesn't. In any case, I will try to figure out where in the wiki this information best belongs to.) Thank you very much! Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] labeltext via lua
Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label: \setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode The title correctly reads "Something", but the bookmark in the PDF viewer shows "test". Best regards, Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] labeltext via lua
Am 2017-02-16 11:50, schrieb Hans Hagen: languages.data.labels.texts.appendix.labels.en look into lang-txt.lua Hello Hans, I already looked into this and even printed the whole languages.data table at runtime, but didn't find my keys in there. Here is an example which apparently doesn't work (or I'm still overlooking something): ``` \mainlanguage[de] \setuplabeltext[de][Page=Seite] \setuplabeltext[en][Page=Page] \starttext \startluacode local language = languages.numbers[tex.getcount("mainlanguagenumber")] local lbl = languages.data.labels.texts["Page"] local text if lbl == nil then text = "[NOT FOUND]" else text = lbl.labels[language] end context("For language "..language.." we get "..text) \stopluacode \stoptext ``` Thank you very much! Best regards Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] labeltext via lua
Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). As a related side-request: how can I fix expansion in cases like this: \startsectionlevel[title=\labeltext{test}] ... this causes the bookmark to read "test" instead of "Something". \expandafter\startsectionlevel... didn't cut it. Best regards Andreas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Troubles installing on windows
Am 2016-03-25 04:37, schrieb adrian: Any solution to this? I'm having the same error. Windows 10 and downloading latest ConTeXt standalone Solution to what? The referenced wiki page works and the downloads there (for example context-setup-mswin.zip) work fine as well. I regularly update through first-setup.bat and have no trouble. So what error are you getting and what did you do to get to that error? Best regards Andreas ___ 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] Howto use the lua io.read() function only in the first context run?
Am 2016-03-16 22:47, schrieb Romain Diss: Hi, Thank you Hans... but it doesn't fully work. Now I only enter the input once (that's ok) but on the second run, the variable is not defined anymore. How can I keep it in the conTeXt memory? -- Minimum still not working example local name if environment.arguments.currentrun == "1" then io.read() end context.startdocument() context("Hello " .. name) context.stopdocument() All the best You can use the LUA interface "job.passes". In the first pass, you store your value. For example: local passdata = job.passes.define("mystuff") --I usually define this at the top of my script and reuse it. passdata["somevalue"] = "hello world"; Then in the subsequent runs you can access local lastpassdata = job.passes.getcollected("mystuff") --Same here... print(lastpassdata["somevalue"]) Best regards, Andreas ___ 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 Signature Fields
Am 2016-03-10 16:56, schrieb Hans Hagen: next beta: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext It's working; thank you very much :-) ___ 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] Are nested sections possible?
You probably want automatic levels. Take a look at strc-lev.mkvi. \startsectionlevel[title=outer] \startsectionlevel[title=inner] \startsectionlevel[title=yet another] \stopsectionlevel \stopsectionlevel \stopsectionlevel If you need more levels than the default (which ranges from chapter to subsubsubsubsection), you may need to define your own using \definesectionlevels. Best regards Andreas Am 2016-03-11 09:08, schrieb m...@silentumbrella.com: Greetings, Is it possible to have \starttext \startchapter Hey a chapter! \startsection something.one \startsection someting.one.one \startsection something.one.one.one \stopsection \stopsection \stopsection \stopchapter \stoptext render as: 1. Hey a chapter! 1.1 something.one 1.1.1 something.one.one 1.1.1.1 something.one.one.one Thanks, Mica ___ 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] Apply a start/stop command pair to certain subsections
You could take a look at my fork of Pablo's pandoc-xhtml: https://github.com/aksdb/pandoc-xhtml The basic idea is to use another step in between the generation: Pandoc -> XML -> PDF (since ConTeXt can read XML natively, given the appropriate environment file). As you can see in the example Makefile, you should use pandoc with --section-divs which will (in my fork of pandoc-xhtml, not in the original) cause the use of \startchapter...\stopchapter, \startsection...\stopsection etc. Therefore you can then also use \setuphead[chapter][insidesection=..., aftersection=...] and similar setups. Best regards Andreas Am 2016-03-10 12:08, schrieb Tom Harrop: Hello, I'm a new Context user, and I have a question about conditional formatting of paragraphs. I'm typsetting a CV. I am using pandoc to generate the .tex file from Markdown before compiling the pdf with context. Because pandoc inserts the body of the document from one variable ($body), I would like to avoid using e.g. \startmycommand and then \stopmycommand to modify individual subsections. What I can do from Markdown is tag the headings, so that (for example) the "Publications" subsection starts as "\subsection[pubs]{Publications}". I would like to know if there is a way to automatically apply a start/stop command pair to the "pubs" subsection(s), or if it better to do this with an external script that modifies the .tex file before I call context. Below is an example where I can get the output I'm looking for (paragraphs in the "pubs" subsection have a hanging indent) by defining a start/stop command pair and manually applying it to the "pubs" subsection. If anyone has any tips to apply this automatically to the "pubs" subsection(s) but not the "text" subsections, I'd appreciate it! I have searched the wiki, read through the "Context: an excursion" document and looked around in the mail archive and stackexchange, but I didn't find exactly what I want. Many thanks for reading, Tom Harrop ---Example below--- \definestartstop [negindent] [ before={% \startnarrower[left]% \setupindenting[-\leftskip,yes,first]% \setuphead[subsection][indentnext=yes]% }, after=\stopnarrower, ] \starttext \subsection[text]{Normal text} I would like the text in this subsection to appear without indents. In the following subsection I need hanging indents. \startnegindent \subsection[pubs]{Publications} Jaynes, Julian. {\os 1990}. {\em The Origin of Consciousness in the Breakdown of the Bicameral Mind}. New York City: Houghton Mifflin Company. Pye, David. {\os 1995}. {\em The Nature and Art of Workmanship}. London: The Herbert Press. Persson, Tomas. {\os 2008}. {\em Pictorial Primates: A Search for Iconic Abilities in Great Apes}. Lund: Lund University Cognitive Studies. \stopnegindent \subsection[text]{More text} This subsection should be back to normal. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \stoptext ___ 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 Signature Fields
Hello Hans, after comparing eforms and the result of a document edited by Acrobat, the relevant portions in the spec (PDF 32000-1:2008) are: Section 12.7.4.5, with tables 232 and 233. From what I see it should be possible to add a field /FT /Sig with and without a /Lock dictionary. The /Lock dictionary created by Acrobat also specifies the optional /Type /SigFieldLock (eforms doesn't, but when in doubt, I trust Adobe more than eforms ;-)) Here is an example from the PDF stream of a document manually forged with Acrobat: %% Object stream: object 167, index 37; original object ID: 475 << /AP << /N 188 0 R >> /DA (/Helv 0 Tf 0 g) /F 4 /FT /Sig /Lock 187 0 R /MK << >> /P 196 0 R /Rect [ 253.965 163.306 525.056 186.143 ] /Subtype /Widget /T (Gehnehmiger Unterschrift) /Type /Annot %% Object stream: object 187, index 57; original object ID: 495 << /Action /Exclude /Fields [ (Einrichter Name) (Einrichters Unterschrift) ] /Type /SigFieldLock ("Einrichter Name" is another Text Field --> /FT /Tx [...] /Subtype /Widget [...] /T (Einrichter Name) "Einrichters Unterschrift" is another Signature Field) Best regards Andreas Am 2016-03-09 16:16, schrieb Hans Hagen: On 3/9/2016 2:11 PM, Andreas Schneider wrote: Hello all, is there currently any mechanism in ConTeXt similar to the LaTeX digsig or eforms package? I want to add a form field that can be digitally signed (which is now already possible with Acrobat Reader, not just with Acrobat Pro). Additionally (like the mentioned eforms package) it would be nice, if you could specify other form fields that should be locked once the signature field is actually signed (according to the PDF spec this is simply set via a dictionary). it's probably something trivial to implement so what are the relevant fields (paragraphs/tables/dics/fields in the pdf spec) .. i'm not going to reverse engineer some package but start from the spec Anyway: can this currently be achieved with ConTeXt? If not: is there any chance to get that feature added sometime? :-) so far i never bothered with anything signature (i must say that i never ran into such docs and it would not make them more valid to me anyway) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF Signature Fields
Very good point(s). Just for more reference: We use such forms heavily in-house, sometimes with a multi-stage approach. Example: the employee fills out his details, etc., and signs that part. The fields he had to fill are now locked (but saved, ofcourse ;-)). That PDF is now sent to his or her boss, who fills out the organisational details, and signs that part. Finally the PDF goes to HR or whoever who gives the final signature. Since all employees have signature cards (chips with PKCS signatures on them) the whole process get's safe, accountable and paper-free. In the past stuff like this required printing, hand-signing, scanning, sending, printing-again, ... you get the idea. These forms are currently handcrafted using Acrobat. I will analyse the resulting PDF streams, try to match that against the PDF spec and what the eforms-package does. If that lines up, I'll provide the necessary details here. Thank you Hans and Alan! :-) Am 2016-03-09 16:39, schrieb Alan BRASLAU: One has to be EXTREMELY careful with these "features". Currently, there are so-called PDF forms, but they are far from fully functional. I suspect that the specifications are not clear and are not respected in any case. I will give a concrete example: The American Tax agency, IRS, provides a large number of PDF forms that can be filled out, for they LOVE forms. One can use Acrobat (Reader or Pro) and one can even fill them out using evince. Yeah! However, whereas the forms filled-out using evince can be saved and re-edited, printed, etc., opening these filled-out forms in Acrobat come out blank. (Luckily I was able to provide my accountant with *printed*, filled-in copies, both paper and PDF.) Other examples are forms that can ONLY be read using the latest and greatest Acrobat. The situation is problematic, and I know of at least one government agency that has finally turned towards a web-based reporting method as they had received multiple complaints and even legal challenges on their Adobe/PDF only reporting method used previously. This can explain Hans' reticence towards reverse engineering in absence of clear, published specifications that are indeed respected. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF Signature Fields
Hello all, is there currently any mechanism in ConTeXt similar to the LaTeX digsig or eforms package? I want to add a form field that can be digitally signed (which is now already possible with Acrobat Reader, not just with Acrobat Pro). Additionally (like the mentioned eforms package) it would be nice, if you could specify other form fields that should be locked once the signature field is actually signed (according to the PDF spec this is simply set via a dictionary). Anyway: can this currently be achieved with ConTeXt? If not: is there any chance to get that feature added sometime? :-) Best regards Andreas ___ 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] OT: OpenType vs. TrueType
Am 2016-03-05 09:40, schrieb Wolfgang Schuster: Hi, I think the following video is interesting because it answers the questions which font format you should use: https://www.youtube.com/watch?v=nM5tN88CX30 German speaking users can watch the following video: https://vimeo.com/41494356 or read this article: http://www.typografie.info/3/page/artikel.htm/_/wissen/mythos-opentype-r270 Kind regards, Wolfgang Schuster Wow, good read! (Didn't have time to watch the video yet :-)) Indeed I always thought PS < TTF < OTF while this is apparently pretty wrong. That's definitely something I need to look out for when buying fonts. It looks like one needs to check first, how the shop/author/whoever defines "TrueType" and "OpenType", so you really know what you get :-/ Best regards Andreas ___ 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] Vertically centered text in each page
Am 2016-02-19 12:23, schrieb Marco Patzer: On Fri, 19 Feb 2016 11:54:12 +0100 Nicolawrote: How do I setup the slide command to do that by default? I have tried putting {before,after,beforesection,aftersection}=\vfill in various combinations in \setuphead, but I cannot obtain the desired effect. \setuphead[slide][ style=\ssb, command=\MySlide, color=white, insidesection=\vfill, aftersection=\vfill, page=yes] I'm in a similar situation currently, but can't quite get it to work with the mentioned solution. The attached example shows several problems. Test 1 and Test 3 show, that the \vfill at the beginning apparently adds a forced space (which is worse in Test 3 than in Test 1). Another problem is, that when the page needs to break (which is fine), the last page will not be centered. This is a logic consequence of the \vfill being after the section. Is there any other mechanism to center text on _all_ pages, no matter how often the sections or paragraphs need to get broken? Best regards Andreas\setuppapersize[S8] \setupbodyfont[24pt] \setupinterlinespace[height=0.8] \setuppagenumbering[location=] \definelayer [header] [width=\paperwidth, height=\paperheight] \define[2]\setheader{% \resetlayer[header]% \setlayer[header]% [preset=lefttop, x=10mm, y=5mm, width=15cm, heigth=40pt]% {#2}% } \define[2]\setsubtitle{% \setlayer[header]% [preset=lefttop, x=10mm, y=\dimexpr(5mm+40pt), width=15cm, heigth=22pt]% {#2}% } \setuphead[chapter][command=\setheader, page=yes, before={\setupbackgrounds[page][background={header}, state=repeat]}, after={\strut\blank[-2*line,samepage,disable]}, insidesection=\vfill, aftersection=\vfill] \setuphead[section][command=\setsubtitle, after={\strut\blank[-2*line,samepage,disable]}, before=] %\showboxes \showframe \starttext \startchapter[title={Test 1}] \input knuth \input knuth \stopchapter \startchapter[title={Test 2}] No page-breaks here. \stopchapter \startchapter[title={Test 3}] \startsection[title={Subtitle}] \input knuth \input knuth \stopsection \stopchapter \stoptext___ 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] Floating split TABLE misaligned
Am 2016-02-05 11:29, schrieb Andreas Schneider: Hi, I presume I found a bug in TABLE placement. The attached examples shows, that the split TABLE is not centered on the first page, bug centered on the second. I would expect it to be centered in both cases. Best regards, Andreas As much as I hate to bump threads ... but can someone at least confirm that I not just misused \placetable or Natural Tables? :-) (Solutions for the problem are most welcome too, of course ;-)) ___ 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] \usemodule[pgfplots] fails
Am 2016-02-08 15:17, schrieb Procházka Lukáš Ing.: Hello, that's strange as: 1. I renewed Context today morning; 2. I launched "context.exe --make --generate"; 3. I launched "context.exe --nonstopmode Pgf.mkiv" which produces the recently described failure. So - can anyone confirm the same behavior (here: WinXP 32b, ConTeXt ver: 2016.02.06 14:06 MKIV beta fmt: 2016.2.8 int: english/english)? Moreover, the code runs successfully with my backup ancient version (at least): " mtx-context | run 3: luatex --fmt="d:/ConTeXt/tex/texmf-cache/luatex-cache/context/ This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5019) \write18 enabled. open source > 1 > 1 > d:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.06.17 16:53 MKIV beta fmt: 2014.6.18 int: english/english " Best regards, Lukas FWIW, I cannot even find the module pgfplots. Apparently it is no longer in the modules repository (for the minimals). I assume it is no longer maintained. Therefore the version you use is most likely not matching up to the ConTeXt version you use and is only a relict from a time past, when the module was still available. Best regards, Andreas ___ 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] Floating split TABLE misaligned
Hi, I presume I found a bug in TABLE placement. The attached examples shows, that the split TABLE is not centered on the first page, bug centered on the second. I would expect it to be centered in both cases. Best regards, Andreas\setupTABLE[split=repeat, textwidth=.9\textwidth] \setupTABLE[column][last][width=broad] \setupTABLE[row][first][style=bold] \setupTABLE[offset=.2em] \setupwhitespace[medium] \setuptolerance[verytolerant] \starttext \dorecurse{2}{\input knuth\par} \placetable[here,split][]{Test}{ \bTABLE \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{20}{\bTR \bTD Test \eTD \bTD Test \eTD \eTR} \eTABLEbody \eTABLE } \stoptext___ 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] Sanitize in XML/XHTML documents
Hi, I hope I don't just overlook some plain obvious solution, but a longer search in the Wiki and the mailing list (and the context source) didn't come up with anything too useful Anyway: is there any mechanism that I can use to "fix" quotations while typesetting XML documents? Pandoc produces some text. In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. I tried to intercept using \xmltexentity{quot}{...} but apparently the internal replacement takes precedence here. Otherwise I would have tried to build some small state machine which remembers if it is currently inside a quotation of not. My next try would be to somehow intercept the XML stream (or flush) using lua and replace " ... " inline. However that all seems quite hacky. So, does ConTeXt currently offer anything I can piggyback to get quotations set properly? :-) Best regards, Andreas ___ 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] Sanitize in XML/XHTML documents
Am 2016-02-02 13:19, schrieb mass...@fastwebnet.it: Pandoc produces some text. In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. Are you sure that Pandoc can produce only? Have you tried the --html-q-tags option? Greetings, Massi *face-palms* Yes, that did the trick. I completely overlooked that option. Thank you very much for that info! Now I can properly do quotes with an xmlsetup. Best regards, Andreas ___ 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] Sanitize in XML/XHTML documents
Am 2016-02-02 12:14, schrieb Hans Hagen: On 2/2/2016 11:32 AM, Andreas Schneider wrote: Anyway: is there any mechanism that I can use to "fix" quotations while typesetting XML documents? Pandoc produces some text. In TeX I would usually use \quotation{some text} to have proper, language dependent quotes. To me that looks like a pandoc bug: how is a backend supposed to deal with left/right quotation marks? My next try would be to somehow intercept the XML stream (or flush) using lua and replace " ... " inline. However that all seems quite hacky. even then you can have issues: what if you have nested and/or unbalanced quotes ... Pandoc allows to replace quotes with "smart punctuation". That would cause "..." to be replaced by “...”. That way I can at least safely determine start and end, thereby replacing “ with \quotation\bgroup and ” with \egroup. I'm aware that there might still be cases where this goes wrong, but it should be much more rare then :-) So I guess my lua based search and replace (combined with said "smart punctuation") could be my best bet at the moment. If any other ideas pop up, I'm happy to hear them, though :-) Thanks for your quick response! Best regards, Andreas ___ 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] Splitting natural table fails with xtable in footer
Am 2015-10-06 13:31, schrieb Wolfgang Schuster: >> Andreas Schneider >> 1. Oktober 2015 um 12:52 >> Hello, >> >> In the following minimal example, an error occurs when build the file (with >> a recent context version): >> >> >> >> starttext >> >> startsetups[s:footer] > insidesplitfloatfalse > >> startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch] >> startxrow >> startxcell Filename: stopxcell >> startxcell[distance=1cm] outputfilename.pdf stopxcell >> stopxrow >> stopembeddedxtable >> stopsetups > Wolfgang Nice! Even though I don't understand why, it does the job :-) Thank you very much! Best regards, Andreas ___ 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] Splitting natural table fails with xtable in footer
No ideas? Nothing I can do about this? :-( Am 2015-10-01 12:52, schrieb Andreas Schneider: Hello, In the following minimal example, an error occurs when build the file (with a recent context version): \starttext \startsetups[s:footer] \startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch] \startxrow \startxcell Filename: \stopxcell \startxcell[distance=1cm] \outputfilename.pdf \stopxcell \stopxrow \stopembeddedxtable \stopsetups \setupheader[style=\tx] \setupfooter[style=\tx] \setupfootertexts[\setups{s:footer}][][][\setups{s:footer}] \startchapter[title={Test}] \placetable[split]{Test}{ \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{50}{\bTR \bTD Value1 \eTD \bTD Value2 \eTD \eTR} \eTABLEbody \eTABLE} \stopchapter \stoptext The error is as follows: This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) ConTeXt ver: 2015.09.13 13:31 MKIV beta fmt: 2015.10.1 int: english/english ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! You can't use `\prevdepth' in restricted horizontal mode ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! Illegal unit of measure (pt inserted) In reality my footer is lot more complex (huge table :-)) and I see no better way to handle this. Is there a way to fix this situation? (Preferable without rolling out a new ConTeXt version?) Best regards, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Splitting natural table fails with xtable in footer
Hello, In the following minimal example, an error occurs when build the file (with a recent context version): \starttext \startsetups[s:footer] \startembeddedxtable[frame=off,distance=5pt,bodyfont=6pt,option=stretch] \startxrow \startxcell Filename: \stopxcell \startxcell[distance=1cm] \outputfilename.pdf \stopxcell \stopxrow \stopembeddedxtable \stopsetups \setupheader[style=\tx] \setupfooter[style=\tx] \setupfootertexts[\setups{s:footer}][][][\setups{s:footer}] \startchapter[title={Test}] \placetable[split]{Test}{ \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{50}{\bTR \bTD Value1 \eTD \bTD Value2 \eTD \eTR} \eTABLEbody \eTABLE} \stopchapter \stoptext The error is as follows: This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238) ConTeXt ver: 2015.09.13 13:31 MKIV beta fmt: 2015.10.1 int: english/english ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! You can't use `\prevdepth' in restricted horizontal mode ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! Illegal unit of measure (pt inserted) In reality my footer is lot more complex (huge table :-)) and I see no better way to handle this. Is there a way to fix this situation? (Preferable without rolling out a new ConTeXt version?) Best regards, Andreas ___ 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] vim module: modify line wrapping
Am 14.05.2015 17:26, schrieb Aditya Mahajan: I just released a newer version to t-vim where the `option=hypenated` is documented. It is also possible to hyphenate words by using \definevimtyping[...][..., option={packed,hyphenated}, align=hyphenated, ] Aditya Thank you for that solution. It doesn't work quite that way, though: 1. Only [...,option=hyphenated,...] breaks many, but not all lines. \setupalign[verytolerant,stretch] helps here. 2. [...,option={packed,hyphenated},align=hyphenated,...] doesn't work at all 3. Omitting packed, ie. [...,option=hyphenated,align=hyphenated,...] works as expected. Even single words are broken then. I will currently stick with option 1, since option 3 has a negative side effect: it inserts hyphen marks (-), which looks weird in source code. All in all I have two wishes regarding wordwrap and hyphenation, and hope they aren't too hard to grant :-) 1. Add an option to omit the hyphenation mark/sign (whatever it is actually called). 2. Add an option to indent the wrapped line to the line it was wrapped from. Remark for wish #2: Currently breaking lines look like: | This is an indented and | |broken line. | It would be nicer to have: | This is an indented and | | broken line.| Thanks for adjusting the documentation of the vim module and giving me all these options. I now have a ConTeXt produced document I can proudly release to the customer :-) Best regards, Andreas ___ 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] vim module: modify line wrapping
Am 12.05.2015 21:09, schrieb Aditya Mahajan: Does \setbreakpoints[compound] help? If not, please post a minimal example. Aditya Unfortunately not. Here is an example: \usemodule[vim] \definevimtyping[JSON][syntax=javascript, lines=split, strip=yes] \starttext The example: \startJSON { sample_parameter: http://some/url/with/a/lot/of/path/elements?and=somevariables=too; } \stopJSON \stoptext ___ 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] vim module: modify line wrapping
Hi, vimtyping already offers line wrapping by specifying lines=split. However, some /lines/with/very/long/sequences/of/somehow/breakable/chars do not break at all. In that given example, I would like to also allow vimtyping to break lines at /. Is something like that possible? And if so: how? Best regards, Andreas ___ 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] SyncTeX and mkiv
Otared Kavian schrieb: Using TeXShop on a Mac (with Mac OS X 10.2) I noticed that some of my documents typeset with mkiv do not respond correctly regarding SyncTeX: when I do « Command-Click » on a specific part of the resulting PDF there is no reaction at all, that is I do not get to the corresponding part of the source TeX file. Nevertheless when I click in the source TeX file, SyncTeX shows the corresponding highlighted part of the PDF file. So my question is the following: is there some change in mkiv, or in the way TeXShop has to be tuned? I noticed something similar since about one or two years. Using SumatraPDF on Windows (together with Sublime or Notepad++) a sync from the editor to SumatraPDF results in the right higlighted section. However a sync the other way 'round is slightly off. It's more off the farther down I'm in the document. Best regards, Andreas ___ 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] XML Processing with Verbatim (VIM-Typing)
Am 12.02.2015 15:44, schrieb Hans Hagen: so then you have to wikify it (or add it to the t-vim module docu) You are right ofcourse :-) Done: http://wiki.contextgarden.net/Verbatim_XML ___ 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] XML Processing with Verbatim (VIM-Typing)
Am 10.02.2015 22:45, schrieb Hans Hagen: \startluacode function xml.functions.processJSON(t) buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t)) .. \n\\stopJSON) context.getbuffer { foo } end \stopluacode \startxmlsetups xml:json \pushcatcodetable \setcatcodetable\ctxcatcodes \xmlfunction{#1}{processJSON} \popcatcodetable \stopxmlsetups (If needed I can make a better plugin for this ... remind me later this year.) Thank you very much, Hans! That works like a charm! From my perspective, no changes are necessary. I personally like some technical trickery in my ConTeXt code, especially if it's as slim as your solution. (Mainly because that helps me understand the inner workings and hopefully makes me find solutions like this on my own :-)) So thanks again for that quick and very helpful answer! Best regards, Andreas ___ 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] XML Processing with Verbatim (VIM-Typing)
Hello, as a few other topics on this Mailing List already discussed, it's not (easily?) possible to use \starttyping\stoptyping within XML setups. If it was simple verbatim, there would be a few workarounds. However, I want to provide formatted verbatim (i.e. \startJSON \stopJSON, after having \definevimtyping[JSON][syntax=javascript]). That typing environment will be further customized (by adding text background with border, etc.). I don't see a simple way to work around this without manually typesetting the code highlighting (which I don't want. I simply want json{someCode}/json inside the XML file). Is there anything I can do to make this work? Maybe with preparing a buffer? (with Lua?) Thanks in advance, for any help you can provide :-) -- Minimal Example: \usemodule[vim] \definevimtyping[JSON][syntax=javascript] \starttext \startluacode function xml.functions.processJSON(t) lxml.verbatim(t, \\startJSON, \\stopJSON) end \stopluacode \startbuffer[demo] test description json{somecode}/json /description /test \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{test|description|json}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:test \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:description %\xmlsetsetup{xml}{json}{xml:*} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:json \xmlfunction{#1}{processJSON} \stopxmlsetups \xmlprocessbuffer{main}{demo}{} \stoptext ___ 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] xtables in setups
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, I'm currently setting up a xml - pdf template for some technical documentation and wanted to use xtables. However they don't seem to work when within a setup/xmlsetup. Small example (without XML, for the sake of simplicity): ~~ \starttext \startsetups test \startxtable \startxrow \startxcell Foo \stopxcell \startxcell Bar \stopxcell \stopxrow \stopxtable \stopsetups \setups[test] \stoptext ~~ Causes: * tex errorerror on line 0 in file : ! Emergency stop Is there anything I'm doing wrong here or did I stumble upon a bug? (If there is no easy fix here, I'm probably going to use LUA to parse the XML and write the TeX part from there which means I could circumvent the need for setups.) Best regards, Andreas -BEGIN PGP SIGNATURE- Version: GnuPG v1 iF4EAREIAAYFAlSPKQwACgkQIxziJkiYZxFTYAEAxsgkiYolYatIyoCPQNDlmp0f pmSdU5HtzfCw2V2ZKs4BAK5E6Qu/ZrE5mIRD2qupwAffokpkIefMlLhzLPYuCTx7 =QetB -END PGP SIGNATURE- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xtables in setups
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 15.12.2014 um 20:07 schrieb Wolfgang Schuster: You have to replace \startxtable with \startembeddedxtable (and also \stopxtable with \stopembeddedxtable). Wolfgang Ahh, that's it. I didn't see this in the manual but was now able to find it there :-) I'll try tomorrow (back at work) if my document start to behave the way I want it to when replacing these macros :-) Thanks! Best Regards, Andreas -BEGIN PGP SIGNATURE- Version: GnuPG v2 iF4EAREIAAYFAlSPRFEACgkQIxziJkiYZxGFQwD/QofIqZg5YLaxvkzlXdYC+/7o K8fw28HlVXK/iFrCxN8BAKSBLUSY6qUq/3z3HwFHYjjc0MUvVaF9MysOUWojUfPF =SU39 -END PGP SIGNATURE- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Defining and using font weights
Hello, I'm not able to figure out how I can make use of a font with custom font weights. I have a font that comes with regular, bold, half-bold and ultra bold. I currently define the font like this: \definefontfamily[myfont][rm][myfont][sc=file:MyFontRegular,bf=file:MyFontBold] Which at least makes it possible to use the default font and \bf ... But simply adding something like hb=... or ult=... doesn't seem to cut it. So how would I define this font to be able to also use the half-bold and ultra weights? (preferably with a switch like \bf, \it, etc.) Best regards, Andreas ___ 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] reading modules broken?
On 06.06.2014 22:52, Hans Hagen wrote: modules have names like m- x- s- p- u- and the lookup happens in a certain order without prefix, and checking for mkvi, mkiv, mkii or tex suffixes so in your case it should be something u-hvdm-test or so (user hvdm test) so you were just lucky that in the past modules-* worked the loading is probably ok because test.* is loaded That new behavior breaks SimpleSlides however, because now the styles aren't loaded anymore. In the log I find (for example): resolversmodules 'simpleslides-s-BottomSquares' is already loaded So either this old behavior had it's upsides or SimpleSlides needs to be fixed :-) Best Regards, Andreas ___ 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] another issue with PDF bookmarks
On 08.04.2014 16:20, Pablo Rodriguez wrote: Dear list, I have a sample that shows an issue with PDF bookmarks: \setupinteraction[state=start] \placebookmarks[chapter] \setupheadertexts[chapter] \starttext \completecontent \chapter{Footnote\footnote{Only in bookmarks}} \stoptext Sorry, but I don’t know why the footnote is removed in the table of contents and in the header, but it isn‘t in the bookmark. Am I missing something? Many thanks for your help, Pablo That probably has to do with expansion (a detailed explanation may be given by a (Con)TeX(t) Guru :-)). I think the best fix is to use the MkIV title mechanism (start... stop...) http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning That way you can do: \startchapter[title={Footnote\footnote{Only where appropriate}}, bookmark={No Footnote}] ... \stopchapter -- Best Regards, Andreas signature.asc Description: OpenPGP digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Appendix Page Numbering
Title: Re: [NTG-context] Appendix Page Numbering On Monday, February 10, 2014, at 20:33 Troy Henderson wrote: Any thoughts on getting these "custom PDF bookmark/index" entries? Thanks in advance, Troy What you are looking for is called "Page Labels". http://www.w3.org/TR/WCAG20-TECHS/PDF17 I asked about this some time ago too and the conclusion was to manually manipulate the pdfcatalog: http://www.ntg.nl/pipermail/ntg-context/2010/050146.html In the meantime it seems to have been implemented to a huge degree (see lpdf-mis.lua) but as the comments in there state, the prefixes you want are currently NOT part of the implementation. If you are not particularly keen on enhancing that code, you are best off manually manipulating the pdfcatalog. -- Best Regards, Andreas ___ 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] Dynamic headings query heading information
Title: Re: [NTG-context] Dynamic headings query heading information On Friday, February 7, 2014, at 18:12 Wolfgang Schuster wrote: Am 07.02.2014 um 15:45 schrieb Andreas Schneider ak...@gmx.de: Dynamic headings query heading information 2) another macro should build an index at the end of the document. I use Lua to keep a list of all database tables referenced within the document (together with some metadata) and save it in the jobpasses struct. Now I also want to track the chapters, sections, etc where these references are, to be able to see, where a database table is used. To solve these two problems, I'm looking for information about the current heading. The level and the associated reference name. If I have the level, I can keep my own list of necessary heading types (subject, subsubject, ...) and just get the one at level+1 to write the heading using lua (tex.sprint()). With the reference name I can obviously solve 2), since I then can simply keep a list for each db table in the jobpasses structure. You can try the \currentstrcuture… commands but I don’t know if the are meant as user level commands. \starttext \chapter{Chapter} \starttabulate \NC Name \EQ \currentstructurename \NC\NR \NC Level \EQ \currentstructurelevel \NC\NR \stoptabulate \section{Section} \starttabulate \NC Name \EQ \currentstructurename \NC\NR \NC Level \EQ \currentstructurelevel \NC\NR \stoptabulate \stoptext Wolfgang In case I haven't told you before: you are awesome! This is exactly what I was looking for. Due to this I also found \currentstructurereference and a bunch of other commands :) Once you know that "structure" is the keyword, "strc-sec.*" is just around the corner. Regarding your earlier mail (\definesectionlevels ...): Wow, there is really a lot of "hidden" functionality in ConTeXt. If you lay out the document with these commands from the beginning, that really eases restructuring tasks. However the readability (of the source code) slightly falls off. I will evaluate this further. Thanks for this too :-) -- Best Regards, Andreas ___ 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] Dynamic headings query heading information
Title: Dynamic headings query heading information Hello, again I'm working on a technical manual and decided to use ConTeXt to do the job. Since I'm a developer, I always try to do things as flexible as possible. I'm currently struggling to achieve two things: 1) a macro (that will print a list) should also add a heading. However, the heading should always be one level beneath the current heading and without numbering. Example: within a \section it should be a \subsubject, within a \chapter it should be a \subject, and so on. 2) another macro should build an index at the end of the document. I use Lua to keep a list of all database tables referenced within the document (together with some metadata) and save it in the jobpasses struct. Now I also want to track the chapters, sections, etc where these references are, to be able to see, where a database table is used. To solve these two problems, I'm looking for information about the current heading. The level and the associated reference name. If I have the level, I can keep my own list of necessary heading types (subject, subsubject, ...) and just get the one at level+1 to write the heading using lua (tex.sprint()). With the reference name I can obviously solve 2), since I then can simply keep a list for each db table in the jobpasses structure. I'm open for different suggestions, since I may miss an (obvious?) alternative. And as you can also probably see, I like Lua pretty much, so a solution requiring Lua is not a problem :-) (quite the contrary actually) Best regards, Andreas ___ 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] Expansion or Referencing problem
Title: Expansion or Referencing problem Hello, I'm probably just stuck with another misunderstanding of TeX's expansion, but I can't figure out how to fix it. The attached example doesn't work as intended. My defined command produces the correct reference name (as can be seen in the resulting .tuc file) but still \about (and the other referencing commands) won't show/find it. What am I missing here? -- Best Regards, Andreas\mainlanguage[en] \def\moduleid{TEST} \def\transaction{\dodoubleempty\dotransaction} \def\dotransaction[#1][#2]{% \getparameters[tr][module=\moduleid,#2]% \global\def\refname{tr:\trmodule:#1}% \doifreferencefoundelse{\refname}{}{\global\def\refname{tr::#1}}% \about[\refname] (I want to go to: \refname)% } \starttext \section[tr::Name]{Testsection} Test. \section{Reference} \transaction[Name] \stoptext___ 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] Expansion or Referencing problem
Title: Re: [NTG-context] Expansion or Referencing problem On Thursday, February 6, 2014, at 11:39 Wolfgang Schuster wrote: Am 06.02.2014 um 11:32 schrieb Andreas Schneider ak...@gmx.de: Expansion or Referencing problem Hello, I'm probably just stuck with another misunderstanding of TeX's expansion, but I can't figure out how to fix it. The attached example doesn't work as intended. My defined command produces the correct reference name (as can be seen in the resulting .tuc file) but still \about (and the other referencing commands) won't show/find it. What am I missing here? ConTeXt uses “::” as separator for references to external files. Wolfgang /o\ That was about the last thing I would have thought of. Thank you very much! :-) (I changed it from "" to "default" now, so when nothing else is found, it looks for "tr:default:...") -- Best Regards, Andreas ___ 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] GLIBC 2.7 requirement for Standalone ConTeXt
Hello, I'm running a build server on an older box with CentOS 5. I didn't update ConTeXt Standalone in quite some time. Now I did since I had some problems with the dated version in use, and now I face the following problem: texlua: /lib/libc.so.6: version `GLIBC_2.7' not found (required by texlua) texlua: /lib/libc.so.6: version `GLIBC_2.11' not found (required by texlua) CentOS 5 still ships GLIBC 2.5. What can I do from here? Any chance on running ConTeXt without upgrading the whole system? -- Best Regards, Andreas pgpdxJb6d1fXM.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] GLIBC 2.7 requirement for Standalone ConTeXt
On Thursday, May 23, 2013, at 14:43 Mojca Miklavec wrote: On Thu, May 23, 2013 at 1:46 PM, Andreas Schneider wrote: Hello, I'm running a build server on an older box with CentOS 5. I didn't update ConTeXt Standalone in quite some time. Now I did since I had some problems with the dated version in use, and now I face the following problem: texlua: /lib/libc.so.6: version `GLIBC_2.7' not found (required by texlua) texlua: /lib/libc.so.6: version `GLIBC_2.11' not found (required by texlua) CentOS 5 still ships GLIBC 2.5. What can I do from here? Any chance on running ConTeXt without upgrading the whole system? Yes. We need to make sure that someone with an older glibc builds the binaries. Is this about the 32-bit or 64-bit linux? Mojca 32bit. As per Luigi's hint/question I built Luatex from SVN (apparently ./build.sh was all there was to it :-)) and used that binary. As it seems, that already did the trick. I haven't done extensive tests yet, but that will follow. If you tell me what the needed steps are to get you the binaries build in a way that could be distributed, I would be willing to do that as long as my/our CentOS 5 installation is still up and running :-) (Depending on how often that needs to be done, since it's a machine on my workplace, so I can't access it anytime I like ...) -- Best Regards, Andreas pgpP8xLhDKhM7.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange page breaks
On Monday, June 18, 2012, at 12:48 Wolfgang Schuster wrote: You can tell context to force a page break when there isn’t enough space for the heading. \setuphead[subsubsubject][before={\testpage[6]\blank[big]}] Wolfgang Nice, that does the trick! Thank you! -- Best Regards, Andreas pgpaQqC7LdtBj.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupinteraction and macroexpansion
Hello, I'm a bit lost with macro expansion here. I try to use some macros to set the title (and subject) of the PDF document. The attached minimal example shows what I want to achieve. I tried def, edef, gdef, define, explicit expand, expandoneafter, etc. etc. without any success. Whatever I do, the title field in the PDF metadata always contains the raw \date... command instead of the formatted date. Any suggestions? -- Best Regards, Andreas\edef\mytitle{Some date: \date[y=2012,m=6,d=19]} \setupinteraction[title=\mytitle] \starttext \subject\mytitle Hello World \stoptext pgpT4e9YDWt2T.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupinteraction and macroexpansion
On Tuesday, June 19, 2012, at 10:42 Wolfgang Schuster wrote: Am 19.06.2012 um 10:39 schrieb Andreas Schneider: Hello, I'm a bit lost with macro expansion here. I try to use some macros to set the title (and subject) of the PDF document. The attached minimal example shows what I want to achieve. I tried def, edef, gdef, define, explicit expand, expandoneafter, etc. etc. without any success. Whatever I do, the title field in the PDF metadata always contains the raw \date... command instead of the formatted date. Any suggestions? You can’t use \date (or any other unexpandable command) in an expandable context. Wolfgang Hmm I see, so \date is simply not possible for that case. Ok, thanks for explaining that I wasn't aware (until now) that commands can be unexpandable. Thanks again! :-) -- Best Regards, Andreas pgpkKmwFL3Lcy.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange page breaks
Hello, the attached example causes very strange page breaks. 1. The subsubsubject is the last line on the first page. That doesn't look very nice. 2. The xtable is broken although the whole table fits on that page. Is there anything I (or you? :-)) can do about these two problems? #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english -- Best Regards, Andreas\starttext \dorecurse{36}{some text some text some text some text some text\crlf} \subsubsubject{Some Table} \placefigure[split,force,here,none]{}{ \startxtable[header=repeat] \startxtablehead \startxrow \startxcell Col1 \stopxcell \startxcell Col2 \stopxcell \startxcell Col3 \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow \startxcell foo \stopxcell \startxcell bar \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell test \stopxcell \startxcell test \stopxcell \startxcell test \stopxcell \stopxrow \stopxtablebody \stopxtable} \stoptext pgpoW0a5TUCC3.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange page breaks
On Monday, June 18, 2012, at 11:54 Hans Hagen wrote: On 18-6-2012 09:43, Andreas Schneider wrote: Hello, the attached example causes very strange page breaks. 1. The subsubsubject is the last line on the first page. That doesn't look very nice. 2. The xtable is broken although the whole table fits on that page. Is there anything I (or you? :-)) can do about these two problems? #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX) #ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.6.18 int: english/english not that strange but it's obscured by the fact that you use a float (which has different spacing and room-for rules) without caption in this case you can omit the placefloat and do \startxtable[header=repeat,split=yes] Hans Doesn't quite work, since then the header isn't repeated when the table is actually split. With natural tables there seems to be a similar problem. But I guess that enabling split=yes will actually place it inside a float automatically which leads back to the initial problem. -- Best Regards, Andreas pgp4OZpHbZ9TL.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TABLE with split=repeat and headings
On Thursday, March 22, 2012, at 15:56 Andreas Schneider wrote: Hello, I have several natural tables with the split=repeat option set. Those tables are directly after a subsubsubject. Every now and then it happens, that the heading stays on the previous page (as last line) and the table slips to the next page. Without split=repeat it correctly takes the header to the next page too. Can I consider this a bug or am I doing something wrong? The attached example demonstrates this problem. Testet with ConTeXt ver: 2012.01.02 21:59 MKIV fmt: 2012.1.24 int: english/english and 201200310 13:15 MKIV I hate to bump my own threads, but that problem still exists. Any ideas how to fix it? ConTeXt ver: 2012.05.24 19:36 MKIV fmt: 2012.5.25 int: english/english -- Best Regards, Andreas pgpX4zi7wdVKE.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Non-Printing PDFs with ConTeXt
On Friday, May 4, 2012, at 12:37 Malte Stien wrote: Hi all, Is there a way I can get ConTeXt to produce PDFs that are not-printable? Just as a background to my question: This is not about copyright. Rather, I am using ConTeXt to produce quality process documents. The quality management system requires that all quality process documents be controlled, that is one must prevent folks from printing copies of their own that then keep floating around the place and cannot be retracted when a new version of the quality process document is issued. Hence, I am aiming for a paper-less scenario where everyone reads the documents on screen. Therefore, I would like to make printing impossible, or at least hard. The only one who should be able to print the document is the Document Manager; maybe the documents could be encrypted (PDF supports that, I believe), such that the Document Manager can print them knowing the password. So far, I have only seen Word and Acrobat Distiller being able to do this. Is there a way I can setup ConTeXt to do this? Or are there some command line tools, that can do that after the PDF has been produced? Any hints would be great. Thank you, Malte. You can accomplish PDF encryption with pdftk (for example): http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ You use that to restrict certain features (in your case printing) and protect that restriction with a password. The PDF itself can still be read without password. Of course the PDF viewer has to honor that restriction. If the user finds a PDF viewer that doesn't give a about these restrictions, they can still print it. But I think that doesn't really matter for your scenario anyway. :-) -- Best Regards, Andreas pgpezLkr1jjJE.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TABLE with split=repeat and headings
On Thursday, March 22, 2012, at 16:56 Andreas Schneider wrote: Hello, I have several natural tables with the split=repeat option set. Those tables are directly after a subsubsubject. Every now and then it happens, that the heading stays on the previous page (as last line) and the table slips to the next page. Without split=repeat it correctly takes the header to the next page too. Can I consider this a bug or am I doing something wrong? The attached example demonstrates this problem. Testet with ConTeXt ver: 2012.01.02 21:59 MKIV fmt: 2012.1.24 int: english/english and 201200310 13:15 MKIV No ideas? -- Best Regards, Andreas pgpfxbTelm4Y7.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TABLE with split=repeat and headings
Hello, I have several natural tables with the split=repeat option set. Those tables are directly after a subsubsubject. Every now and then it happens, that the heading stays on the previous page (as last line) and the table slips to the next page. Without split=repeat it correctly takes the header to the next page too. Can I consider this a bug or am I doing something wrong? The attached example demonstrates this problem. Testet with ConTeXt ver: 2012.01.02 21:59 MKIV fmt: 2012.1.24 int: english/english and 201200310 13:15 MKIV -- Best Regards, Andreas\starttext \dorecurse{35}{some text some text some text some text some text\crlf} \subsubsubject{Some Table} \bTABLE[split=repeat] \bTABLEhead \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD foo \eTD \bTD bar \eTD \bTD \eTD \eTR \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \eTABLEbody \eTABLE \stoptext pgpn7ojpq9pjH.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF Digital Signatures
Hello, since ConTeXt supports form fields in PDFs, I wonder whether the fields for digital signatures are available as well. If not, please consider this a feature request/wish :-) I received an internal document some time ago that represented a form and was separated into three parts. Part one was to be filled out by the employee (in this case: me). Under this part was a signature field I could click which made Adobe Reader prompt for a digital certificate. After I selected that, information about this certificate appeared inside that form field I just clicked. The other form fields were automatically locked afterwards. If I wanted to change them, I would have to remove my signature. Parts two and three were similar, but meant for management. They needed to sign my request which in turn locked their edit fields. So in other words: I would like to create such forms with ConTeXt :-) I hate these work flows where people are told to print out form x, sign it and send the scanned copy via email instead of just signing it digitally. It would also come in handy for technical and business documents that need to be signed by the customer (for example an Interface Document, System Design, Use Case, whatever). I hope that is not completely out of scope for ConTeXt and not too hard to implement. Otherwise I guess I won't see that feature for a long time. Thanks anyway; at least for reading this :-) -- Best Regards, Andreas pgp55ItG3YE0h.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF Digital Signatures
On Monday, March 19, 2012, at 16:41 Mojca Miklavec wrote: I'm replying off-list. I think that this might be on the list of forbidden features (one would have to pay to adobe to be able to allow signing document with TeX). Mojca On Mon, Mar 19, 2012 at 10:27, Andreas Schneider wrote: Hello, since ConTeXt supports form fields in PDFs, I wonder whether the fields for digital signatures are available as well. If not, please consider this a feature request/wish :-) I'm not sure about it, but I'm tempted to believe that digitally signing PDFs might be one of forbidden functionality that requires you to buy a licence for Acrobat. Martin Schröder usually posts this link: http://en.wikipedia.org/wiki/Adobe_LiveCycle_Reader_Extensions I have found this article, but I'm not sure if it is really legal: http://www.codeproject.com/Articles/14488/E-signing-PDF-documents-with-iTextSharp Maybe we need a FAQ entry about PDF features somewhere on wiki (or at any other place). Mojca That's too bad, although I can see Adobe's reasoning. I thought/was hoping that it was a simply not-yet-implemented feature and not something Adobe Acrobat and Adobe Reader specific. Well, it was worth a shot. Anyway for signing PDFs myself I still use and prefer JSignPDF: http://jsignpdf.sourceforge.net/ That is really neat and supports a lot of very helpful features (like visible signatures). It's just that it isn't a solution for general forms that others should sign, since not all of them are technically versed or willing to install some third party program. That would have been a good use case for ready-made PDF forms with signature fields. Thanks for your answer! -- Best Regards, Andreas pgpR9IM3IKS8k.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] xtables: stretch a single column
Hi, xtables offers option=stretch to stretch the whole table evenly. Is there also a way (without manually calculating the width) to stretch the whole table using a given column? Short use case: I have a table with three columns. Column 1 has an external figure, column 3 a variable length (but still short) text/string and column 2 has either no text at all or maybe a longer phrase. Columns 1 and 3 should be auto-sized (i.e as small as possible) while column 2 should be as width as necessary, to make the whole table fit perfectly onto the page (width-wise; height doesn't matter for now). I think with natural tables it was possible to set width=broad for a certain column. Is something like that possible with xtables as well? Thanks! -- Best Regards, Andreas ___ 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] feature request
On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8 This is %some comment an example. -8 ... will end up as: This is an example. -- Best Regards, Andreas Schneider ___ 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] beta: Huge log files
On 14.10.2011 23:26, Hans Hagen wrote: Hi, A new beta has been uploaded. Nothing new apart from some experimental code and a few bugfixes. I also uploaded http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf Files in that path will come and go. Hans Hi, in the current beta I noticed that processing of my documents takes ages. While looking in the project directory I noticed that context left behind HUGE log files (500MB to 4GB, depending on the number of runs). The logs contain many verbose infos, as seen in this example: ---3-- loading Code syntax highlighting (ver: 2011.09.03) resolversmodules loaded: 'syntax-groups' (C:/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex loading Syntax highlighting groups (ver: 2011.09.03) \doifmode -\unprotect \dodoifmode \unprotect -\pushcatcodetable \setcatcodetable \prtcatcodes \pushcatcodetable -\advance \catcoderestorelevel \plusone \tracepushcatcodetable \expandafter \chardef \csname scct:\number \catcoderestorelevel \endcsname \currentcatcodetable \tracepushcatcodetable - \setcatcodetable #1-\catcodetable #1\the \everycatcodetable \tracesetcatcodetable #1-\prtcatcodes \tracesetcatcodetable - \dodoifmode -\docheckformode \firstofoneargument \gobbleoneargument \docheckformode #1#2#3-\protect \checkedmodefalse \rawprocesscommacommand [#3]\dodocheckformode \ifcheckedmode \@EA #1\else \@EA #2\fi #1-\firstofoneargument #2-\gobbleoneargument #3-\s!mkii \protect -\popcatcodetable ---3-- Any ideas what's going wrong here? Thanks in advance! -- Best Regards, Andreas ___ 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] beta: Huge log files
On 19.10.2011 12:35, Hans Hagen wrote: On 19-10-2011 12:31, Meer, H. van der wrote: syst-ini.mkiv line 626: \tracingstats\plusone The only one I find, but I skipped yhe mkii files. yes but that the command itself Hans It seems the VIM module is the culprit here. In t-syntax-groups.tex on line 14 is: \tracingmacros=1 Commenting that line fixed the problem. @Aditya: can you re-release a fixed version please? :-) Thanks! -- Best Regards, Andreas ___ 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] SimpleFonts: no italic and bold
On 17.10.2011 16:49, Wolfgang Schuster wrote: \usemodule[simplefonts] \definefontfeature[fakeitalic][default][slant=.25] % for fake bold use “stretch=number” \setmainfont [telegrotesk] [regularfont=* nor, italicfont=* nor, boldfont=* fett, bolditalicfont=* fett, italicfeatures=fakeitalic, % just the name of a fontfeature bolditalicfeatures=fakeitalic] Wolfgang Thank you very much, that works like a charm! I wikified it for future reference: http://wiki.contextgarden.net/Fonts_in_LuaTeX#Handling_special_cases -- Best Regards, Andreas ___ 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] SimpleFonts: no italic and bold
Hi, I'm currently trying to use our corporate identity font face for internal documents, however neither bold nor italic seem to work. I try to load it with: \usemodule[simplefonts] \setmainfont[telegrotesk] The fonts reported by mtxrun --script font --list --all contains: telegroteskfet telegroteskfett c:/windows/fonts/t036016t_v21.ttf telegroteskfetnormal telegroteskfett c:/windows/fonts/t036016t_v21.ttf telegroteskfetttelegroteskfett c:/windows/fonts/t036016t_v21.ttf telegroteskhal telegroteskhalb c:/windows/fonts/t036014t_v21.ttf telegroteskhalbtelegroteskhalb c:/windows/fonts/t036014t_v21.ttf telegroteskhalnormal telegroteskhalb c:/windows/fonts/t036014t_v21.ttf telegrotesknor telegrotesknorm c:/windows/fonts/t036013t_v21.ttf telegrotesknormtelegrotesknorm c:/windows/fonts/t036013t_v21.ttf telegrotesknornormal telegrotesknorm c:/windows/fonts/t036013t_v21.ttf The --info output for normal ... mtx-fonts | mapping : telegrotesknornormal mtx-fonts | fontname: telegrotesknorm mtx-fonts | fullname: telegrotesknor mtx-fonts | filename: c:/windows/fonts/t036013t_v21.ttf mtx-fonts | family : telegrotesknor mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : conflict: book mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern dflt dflt mtx-fonts | latn dflt mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | tlig all all mtx-fonts | trep all all ... and bold: mtx-fonts | mapping : telegroteskfetnormal mtx-fonts | fontname: telegroteskfett mtx-fonts | fullname: telegroteskfet mtx-fonts | filename: c:/windows/fonts/t036016t_v21.ttf mtx-fonts | family : telegroteskfet mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : conflict: book mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern dflt dflt mtx-fonts | latn dflt mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | tlig all all mtx-fonts | trep all all What would be the preferred way to setup the font in this scenario? Thanks in advance! -- Best Regards, Andreas Schneider ___ 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] SimpleFonts: no italic and bold
On 17.10.2011 14:00, Wolfgang Schuster wrote: Important for simplefonts are the entries in the first colums, you can use \setmainfont[telegrotesk][regularfont=* nor,boldfont=* fett] to enable the font. Ah, that is what I was looking for. Bold works now! Thank you! :-) There's still one problem though: italic doesn't work. I guess the font doesn't provide that feature by itself, but can it be emulated/enabled? The --info output for normal ... mtx-fonts | family : telegrotesknor ... and bold: mtx-fonts | family : telegroteskfet What would be the preferred way to setup the font in this scenario? As you can see from this two entries the fonts internal names are a mess, both should be “family: telegrotesk” for a proper names font but this isn’t the case here and the reason why automatic detection fails. AFAIK the font was designed by URW who I would expect to do better than that ... but well, it's an old font and maybe it was done in a hurry :D -- Best Regards, Andreas Schneider ___ 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] SimpleFonts: no italic and bold
On 17.10.2011 14:46, Wolfgang Schuster wrote: Ah, that is what I was looking for. Bold works now! Thank you! :-) There's still one problem though: italic doesn't work. Is there a file for the italic style? I guess the font doesn't provide that feature by itself, but can it be emulated/enabled? ConTeXt can fake the slanted and bold style but they are not the same as a real italic and bold font. AFAICS there is no italic style. Only regular, bold and semi-bold. What is needed to get simplefonts to fake italic (and slanted for that matter)? -- Best Regards, Andreas Schneider ___ 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] externalfigure vs. draw externalfigure in metafun
On 16.09.2011 16:00, Mojca Miklavec wrote: Dear Hans, I have problems with externalfigure inside metapost. In MKII, only externalfigure something.png; works, while in MKIV only draw externalfigure something.png; is accepted. Is there any chance to accept one of the syntaxes in both flavours? Hmm, I noticed that too. However I'm sure that plain externalfigure used to work in MkIV too, so I guess the change happened (more or less) recently. -- Best Regards, Andreas ___ 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] Custom parameters/options for t-vim
On 03.09.2011 08:58, Aditya Mahajan wrote: On Wed, 31 Aug 2011, Aditya Mahajan wrote: On Wed, 31 Aug 2011, Andreas Schneider wrote: However I also like the idea of the optional vimrc via buffer. I think it might be a nice-to-have feature for the ToDo list :-) In the end, adding a vimrc feature was not too difficult, so I have added that. See the dev branch at github. For usage, see the example at tests/vim/vimrc.tex. I uploaded a new version of vim module with this feature. See 'Tuning color schemes' in the user-guide for a terse documentation. Aditya Sorry for the late answer, I've been on the road a lot the last few days and didn't have the time to test the new changes. Anyway, I now did test them and it works very well. Thanks for implementing this very versatile feature! :-) -- Best Regards, Andreas ___ 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] Custom parameters/options for t-vim
On 29.08.2011 23:35, Aditya Mahajan wrote: On Tue, 30 Aug 2011, Andreas Schneider wrote: I worked with t-vim a bit more and encountered a small problem with the way vim handles syntax definitions. Some of them have several modes that get activated by setting a variable first. For example the syntax sh (shell scripts) can be enhanced for bash, ksh, etc. Example: let g:is_bash=1 set syntax=sh Now a line like export foo=bar is highlighted differently than when I would omit the let g:is_bash=1. Therefore I would propose another options to \setupvimtyping to specify custom options to be passed to vim. Preferably they should be passed at least before the set syntax=... line to make sure that this particular case -- i.e. switching syntax modes -- works well (which may be the only necessary case). That is certainly possible, but the exact solution depends on how robust you want it to be. I can easily add an option so that \definevimtyping [] [extras={let g:is_bash=1}] will pass the argument to vim. However, string arguments like \definevimtyping [] [extras={let g:name=Whatever}] will not work. The reason is that, t-vim first creates a command line argument that is passed to mtxrun. mtxrun parses the entire expression, including all the options, When mtxrun figures out that all the arguments were meant for an external program, it recreates the list of arguments (to the best of its abilities), and passes the arguments to the shell. Then the shell tries to interpret the quotes. I haven't been able to find a solution that will work correctly though these three transformations. Another option is to write everything to an external file and source it as a vimrc file. So, you could do: \definevimtyping [...] [vimrc=shell] \startvimrc[shell] let g:is_bash = 1 \stopvimrc This requires more coding, but is much more flexible than the first option. Do all syntax highlighting options work with 0/1 parameters? If so, then the first alternative is easiest. As far as I can see, most of the relevant options (if not all) are 0/1 switches, so the first alternative should be enough. Thanks to the pipe syntax of vim's command mode, it might be even possible specify more parameters that way. [extras={let g:foo=bar | let g:shaz=bot}] -- at least vim accepts that usually, I guess it doesn't make a difference if specified as commandline parameter. However I also like the idea of the optional vimrc via buffer. I think it might be a nice-to-have feature for the ToDo list :-) Thank you for the analysis and for coming up with these possible implementations! -- Best Regards, Andreas ___ 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] Custom parameters/options for t-vim
Hi, I worked with t-vim a bit more and encountered a small problem with the way vim handles syntax definitions. Some of them have several modes that get activated by setting a variable first. For example the syntax sh (shell scripts) can be enhanced for bash, ksh, etc. Example: let g:is_bash=1 set syntax=sh Now a line like export foo=bar is highlighted differently than when I would omit the let g:is_bash=1. Therefore I would propose another options to \setupvimtyping to specify custom options to be passed to vim. Preferably they should be passed at least before the set syntax=... line to make sure that this particular case -- i.e. switching syntax modes -- works well (which may be the only necessary case). -- Best Regards, Andreas ___ 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] filter and/or vim module in current beta
On 28.08.2011 21:58, Aditya Mahajan wrote: On Sun, 28 Aug 2011, Andreas Schneider wrote: Shouldn't it detect changes to the buffer through the md5 sum? What I meant was: I modify the buffer (add a line, or change lines) but that change doesn't cause vim to be run again. From what I can see, the tmp file isn't written at all, if it already exists, therefore the md5 sum doesn't change, therefore vim isn't run again. Shouldn't the tmp file always be (re)written, to reflect the content of the current buffer? This appears to be a Windows specific bug. os.rename does not overwrite file on Windows. I changed that with file.copy. Try the new version of the t-filter module. Weird, I didn't expect that to be a platform specific issue. Good thing, you figured out I was using Windows :-) Thank you for your efforts and the quick bug fixing! Thank you for testing. The recent change in the namespace macros broke a lot of functionality of the filter module. Hopefully, now everything is working correctly. Everything I tested works fine now, so I guess you are on the right track (if not even on the destination :D) Again, Many thanks :-) -- Best Regards, Andreas ___ 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] filter and/or vim module in current beta
On 27.08.2011 09:02, Aditya Mahajan wrote: Fixed. Download t-vim and t-syntax-highlight from the dev branch at github. https://github.com/adityam/filter/tree/dev I'll upload a new version later. Thanks! The vimout file is now created and seems to be correct. There are still some problems, though: Currently, pscolor doesn't seem to work as color scheme which renders a default vimtyping environment (like my initial example) unhighlighted. Using blackandwhite works. Here I noticed a second problem. A change to the to-be-highlighted buffer as well as some options (like said alternative) isn't processed at all. I have to manually delete the vimout, tmp and md5 files first before I actually see the change. Also it seems, that tabs are killed. If I manually replace them with spaces, it works. Empty lines also seem to be removed, however that appears to be a feature - not sure. -- Best Regards, Andreas ___ 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] filter and/or vim module in current beta
On 27.08.2011 15:52, Aditya Mahajan wrote: On Sun, 28 Aug 2011, Andreas Schneider wrote: ... Currently, pscolor doesn't seem to work as color scheme which renders a default vimtyping environment (like my initial example) unhighlighted. Using blackandwhite works. Fixed. Again, was due to the change in the namespace handler. For a working version, you will need to download all the t-*.tex files from the dev branch at github. Works fine now. Here I noticed a second problem. A change to the to-be-highlighted buffer as well as some options (like said alternative) isn't processed at all. The change in alternative is handled at the tex level, so there is no need to rerun vim I thought so and indeed it works now ... it was probably coincidence that it didn't work before. I have to manually delete the vimout, tmp and md5 files first before I actually see the change. You can also use --mode=force to force a rerun. Shouldn't it detect changes to the buffer through the md5 sum? What I meant was: I modify the buffer (add a line, or change lines) but that change doesn't cause vim to be run again. From what I can see, the tmp file isn't written at all, if it already exists, therefore the md5 sum doesn't change, therefore vim isn't run again. Shouldn't the tmp file always be (re)written, to reflect the content of the current buffer? Also it seems, that tabs are killed. If I manually replace them with spaces, it works. Tabs are converted to spaces at TeX level: tab=4 gives four spaces, tab=8 gives eight spaces. However, there was a bug due to which the spaces at the beginning of the line were eaten. Fixed now. Indeed, works as expected now. Empty lines also seem to be removed, however that appears to be a feature - not sure. No, it was a bug. Also fixed. Even better (kinda ;-)). Thank you for your efforts and the quick bug fixing! -- Best Regards, Andreas ___ 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] filter and/or vim module in current beta
Hi, it seems the filter module doesn't currently work (in MkIV at least). It may be a problem with the vim module though, I'm not quite sure. The following example doesn't produce any output: -8--- \usemodule[vim] \definevimtyping[PASCAL][syntax=pascal] \starttext \startPASCAL program test; begin writeln('Hello World!'); end. \stopPASCAL \stoptext -8--- The output of context has only one line regarding t-filter: t-filter command : I guess it's just normal then that there's no output ... if nothing is run. Any ideas whats going wrong here? Btw.: ConTeXt ver: 2011.08.26 13:32 MKIV fmt: 2011.8.26 int: english/english -- Best Regards, Andreas ___ 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] filter and/or vim module in current beta
On 26.08.2011 21:33, Aditya Mahajan wrote: Are you using the latest version (2011.08.23) of the filter module? The empty filter is due to a change in the how the context namespacing macros work and I fixed this a couple of days ago. I updated via first-setup/minimals, so I hope so. But I'll double check later by manually grabbing the module. -- Best Regards, Andreas ___ 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] minimals: How to prevent that core and modules become incompatible?
At Monday, 25.07.2011 on 12:31 Paul Menzel wrote: Thanks, but I think this was not the problem at my end. `~/.first-setup.sh` is still the one from January, so `extras` worked for me. The parameters (and the actual update process) are handled by bin/mtx-update.lua which is one of the first things, that first-setup.sh/.bat updates. ___ 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] resolvers.findctxfile broken
On Tuesday, July 19, 2011 11:22 Hans Hagen wrote: On 19-7-2011 11:06, Andreas Schneider wrote: Hi, since one of the latest beta, resolvers.findctxfiles is broken. The attached example used to work (see test3.working.log) while the new beta fails (see test3.failed.log). fixed in next update Hans Thank you very much! -- Best Regards, Andreas ___ 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
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. In contrast a tool like ConTeXt forces you to learn and therefore makes it a lot harder to f*ck up a document. I also did our technical documentation in ConTeXt, after porting it over from Word. My colleagues didn't know *TeX and still manage to change and enhance the document as needed. I provided the necessary platform (project structure, lua scripts etc.) so the document itself is only a frontend using easy-to-comprehend commands. I also built an installer that installs a specific ConTeXt Minimals version, the necessary modules, and a preconfigured TeXworks, so they don't even have to setup that or play around with proxy settings for firstsetup.bat. Also with TeXworks it's already pretty WYSIWYG, imho. Change the code, hit run, and see the result :) 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. That is what I mend that in hindsight I should not have used ConTeXt. ;-} Maybe, but if the customer/client didn't specify in advance, that they want it done in Word, how could you know? If you used Indesign or something else they would be f*cked too - because these tools are simply not meant to be used without learning first. (Although, as said earlier, Word and similar tools aren't meant to be used without learning too ... many people just think it is.) Best Regards, Andreas. ___ 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] bib module (again)
On Thursday, July 7, 2011 22:41 Steffen Wolfrum wrote: Hi Stefan, thanks for the note. Unfortunately Andreas' module doesn't work anymore. I had a correspondence with him on that in April this year: he could reproduce the error, but had no idea what the reason might be, resp. what changes in MkIV now cause a conflict with his module. Maybe Hans knows? Steffen After a lot of work with ConTeXt the past few weeks, I had some more thoughts on possible causes for this problem. I finally found the culprits: \expandoneargafter doesn't seem to be around anymore ... it works fine without, though. \doifnotempty doesn't quite seem to work (the way I intend it to), so I replaced them with \doifnot{...}{}{...} I attached the current module (yes, it's not really a module, but it's slightly more convenient to use that way ... the whole thing is nothing more than a workaround anyway). I hope I haven't killed any functionality while toying around and hunting the bug, but at least my Diploma Thesis looks still right when processed with that module. Since I currently don't use that module actively, I will probably not enhance or otherwise improve it. So if anyone else feels like providing a better solution for the Ibidem-problem: please do! -- Best Regards, Andreas\def\mycite{\dodoubleempty\domycite} \def\defaultciterepeat{Ebenda} \def\defaultciteprefix{Vgl. } \def\defaultcitepage{S. } \def\defaultcitechapter{Kap. } \def\domycite[#1][#2]{% \ifsecondargument% \getparameters[MCP][prefix={\defaultciteprefix},page=,chapter=,suffix=,repeat=,#2]% \doinsertmycite[#1]{\MCPprefix}{% \doifnot{\MCPpage}{}{\ \defaultcitepage\MCPpage.}% \doifnot{\MCPchapter}{}{\ \defaultcitechapter\MCPchapter.}% \doifnot{\MCPsuffix}{}{\ \MCPsuffix}% }% \else% \doinsertmycite[#1]{\defaultciteprefix}{}% \fi% } \def\doinsertmycite[#1]#2#3{% \footnote{% \doifelse{\MCPrepeat}{yes}{\global\setvalue{mycitelast}{#1}}{\doif{\MCPrepeat}{no}{\global\setvalue{mycitelast}{}}}% #2\doifnot{#2}{}{\strut}%prefix \doifelse{\getvalue{mycitelast}}{#1}% {\doifelse{#2}{}% {\defaultciterepeat}% {\lowercase{\defaultciterepeat}}%If there's a prefix, lower-case the cite-repeat string .% }% {\doifelse{\getvalue{mycitepast #1}}{used}% {\bgroup% \getcitedata[title][#1] to \bibtitle% \getcitedata[arttitle][#1] to \bibarttitle% \cite[alternative=authoryear][#1]. {\it\bibtitle\bibarttitle}.% \egroup}% {\cite[alternative=data][#1]}% }% #3%suffix \global\setvalue{mycitelast}{#1}% \global\setvalue{mycitepast #1}{used}% }% } %Reset last citation on page break (which we check when placing footnotes) \appendtoks \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}} \to\everyinsidenoteinsert smime.p7s Description: S/MIME Cryptographic Signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bibliography is not working
On Friday, June 24, 2011 20:16 yoraxe wrote: I got the following error message: This is BibTeX, Version 0.99d (TeX Live 2011) The top-level auxiliary file: bibtest.aux I couldn't open style file cont-no.bst ---line 2 of file bibtest.aux : \bibstyle{cont-no : } I'm skipping whatever remains of this command I found no style file---while reading file bibtest.aux (There were 2 error messages) I don't know, why it doesn't find 'cont-no.bst'. It is in the standard folder: /home/context/tex/texmf-context/bibtex/bst/context. Sounds like you need to run mktexlsr. Bibtex uses LS-R to find these files. (afaik; at least it helped me when I got that error) -- Best Regards, Andreas ___ 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] Modules inside project structure
Hello, I'm currently trying to split our ConTeXt project into smaller parts, utilizing the ConTeXt project structure. I thought it might be a good idea to also extract reusable parts into private modules. Now I face the problem, that I can't find an optimal spot to place these modules. Currently I just have them at the root of the project where I also have the environment file that is used. That kinda works, since \usemodule uses resolvers.findctxfile which also traverses parent directories. Unfortunately \registerctxluafile doesn't, so the corresponding lua file isn't loaded (which I currently circumvent with dofile()). I guess it might be cleaner to make use of texmf-project or something similar, however that would require the user (who is working with that project) to modify their TeX tree and rebuild their formats. It's also a bit strange, since these modules are exclusive to that one project - a new project would at least require copies of these files anyway. So these modules should preferably lie somewhere beneath the actual project, and not globally on the system of the user. What would you suggest to handle such projects that should be separated and independent from the ConTeXt installation of the users? Would you use modules at all in that case? -- Best Regards, Andreas ___ 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] Validate (cross)references
Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to be invalid (typo or whatever), it just prints out nothing. Is there a way to have context throw an error if a reference is invalid? (That probably would only make sense in the second pass of context, since the first pass has to collect the references first.) If context can't do it by itself, I'll probably just grep for unknown reference and use that, but if context could do it by itself, it would be nice for automated builds (I actually have my current ConTeXt project in a Continous Integration system, so anything that leads to a wrong result should throw an error there.) -- Best Regards, Andreas ___ 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] Validate (cross)references
On Friday, May 27, 2011 17:09 Wolfgang Schuster wrote: Am 27.05.2011 um 17:04 schrieb Andreas Schneider: Hello, if I use \in, \about, \at or anything else that generates a cross-reference, and that reference happens to be invalid (typo or whatever), it just prints out nothing. Is there a way to have context throw an error if a reference is invalid? (That probably would only make sense in the second pass of context, since the first pass has to collect the references first.) Unknown references are shown as “??” in your text. Wolfgang True, I was mostly thinking about \about, which just prints two quotation marks and nothing in between. But my problem (if I can even call it that, since grep is already a solution, just maybe not the best one :D) is, that I could easily miss such small changes. I'm working on technical documentation that even has parts that are automatically generated (from XML files). I just update whatever is necessary (the document itself, or just the input files), commit them to SVN and our CI server grabs them, and runs ConTeXt. If ConTeXt returns with a return code 0, the build is marked as failed and all necessary admins (me and my colleague) are informed via eMail and/or RSS feed. If the build succeeds, the generated PDF is automatically distributed to the users. I consider wrong references an error, so I would like the build to fail (imho referencing something that doesn't exist is like using a macro that doesn't exist, which fails too). But as I said: if context can't treat that as error, I'm fine with it too and will continue to grep the logfile. It's just curiosity if there may already be a setting/parameter/whatever to get context to be more restrictive. -- Best Regards, Andreas ___ 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] \type and linebreak (again)
Hi, I stumbled across the same problem that was discussed earlier this month: \type doesn't break, even if there are opportunities. I tried to follow the suggestions given in that thread, but with no success: \setuppapersize[A4][A4] \starttext \setuptype[space=stretch] %\setupalign[stretch] %\setuptolerance[stretch] \type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE $SOMEVAR/other/long/directory} \startitemize \item \type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE $SOMEVAR/other/long/directory} \stopitemize \stoptext I tried with and without the \setupalign/\setuptolerance commands, without success; both lines exceed the margins. (Tested with ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23) Is there anything else I can do/setup to get such long verbatim lines broken? I would also like an option for character-based line wraps; i.e. it should (optionally; not in this particular case for example) break a word even in the middle if necessary, and without hyphenation mark. Especially in similar cases where I have a very very long directory name, I wouldn't care if it gets broken the hard way. Thanks in advance! -- Best Regards, Andreas ___ 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] \type and linebreak (again)
On Monday, May 23, 2011 12:11 Wolfgang Schuster wrote: \filename{cp \$SOMEVAR/some/very/very/very/long/directory/WITHFILE \$SOMEVAR/other/long/directory} Wolfgang It's kinda depressing how easy some solutions are, that one could have found themselves if one just looked beyond the own walls. Thank you for that fast answer and the perfect solution :-) -- Best Regards, Andreas ___ 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] Issues with MetaPost boxes
Taco Hoekwater wrote: There were actually two metapost bugs from that single example. Next week's luatex beta will have a fix for both. Since I need this fix pretty soon, I thought a svn checkout and build might be a good idea. Getting luatex 0.62 beta compiled and running wasn't a problem, but the error with metapost still persists. (This is LuaTeX, Version beta-0.62.0-2010082217 (rev 3815)) Is there anything else I would need to get the fix in? Is it in a branch or is metapost even a lib on it's own? (It seemed to be statically linked, but I'm not completely sure if I missed something, so I better ask - which I hereby do.) Thanks in advance! Andreas. ___ 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] Error in minimals beta
Hans Hagen wrote: On 18-8-2010 10:20, Andreas Schneider wrote: Hi, I sent this mail before, but it seems to have been lost on it's way to the mailing list ... (I hope so, otherwise this might be a double post). When I compile my current project, luatex fails with the following error: fixed on my machine already .. new beta tomorrow (well, today) If this is the new beta: MTXrun | current version: 2010.08.19 11:32 then I'm afraid it's not fixed yet. At least I still get the same error. Best Regards, Andreas. ___ 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] Error in minimals beta
Hans Hagen wrote: On 19-8-2010 1:34, Andreas Schneider wrote: then I'm afraid it's not fixed yet. At least I still get the same error. test file needed then Dammit, it was my fault :-/ I was refering to structure.counters in one of my components, which apparently changed to structures.counters. After fixing that, it works fine again. Sorry for the trouble! Best Regards, Andreas. ___ 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] Error in minimals beta
Hi, I sent this mail before, but it seems to have been lost on it's way to the mailing list ... (I hope so, otherwise this might be a double post). When I compile my current project, luatex fails with the following error: ! LuaTeX error main ctx instance:1: attempt to index global 'structure' (a nil value) stack traceback: main ctx instance:1: in main chunk. system error on line 47 in file Diplomarbeit.tex: LuaTeX error ... 37 \stopproject 38 39 \stoptext argument ...rs.record(userpage, 1).last - 1) } {}{}{} \firstoftwoarguments #1#2-#1 argument ...rd(userpage, 1).last - 1) }{}{}{}} \fi \secondoftwoarguments #1#2-#2 \dosingletexts ...ts {\??tk #1#2#5}{#6{}{}{}}\fi } \dostopattributes \fi \egr... \thelayouttextline ...xtline \v!text #3\endcsname \ifcase #5\or \@@nmpos \th... ... l.47 Seems like it's not directly related to my file (which worked fine in an older version). In case it matters: I'm on Linux x86 currently. Hoping for a fix, Andreas. ___ 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] Issues with MetaPost boxes
On Sun, 15 Aug 2010 17:34:25 +0200, Taco Hoekwater t...@elvenkind.com wrote: There were actually two metapost bugs from that single example. Next week's luatex beta will have a fix for both. Thanks for investigating and fixing it so fast! (well, I hope; we will see ;-)) Best Regards, Andreas. ___ 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] Bib Module: \cite can kill spaces
Hi, I don't know how exactly it happens, but in the attached example the last footnote is missing a space before the inserted \cite. In my real document that happens a lot and kills the layout. Anything I can do to fix that? Best Regards, Andreas.\mainlanguage[de] \usemodule[bib] \setuppublications[alternative=apa-de] \startpublication[k=Bellinger2004,t=article, a={{Bellinger},{}},y=2004, n=3,s=BCM04] \artauthor[]{G.}[G.]{}{Bellinger} \artauthor[]{D.}[D.]{}{Castro} \artauthor[]{A.}[A.]{}{Mills} \pubyear{2004} \arttitle{Data, information, knowledge, and wisdom} \journal{Retrieved August} \volume{31} \pages{2004} \stoppublication \def\prefix{Vgl. } \starttext \footnote{\prefix\cite[alternative=data][Bellinger2004]} \footnote{\prefix{}other text} \footnote{\prefix\cite[alternative=authorkey][Bellinger2004]} \footnote{\prefix\cite[alternative=data][Bellinger2004]} \stoptext___ 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] Bib Module: \cite can kill spaces
On Sun, 15 Aug 2010 20:09:07 +0200, taco t...@elvenkind.com wrote: Thomas Schmitz wrote: Ugly workaround: \def\prefix{Vgl. \strut} % or \null But I have no idea what's happening here, maybe Hans or Taco can come up with a real solution. \cite[alternative=data] seems to eat any horizontal space before it; I don't know if this is a bug or a feature. It probably does an \unskip to get rid of bad vertical space in the publication list. Use the workaround Thomas offered, as it is not safe to change that. Best wishes, Taco I always learn something new here. And by the way: you guys are really damn fast :-) Thank you very much! (once again :-)) Best Regards, Andreas. ___ 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] Issues with MetaPost boxes
Since some weeks I have strange problems with MetaPost in MKIV (beta). The attached example should (and did in the past) output a central box (Fakt) surrounded by five boxes named Dimension. However some of them (in that particular example one) is drawn wrong: the box is on the right spot, but the label seems to be at 0,0. It seems to happen whenever the boxes are drawn from within a loop - at least all of my problems with boxes show similar symptoms and only occur within loops. Any ideas what goes wrong here?\startMPinclusions input boxes; \stopMPinclusions \startMPpage u := 1cm; circleit.fact(\sometxt{\bf Fakt}); fact.c = (0u, 0u); fact.dx = fact.dy; drawboxed(fact); for i = 45 step 72 until 360: circleit.dim[i](\sometxt{Dimension}); dim[i].c = 3u*right rotated i; dim[i].dx = dim[i].dy; drawoptions(dashed evenly); drawboxed(dim[i]); drawoptions(); drawarrow fact.c -- dim[i].c cutbefore bpath.fact cutafter bpath.dim[i]; endfor; \stopMPpage___ 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] Minimals Beta on Windows 64bit
On Mon, 26 Jul 2010 18:07:24 +0200, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: The problem is that I'm not able to reproduce the problem you are reporting. Did anyone else experience the same problem? Mojca It seems to have been fixed in the meantime. I just tried it again and rsync worked fine. The crash still happened, so I deleted the texmf-mswin directory and let rsync refetch it, and now that works too. So it seems my context on win64 runs fine again. No idea what caused the problem, but at least it works now :) Thanks for taking a look! Best Regards, Andreas. ___ 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] Minimals Beta on Windows 64bit
Since one of the last Betas mtxrun seems to be aware of 64bit windows, but all the stubs and scripts seem to be missing support for that resulting in the whole setup to not work at all. First-setup fails with stuff like that: MTXrun | run: rsync -rpztlv --stats contextgarden.net::'minimals/current/bin/common/mswin/ minimals/current/bin/context/mswin/ minimals/current/bin/metapost/mswin/ minimals/current/bin/man/ minimals/current/bin/luatex/mswin/ minimals/current/bin/xetex/mswin/ minimals/current/bin/luatex/mswin/ minimals/current/bin/luatex/mswin/ minimals/current/bin/pdftex/mswin/' 'c:/context/tex/texmf-mswin'The source and destination cannot both be remote. rsync error: syntax or usage error (code 1) at main.c(1127) [receiver=3.0.2] Easy fix: in mtx-update.lua, line 294 the current check is if osplatform == windows or osplatform == mswin then which should also check for mswin-64. But even after fixing that, mtxrun fails at several points, because it tries to run further commands from tex/texmf-mswin-64. Another easy fix: add a hardlink/junction for that directory. But that only ended in the following error whenever I invoke mtxrun, texlua, etc.: texlua.exe - Application Error The application was unable to start correctly (0xc022). click OK to close the application. I don't know why that was changed, but afaik all 64bit versions of windows support 32bit too so I would vote to leave it as it was before - just deal with mswin-64 as if it was mswin. Best Regards, Andreas. ___ 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] centralized bib database
Jean Magnan de Bornier wrote: Hi all, AFAIK with the bib module one can't specify the database by an URL. I believe such feature would be great in allowing users to centralise all the bibliographical stuff in one place even when they work on several machines/places. regards, I personally use Zotero for that - nice interface, online sync, file database and of course: it can export to bibtex. Mendeley might also work, but I had lots of problems with their bibtex export (simply because it wasn't really bibtex, saving fields that aren't in the specs, etc.) Best Regards, Andreas. ___ 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] \pdfcatalog broken in MkIV
Andreas Schneider wrote: Hello, as suggested in the thread about PDF Page Labels, \pdfcatalog can be used to manually modify the PDF Stream. However it seems that this does not currently work in MkIV (from the minimals, beta branch). In MkII it does exactly as I though (the resulting PDF contains a Catalog section with the content I passed to \pdfcatalog). In the PDF produced by MkIV however no Catalog can be found. Best Regards, Andreas. *bump* Any chance of having a fix for this? An example can be found here: http://archive.contextgarden.net/message/20081016.174838.bff55fc9.en.html texexec/MKII produces a PDF with said catalog, luatex/MKIV doesn't. Thanks in advance, Andreas. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange Font problem
Khaled Hosny wrote: On Wed, Jun 16, 2010 at 02:32:48AM +0200, Andreas Schneider wrote: Can you check with other PDF readers, it looks like a reader issue to me. I've got some strange color issues with ConTeXt generated PDFs and Adobe's reader in the past, namely any page with images would have the colors brighter than other pages, since the print was fine (and I don't use Adobe's for screen reading, I didn't bother). Yours might be something similar. Indeed, it works with XPDF, Okular and Foxit Reader (haven't tried others yet). That may explain, why I didn't notice the problem earlier. As it seems, it even happens with older context versions (I now tried 2010.05.13 on a different system) and with older versions of my document of which I was pretty sure that they looked fine before - apparently I didn't try with Acrobat or just didn't notice the problem back then. Thanks for that hint in the right direction! Best Regards, Andreas. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange Font problem
Taco Hoekwater wrote: This happens because on pages with transparency AR switches to a different color model, and the resulting color conversions are not producing the same results as conversion to the default (sRGB, I guess) color model. It is annoying but unlikely to get fixed as this problem has been around for ages, and more importantly: Adobe is not convinced this is an actual bug. It could be the same problem Andreas reported, but it is hard to say for sure without looking at Andreas' actual PDF. Best wishes, Taco It seems indeed to be a problem with Acrobat, and not (directly) ConTeXt. As I also wrote in my answer to Khaled, it could be even reproduced on a different system with an older ConTeXt version. Of course that doesn't rule out the possibility, that it's triggered by something ConTeXt does. Since it is my diploma thesis I'm working on, I can't just publish the PDF without consent from my university (which they probably won't give at that point). If you are interested in taking a closer look at that problem, I could send you the PDF in private. If you aren't (or simply don't have the time), it's also no problem ... as long as the print version looks fine, which apparently is the case. Thank you for your insight :-) Andreas. ___ 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] Writing a Curriculum Vitae/Resume
Matija Šuklje wrote: Hullo, I'm planning to write a CV/Resumé in ConTeXt. So I would like to know if there's already a nice module for it e.g. like the EuroPass[1] CV which also has a LaTeX template[2]. Any pointers would be helpful :] Cheers, Matija -.-.- [1] https://europass.cedefop.europa.eu/ [2] http://tug.ctan.org/tex-archive/macros/latex/contrib/europecv/ You might want to look at Wolfgang Schuster's Letter Module. That contains an (experimental?) CV module too. At least it worked quite good for me :-) http://modules.contextgarden.net/letter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange Font problem
Hello, since one of the last betas (I guess two weeks ago), a strange problem appears in my current document. The first ~10 page are completely fine (i.e. as usual) but the following ~20 pages have some kind of a font problem. The font looks bolder/grainy when zooming out in Acrobat and also the scrolling is pretty slow. After these pages, it's fine again. I don't see any specific trigger, there's nothing special on these pages. Sorry that I can't give any more details, but I wasn't able yet to pinpoint the problem. Even producing a long test document using \dorecurse didn't provoke that problem. I made a screenshot of one of the aforementioned spots where it switches - in this case from wrong to right. http://aksdb.homeip.net/ConTeXt_Font.png I guess you can easily see that the font on the upper page (the wrong one) looks different from the page below (the right one). They should be the same and it even looks correct when zooming further in. Both pages are consecutive and there is no code inbetween (no manual break, nothing). Has someone seen something like this before and can give me a hint where to start looking for the trigger so that I can maybe produce a smaller test example to help find and fix the root cause? Thanks in advance, Andreas. ___ 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] bibtex failure on latest minimals
Michael Murphy wrote: On Mon, 2010-06-14 at 08:55 +0200, Taco Hoekwater wrote: Alan BRASLAU wrote: An update today of the minimals breaks the bibtex search path: This is BibTeX, Version 0.99d (TeX Live 2010/pretest) Capacity: max_strings=15, hash_size=15, hash_prime=127507 The top-level auxiliary file: Livre.aux I couldn't open style file cont-no.bst ---line 2 of file Livre.aux : \bibstyle{cont-no : } I'm skipping whatever remains of this command I found no style file---while reading file Livre.aux whereas minimals from Friday (11 June) succeeds: This is BibTeX, Version 0.99d (TeX Live 2010/pretest) Capacity: max_strings=15, hash_size=15, hash_prime=127507 The top-level auxiliary file: Livre.aux The style file: cont-no.bst Is texmf.cnf still ok? There should be a BSTINPUTS line there. Looks ok, but I have the same problem. This is the line from texmf.cnf: BSTINPUTS = .;{$TXRESOURCES}//;{$CTXDEVTXPATH};$TEXMF/bibtex/bst// I also got that error when my texlsr was corrupted/outdated. Running mktexlsr fixed bibtex for me. (Additionally I had to run setuptex{.bat} first, before bibtex worked correctly.) ___ 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 ___