Re: [NTG-context] Compiling to EPUB

2014-01-16 Thread Jacob Peck


On 1/16/2014 2:41 PM, Marco Patzer wrote:


According to mtx-epub.lua “zip” or “7z” are used, whichever is
available. Maybe it makes sense to add “7zip” as well if the Windows
binary is really called “7zip” instead of “7z”.
It's 7z.exe on my machine, but it's not in PATH unless someone tells it 
to be... perhaps doing that would fix OP's problem?


--Jake

___
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] \startTEXpage and alternative=doublesided woes...

2013-06-21 Thread Jacob Peck

Hello all,

I'm trying to get two pages from a PDF inserted into a document with a 
different paper size (6x9) which happens to be doublesided...  I want 
the inserted pages to retain their original size (letter), and to be 
centered as they are in the original document, not relocated due to the 
pagelayout set up by doublesided.


When I use

\startTEXpage
\externalfigure...
\stopTEXpage

\startTEXpage
\externalfigure...
\stopTEXpage

I get an extra page inserted between the two that I'm including.

When I use

\setuppagesize[letter][letter]
\copypages[...][n=2]
\setuppagesize[draft][draft]

I get the desired results, aside from the margins... the pages are 
imported into the pagelayout as defined by doublesided.


Help?

Thanks,
--Jake
___
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] UWIN?

2013-06-14 Thread Jacob Peck

On 6/14/2013 6:58 AM, Bill Meahan wrote:

Hans wrote:


Just wondering: why are users using unix shells on windows for

running tex? does it have advantages?


Or is the availability of unix commands the main reason?

In no particular order:

The Unix utilities, richer scripting language, compatibility with
existing Unix systems one might need to deal with. Familiarity for
those of us who have spent many more years working with Unix than
Windows.

If you need/want a GUI interface, Windows is great and that's where
the applications are, for the most part.
If you need/want a command-line environment, Unix is much more
capable and powerful than the DOS world of the Windows command line.

Something like UWIN or Cygwin allows one to have both.

I have no familiarity at all with Macs since using the original Mac
Plus to publish a newsletter in the late 1980's so I'm not
slighting/disparaging Macs in any way. I won't comment on what I
don't know about.

[Bill Meahan]
Agreed completely.  That being said, I run the Windows ConTeXt 
standalone through cygwin, because it just works.


--Jake

___
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] UWIN?

2013-06-14 Thread Jacob Peck

On 6/14/2013 3:05 PM, Mojca Miklavec wrote:


Now that Jacob mentioned it: I didn't think of the fact that one might
not necessarily need special cygwin binaries to run ConTeXt in cygwin.
If a simple modification in first-setup.sh and setuptex can do the
job, feel free to suggest the change (platform detection).
My changes were simple - I used the setuptex file that came with 
standalone, and tweaked it ever so slightly.


https://gist.github.com/gatesphere/0afaf5c2c647430ff653

Save that as .setuptex in ~ (home directory) then add the line

source /home/PeckJ/.setuptex /cygdrive/c/context/tex

to .bashrc, and you should be good to go.  I did install 
(first-setup.bat) from a Windows shell, however, and that took a few 
tweaks because I'm behind a corporate firewall, but that's a different 
story all together.


Hope this helps,
--Jake
___
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] UWIN?

2013-06-14 Thread Jacob Peck

On 6/14/2013 4:14 PM, Mojca Miklavec wrote:

On Fri, Jun 14, 2013 at 9:13 PM, Jacob Peck wrote:

On 6/14/2013 3:05 PM, Mojca Miklavec wrote:

Now that Jacob mentioned it: I didn't think of the fact that one might
not necessarily need special cygwin binaries to run ConTeXt in cygwin.
If a simple modification in first-setup.sh and setuptex can do the
job, feel free to suggest the change (platform detection).

My changes were simple - I used the setuptex file that came with standalone,
and tweaked it ever so slightly.

https://gist.github.com/gatesphere/0afaf5c2c647430ff653

So basically all you did was replacing platform detection with
 platform=mswin
and commented out three lines of code that notify about the change?
(Did you just find those lines annoying or did they actually fail to
work?)

I just found them annoying - precisely because they worked :p

Just curious: what does
 uname -s
 uname -m
return on cygwin or what is the best way to detect windows in shell?
(I believe that should be easy enough.)

$ uname -s; uname -m; uname -o
CYGWIN_NT-5.1
i686
Cygwin

You could test if `uname -s` starts with CYGWIN, or if `uname -o` 
equals Cygwin... another way is to check $OSTYPE:


$ echo $OSTYPE
cygwin


Save that as .setuptex in ~ (home directory) then add the line

source /home/PeckJ/.setuptex /cygdrive/c/context/tex
to .bashrc, and you should be good to go.

In that case I would use
 export PATH=/cygdrive/c/context/tex/texm-mswin/bin:$PATH
instead, but of course it's your choice.
Is that all the script does?  I've never read it completely, just 
tweaked it until it worked.


Ah well, my setup works just fine :)

--Jake

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


___
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
___