Re: [NTG-context] Spaces in commands
Am 21.11.2012 um 08:38 schrieb H. Özoguz : > Am 20.11.2012 16:02, schrieb ntg-context-requ...@ntg.nl: >> There is also, the not to be advertised command:), \autoinsertnextspace. >> >> Aditya > Thansk for this one! There are cases where \autoinsertnextspace doesn’t work. \definesynonyms[test][tests] \setupsynonym[test][next=\autoinsertnextspace] \test[ONE]{First}{First entry} \test[TWO]{Second}{second entry} \starttext text \ONE text \TWO text text \ONE \TWO text % fails text \ONE\ \TWO text % manual space \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indented footnotes in ConTeXt
Am 21.11.2012 08:50, schrieb ntg-context-requ...@ntg.nl: Message: 1 Date: Tue, 20 Nov 2012 14:28:11 -0600 From: Adam Khan To:ntg-context@ntg.nl Subject: [NTG-context] Indented footnotes in ConTeXt Message-ID: Content-Type: text/plain; charset="utf-8" Greetings! I am writing a German critical edition in which I am using endnotes, and I am encountering severe difficulties with formatting them as I should wish. The idea is to indent the entire footnote?marker and text?0.5in. In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this set-up: \definenote[critical][conversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] Then I move the text by adding the unsightly but functional hack \hskip.5into the beginning of the argument of \critical or \criticaltext. Unfortunately, the endnotes do not flow from page to page in Mark II, and, from the comments on the source code, it appears that this cannot be helped. Given the length and number of endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem viable. In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow from page to page, but the formatting does not appear to respond to the margindistance key. From various related posts, the answer appears to lie in \setupnotation, but, whenever I attempt to pass this command, I get an ?undefined control sequence? error. In short, my question is, How do I code indenting each endnote .5in with the highest degree of automation and fewest hacks possible? Sincerely yours, Adam Khan You can try, what I use for footnotes, maybe this is what you want or helps? \setupnotation[footnote][ alternative=left, width=2em, numbercommand=\hskip1.6em\high] %Fußnoten werden eingerückt und Nummer hochgestellt Viel Erfolg. Huseyin ___ If your question is of interest to others as well, please add an 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] underbar/margin text
On Tue, Nov 20, 2012 at 2:07 PM, Daniel Schopper wrote: > Dear all, > sorry to have to ask again, but I haven't been able to find a solution to > this by now… Is there no way to prevent underlining in marginal notes when > it is inside an underlined group? It shouldn’t be too difficult as it does > work with footnotes, but I have no clue where to start… > > \starttext > \underbar{% > > Test Test Test\footnote{footnote}~Test Test Test\par > Test\inleft{marginal} Test Test Test Test Test \par > } > \stoptext > > > Any help is very much appreciated! > > Daniel > > ___ > maybe it can help you, considering that underbar is a controversial typographic style, to separate text at the margin from the rest \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par } \startbar[underbar] Test Test Test\footnote{footnote}~Test Test Test\par Test% \stopbar% \inleft{marginal}% \startbar[underbar] Test Test Test Test Test \par \stopbar %\setupbars[unit=mm,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank %\setupbars[unit=ex,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank %\setupbars[unit=pt,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank %\setupbars[unit=pt,rulethickness=10pt] bar\startbar[underbar]foo\stopbar bar \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Spaces in commands
Am 20.11.2012 16:02, schrieb ntg-context-requ...@ntg.nl: There is also, the not to be advertised command:), \autoinsertnextspace. Aditya Thansk for this one! Huseyin ___ If your question is of interest to others as well, please add an 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] Images in MultiMarkdown -> context -> PDF
Hello, Thanks to Aditya I have discovered ConTeXt which, thus far, seems to give me much more control over the images than LaTex does. Yay! Before we get the reason for this post, I should note that my workflow is MultiMarkdown file, pandoc output of standalone context file, then context on that pandoc output. I have edited the context file to include a /defineexternalfigure directive to put a frame around all images. The images I have are all screenshots of application usage steps. The crucial output is html that goes into our online Knowledge base. Secondary output is PDF that will be used for our classroom training. The screen shots are mostly jpg with a scattering of png, and are all different sizes. The pandoc html output looks very much as we want it as we can use a css file to customize padding, etc. I get a very good pdf document, but there is one bewildering issue -- the images in the ConTeXt output pdf document are scaled very small. All of them, that is, but two which are more correctly sized in the pdf document. Almost all of them are jpg images created on a MacOS VM using an application called Skitch. I have looked the images over and besides some differing exif data all of them have the expected xy dimension attributes and I can see no difference between the two that are 'right' in the pdf document and the rest that are too small. I've tried playing with scale=1000 and factor= in the /defineexternalfigure directive and none help; scale=1000 changes nothing at all for the small images and scale values above 1000, while modifying the smaller images also make the correctly sized images too large. The factor values make all images scale to fit the textwidth without exception (that is, I can see no difference whatever in the three options), making smaller images far to large and pixelated. I took one image and used GIMP to modify its DPI to 300 thinking perhaps that might be a factor, but the 72dpi and 300dpi images look identically sized in the PDF document. The texexex output only says this about the images: <./images/group54/26378/CMSLogin_300dpi.jpg> figures : dimensions of images/group54/26378/CMSLogin_300dpi.jpg loaded from figurefile itself ... <./images/group54/26378/CMSSelectProjectDropDown.jpg> figures : dimensions of images/group54/26378/CMSSelectProjectDropDown.j pg loaded from figurefile itself That output is for both a 300dpi and a 72dpi image. Though is looks like dimensions are being read, both are too small in the pdf output. I quoted texexec because it showed output related to the images. Using 'context ' does not produce a similar console output, but the pdf doc created is the same with the same image size issues. Also of note is that pdflatex output on a pandoc->latex file does almost exactly the opposite of what context does--all images are scaled to fit text width by default (like using factor=max in context). But that is just as unwanted as having the images too small. The html output when viewed in a browser shows the same images as expected. None of these images are the same size and using any width=X value cannot work. Some screen shots may be 1024 pixels wide while others only 150 pixels wide (a shot of a button or tab, for example). I looked through 1.5 years of posts to the comp.tex.context news group looking for anything might be similar, but no luck. I have put several of the files involved on a publicly accessible web server. There are two screen shots of the pdf output showing incorrect image sizing and correct image sizing and the actual image files themselves. There is the markdown, context, html, and pdf documents. https://mywebspace.wisc.edu/jstalnak/web/context/ I know that is a lot. I appreciate any help anyone can provide. Best regards, GuyS -- "There is only love, and then oblivion. Love is all we have to set against hatred." (paraphrased) Ian McEwan Guy Stalnaker, I^2@DOIT, 1210 West Dayton Street, Room 3209 CSS, Madison WI 53719-1220, jstal...@wisc.edu, work 608.263.8035, cell 608.235.4718, fax 608.265.6681, page page-...@watchdog.doit.wisc.edu ___ If your question is of interest to others as well, please add an 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] Indented footnotes in ConTeXt
Greetings! I am writing a German critical edition in which I am using endnotes, and I am encountering severe difficulties with formatting them as I should wish. The idea is to indent the entire footnote—marker and text—0.5in. In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this set-up: \definenote[critical][conversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] Then I move the text by adding the unsightly but functional hack \hskip.5into the beginning of the argument of \critical or \criticaltext. Unfortunately, the endnotes do not flow from page to page in Mark II, and, from the comments on the source code, it appears that this cannot be helped. Given the length and number of endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem viable. In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow from page to page, but the formatting does not appear to respond to the margindistance key. From various related posts, the answer appears to lie in \setupnotation, but, whenever I attempt to pass this command, I get an “undefined control sequence” error. In short, my question is, How do I code indenting each endnote .5in with the highest degree of automation and fewest hacks possible? Sincerely yours, Adam Khan P.S. In case something less obvious in my environment file is causing my difficulties, I attach it below: \startenvironment Formattierung \setuppapersize[letter][letter] \setuplayout[backspace=1.5in, topspace=1in, bottomspace=1in, cutspace=1in] \setupinterlinespace[line=5.6ex] \setupindenting[.5in] \indenting[always] \setupnarrower[left=0.5in, right=0in] \setupspacing[packed] \setupalign[right,broad,nothyphenated] \setuplinenumbering[step=1] \setuppagenumbering[way=bytext] \definenote[genetic] \setupnote[genetic][numberconversion=romannumerals, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[source] \setupnote[source][numberconversion=set2, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[critical] \setupnote[critical][numberconversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] \definenote[annotation] \setupnote[annotation][numberconversion=numbers, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[sociological] \setupnote[sociological][numberconversion=Romannumerals, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \setupbodyfont[ss,12pt] \setuphead[chapter][ownnumber=yes] \def\broadcast{\rm} \def\callout#1{<#1>} \def\noteindent{\hskip.5in} \def\notepar{\\\hskip.5in} \def\original{\ss} \def\paratext{\tt} \def\quotationheader#1#2{{\noindenting\paratext#1]\wordright{[#2}}} \def\siglum#1{{\bf#1}} \def\someoneelse#1{{\it#1}} \stopenvironment ___ If your question is of interest to others as well, please add an 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] pgfplots error
Hm, it seems like my general purpose search engine missed an existing report about the same issue, for which Aditya provided a fix. (http://www.mail-archive.com/ntg-context@ntg.nl/msg66002.html) So there are now two fixes. Sorry for the noise if mine is nonsense :-) ___ If your question is of interest to others as well, please add an 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] pgfplots error
On Tue, 20 Nov 2012, Thomas Weißschuh wrote: Hi, while trying to use the module pgfplots from latest ConTeXt minimals I encountered the following error: [..] )) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex)) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.codetex ! LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found: no field package.preload['pgfplots.lua'] no file './pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './pgfplots.so' no file '/usr/local/lib/lua/5.1/pgfplots.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' <\directlua >:1: in main chunk. ConTeXt version: 2012.11.16 23:51 See: http://sourceforge.net/mailarchive/message.php?msg_id=29944181 This could be fixed by removing the suffix '.lua' from the argument to `require(pgfplots.lua)` in line 1979 of the file tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex diff --git a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex index 0ef2cb0..6d504a7 100644 --- a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old +++ b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex @@ -1976,7 +1976,7 @@ \catcode`\%=12 \gdef\pgfplotsPERCENT{%}} \pgfutil@IfUndefined{directlua}{}{% - \directlua{require(\pgfplotsDQ pgfplots.lua\pgfplotsDQ)}% + \directlua{require(\pgfplotsDQ pgfplots\pgfplotsDQ)}% }% % swaps the content of two macros Is this report sufficient or should I also contact pgfplots upstream? This will be fixed in the next release of pgfplots. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pgfplots error
Hi, while trying to use the module pgfplots from latest ConTeXt minimals I encountered the following error: [..] )) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex)) (/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.codetex ! LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found: no field package.preload['pgfplots.lua'] no file './pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/pgfplots/lua.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './pgfplots.so' no file '/usr/local/lib/lua/5.1/pgfplots.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' <\directlua >:1: in main chunk. ConTeXt version: 2012.11.16 23:51 This could be fixed by removing the suffix '.lua' from the argument to `require(pgfplots.lua)` in line 1979 of the file tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex diff --git a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex index 0ef2cb0..6d504a7 100644 --- a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old +++ b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex @@ -1976,7 +1976,7 @@ \catcode`\%=12 \gdef\pgfplotsPERCENT{%}} \pgfutil@IfUndefined{directlua}{}{% - \directlua{require(\pgfplotsDQ pgfplots.lua\pgfplotsDQ)}% + \directlua{require(\pgfplotsDQ pgfplots\pgfplotsDQ)}% }% % swaps the content of two macros Is this report sufficient or should I also contact pgfplots upstream? Regards, Thomas ___ If your question is of interest to others as well, please add an 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] typefile with absolute path to file
That's interesting. As I could trace, the leading / is removed on my system. ldd output on my luatex gives (seems not really spectacular): linux-vdso.so.1 => (0x7fffad7ff000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f221f099000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f221ee17000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f221ea8f000) /lib64/ld-linux-x86-64.so.2 (0x7f221f2c1000) lua -v gives: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio Though, I have lua5.2 installed in parallel Any other infos, which might help? On Tue, Nov 20, 2012 at 11:17 PM, Aditya Mahajan wrote: > On Tue, 20 Nov 2012, Hans Hagen wrote: > >> On 11/20/2012 9:06 PM, Erik Margraf wrote: >>> >>> Hi, >>> >>> Thanks Aditya! >>> >>> I tried this again with >>> >>> \starttext >>> \typefile{/tmp/xxx.tex} >>> \stoptext >>> >>> and could trace what's going on ... (not even /tmp/xxx.tex worked) >> >> >> I just tried a standalone on a xubuntu virtual machine. I had no problems >> with >> >> /data/temp/test/test.tex: (also copied one level lower) >> >> \starttext >> >> \typefile{/data/temp/test.tex} >> \typefile{/data/test.tex} >> >> \stoptext >> >> So, I'm a bit puzzled. > > > On my machine, I can read files **with an extension** from anywhere in the > system, but \typefile{...} for a file without an extension results in: > > verbatims > file abc does not exist > > > Aditya > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an 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] typefile with absolute path to file
Compiling the evidence... all I can say is "hmm" == Erik == Version: 2012.11.16 on Linux Absolute path (parent dir): ??? Absolute path (non-parent dir): did not work == Aditya == Version: 2012.11.16 on Linux ["system.outputmode"]= "restricted", ["system.inputmode"] = "any", Absolute path (parent dir): works Absolute path (non-parent dir): works Absolute path (filename has no extension): fails == Hans == Version: ??? on Linux Absolute path (parent dir): works Absolute path (non-parent dir): /?? == Sietse == Version: 2012.11.08 on Linux ["system.outputmode"]= "restricted", ["system.inputmode"] = "any", Absolute path (parent dir): does not work Absolute path (non-parent dir): does not work Relative path: works Absolute or relative path, filename has no extension: does not work. Hmm. ___ If your question is of interest to others as well, please add an 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] typefile with absolute path to file
On Tue, 20 Nov 2012, Hans Hagen wrote: On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual machine. I had no problems with /data/temp/test/test.tex: (also copied one level lower) \starttext \typefile{/data/temp/test.tex} \typefile{/data/test.tex} \stoptext So, I'm a bit puzzled. On my machine, I can read files **with an extension** from anywhere in the system, but \typefile{...} for a file without an extension results in: verbatims > file abc does not exist Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parameters for Texworks
Am 20.11.2012 22:41, schrieb ntg-context-requ...@ntg.nl: I've never used TeXworks, so I would appreciate it if you could check it. Cheers, Sietse Perfect, thank you! Huseyin ___ If your question is of interest to others as well, please add an 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] typefile with absolute path to file
On 11/20/2012 9:06 PM, Erik Margraf wrote: Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) I just tried a standalone on a xubuntu virtual machine. I had no problems with /data/temp/test/test.tex: (also copied one level lower) \starttext \typefile{/data/temp/test.tex} \typefile{/data/test.tex} \stoptext So, I'm a bit puzzled. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typefile with absolute path to file
Hi, Thanks Aditya! I tried this again with \starttext \typefile{/tmp/xxx.tex} \stoptext and could trace what's going on ... (not even /tmp/xxx.tex worked) The lines below is the trace output belonging to "/tmp/xxx stat("tmp/xxx.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) stat("../tmp/xxx.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) stat("../../tmp/xxx.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) stat("tmp/xxx.tex.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) stat("../tmp/xxx.tex.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) stat("../../tmp/xxx.tex.tex", 0x7fff5dc73d90) = -1 ENOENT (No such file or directory) I could verify that "tmp/xxx.tex" is actually found! current version: 2012.11.16 23:51 Anything I can do about that? (I guess I can work with relative paths below - tested this ...) Context Version: current version: 2012.11.16 23:51 System: Debian 3.2.32-1 x86_64 GNU/Linux regards Erik On Tue, Nov 20, 2012 at 4:25 PM, Aditya Mahajan wrote: > >> Dear List, >> >> a question about \typefile{}. >> I tried to use \typefile{ /with/an/absolute/path/to/some_file } and >> failed >> Message in the log: Verbatim some_file not found. Also tried with >> no path at all, assuming it will take the file from the current directory. >> Same result. >> >> Do I miss something? Should this work? Or, if not, how can I achieve >> this effect (typefile >> with absolute path to a file. btw. on a Linux system) > > > \starttext > \typefile{\jobname.tex} > \typefile{/tmp/test.tex} > \stoptext > > work with ConTeXt MkIV 2012.11.16. > > However, I can confirm that > > \typefile{/usr/bin/pdf2ps} does not work with context minimals on archlinux, > although the texmfcnf.lua file says: > > ["system.outputmode"]= "restricted", > ["system.inputmode"] = "any", > > Aditya > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an 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] inright with location=hanging does not do what is expected.
Apparently the listserver thought this was spam given my original subject lines contained a backslash, square brackets and curly brackets. :( Let's try this again: Maybe I'm reading the documentation (such as it is) wrong but I would expect specifying [location=hanging] to drop the margin text down alongside what follows instead of raising up to be even with what has preceded it. Minimal example: \starttext \input montgomery \inright[][align=right,location=hanging]{Shoulder Text} \input knuth \stoptext The "Shoulder Text" is aligned upward from the end of ward so it is alongside the ward quote. I would have expected it to be aligned downward alongside the knuth quote. Am I missing something? -- Bill Meahan Westland, Michigan USA ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parameters for Texworks
> Perhaps it would be useful to add this into the wiki, since there is only a > guide in texworks for MarkIV. Something like this? http://wiki.contextgarden.net/TeXworks I've never used TeXworks, so I would appreciate it if you could check it. Cheers, Sietse On Sun, Nov 18, 2012 at 8:08 PM, "H. Özoguz" wrote: > Hi there, > > Im happy to have found the correct parameters for Texworks and MarkVI (and > Standalone Context) after hours, wtih the kindly help of Hans and SciTE. > They are: > > Programm: mtxrun > Parameters: --script context --synctec $fullname > > Perhaps it would be useful to add this into the wiki, since there is only a > guide in texworks for MarkIV. > > Thanks everybody. > Huseyin > ___ > If your question is of interest to others as well, please add an 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] Symbols
Hi all, could someone bring light into the way how to use symbols…in MKIV I wanted to extract a symbol from uzdr (Zapfdingbats). In MIII the that worked like this: \definefontsynonym[Dingbats][uzdr] \definesymbol[box][\getglyph{Dingbats}{\char113}] In MKIV this is not the case. I tried to find out with the font-manual, unfortunately it only shows the content of the symb-imp-eur.mkiv. I tried to find the fonts mentioned in that file, but miserably failed. I tried different approaches but get now result, except for the black diamond, but this is defined internally in ConTeXt (\definesymbol[blackdiamond] [\textormathchar{"2666}]. \definefontsynonym[Dingbats][uzdr] \definefontsynonym[MSAM][msam10] \definesymbol[boxA][\getglyph{Dingbats}{\char113}] %Seems to be changed... \definesymbol[boxB][\getglyph{Dingbats}{\char"274F}] % U+0274F, 00052, a74 \definesymbol[cuttingscissors] [\getglyph{Dingbats}{\utfchar{"2701}}] \definesymbol[blackdiamond][\textormathchar{"2666}] \definesymbol[blackdiamondvar][\textormathchar{"25C6}] \definesymbol[diamondfilled] [\getglyph{MSAM}{\utfchar{"F0067}}] \starttext Thanks for support… Willi \symbol{boxA} \symbol{boxB} \symbol{cuttingscissors} \symbol{blackdiamond} \symbol{blackdiamondvar} \symbol{diamondfilled} \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] Bug?
Hi all! It appears to me, that there is a bug in transferring internal information: Suppose you have a large image. You need to squeeze this image into the width of 1 column in a two column environment. If the figure is placed with a fixed width it comes out as expect. If you use \textwidth or \makeupwidth the figure will not be sized correctly. \showframe % \definemixedcolumns[columns] % \setupcolumns % [distance=4mm] \starttext \startsimplecolumns \placefigure [middle] [Cow] {Cow width fixed-width} {\externalfigure[cow][frame=on,width=4cm]} \placefigure [middle] [Cow] {Cow with \type{\textwidth}} {\externalfigure[Pyramid][fame=on,width=\textwidth]} \placefigure [middle] [Cow] {Cow with \type{\makeupwidth}} {\externalfigure[Pyramid][frame=on,width=\makeupwidth]} \stopsimplecolumns \stoptext Willi ___ If your question is of interest to others as well, please add an 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] typefile with absolute path to file
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something? Should this work? Or, if not, how can I achieve this effect (typefile with absolute path to a file. btw. on a Linux system) \starttext \typefile{\jobname.tex} \typefile{/tmp/test.tex} \stoptext work with ConTeXt MkIV 2012.11.16. However, I can confirm that \typefile{/usr/bin/pdf2ps} does not work with context minimals on archlinux, although the texmfcnf.lua file says: ["system.outputmode"]= "restricted", ["system.inputmode"] = "any", Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typefile with absolute path to file
Dear List, a question about \typefile{}. I tried to use \typefile{ /with/an/absolute/path/to/some_file } and failed Message in the log: Verbatim some_file not found. Also tried with no path at all, assuming it will take the file from the current directory. Same result. Do I miss something? Should this work? Or, if not, how can I achieve this effect (typefile with absolute path to a file. btw. on a Linux system) I'm aware of a similar message thread to this list from May 25th, this year. But I didn't feel that it speaks against my comprehension of \typefile ... Thanks! Erik ___ If your question is of interest to others as well, please add an 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] Spaces in commands
On Tue, 20 Nov 2012 15:21:08 +0100, H. Özoguz wrote: Hi there, how to define commands, which are simply short-cuts for some terms? For short-cuts, \let might be better: \let\shortcmd=\theverylongcommand Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Spaces in commands
On Tue, 20 Nov 2012, Hans Hagen wrote: On 11/20/2012 3:21 PM, "H. Özoguz" wrote: This \testcmd has no space after, but it should have. \testcmd{} or (what I alway sdo in such case:) \testcmd\ There is also, the not to be advertised command :), \autoinsertnextspace. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Spaces in commands
On 11/20/2012 3:21 PM, "H. Özoguz" wrote: This \testcmd has no space after, but it should have. \testcmd{} or (what I alway sdo in such case:) \testcmd\ Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section alone on the page
Am 20.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: It?s a problem with \blank which ignore the ?samepage? keyword in grid mode. When you process this example in normal mode ?line 40? is moved to the second page but in grid mode it stays on the first page. Is theat easy to fix or a long-term-todo? (Layouting books, I need gridding, indeed, at first that was my reason to start with context) Huseyin ___ If your question is of interest to others as well, please add an 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] Spaces in commands
Hi there, how to define commands, which are simply short-cuts for some terms? My attempt produces typographical mistakes: %% \def\testcmd{% Testcommand% } \def\testcmdtwo{% Testcommandtwo } \starttext This is a \testcmd. Everything ok. This \testcmd has no space after, but it should have. This \testcmdtwo has a space after. Everything ok. But this \testcmdtwo, produces one extra spaces after the comma. \stoptext %% Thank you. Huseyin ___ If your question is of interest to others as well, please add an 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] \unit problem with powers of ten.
Le lundi 19 novembre 2012, Romain Diss a écrit : > I got some problems to express powers of ten in the \unit command. See the > strange behaviour with these two minimal examples. > > \starttext > \unit{10^2 meter}\\ > \unit{10^{-12} second} > \stoptext > Is this a bug or are these expressions not supported? I'm not an expert neither in TeX nor Lua, but I quickly glance at the source code (phys-dim.*) and here is what I understand: — the brackets { } are not recognized (a comment in the lua code mentioned it), so \unit{10^{-12} second} should be \unit{10^-12 second}; — the hat sign '^' is recognized as 'e' so it means "… times ten to the power…" instead of "to the power…" as one should expect. So I come back to my problem. I want to write 10⁻¹² s (ten to the negative twelfth power second). Actually, I'm typing \math{10^{-12} \unit{second}} but I'd prefer to type \unit{10^-12 second} (for coherence). Is it possible to modify phys-dim.lua in that way or is this to much work (I have no idea if this is a matter of changing one line or a hundred lines in phys-dim.lua. Maybe also this is a too specific request, I don't know… Anyway, thank you in advance. All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an 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] mtxrun server help broken
> with current minimals, the help server appears to be broken. Running > > mtxrun --script server --start --auto > > the server starts up, but when I click on "help," I get a page with [an error] Already present in 2012.11.08 12:14, too. --Sietse ___ If your question is of interest to others as well, please add an 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] underbar/margin text
Dear all, sorry to have to ask again, but I haven't been able to find a solution to this by now… Is there no way to prevent underlining in marginal notes when it is inside an underlined group? It shouldn’t be too difficult as it does work with footnotes, but I have no clue where to start… \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par } \stoptext Any help is very much appreciated! Daniel ___ If your question is of interest to others as well, please add an 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] mtxrun server help broken
Hi all, with current minimals, the help server appears to be broken. Running mtxrun --script server --start --auto the server starts up, but when I click on "help," I get a page with the helpful hint ConTeXt Help Information no definition some error There is no error message on the terminal. Thomas ___ If your question is of interest to others as well, please add an 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] Equivalent of Includeonly?
On 11/19/2012 01:41 PM, Hans Hagen wrote: that there is a lua error ... can you try with: if not component or component == componentname then -- skip else Hans, yes, this appears to work! I now get page numbers etc. when I compile single components, and I could kick myself for not knowing this earlier... All best Thomas ___ If your question is of interest to others as well, please add an 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] Section alone on the page
Am 20.11.2012 um 08:56 schrieb H. Özoguz : > I got this eMail, and copy it here, maybe someone understands what changed > and caused this Bug. > > ++ > > I looked at your not_so_short_example in ntg-context Digest, Vol 101, Issue > 53, 18 November 2012, and I found that your problem, the section title > alone at the bottom of a page, occurs only in some versions of the ConTeXt > standalone, not in others. That on TeXLive will be OK (it was on my > installation) My recent version of ConTeXt (14-11-2012) was not OK but some > older versions (from march and may this year and even as recent as october > 28) do not give your problem. For he others, I tried to avoid the problem by > adding to your setup: > > \clubpenalty=1 % keine Schusterjungen / no clubs (from Ubuch) > \widowpenalty=1 % keine Hurenkinder / no widows > > but that did not change anything, starngely enough. > > Maybe you could ask Hans Hagen or Wolfgang Schuster to have a look at the > code and find out what's wrong. > I hope this helps a little for the time being. It’s a problem with \blank which ignore the “samepage” keyword in grid mode. When you process this example in normal mode “line 40” is moved to the second page but in grid mode it stays on the first page. %\setuplayout[grid=yes] \starttext \dostepwiserecurse{1}{40}{1}{Line \recurselevel\par} \blank[samepage,line] \dostepwiserecurse{41}{50}{1}{Line \recurselevel\par} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Equivalent of Includeonly?
Am 20.11.2012 09:20, schrieb "H. Özoguz": Sorry, I did not get you. I was asking about Context, not Latex?! sure, I only explained the difference of \input and \include respectively \includeonly and explained only the existing behaviour in LaTeX. The same should be possible in ConTeXt. Herbert m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: see http://projekte.dante.de/DanteFAQ/GrosseDokumente if you are familiar with german. Suppose you have a 1500 pages document, but you really work only on the 7th chapter which has 30 pages with lots of references to other chapters/sectionb/images/ with \includeonly{chap7} you get a 30 pages document but with correct page numbers and correct references. With only \input chap7 you have wrong page numbers and missing references Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Equivalent of Includeonly?
Sorry, I did not get you. I was asking about Context, not Latex?! m 19.11.2012 12:00, schrieb ntg-context-requ...@ntg.nl: see http://projekte.dante.de/DanteFAQ/GrosseDokumente if you are familiar with german. Suppose you have a 1500 pages document, but you really work only on the 7th chapter which has 30 pages with lots of references to other chapters/sectionb/images/ with \includeonly{chap7} you get a 30 pages document but with correct page numbers and correct references. With only \input chap7 you have wrong page numbers and missing references Herbert ___ If your question is of interest to others as well, please add an 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 ___