Re: [NTG-context] Epub woes

2012-11-15 Thread Andy Thomas
Supposedly. I did not try it yet. http://support.apple.com/kb/HT5321 Andy On Nov 16, 2012, at 8:13 AM, luigi scarso wrote: > > > > On Fri, Nov 16, 2012 at 7:49 AM, Andy Thomas wrote: > > > > I just started working on the epub output of my lecture notes again

Re: [NTG-context] Epub woes

2012-11-15 Thread Andy Thomas
Please try the following example: -- start code -- \setupbackend[export=yes,xhtml=test_00.xhtml] \mainlanguage[de] \language[de] \setupexport [title={A nice book}, author={Andy Tom}, firstpage={huhn.jpg}, ] \starttext Hello world! \stoptext -- end code -- The firstpage

Re: [NTG-context] images and text stacked in the margin

2012-11-12 Thread Andy Thomas
On Nov 12, 2012, at 3:10 PM, Marco Patzer wrote: > You need to put the \placemargintext at the beginning of a > paragraph, otherwise it will cause an unwanted break. :( Unfortunately, this is not an option. The citations have to be referenced at the end of particular sentences. The first link (

[NTG-context] images and text stacked in the margin

2012-11-12 Thread Andy Thomas
postponing does avoid it. Can I 'gobble' it somehow? Does anyone have an idea, how to make it work for images as well as text combined? Andy ___ If your question is of interest to others as well, ple

Re: [NTG-context] How to put a \placefigure with no caption?

2012-11-11 Thread Andy Thomas
Also, I cannot figure out the equivalent new syntax. I tried 'caption=none' and 'location=none'. But even if the latter one would work, having a caption (or not) and placing the figure on the page are two different things? Andy ___

Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas
On Nov 11, 2012, at 9:23 PM, Marco Patzer wrote: > 2012-11-11 Andy Thomas: > >> That was my first choice as well. But it does not play nice with >> margintext. > > The both use two different mechanisms AFAIK, and there's no or not > much communication be

Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas
-11 Andy Thomas: > >> Is there a way to avoid that and have the figure always placed in >> the margin? > > \startplacefigure [title=Foo, location=margin] > \stopplacefigure > > > Marco > > __

[NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas
here a way to avoid that and have the figure always placed in the margin? Thanks, Andy -- code starts --- \useMPlibrary[dum] % To get dummy figures \definepapersize[wissenschaft][width=170mm, height=240mm] \setuppapersize [wissenschaft] \setuplayout[topspace=40pt,

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

2012-06-10 Thread Andy Thomas
can read it just fine. > >> Calibre is already happy with it and shows it just fine. Please note that >> some ebook readers (e.g. apple devices, calibre) have a nasty caching >> mechanism. If you want to see the new changes, I found that it is best to >> delete th

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

2012-06-09 Thread Andy Thomas
On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote: > On 8-6-2012 23:28, Andy Thomas wrote: >> Thank you for the suggestions. I will try to implement it, but might need >> until Sunday. > > - I've added some keys to \setupexport: > > author > title > subti

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

2012-06-08 Thread Andy Thomas
and finally a html page containing the cover is created. This part is straightforward. It would be great, if someone could come up with an elegant idea how to add the cover image file that is compatible with the context style. Andy On Jun 7, 2012, at 2:48 PM, Henning Hraban Ramm wrote: >

[NTG-context] first-setup.sh

2012-06-08 Thread Andy Thomas
Hi all, after a lot of confusion I discovered that first-setup.sh is not Andy-proof. If there is a broken internet connection, the update lua process works and pushes the rsync error message very quickly out of the terminal. I propose to change the rsync line to rsync -rlptv rsync

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

2012-06-06 Thread Andy Thomas
Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file with information from the context source: On Jun 5, 2012, at 9:09 PM, Andy Thomas wrote: > Hi all, > > in my attempts to validate epub expor

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

2012-06-05 Thread Andy Thomas
is necessary, but this seams to be more consistent Andy diff back-exp_old.lua back-exp.lua 2370a2371 > language = languagenames[tex.count.mainlanguagenumber], diff mtx-epub_old.lua mtx-epub.lua 46c46 < --- > 50c50 < --- > media-type="appli

[NTG-context] mtx-epub.lua

2012-06-04 Thread Andy Thomas
t does: sh: abcxyz: command not found 32512 This breaks the if conditional which becomes true, although there is no abcxyz command. If there are if statements such as this one in other places, they would not work as intended either. Andy 274,279c274,281 < if os.e

[NTG-context] setupcaptions stopper and separator

2012-06-04 Thread Andy Thomas
right after the figure number and used in references as well (which is different from suffix). Is that correct? Andy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] ebook from project: observations/oddities

2012-06-04 Thread Andy Thomas
this help a little, Andy On 04.06.2012, at 12:24, Henning Hraban Ramm wrote: > (Yesterday’s beta in suite=minimals, OSX-Intel) > > With > > \setupbackend[export=example.xml,xhtml=example.xhtml,css=example.css] > > in my project’s environment, > I get both "examp

Re: [NTG-context] ebook from project: hyphenation lost

2012-06-04 Thread Andy Thomas
have to take care of the actual hyphenation? Andy On 04.06.2012, at 10:55, Henning Hraban Ramm wrote: > Ahoi, > > I never managed to get a proper eBook from a project, the content was mostly > missing, a whole while even \setupbackend[export=yes] led to an error. > At least that

Re: [NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
Thank you both, works great now. Andy Am 03.06.2012 um 20:56 schrieb Wolfgang Schuster : > > Am 03.06.2012 um 20:44 schrieb Andy Thomas: > >> Thank you. Can I have the bottom of the caption in line with the bottom of >> the figure instead of centered? > > \se

Re: [NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
Thank you. Can I have the bottom of the caption in line with the bottom of the figure instead of centered? Andy On Jun 3, 2012, at 7:48 PM, Marco wrote: > On 2012-06-03 Andy Thomas wrote: > >> I want to have a small figure in the text with an adjacent figure >> caption.

[NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
to look like. \useMPlibrary[dum] \starttext \input tufte \startplacefigure[title={A rectangle with a caption.}] \externalfigure[dummy][width=0.5\textwidth] \stopplacefigure \input knuth \stoptext Andy https://dl.dropbox.com/u/9089117/small_figure_context.png

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Andy Thomas
Hello, is this what you are looking for? \starttext rwx\,-\,-\,-\,-\,-\,- \stoptext I tried the small space macro from LaTeX and it works here, too, so i suspect it is more a TeX macro. Andy On 31.05.2012, at 11:16, Jan Pohanka wrote: > Hello, > > describing linux file permission

Re: [NTG-context] bibtex sample file and possible bibtex bug

2012-05-30 Thread Andy Thomas
. Thanks, Andy On 27.05.2012, at 20:39, Andy Thomas wrote: > Hello, > > while looking to include a citation in a sample document, I was wondering if > the 'sample.bib' in 'standalone/tex/texmf-context/tex/context/bib/sample.bib' > can be used the same way as e

Re: [NTG-context] A bibliography difficulty

2012-05-29 Thread Andy Thomas
Hello, I am not sure if I understand you correctly, but do you directly edit a bbl file? Normally, a .bib file is made by the user and ConTeXt (and LaTeX as well) generate the .bbl file for you. Your example works for me using the following code \setupbibtex[database={library}] \setuppublica

Re: [NTG-context] Spacing for {\cal P} in XITS

2012-05-29 Thread Andy Thomas
/ to ~/context/tex/texmf/fonts/opentype/public/xits/) and deleted the cache. But that did not help, the context standalone still produces the 'too-close P'. I also tried the newest font files from yesterday, but still no luck. Hope that help finding the bug. Andy P.S. Is there

Re: [NTG-context] pushing margintext up

2012-05-29 Thread Andy Thomas
On 28.05.2012, at 19:02, Hans Hagen wrote: > On 28-5-2012 18:44, Philipp Gesang wrote: >> Hi Andy, >> >> On 2012-05-27 17:57, Andy Thomas wrote: >>> Hello, >>> >>> could someone point out to me, where in the standalone >>> installatio

[NTG-context] bibtex sample file and possible bibtex bug

2012-05-27 Thread Andy Thomas
on line \the\inputlineno' instead of the actual number. Andy ___ 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/lis

Re: [NTG-context] pushing margintext up

2012-05-27 Thread Andy Thomas
Hello, could someone point out to me, where in the standalone installation the 'margin float placement' algorithm lives. Thanks, Andy On May 23, 2012, at 4:34 PM, Andy Thomas wrote: > Hello all, > > is there a way for margintext to 'respect' the lower borde

Re: [NTG-context] Is there some easy way to do tufte-style side note?

2012-05-27 Thread Andy Thomas
Hello Jano, On May 26, 2012, at 2:12 PM, Jano Kula wrote: > Hello Andy, > > On 05/23/2012 04:09 PM, Andy Thomas wrote: >> I finished a first version of a tufte style sample document that is based on >> a predecessor in another macro language. The auto alignment of the ma

[NTG-context] pushing margintext up

2012-05-23 Thread Andy Thomas
flushouter] \starttext \showframe \input tufte \input tufte \input tufte\margintext{This is too low, if there are many words in this note.} \stoptext Kind of hard to explain, I hope the example makes everything cle

Re: [NTG-context] Is there some easy way to do tufte-style side note?

2012-05-23 Thread Andy Thomas
&recordOId=2303165&fileOId=2303168 for a full sample document. Simpler example code and the module is on github: https://github.com/andythomas/TeX-sidenotes/tree/master/context Cheers, Andy Am 2012-04-22 um 18:30 schrieb Yue Wang: > There are many styles available on the context-

Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
This works. Thank you for help. Andy On May 22, 2012, at 7:44 PM, Wolfgang Schuster wrote: > > Am 22.05.2012 um 19:29 schrieb Andy Thomas: > >> It only works without my page layout. Did I make a mistake using >> \setuplayout? With \showframe it looks fine though

Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
It only works without my page layout. Did I make a mistake using \setuplayout? With \showframe it looks fine though. Andy On May 22, 2012, at 7:04 PM, Wolfgang Schuster wrote: > > Am 22.05.2012 um 18:11 schrieb Andy Thomas: > >> Hello, >> >> I am trying to change

Re: [NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
Protrude in the margin, total width 400pt. Andy On May 22, 2012, at 6:52 PM, Marco wrote: > On 2012-05-22 Andy Thomas wrote: > >> But for doublesided documents the text on verso pages is >> incorrectly aligned. > > How should the paragraphs look like on even pages?

[NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
\input tufte \stopfullwidth \input knuth \startfullwidth \input tufte \stopfullwidth \input tufte \stoptext My questions are: Is there no more \startlocal, how to locally adjust the layout on a page and how to make the example work? Thanks, Andy

Re: [NTG-context] stack marginals: text and figures

2012-05-22 Thread Andy Thomas
> > I made a small example to show the behavior: > > > > […] > > > > This is a sentence.\margintext{This is a note in the margin.} Another > > sentence.\margintext{Another note.} \placefigure[margin][fig:one]{This is a > > small figure.}{\externalfigure[test][width=100pt]} > > \placefigure[m

[NTG-context] stack marginals: text and figures

2012-05-21 Thread Andy Thomas
lacefigure...}}, but had no success. Is there a way to achieve a 'stacking' of all marginals? Andy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-c

Re: [NTG-context] math symbol \doteq cause error in mk||

2009-04-21 Thread Andy Wong
No, after adding the \relax, same problem here. Regards, Andy On Tue, Apr 21, 2009 at 8:40 AM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 21.04.2009 um 15:35 schrieb Andy Wong: > > Hello, >> I use the context minimal with updating to lastest bet

[NTG-context] math symbol \doteq cause error in mk||

2009-04-21 Thread Andy Wong
the definition in math-pln.mkiv, I changed it to \zeropoint and texexec run successfully. Regards, Andy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
It may be windows has problem to handle the space in quoted parameters? write those commands to a batch file then call by mtxrun works right. May be it is a solution. :) Andy On Fri, Apr 10, 2009 at 3:32 PM, Aditya Mahajan wrote: > On Fri, 10 Apr 2009, Andy Wong wrote: > > Yes, i

Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Andy Wong
Thanks. Andy On Fri, Apr 10, 2009 at 3:28 PM, Aditya Mahajan wrote: > On Fri, 10 Apr 2009, Andy Wong wrote: > > It did not work, either. Same problem. >> > > Then, for the moment use your workaround of having a batch file. I will try > to get access to a windows envir

Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Andy Wong
It did not work, either. Same problem. Andy On Fri, Apr 10, 2009 at 3:13 PM, Aditya Mahajan wrote: > On Thu, 9 Apr 2009, Andy Wong wrote: > > Hello, >> >> I have tried the example using the vim mode to typeset some c codes. When >> I >> run the sample file, con

Re: [NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
with space in -c parameter, vim can not correct executed. manually execute the vim command: vim -u NONE -c "set tabstop=8" "test.tex" vim open the "test.tex" only to edit as expected. Andy On Fri, Apr 10, 2009 at 2:49 PM, Aditya Mahajan wrote: > On F

Re: [NTG-context] mtxrun --noquotes on windows

2009-04-10 Thread Andy Wong
mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" test.tex" there are no spurious " in mtxrun output. However, both will make vim open a new file named "tabset=8" and the test.tex to be edited. That is the problem. I guess under linux this command should ope

Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Andy Wong
line 0: let line 0: source Error detected while processing command line: E471: Argument required line 0: wqa > If this does not work, does replacing bin:vim with bin:gvim work? No. Andy ___

Re: [NTG-context] t-vim failed under windows

2009-04-10 Thread Andy
uot;set tabstop=8" -c "syntax on" -c "set syntax=c" -c "let contextstartline=1" -c "let contextstopline=0" -c "source c:/context/tex/texmf-context/tex/context/third/vim/2context.vim" %* then call mtxrun --verbose --noquotes bin:vimcmd -c "wqa

Re: [NTG-context] t-vim failed under windows

2009-04-09 Thread Andy Wong
The same problem. It seems the \shellescapedquote generated to the wrong position. So vim complains the -c parameters is wrong. Andy. On Thu, Apr 9, 2009 at 4:22 PM, Aditya Mahajan wrote: > On Thu, 9 Apr 2009, Andy Wong wrote: > > Hello, >> >> I have tried the example

[NTG-context] t-vim failed under windows

2009-04-09 Thread Andy Wong
x/texmf-context/tex/context/third/vim/2context.vim -c wqa vimdemo-vimsyntax.tmp " I check the t-vim.tex, the definition of the vim command is correct. I don't know why the \shellescapedquote is not properly resolved. Any help? thanks. Andy

Re: [NTG-context] xhtml form to pdf form?

2009-03-27 Thread Andy Wong
Thanks. The document is helpful. Now the textfield, radio button, etc. can be translate to fields. But I am not very clear how to collect those fields into a form and assign the form action. I saw the \setupforms command but didn't find any examples to show how to use it. Any hints? Andy.

[NTG-context] xhtml form to pdf form?

2009-03-26 Thread Andy
? Thanks. Andy. ___ 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