[NTG-context] scripts

2012-10-30 Thread Hans Hagen
waiting. So, it looks like we need to use filename 21 instead of filename. I checked the scripts in the context tree and so far found no occurences but first-setup.sh has two 's in it that might need fixing. Hans

Re: [NTG-context] scripts

2012-10-30 Thread Bill Meahan
On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename. is a bash-ism I checked the scripts in the context tree and so far found

Re: [NTG-context] scripts

2012-10-30 Thread Pontus Lurcock
On Tue 30 Oct 2012, Bill Meahan wrote: On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename. is a bash-ism FWIW, Debian and Ubuntu have

Re: [NTG-context] scripts

2012-10-30 Thread Hans Hagen
On 30-10-2012 18:26, Bill Meahan wrote: On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename. is a bash-ism sure, till one replaces bash

Re: [NTG-context] scripts

2012-10-30 Thread Hans Hagen
On 30-10-2012 18:38, Pontus Lurcock wrote: On Tue 30 Oct 2012, Bill Meahan wrote: On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename

Re: [NTG-context] scripts

2012-10-30 Thread Hans Hagen
On 30-10-2012 18:38, Pontus Lurcock wrote: On Tue 30 Oct 2012, Bill Meahan wrote: On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename

Re: [NTG-context] scripts

2012-10-30 Thread Hans Hagen
On 30-10-2012 18:38, Pontus Lurcock wrote: On Tue 30 Oct 2012, Bill Meahan wrote: On 10/30/2012 01:20 PM, Hans Hagen wrote: filename 21 This has been the correct Bourne shell (POSIX) syntax for many years. I think it goes all the way back to Bell Labs V7 IIRC instead of filename

Re: [NTG-context] \copypages[][n=...] not working

