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] 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 andytho...@web.de wrote: I just started working on the epub output of my lecture notes again, since there were

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

2012-11-12 Thread Andy Thomas
Dear list, I am still struggling to achieve the page layout/look that I am trying to get. For an image of the desired page spread please look here: https://dl.dropbox.com/u/9089117/tufte-spread.png The design is using the ample margin to place text (sidenotes), figures (images) and tables in

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] margintext and placefigure

2012-11-11 Thread Andy Thomas
Dear all. I am having some trouble with figure placement in the margin. If you use the following code, please try to comment out first one and then both '\input knuth'. Somehow, the figure is not placed in the margin, but the center of the page, if a page breaks occurs close by. Is there a way

Re: [NTG-context] margintext and placefigure

2012-11-11 Thread Andy Thomas
That was my first choice as well. But it does not play nice with margintext. Try putting \margintext{bla} directly after the chapter. stack=continue is somehow ignored. Also, the figure is moved all the way up, which is strange. On Nov 11, 2012, at 8:52 PM, Marco Patzer wrote: 2012-11-11 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 between them. Mixing both leads to overprinted

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

2012-11-11 Thread Andy Thomas
Yes. \placefigure is the old syntax. \start…\stopplacefigure the new one. The new one uses a the key=value syntax also present in other MkIV commands. Compare: \startplacefigure [title=Lorem, reference=fig:lorem] … \stopplacefigure \startchapter [title=Lorem,

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

2012-06-10 Thread Andy Thomas
On Jun 11, 2012, at 12:21 AM, Hans Hagen wrote: The validator likes it, next is the hard part: generating a valid xhtml. Is the xhtml generator only for the epub, i.e. can it be changed or is another output file just for the epub appropriate? the only issue is that css has no method for

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 subtitle firstpage (also new key in mult) lastpage

[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

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

2012-06-08 Thread Andy Thomas
2012-06-07 um 00:00 schrieb 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: Since I need ePub for my current project (even if th eprint version

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 export from my context

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

2012-06-05 Thread Andy Thomas
Hi all, in my attempts to validate epub export from my context source, I made the following changes to back-up.lua and mtx-epub.lua 1) the actual context language is put in the epub 2) changed the OPS directory to OEBPS. The 2.0.1 Standard does not actually say that is has to have that name,

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

2012-06-04 Thread Andy Thomas
Hello, I followed Marco's description on tex.sx with quite good results. http://tex.stackexchange.com/q/43052/8631 He explicitly states: Hyphenation is also present. ConTeXt inserts soft hyphen (0x00AD) characters where hyphenation is possible, which enables the browser to justify the

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

2012-06-04 Thread Andy Thomas
I might not be able to help you with an automated output using context, but I can recommend a very good book on e-book creation. Elizabeth Castro (ISBN 978-0321734686) discusses a sample e-book line by line of the source code, how to create it, validate it (http://code.google.com/p/epubcheck/)

[NTG-context] setupcaptions stopper and separator

2012-06-04 Thread Andy Thomas
Hi all, while trying to figure out all the functions that setupcaptions has, I stumbled trying to make stopper and separator work. MnWE: \useMPlibrary[dum] \starttext \section{One} \setupcaptions [figure] [way=bysection,prefixsegments=section,separator={A},stopper={B},suffix={C}]

[NTG-context] mtx-epub.lua

2012-06-04 Thread Andy Thomas
Hello all, while working on my ebook, I found the following issues in mtx-epub.lua. Once a successful run is done, there is no need to try the other zippers. It also gives error messages, although everything is already done. Fix is attached. Then, I got confused about the error messages

[NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
Hello all, I am trying to convert a document with a lot of small figures in the margin into a more kindle friendly format. In order to do that, I want to have a small figure in the text with an adjacent figure caption. How can I achieve that? I attached an example and a link how it is supposed

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 andytho...@web.de wrote: I want to have a small figure in the text with an adjacent figure caption. How can I

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 schuster.wolfg...@googlemail.com: 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

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 permissions I would

Re: [NTG-context] A bibliography difficulty

2012-05-30 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}]

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.g. '\input tufte', but I could not make

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 installation the 'margin float placement' algorithm lives. it depends: Floats: strc

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

2012-05-29 Thread Andy Thomas
Hello, it looks off on my computer (Mac 10.6 with preview and acrobat) and with the context-standalone (from 1 hour ago). However, it does work with TL2011 (not 12). Then, I copied (overwrote) the fonts from TL into the standalone (from

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 marginals has to be improved

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 border of the page and push

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

2012-05-27 Thread Andy Thomas
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.g. '\input tufte', but I could not make it work. example document:

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

2012-05-23 Thread Andy Thomas
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 marginals has to be improved, but the rest looks already quite decent. Please see:

[NTG-context] pushing margintext up

2012-05-23 Thread Andy Thomas
Hello all, is there a way for margintext to 'respect' the lower border of the page and push the margintext up, pushing other margintexts upwards while doing so? example: \definepapersize[wissenschaft][width=170mm,height=240mm] \setuppapersize [wissenschaft] \setuplayout [topspace=40pt,

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]}

[NTG-context] doublesided wider paragraphs

2012-05-22 Thread Andy Thomas
Hello, I am trying to change the width of a paragraph on a page. I found \defineparagraphs and \setupparagraphs and it almost works. But for doublesided documents the text on verso pages is incorrectly aligned. I tried [location=inner], but the macros do not seem to be aware of that. I also

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 andytho...@web.de wrote: But for doublesided documents the text on verso pages is incorrectly aligned. How should the paragraphs look like on even pages? As wide

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 the width of a paragraph on a page

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. You’re setting leftmargin to 0pt

[NTG-context] stack marginals: text and figures

2012-05-21 Thread Andy Thomas
Dear ConTeXt group, I am trying to stack text and figures in the margin. After getting some help, I am able to setup the text just fine, the notes do not overlap. I am also able to stack figures, they also do not overlap. But figures and text does not 'know of each other'. They do overlap. I