2012-10-28 Thread Hans Hagen
t2.pdf pages are inserted. Any command option changed? Fix needed? \def\page_selectors_copy[#filename][#settings][#figuresettings]% {\bgroup \getfiguredimensions[#filename]% \setupcurrentwithpages[\c!marking=\v!off,\c!offset=\zeropoint,\c!n=\noffigurepages,#settings]% \global

Re: [NTG-context] \copypages[][n=...] not working

2012-10-28 Thread Procházka Lukáš
Hello Hans, thanks for the patch; I guess it will be added to the next beta - ? Best regards, Lukas On Sun, 28 Oct 2012 11:34:41 +0100, Hans Hagen pra...@wxs.nl wrote: \def\page_selectors_copy[#filename][#settings][#figuresettings]% {\bgroup \getfiguredimensions[#filename

[NTG-context] Test suite report

2012-10-21 Thread Marco Pessotto
Hello there. Aditya added a couple of testfiles. Thanks a lot. I encourage anyone reporting bugs to send a minimal example to me too, via mail or via pull requests on github, so people running the tests can catch regressions. I modified the code, so a unique filename for each test

Re: [NTG-context] ConTeXt unofficial test suite stub

2012-10-17 Thread Hans Hagen
(), } local old = oldhashes and oldhashes.files or {} local new = newhashes and newhashes.files or {} for i=1,#files do local filename = files[i] local olddata = old[filename] if collect then new[filename] = olddata or { status = collected

Re: [NTG-context] nil error in guess

2012-10-15 Thread Hans Hagen
/english Is there a quick fix, or I get stuck at a bad moment. Thanks in advance. function figures.guess(filename) local f = io.open(filename,'rb') if f then local str = f:read(100) f:close() if str then for i=1,#magics do local pattern

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Hans Hagen
to the source. In your case the function resolvers.openers.helpers.textopener() takes the place of the open_read_file callback. It can be found in data-tex.lua. Shall I simply do something like this? local function textopener(tag, filename, filehandle, coding) result = old_textopener(tag, filename

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Andre Caldas
Hello, Hans! Shall I simply do something like this? [...] this is not the recommended way .. better do somethign like this: [...] function document.MyCharacterMess(str,filename) Loved your function naming! :-) What is this str? if file.nameonly(filename) == ward

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Wolfgang Schuster
()). Is textfileactions the action I should trap? \starttext \startluacode function document.MyCharacterMess(str,filename) local path = Path: .. file.dirname(filename) local text = Text: .. str return table.concat({path,text},\n\n) end local textfileactions

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Sietse Brouwer
Hello, Andre! Andre Caldas wrote: function document.MyCharacterMess(str,filename) What is this str? This is a function that takes two variables; the first one it calls 'str', the second one 'filename'. Example: function f(a, b) return a/b end function(8,2) -- 4, not 0.25 I do not know

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Philipp Gesang
···date: 2012-10-02, Tuesday···from: Andre Caldas··· function document.MyCharacterMess(str,filename) What is this str? The raw file content as a Lua string. You can examine the arguments you get like so

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Hans Hagen
should trap? Also, shall I use after or before instead of system? Since it is a module, probably I should use system, right? Just want to be sure... \startluacode resolvers.installinputfilehandler(before,function(str,filename,...) logs.report(string.format(path: %s,file.dirname(filename

Re: [NTG-context] Frozen callback.

2012-10-01 Thread Andre Caldas
resolvers.openers.helpers.textopener() takes the place of the open_read_file callback. It can be found in data-tex.lua. Shall I simply do something like this? local function textopener(tag, filename, filehandle, coding) result = old_textopener(tag, filename, filehandle, coding) -- Do lots

Re: [NTG-context] Current source directory.

2012-09-28 Thread Andre Caldas
.. '/' .. file.pathpart(resolvers.inputstack[#resolvers.inputstack]) } I will try this now. You may or may not want to parse out any ./ and ../ components. No, I don't need that. (If you do: helpful filename manipulation functions (such as file.pathpart, indeed) may be found in l-file.lua

Re: [NTG-context] Current source directory.

2012-09-28 Thread Sietse Brouwer
Hi André, Sorry, to ask such a dumb question... - Do I need to include file-job.lua somehow? No need to include it, it's part of the ConTeXt core. I only mentioned the filename in case people wanted to see what else was in that file; the code snippet should Just Work. Is it working for you

Re: [NTG-context] Current source directory.

2012-09-27 Thread Sietse Brouwer
.. '/' .. file.pathpart(resolvers.inputstack[#resolvers.inputstack]) } You may or may not want to parse out any ./ and ../ components. (If you do: helpful filename manipulation functions (such as file.pathpart, indeed) may be found in l-file.lua.) Hope this helps, Sietse On Fri

[NTG-context] Problem with PocketDiary

2012-09-22 Thread Marcin Borkowski
used files 1: filename=cont-yes.mkiv | filetype=tex | foundname=/home/marcin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv | usedmethod=database used files 2: filename=cont-new.mkiv | filetype=tex | foundname=/home/marcin/context/tex/texmf-context/tex/context/base/cont

Re: [NTG-context] interesting link

2012-09-18 Thread luigi scarso
'graph.plot*()' and any output that would be accepted by ConTeXt; e.g. no .png nor MP code can be produced from GSL. it should not be to hard (for luigi, given his mf project) to add output to mp there are save(filename[, w, h]) Save the plot in a file in a bitmap image format. The first argument

[NTG-context] Wrong values for \inputfilename etc.

2012-09-05 Thread Wolfgang Schuster
Hi Hans, when I run the following example (saved as filename.tex) I got in the past this output \jobname filename \jobfilename filename.tex \jobfilesuffix tex \inputfilename filename.tex \inputfilebarename filename \inputfilesuffix tex \outputfilename

[NTG-context] Bug in page-sel.mkvi

2012-08-23 Thread Sietse Brouwer
Hi Hans, There's a typo in page-sel.mkvi that makes \copypages not work. Cheers, Sietse \def\page_selectors_copy[#filename][#settings][#figuresettings]% {\bgroup \getfiguredimensions[#filename]% \global\c_page_selectors_n\noffigurepages\relax \setupcurrentwithpages[\c!marking=\v!off,\c

[NTG-context] hidden attachments broken

2012-08-17 Thread Michail Vidiassov
-wid.mkv implies that you also try to hide file information in the list of attached files, so menu entry is just a placeholder with file name attachment.txt and empty description. The relevant code piece, where specs and filename are dropped, seems to be in scrn-wid.mkvseems \setvalue

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
? And for the general case, what about `\ctxlua{commands.processedfile}`? That looks like it should print the current filename, as long as any inclusions use the ConTeXt commands and not \input. --Sietse On Thu, Aug 9, 2012 at 1:24 PM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Great, thank you

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Wolfgang Schuster
for startproject, startenvironment, and startproduct, I assume? And for the general case, what about `\ctxlua{commands.processedfile}`? That looks like it should print the current filename, as long as any inclusions use the ConTeXt commands and not \input. You can use \currentcomponent

Re: [NTG-context] Can't generate an epub - what am I doing wrong?

2012-08-09 Thread Rogers, Michael K
://mbork.pl XHTML output (text shortened): ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : foo13338 -- !-- processing date : Thu Aug 9 09:30:38 2012 -- !-- context version : 2012.08.05 12:52 -- !-- exporter version : 0.30 -- document xmlns:m=http

Re: [NTG-context] Added licensing information to PDF

2012-08-02 Thread Kip Warner
On Wed, 2012-08-01 at 09:21 +0200, Philipp Gesang wrote: you can include XMP files with one line: \setupbackend[xmpfile=metadata.xmp] Hey Philipp. I just tried this using an incorrect filename to the xmpfile parameter and my document still compiled without error, so I'm wondering

Re: [NTG-context] Added licensing information to PDF

2012-08-02 Thread Philipp Gesang
Hey Kip, ···date: 2012-08-02, Thursday···from: Kip Warner··· On Wed, 2012-08-01 at 09:21 +0200, Philipp Gesang wrote: you can include XMP files with one line: \setupbackend[xmpfile=metadata.xmp] Hey Philipp. I just tried this using an incorrect filename to the xmpfile parameter

Re: [NTG-context] t-degrade.tex (solved)

2012-07-31 Thread Peter Münster
== ) then print(format(Nothing to do: %s, %s, %s, oldname, newname, resolution)) return end local inch = 72.27 local image = img.scan{filename = oldname} local xy = image.xsize / image.ysize if width == then width = height * xy end if height == then height = width / xy

[NTG-context] Font recognition with command context, but not with command texexec

2012-07-29 Thread Martin Rimmler
is the Problem: The command texexec ignores the bodyfont setup. When I process the following code \setupbodyfont[gentium] \starttext This little text is enough to demonstrate the problem. \stoptext with the command texexec /filename/, the default font is used. Only when i use the command

Re: [NTG-context] Font recognition with command context, but not with command texexec

2012-07-29 Thread Wolfgang Schuster
with the command texexec filename, the default font is used. Only when i use the command context filename.tex, context uses the font gentium. The gentium font is a truetype font and stored on my system under /usr/share/fonts. I use Linux Mint Debian Edition 201204. My .bashrc file contains

Re: [NTG-context] \input filename causes error.

2012-07-25 Thread Hans Hagen
be transparent to the rest of TeX. MKIV on slackware Linux. What error? the primitive \input has some special parsing properties maybe adding \relax after the filename helps - Hans Hagen

Re: [NTG-context] \input filename causes error.

2012-07-25 Thread Marco
On 2012-07-24 john Culleton j...@wexfordpress.com wrote: Hi John, \startstandardmakekup \startstandardmakeup I would recommend to use ConTeXts environment, component, product mechanism. See wiki: project structure. Marco

[NTG-context] \input filename causes error.

2012-07-24 Thread john Culleton
If I set up my main file thus: \starttext \input title.tex \input copyright.tex \startfrontmatter \completecontent \chapter{Introduction} \stopfrontmatter \startbodymatter \input body.tex \stopbodymatter \startappendices \stopappendices \startbackmatter \chapter{Index} %\chapter{Acknowledgement}

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
(filename, opening, closing): print opening, closing f = open(sys.argv[1], 'r') braces = 0 i = 1 last_zero = -1 for line in f.readlines(): braces += line.count(opening) braces -= line.count(closing) if braces==0: last_zero = i i += 1 f.close

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Hongwen Qiu
On 07/06/2012 03:38 PM, Pontus Lurcock wrote: brace-lint.py #!/usr/bin/python import sys '''Count opening and closing braces in a file.''' def count(filename, opening, closing): print opening, closing f = open(sys.argv[1], 'r') Shouldn't this line be f = open(filename

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
On Fri 06 Jul 2012, Hongwen Qiu wrote: def count(filename, opening, closing): print opening, closing f = open(sys.argv[1], 'r') Shouldn't this line be f = open(filename, 'r') otherwise the 'filename' parameter will not be used Oops, you're quite correct. Of course

Re: [NTG-context] ConTeXt and SciTE

2012-06-20 Thread Aditya Mahajan
was compiled (attached). It was a hack that redefined a few low level macros. To provide proper support for ctags, we also need to store the current filename and line number for each reference in the tuc file. Then a module can read the tuc file and write the ctags file in an appropriate format

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-11 Thread Hans Hagen
filename : test_00 -- !-- processing date : Mon Jun 11 07:03:39 2012 -- !-- context version : 2012.06.11 00:21 -- !-- exporter version : 0.30 -- document xmlns:m=http://www.w3.org/1998/Math/MathML; version=0.30 language=de date=Mon Jun 11 07:03:39 2012 file=test_00 context

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-10 Thread Andy Thomas
for mapping a link which is why the exporter produces two files (xml and xhtml) I get an error by the epub validator if I feed it the generated epub. The content file is: -START ?xml version='1.0' encoding='UTF-8' standalone='yes' ? !-- input filename : test_00

Re: [NTG-context] frame and numbering of code snippets using vim-module

2012-06-09 Thread Xenia
? To test the latest version, save t-syntaxhighlight.mkiv and 2context.vim from github in the current directory, and compile using context --mode=vim-dev filename It works great now (even without `--mode=vim-dev`). The frame ist wide enough and the numbering after a line break continues

Re: [NTG-context] reading from standard input

2012-06-08 Thread Aditya Mahajan
won't work correctly. The other options is to write to a file, and then run context --purgeall --result=/tmp/result.pdf filename; this will run the document appropriate number of times, and then delete the temp files, leaving only the .tex and the .pdf file

Re: [NTG-context] reading from standard input

2012-06-08 Thread stdin | Alexandre Leray
/result.pdf but that only runs the document once, so cross referencings, TOC, etc won't work correctly. The other options is to write to a file, and then run context --purgeall --result=/tmp/result.pdf filename; this will run the document appropriate number of times, and then delete the temp files

Re: [NTG-context] LuaLaTeX + fontspec: cannot compare documents with Acrobat

2012-06-08 Thread Aditya Mahajan
anyone know what is going on and of a possible fix? Do you know what happens if you try with a simple ConTeXt document with opentype fonts? \setupbodyfont[palatino] \starttext Hello world \stoptext Compile with context filename

Re: [NTG-context] frame and numbering of code snippets using vim-module

2012-06-07 Thread Aditya Mahajan
-syntaxhighlight.mkiv and 2context.vim from github in the current directory, and compile using context --mode=vim-dev filename Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-06 Thread Andy Thomas
= specification.author or My Self local title = specification.title or My Title 211c214 lfs.mkdir(file.join(epubpath,OPS)) --- lfs.mkdir(file.join(epubpath,OEBPS)) 220c223 local target = file.join(epubpath,OPS,filename) --- local target

[NTG-context] frame and numbering of code snippets using vim-module

2012-06-06 Thread Xenia
-regular.otf/home/context/tex/texmf/fonts/opentype/public/lm/lmmono10-regular.otf/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=framedcode.tex | foundname=framedcode.tex | usedmethod=direct used files

[NTG-context] back-up.lua; mtx-epub.lua

2012-06-05 Thread Andy Thomas
language = specification.language or en 211c212 lfs.mkdir(file.join(epubpath,OPS)) --- lfs.mkdir(file.join(epubpath,OEBPS)) 220c221 local target = file.join(epubpath,OPS,filename) --- local target = file.join(epubpath,OEBPS,filename) 256c257

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Hans Hagen
On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp `luatools hacker.jpg` something ah .. i see, no extension .. too tricky to support

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Aditya Mahajan
On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp `luatools hacker.jpg` something ah .. i see

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Hans Hagen
On 26-5-2012 16:04, Aditya Mahajan wrote: On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread luigi scarso
On Sat, May 26, 2012 at 4:23 PM, Hans Hagen pra...@wxs.nl wrote: On 26-5-2012 16:04, Aditya Mahajan wrote: On Sat, 26 May 2012, Hans Hagen wrote: On 26-5-2012 04:08, Aditya Mahajan wrote: Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Rogers, Michael K
I don't know if this helps but the following tells what the type of the image file is. (In my case I copied a jpg to img1 and a png to img2, without extensions of course.) \startluacode userdata = userdata or { } function userdata.mytype(s) context(img.scan({filename=s}).imagetype) end

Re: [NTG-context] Use figures without file extension

2012-05-26 Thread Aditya Mahajan
the type of images, but using the inbuilt library is definely simpler! \startluacode userdata = userdata or { } function userdata.mytype(s) context(img.scan({filename=s}).imagetype) end \stopluacode @Hans, btw I also noticed that \locfilename does not work for files without extension

[NTG-context] Use figures without file extension

2012-05-25 Thread Aditya Mahajan
Currently, ConTeXt only recognizes the type of figure from the file extension. If a filename does not have an extension, \externalfigure fails. For example: $ cp `luatools hacker.jpg` something Then, \starttext \externalfigure[something] \stoptext fails. However, if I set

Re: [NTG-context] Most portable font name

2012-05-18 Thread Philipp Gesang
are lowercases. There's also some fallback name construction going on. Anyhow, the biggest problem is with fonts that have the same names (but different files). I see. But even the filename can be treacherous: afair there is a times.ttf among the MS core fonts but it’s different from the one shipped

Re: [NTG-context] Most portable font name

2012-05-18 Thread Hans Hagen
. Spaces are ignored and names are lowercases. There's also some fallback name construction going on. Anyhow, the biggest problem is with fonts that have the same names (but different files). I see. But even the filename can be treacherous: afair there is a times.ttf among the MS core fonts

Re: [NTG-context] Most portable font name

2012-05-17 Thread Bill Meahan
It *appears* things like hyphens and underscores are also ignored in addition to ignoring spaces. Is that correct? When I do : [wwm@Linden]$ mtxrun --script fonts --list --info --all pattern=MyFont* and compare against some existing typescripts I see the filename in the typescript

Re: [NTG-context] Most portable font name

2012-05-17 Thread Hans Hagen
On 18-5-2012 00:16, Bill Meahan wrote: It *appears* things like hyphens and underscores are also ignored in addition to ignoring spaces. Is that correct? indeed typescript is something like: file:myfontname whereas the system filename is /path/to/font/My_Font-Name.otf indeed Hans

Re: [NTG-context] Insertion of a Document I.D.

2012-05-16 Thread Hans Hagen
On 16-5-2012 05:08, hwit...@gmail.com wrote: I want to generate a document i.d. from the .tex source filename and the current date and put it into the footer. This might be possible already, but I could find it by searching the wiki for filename and document it, or rather too much since

[NTG-context] Insertion of a Document I.D.

2012-05-15 Thread hwitloc
I want to generate a document i.d. from the .tex source filename and the current date and put it into the footer. This might be possible already, but I could find it by searching the wiki for filename and document it, or rather too much since filename is mainly used for command line parameters

Re: [NTG-context] Insertion of a Document I.D.

2012-05-15 Thread Rogers, Michael K
\jobname yields the filename (in my last year's TeX Live ConTeXt). On May 15, 2012, at 11:08 PM, hwit...@gmail.com wrote: I want to generate a document i.d. from the .tex source filename and the current date and put it into the footer. This might be possible already, but I could find

Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-10 Thread Hans Hagen
On 10-5-2012 02:25, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle of the document, like in the LaTeX example: Sure, when

Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-10 Thread Mojca Miklavec
On Thu, May 10, 2012 at 10:02 AM, Hans Hagen wrote: On 10-5-2012 02:25, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle

Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-10 Thread Hans Hagen
On 10-5-2012 10:25, Mojca Miklavec wrote: On Thu, May 10, 2012 at 10:02 AM, Hans Hagen wrote: On 10-5-2012 02:25, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript

[NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-09 Thread Mojca Miklavec
Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle of the document, like in the LaTeX example: running text ... \setmathfont[Scale=0.86,StylisticSet=4

Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-09 Thread Mojca Miklavec
On Thu, May 10, 2012 at 2:25 AM, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle of the document, like in the LaTeX example

Re: [NTG-context] Font for MetaPost graphics

2012-05-08 Thread Marco
)}} \egroup \placeMPgraphic \m... \meta_start_code_instance ..._process_graphic {#2} \meta_end_graphic_group l.11 \stopMPcode ? x system files start used files used files 1: filename=g | filetype=tex | foundname=g.tex

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-06 Thread Xenia
/opentype/public/lm/lmmono12-regular.otf/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=linewrap | filetype=tex | foundname=linewrap.tex | usedmethod=filesystem used files 2: filename=cont-new.mkiv

Re: [NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Aditya Mahajan
One cannot be sure if a file exists. When no file can be %D found, the \type{\input} primitive gives an error message %D and switches to interactive mode. The macro \type{\readfile} %D takes care of non||existing files. This macro has two faces. %D %D \starttyping %D \ReadFile {filename} %D

Re: [NTG-context] \inputif(file)exist(s)

2012-05-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
care of non||existing files. This macro has two faces. %D %D \starttyping %D \ReadFile {filename} %D \readfile {filename} {before loading} {not found} %D \stoptyping %D %D Many \TEX\ implementations have laid out some strategy for %D locating files. This can lead to unexpected results, %D especially

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=code | filetype=tex | foundname=code.tex | usedmethod=filesystem used files 2: filename=cont-new.mkiv | filetype=tex | foundname=/home/context/tex/texmf-context/tex

Re: [NTG-context] missing pagebreak using vim-module for typing

2012-05-01 Thread Xenia
/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 )/home/context/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf system files start used files used files 1: filename=linewrap

Re: [NTG-context] install older beta

2012-04-25 Thread luigi scarso
of the resulting archive: tar or zip. If this option is not given, and the output file is specified, the format is inferred from the filename if possible (e.g. writing to foo.zip makes the output to be in the zip format). Otherwise the output format is tar. -l, --list Show all

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Marco
no idea what has changed since and if it still works. \startluacode userdata = userdata or { } function userdata.wordcount(listname) filename = file.addsuffix(tex.jobname,words) if lfs.isfile(filename) then local w = dofile(filename) if w

Re: [NTG-context] Including font with document source

2012-04-18 Thread Mojca Miklavec
or a serious limitation if some project simply declares in which directory ConTeXt has to look for fonts and specifies the font with filename. Mojca ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Including font with document source

2012-04-18 Thread John Devereux
messy) For me it doesn't sound like a problem or a serious limitation if some project simply declares in which directory ConTeXt has to look for fonts and specifies the font with filename. Yes I think this would be very useful too. -- John Devereux

Re: [NTG-context] How to process a project residing in another directory

2012-04-16 Thread Aditya Mahajan
that mtxrun --generate is not needed). For example, one can do the following: TEXMFHOME=path-to-project-files context filename But this overwrites the default value of TEXMFHOME. If the mtxrun --generate step were not needed, one could do the same with TEXMFPROJECT tree. Aditya

Re: [NTG-context] How to process a project residing in another directory

2012-04-16 Thread Aditya Mahajan
[\env{usepath}]}} and then call you tex file using context --arguments=usepath=/path/to/set filename Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Aditya Mahajan
pdf into the above format, you can use the following (pseudo code, untested, and might have typos) get number of pages in the pdf \getfiguredimensions[filename] \edef\NOfPages{\noffigurepages} insert the first page \startTEXpage[height=(A5 height}, width=(A5 width)] \externalfigure

Re: [NTG-context] doublesided PDF - first and last page singlesided

2012-04-15 Thread Aditya Mahajan
the filename from command line and does all the processing at the lua level. See mtx-context-*.lua in $TEXMF/tex/context/base/ for examples. Aditya ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) ) system files start used files used files 1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source

Re: [NTG-context] Dump table of contents

2012-04-09 Thread Kip Warner
-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) ) system files start used files used files 1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source/Makeup/Table_of_Contents_Standalone_Product.tex | usedmethod=direct used files

[NTG-context] xml tree extension?

2012-03-14 Thread Meer, H. van der
Is it possible to have the following order of actions? root file name=filename1 file name=filename2 .. /root The file contains an xml-tree starting at fileroot.. At the moment I am processing the files with \xmlprocessfile{fileroot}{filename}{}, but this generate separate node-lists

Re: [NTG-context] Preparing the print: ICC-Profiles, Fogra, (in german untranslatable)

2012-02-24 Thread Peter Rolf
understands the german answer. You can try to edit the 'id' entry of 'ISO Coated v2 (ECI)' in ?/texmf-context/colors/icc/context/colorprofiles.xml (just replace 'FOGRA39' with 'Fogra 39') ... profile filenameISOcoated_v2_eci.icc/filename colorspaceCMYK/colorspace classprtr

[NTG-context] A bit more help with referencing local filenames

2012-02-15 Thread Ian Lawrence
with a macro, ending with: [url(\swflocation#1/#1.swf)]} and a piece in the actual file that gives the filename to be retrieved \PlaceSWF{ModelACircuit} What I'd like to do is be able to alter swfURLPath to designate a local folder for retrieving the swf and launching it in a browser Same

Re: [NTG-context] A bit more help with referencing local filenames

2012-02-15 Thread Ian Lawrence
with a macro, ending with:  [url(\swflocation#1/#1.swf)]} and a piece in the actual file that gives the filename to be retrieved \PlaceSWF{ModelACircuit} What I'd like to do is be able to alter swfURLPath to designate a local folder for retrieving  the swf and launching it in a browser Same

Re: [NTG-context] Cross-document referencing; How to?!

2012-02-07 Thread Verhaag, G.C.H.M.
-mag-15.htm) in relation to this topic it was time to do some tests! Well, I stumbled on the very first basic problem! Using the \useexternalfile[logical_name][filename] resulted in an Undefined control sequence ... error message!? Anybody any suggestions about the syntax of this command

Re: [NTG-context] Cross-document referencing; How to?!

2012-02-04 Thread Verhaag, G.C.H.M.
to do some tests! Well, I stumbled on the very first basic problem! Using the \useexternalfile[logical_name][filename] resulted in an Undefined control sequence ... error message!? Anybody any suggestions about the syntax of this command?! The description in the reference part of the ConTeXt

Re: [NTG-context] Cross-document referencing; How to?!

2012-02-02 Thread Verhaag, G.C.H.M.
on the very first basic problem! Using the \useexternalfile[logical_name][filename] resulted in an Undefined control sequence ... error message!? Anybody any suggestions about the syntax of this command?! The description in the reference part of the ConTeXt Garden wiki site is not of much help to me

[NTG-context] Cross-document referencing; How to?!

2012-02-01 Thread Verhaag, G.C.H.M.
Hi, After going through the suggested reading This Way, sep 2011 (http://pragma-ade.com/show-mag-15.htm) in relation to this topic it was time to do some tests! Well, I stumbled on the very first basic problem! Using the \useexternalfile[logical_name][filename] resulted in an Undefined

Re: [NTG-context] Cross-document referencing; How to?!

2012-02-01 Thread Wolfgang Schuster
the \useexternalfile[logical_name][filename] resulted in an Undefined control sequence ... error message!? Anybody any suggestions about the syntax of this command?! The description in the reference part of the ConTeXt Garden wiki site is not of much help to me either, sorry! I think this is a typo

Re: [NTG-context] why no smallcaps?

2012-01-25 Thread Wolfgang Schuster
| mapping : timesnewromanpsmt mtx-fonts | fontname: timesnewromanpsmt mtx-fonts | fullname: timesnewroman mtx-fonts | filename: /Library/Fonts/Microsoft/Times New Roman.ttf mtx-fonts | family : timesnewroman mtx-fonts | weight : normal mtx-fonts | style : normal mtx

Re: [NTG-context] include file in xml processing

2012-01-20 Thread Meer, H. van der
this but it doesn't work: texinclude file=filename/ tex \useMPgraphic{xyz}{param=285} /tex The tex node is just a wrapper around \xmlcontext{#1}{.} Someone who can put me on the right track? Hans van der Meer On 19 jan. 2012, at 21:38, Hans van der Meer wrote: I have the following setup for use of ConTeXt

Re: [NTG-context] Citations fail when components and bodymatter are used

2012-01-19 Thread Marco
transform the \jobname.bbl into a \jobname.bbl.bib file, which does not happen for some reason. I didn't find anything interesting in the log file, except: snip report.log used files 48: filename=report.bbl | foundname=report.bbl | usedmethod=direct /snip Regards Marco

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
] \unprotect %D This module is the first sub-module that is loaded by %D \filename{simpleslides}. This sets up the style macros for the module. We %D choose a rather plain style as the default; separate style sub-modules %D redefine some internal macros to achieve fancier effects. %D We start

<    3   4   5   6   7   8   9   10   11   12   >