[NTG-context] Feature Request: define colour in relation to existing colour

2013-08-20 Thread Thangalin
Hi, What would it take to extend \definecolor so that: \definecolor[ColourA][ColourB][t=0.5, a=1] defines a new colour (ColourB) based on an existing colour (ColourA)? I know that \definespotcolor[ColourA][ColourB][t=0.5, a=1] works, but it seems like \definecolor would also be a natural

[NTG-context] Feature Request: showframe debugging

2013-08-20 Thread Thangalin
Hi, \showframe [ labels=on, measurements=on, color=red, ] Would produce an image similar to the attached, but with the black lines drawn in the specified colour. Using labels=on would show the names of the items that can be changed with \setuplayout. Using measurements=on would show the

Re: [NTG-context] Feature Request: define colour in relation to existing colour

2013-08-21 Thread Thangalin
For context, here is the question on TeX.SE: http://tex.stackexchange.com/questions/129297/define-colour-transparency-in-relation-to-existing-colour I agree with Marco: Are you sure it's a good idea to add another colour definition mechanism? Then we have \definecolor \defineglobalcolor

[NTG-context] ConTeXt Guru for Project

2013-08-25 Thread Thangalin
Hi, folks. I'm looking for help migrating from LaTeX to ConTeXt. The following TeX.SE question shows the LaTeX architecture I've put together: http://tex.stackexchange.com/questions/127795/leveraging-a-dynamic-preamble-to-generate-multiple-output-formats I'm moving away from LaTeX to ConTeXt to

Re: [NTG-context] [***SPAM***] Continuous preview

2013-08-27 Thread Thangalin
When using the evince PDF reader on Linux, reloading the PDF is as simple as: context filename.tex -- Generate for the first time evince filename.pdf -- Open the reader in the background context filename.tex -- The evince process automatically refreshes with new content

[NTG-context] Image width in a two-column layout

2013-09-02 Thread Thangalin
It seems that there is a bug with \textwidth and \linewidth inside mixed columns. Minimum working example: % interface=en output=pdftex \definemixedcolumns[StyleColumns][ n=2, separator=rule, align=tolerant, before={\blank[big]},] \setupexternalfigures[ order={svg,pdf,png,jpg},

[NTG-context] Unexpected EPUB Output

2013-09-03 Thread Thangalin
Hi, I ran the following commands: - context t.tex - mtxrun --script epub --make t.specification This produced the following code: document xmlns:m=http://www.w3.org/1998/Math/MathML; date=Tue Sep 3 17:29:27 2013 xmlns:xhtml=http://www.w3.org/1999/xhtml; file=t context=2013.08.17 00:58

[NTG-context] EPUB XHTML Format

2013-09-03 Thread Thangalin
Hi, The attached t.tex file produces the attached t.xhtml file. I have looked at the following documents: - http://en.wikipedia.org/wiki/EPUB#Open_Publication_Structure_2.0.1 - http://en.wikipedia.org/wiki/DTBook - http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm -

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Thangalin
Hi. of course we could alternatively export all as div class=tag-subtag-... but i don't like that too much; html itself is not rich enough for our purpose What about giving developers the ability to change the destination element? For example: \setuplist[chapter][

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Thangalin
Hi, div class=section ... div class=... ... div /div i.e. only divs and spans I think that would be a more robust output format, technically, easier to adapt, and more readily conform to the strict XHTML tag subset. The other issue I encountered was this:

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Thangalin
Hi, handle XML+CSS well. However, most (all?) EPUB readers don't. So, the question is asking if instead ConTeXt could generate a XHTML Precisely. If you need both EPUB and PDF, start with a semantically rich XML vocabulary, e.g. DocBook. In this case you can relatively easy transfrom My

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi, The best reader imho is iBooks on the iPad, nothing else, from what I've seen, comes close. But that is one expensive eReader. :( We'll just have everybody in the world who has a Kindle, Kobo, or other reader exchange their existing hardware, and then purchase an iPad plus iBook. Problem

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi, never mind not being able to add the books to online marketplaces (such as Amazon) because, again, the output does not validate. I think the simplest thing to do would be to update the wiki and have a note that informs readers that while ConTeXt can be used to generate an EPUB, it is

Re: [NTG-context] EPUB XHTML Format

2013-09-07 Thread Thangalin
Hi, so, i'd never claim that context produces epub but it can be used in a workflow that involves epub as it outputs xml which can be transformed That's a distinction that either might not matter or sometimes is lost: http://tex.stackexchange.com/a/17642/2148

[NTG-context] ConTeXt Manual Errata

2013-09-18 Thread Thangalin
Hi, During a recent plane ride, I started to read the ConTeXt manual to get a better understanding: http://www.ctex.org/documents/context/cont-enp.pdf If anyone has plans to revise it, I have attached a file with corrections, specific comments, and general comments. I did not have the ConTeXt

[NTG-context] deeptextcommand and firstcharacter

2013-09-20 Thread Thangalin
Hi, The attached file does not compile in ConTeXt. However, if the \placeindex is substituted for \completeindex, then the document compiles. Any idea how to use a deeptextcommand and firstcharacter as shown in the attachment while also using the firstcharacter macro? Thank you. Kindest

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Hi, Most programming languages allow extraction of a character or substring from a string. For example, if I wanted to stylize the word Index: *I...* Index *...X* It would be handy to do something like: \bold{\getcharacter[1]{#!}}... #1 ...\bold{\getcharacter[\stringlength{#!}]} That is a

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Sorry, I missed a {#1}: \bold{\getcharacter[1]{#1}}... #1 ...\bold{\getcharacter[\ stringlength{#1}{#1}]} Best regards. ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Hi, Wolfgang. I tried dropping in the Lua code, but it does not extract the text: \define[1]\StyleChapter{% \StyleChapterFramed{% \framed[align=right, frame=off]{% \startoverlay \color[ColourSecondaryLightest]{% \cldcontext{string.sub(#1,0,1)} }

Re: [NTG-context] deeptextcommand and firstcharacter

2013-09-21 Thread Thangalin
Ah, I think this does it: \cldcontext{string.sub(#1,0,1)}% Automatically expands the macro. Nice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Confounding colour conundrums

2013-09-22 Thread Thangalin
Hi, In the attached example, I thought the word *Website* should be *orange*, but it is *blue*. If *color=blue* is removed (from \setupinteraction[state=start]), then the word *Website* is *dark green*, which is also unexpected, because the only place *dark green* occurs is in the setuplist for

Re: [NTG-context] Confounding colour conundrums

2013-09-22 Thread Thangalin
From http://www.mail-archive.com/ntg-context@ntg.nl/msg44867.html it appears that \setupinteraction affects the \setupurl command when no url is given. This was not obvious from the documentationhttp://wiki.contextgarden.net/Command/setupurl . It seems that assigning different colours for

Re: [NTG-context] Confounding colour conundrums

2013-09-22 Thread Thangalin
Hi, The trick does seem to be that a new macro is required. % External link colours \definecolor[steelblue][h=4682B4] \define[2]\href{% \begingroup \setupinteraction[ style=normal, color=steelblue, ]% \goto{#1}[url(#2)]% \endgroup% } See attached. Kindest regards.

[NTG-context] Mixedcolumns maximum height for vertical rule: bug?

2013-09-24 Thread Thangalin
Hi, The horizontal rule for the first page extends to the bottom of the page, but does not do so on the second page. How do you prevent the vertical rule from extending to the bottom of the page? \usemodule[ipsum] \setuplayout[ topspace=\zeropoint, height=fit, width=fit, % Allow text to be

[NTG-context] Repeat second-level registers within index

2013-09-24 Thread Thangalin
Hi, How do you prevent ConTeXt from hiding (collapsing?) duplicate level 2 index items? For example: \startitem 5 array \index{hedgehog+SECTION A}hedgehog \stopitem \startitem 7 army \index{herring+SECTION A}herring \stopitem \startitem 100

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Thangalin
Hi, I registered an account, but have not seen any confirmation. Kindest regards. On Thu, Sep 26, 2013 at 10:44 AM, Marco Patzer li...@homerow.info wrote: On 2013–09–21 Marco Patzer wrote: I did not have the ConTeXt manual source code on hand, so I could not directly modify it.

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Thangalin
+π from me. My preference would be BitBucket (slightly simpler than github and allows for free private repositories), but, either way, the result is the same: fewer steps to updating the manual. Moving away from svn to git is also a step in the right direction, IMO. One aspect of wikis that I

Re: [NTG-context] git or svn (was: ConTeXt Manual Errata)

2013-09-26 Thread Thangalin
That is an excellent summation, Mica. On Thu, Sep 26, 2013 at 2:56 PM, Mica Semrick paperdig...@gmail.com wrote: Where is the pain? What would be the benefit when moving to github? On the thread someone wanted to add something to the manual, but didn't have SVN access. The admin wasn't

Re: [NTG-context] Repeat second-level registers within index

2013-09-27 Thread Thangalin
Hi, I changed lines 695 in bin/context/tex/texmf-context/tex/context/base/strc-reg.lua to the above. I re-ran context against my test case and Philipp's example. Actual results: a foo 2 *aa 2 aaa 2 *bar 2 a foo 2 aa 2 Expected results: a foo 2 aa *foo 2 *aaa *foo 2 * bar 2

Re: [NTG-context] Repeat second-level registers within index

2013-09-27 Thread Thangalin
Thank you, Hans. The error still seems to be present. Out of curiosity, what does max 4 mean? Does it limit the index nesting levels? For my project, I require 5 nesting levels -- is that possible? Kind regards. strc-reg.lua Description: Binary data

Re: [NTG-context] Repeat second-level registers within index

2013-09-27 Thread Thangalin
Hi, I did not. I have since run *context --make* and the second-level registers are working. Thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] mtx-context - extraordinarily quiet mode

2013-09-28 Thread Thangalin
Hi, I ran the following: context --noconsole --batchmode --nonstopmode filename.tex This wrote information to the console: This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) \write18 enabled. Underfull \hbox (badness 2401) in paragraph at lines 464--464 ... lots more

Re: [NTG-context] mtx-context - extraordinarily quiet mode

2013-09-28 Thread Thangalin
Thank you, Aditya. I should have mentioned that I was thinking about it in terms of optimization. Sometimes when a program's debug/logging mode is disabled, the program executes faster. (In the old days just writing to standard out was enough to make a program grind to a crawl.) I could not find

[NTG-context] PDF Transparency and ConTeXt

2013-09-28 Thread Thangalin
Hi, I have written up a question on TeX.SE: http://tex.stackexchange.com/questions/135543/pdf-colour-space-and-context Aditya mentioned that the problem with transparencies is that it is likely a known bug with Adobe Acrobat Reader: I remember similar questions being asked in the past, and the

Re: [NTG-context] Repeat second-level registers within index

2013-09-29 Thread Thangalin
Thank you! Warm regards. On Sun, Sep 29, 2013 at 1:05 AM, Hans Hagen pra...@wxs.nl wrote: On 9/28/2013 12:27 AM, Thangalin wrote: Thank you, Hans. The error still seems to be present. Out of curiosity, what does max 4 mean? Does it limit the index nesting levels? indeed For my

Re: [NTG-context] PDF Transparency and ConTeXt

2013-09-29 Thread Thangalin
Thank you, Hans. The result looks amazing. Kindest regards. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Thangalin
Hi, Some feedback: - The introduction paragraph can be shortened. For example, tell the reader to try the subsequent examples using ConTeXt Live web page (as opposed to 'almost all of the examples in the series can be run online'). On any example that does not work, indicate such at the time. -

[NTG-context] Bug: Reloading Font

2013-10-10 Thread Thangalin
Hi, A font causes mtxrun to hang upon reloading. Replicate: mkdir $HOME/.fonts cd $HOME/.fonts wget http://whitemagicsoftware.com/Copperplate-ThirtyThreeBC.ttf export OSFONTDIR=$HOME/.fonts mtxrun --script fonts --reload Expected Results All the fonts in $HOME/.fonts and subdirectories are

[NTG-context] graphictext bug?

2013-10-10 Thread Thangalin
Hi, From the October 8, 2010 context mkiv MetaFun manual (section 8.6), the following example does not produce any output beyond the caption: \startuseMPgraphic{quotation} picture one ; one := image( graphictext \MPstring{inputtext} scaled 1.5 withdrawcolor .625blue

[NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show HEADING:THEMETITLESTYLE; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5 withcolor blue; \stopuseMPgraphic

Re: [NTG-context] graphictext bug?

2013-10-11 Thread Thangalin
Hi, I have pstoedit installed now (that should be emphasized in section 8.6). $ pstoedit pstoedit: version 3.60 / DLL interface 108 (built: Dec 3 2011 - release build - g++ 4.6.2 - 64-bit) : Copyright (C) 1993 - 2011 Wolfgang Glunz No output format specified (-f option) and format could not be

Re: [NTG-context] Bug: Reloading Font

2013-10-11 Thread Thangalin
Hi, The font does not render properly in Inkscape, yet does not cause Inkscape to hang. (That is, I can select and apply the font to text, but it is obviously not in the same family.) As Taco mentioned, the font file is corrupt.

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Thangalin
Hi, typeset using TeX. After it's typeset MP picks it up in a second run. That also explains why the spacing between words is correct (I didn't think MP could typeset text). Maintain a vector with the last two elements to check against. An interesting approach; I used a Boolean flag as per

Re: [NTG-context] Bug: Reloading Font

2013-10-11 Thread Thangalin
FYI, I didn't know that the font was corrupt. I have over 400 fonts on my machine, and had to reload to pick up the new ones. You'll find that having a large number of fonts will start to become a common situation as more fonts become public (e.g., Google's Free Web Fonts project). This increases

Re: [NTG-context] Bug: Reloading Font

2013-10-11 Thread Thangalin
Hi (Copperplate is going to be added soon.) Unfortunately, Context Keep in mind it was only Copperplate 33 BC. Also note that I could not find any version of Copperplate 33 BC online that had the same file size as my corrupt version. (I was trying to find the source of the corrupt copy.) Most

Re: [NTG-context] Bug: Reloading Font

2013-10-11 Thread Thangalin
Hi, sure, but fonts should be chosen with care .. and illegal ripoffs should be avoided (those cd's with hundreds of fonts, nowadays sites) See: https://github.com/w0ng/googlefontdirectory (quality of design / digitization, completeness of coverage, correctness of features ... much can be

Re: [NTG-context] graphictext bug?

2013-10-12 Thread Thangalin
Hi, it works with pstoedit 3.62 and ghostscript 9.06 on linux 64 bit and windows. I have Ubuntu 12.04.3 LTS. The 3.62 and 9.06 versions are only available through the standard release (13.x). I've read that 13.x has issues with Nvidia cards, so upgrading is not an option at this time.

Re: [NTG-context] graphictext bug?

2013-10-12 Thread Thangalin
The error log was created using: context t.tex error.log 21 Kindest regards. On Sat, Oct 12, 2013 at 10:52 AM, Marco Patzer li...@homerow.info wrote: On 2013–10–12 Thangalin wrote: The log does not contain any error messages. See attached. I didn't test it, but I vaguely have in mind

[NTG-context] Feature Request: Set Output Directory

2014-01-13 Thread Thangalin
Hi, Summary: If the --result parameter includes a path then ConTeXt should assume that that directory is writable thus read/write its temporary flies at that location instead of the current working directory (CWD). Consider the following three accounts: - ConTeXt installation account (e.g.,

[NTG-context] Include PDF Fails

2014-01-13 Thread Thangalin
Hi, I am trying to include a single test page in my document. The following code fails to set the PDF as the background layer for the cover page. I've tried several variations (http://wiki.contextgarden.net/Including_pages_from_PDF_documents), but nothing works. It seems to be a problem with this

[NTG-context] Change the default text colour for entire document

2014-01-21 Thread Thangalin
Hi, In ConTeXt to change the default text colour for the entire document, there are at least two settings that need to be configured: \setupcolors[textcolor=red] \setupinmargin[line=13,color=red,style=slanted,] The border colour for tables remains black: \setupcolors[textcolor=red]

Re: [NTG-context] Change the default text colour for entire document

2014-01-27 Thread Thangalin
Keith: that was a brilliantly clever idea. I will write up a wiki page on this if someone can tell me where *every independent occurrence of black* could possibly appear (e.g., margins, footnotes, page numbers, table borders, etc.) and how to set each to a different colour. Not having a single

[NTG-context] Rearrange Table of Contents section page numbers

2014-01-31 Thread Thangalin
Hi, I am trying to recreate the following ToC entries: http://i.stack.imgur.com/ig6LX.png The code on the wiki uses: \doifelse\currentlistentrylocation{\structureheadlocation{chapter}} {{\bfb\currentlistentrytitle}} { \currentlistentrytitle}\NC\NR However,

[NTG-context] \completecontent affects text height

2014-02-18 Thread Thangalin
Hi, First question: 1. Save http://pastebin.com/raw.php?i=8DQNCcvC as setup.tex 2. Save http://pastebin.com/raw.php?i=KgcxCxGB as garlic.tex 3. Run: context garlic.tex 4. View page 3 of the PDF ( http://i.imgur.com/VLwssnl.png ) 5. Edit garlic.tex. 6. Remove \completecontent 7. Run: context

Re: [NTG-context] \completecontent affects text height

2014-02-18 Thread Thangalin
Thank you Wolfgang! The header=high and mixed columns works perfectly. \define[1]\IngredientMeasure {\doifsomething{#1}{#1}} This didn't work. For example, 24 snail became 24snail because there is no measurement involved. I tried using { #!} (extra space), but it didn't produce the

Re: [NTG-context] Indenting after floating image

2014-02-18 Thread Thangalin
Hi Jan, A work-around: \setupexternalfigures[location=default] \setupindenting[yes,medium] \define[1]\PlaceFigure{ \startplacefigure[number=no, location={page}, title={}] \externalfigure[#1] \stopplacefigure \\ \vskip-1em } \starttext \input{ward} \PlaceFigure{cow} \input{ward}

[NTG-context] Disappearing Columnar Text

2014-02-19 Thread Thangalin
Hi, When using \startmixedcolumns[balance=yes,grid=strut], how would you put a 0.5em vertical space between a subtitle and a list of items? The following code gives a simple example: http://pastebin.com/raw.php?i=pT5tcXfc Uncommenting the following line hides the list items under Subtitle A:

Re: [NTG-context] Indenting after floating image

2014-02-19 Thread Thangalin
Ah! I was going to suggest that, but thought you wanted a solution that didn't involve manual adjustments... I also thought I tried adding \indentation to the PlaceFigure macro, but it didn't work (probably because of it being embedded inside another set of braces).

Re: [NTG-context] \doifemptyelse

2014-02-20 Thread Thangalin
Have you looked at: http://wiki.contextgarden.net/Headers_and_Footers#Marginal_headings_and_centered_headings ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Font affects columnar list layout

2014-02-20 Thread Thangalin
Hi, Been struggling with this issue: 1. Source test.tex: http://pastebin.com/raw.php?i=hPVmkATT 2. Chivo: https://www.google.com/fonts/specimen/Chivo 3. Gentium Basic: http://www.google.com/fonts/specimen/Gentium+Basic 4. Install fonts. 5. Run: context test.tex Looks fine. 1. Uncomment:

Re: [NTG-context] Colored cell background in Table

2014-02-21 Thread Thangalin
Hi Flavlen, See these threads: https://www.mail-archive.com/ntg-context@ntg.nl/msg51252.html http://www.ntg.nl/pipermail/ntg-context/2010/054614.html Looks like the wiki is out of date and the CL command has been deprecated. Hans wrote, ok, thanks for testing it ... I'm stripping that old code

Re: [NTG-context] Hanging punctuation misalignment in footnotes

2014-02-21 Thread Thangalin
Hi Jan, Do you have some test code you can share? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Font affects columnar list layout

2014-02-22 Thread Thangalin
I've posted the same question (with a bit more information on the fixes I've attempted) on SE: http://tex.stackexchange.com/questions/161711/context-font-change-shifts-column-content ___ If your question is of

[NTG-context] Remove external file name references

2014-02-24 Thread Thangalin
Hi, When external PDF graphics are included in a document (e.g., using externalfigure), the resulting PDF contains a line such as: /PTEX.FileName (/home/username/path/to/file.pdf) What ConTeXt command prevents external file names from being written to the PDF? I've tried: \pdfptexfilename=0

Re: [NTG-context] Remove external file name references

2014-02-24 Thread Thangalin
A patch from Phillip: https://gist.github.com/phi-gamma/9197525 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Remove external file name references

2014-02-24 Thread Thangalin
Hi, A flexible solution could be: \setupexternalfigures[ pdfptexfilename={customfilename.jpg}, ] To eliminate the filename altogether: \setupexternalfigures[ pdfptexfilename=, ] This looks like it could be extended to customize the other PTEX attributes, or be used to

[NTG-context] Update overwrites configuration

2014-02-24 Thread Thangalin
Hi, 1. Edit .../tex/texmf/web2c/texmfcnf.lua 2. Set TEXMFCACHE = /var/cache/context/texmf-cache 3. Run first-setup.sh to update ConTeXt. Expected Results TEXMFCACHE remains /var/cache/context/texmf-cache Actual Results TEXMFCACHE reverts to $SELFAUTOPARENT/texmf-cache If the values have been

Re: [NTG-context] Update overwrites configuration

2014-02-24 Thread Thangalin
http://wiki.contextgarden.net/Custom_Configuration Thank you, Mojca. I couldn't find an existing configuration wiki page that discussed the items in your email, Mojca. If configuring directories and variables exists on the wiki, please let me know where to find it and I'll merge the

[NTG-context] Wiki - Main Page

2014-02-25 Thread Thangalin
Hi, The link to Documentation of the source code on the front page of the ConTeXt Garden Wiki is broken: https://foundry.supelec.fr/gf/project/modules/ ___ If your question is of interest to others as well, please

[NTG-context] Feature Request: ToC page number alternative

2014-02-26 Thread Thangalin
Hi, The predefined alternative list setups (e.g., a, b, c...) provide various ways to format the ToC with the page number to the right of the list entry title. An alternative with the page number to the left of the list entry title would be useful. For example: \setupinteraction[state=start,]

Re: [NTG-context] Update overwrites configuration

2014-02-26 Thread Thangalin
Hi, http://wiki.contextgarden.net/Custom_Configuration is now merged with http://wiki.contextgarden.net/texmf.cnf. Please review, correct anything I might have missed, and then delete the texmf.cnf page (the new page is a bit more search-friendly as the words configure and directory are

Re: [NTG-context] Footnote mark gap

2014-02-27 Thread Thangalin
Try: \setupfootnotes[ textstyle={\hskip.05em}, ] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Strange behaviour with columnar itemized text

2014-02-27 Thread Thangalin
Hi, I encountered two issues where itemized text within columns behaves unexpectedly. There appear to be two issues, possibly related. I will provide the shorter example first, which produces overlapping text on the second page (http://i.imgur.com/zMW6yk4.png). Changing \blank[.2em] to

Re: [NTG-context] \starthanging and hangafter

2014-02-28 Thread Thangalin
Hi Alan, Please post your code. On Fri, Feb 28, 2014 at 6:54 AM, Alan Bowen bowenala...@gmail.com wrote: I am using using \starthanging…\stophanging to embed a small image in a paragraph in a footnote. Currently, I have a pattern like: xx xx

Re: [NTG-context] Strange behaviour with columnar itemized text

2014-02-28 Thread Thangalin
Hi, I don't know if it is related, but here's another instance of columnar content (in this case, a vertical rule) extending into the footer: http://tex.stackexchange.com/q/134750/2148 ___ If your question is of

Re: [NTG-context] \starthanging and hangafter

2014-03-02 Thread Thangalin
Hi Alan, From the archives: http://www.ntg.nl/pipermail/ntg-context/2006/015481.html The \hangsidefloat and \movesidefloat commands may prove useful. Once you have a simple working example, post it to this thread and I'll update the wiki.

Re: [NTG-context] Presentation template

2014-03-03 Thread Thangalin
Hi Fabrice, I'm not sure what you mean by your classes -- do you mean presentation material to help students? Here are some links to get you started: http://tex.stackexchange.com/questions/52841/where-to-find-the-source-code-to-the-context-manuals https://foundry.supelec.fr/projects/contextman/

Re: [NTG-context] What’s wrong with \nomarking{\crlf}?

2014-03-06 Thread Thangalin
Hi, From the docs: http://wiki.contextgarden.net/MkIV_Differences#Nomarking.2FSelect \nomarking is currently broken and will likely be removed from mkiv; use \select instead... ___ If your question is of interest to

[NTG-context] Bug: Columnar itemized text

2014-03-06 Thread Thangalin
Hi, I believe I have isolated the problem: \starttext balance \startmixedcolumns[balance=yes,] \dorecurse{8}{\input{ward}} \stopmixedcolumns %\page strut \startmixedcolumns[grid=strut,] \dorecurse{4}{\input{knuth}} \stopmixedcolumns \stoptext When balanced mixedcolumns

Re: [NTG-context] Bug: Columnar itemized text

2014-03-06 Thread Thangalin
Fixed. Thank you! ___ 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 :

[NTG-context] Customize register format

2014-03-09 Thread Thangalin
Hi, I am trying to reproduce the following register layout: http://i.imgur.com/qXSK2VM.png Entries include a section name, page number, author, and author URL; the entries are formatted fairly differently from a standard index. So far I have: \setupinteraction[state=start,]

Re: [NTG-context] struggling with section headers

2014-03-10 Thread Thangalin
Hi, Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. \usemodule[visual] % fakewords

Re: [NTG-context] Bugs in XML export (for ePub)

2014-03-11 Thread Thangalin
Hi Hraban, I tried to create ePubs using ConTeXt late last year (it was a driving factor for me to switch from LaTeX). In practice, ConTeXt cannot actually produce ePub content of any sufficient complexity that an ePub reader (such as Kindle) can read. I abandoned that development line a while

Re: [NTG-context] Bugs in XML export (for ePub)

2014-03-11 Thread Thangalin
Hi, Hraban. Here is the thread from last year for your reference: https://www.mail-archive.com/ntg-context@ntg.nl/msg71376.html ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] TLS and externalfigure

2014-03-29 Thread Thangalin
Hi, I have images hosted on a local web server using a self-signed certificate. For example: https://localhost/images/.../file.png When using ConTeXt, the image cannot be retrieved; a verified signed certificate works as expected. Using wget, self-signed certificates can be forced: wget

Re: [NTG-context] TLS and externalfigure

2014-03-30 Thread Thangalin
http://wiki.contextgarden.net/Using_Graphics#HTTPS Thank you, Hans. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Feature request: use rsvg-convert

2014-03-30 Thread Thangalin
Hi, Re: http://wiki.contextgarden.net/Using_Graphics#Image_Conversion I recommend using rsvg-convert instead of inkscape. For example: wget http://en.wikipedia.org/wiki/File:Inkscape_0.48.2_with_Red_Gallardo.svg -O car.svg time rsvg-convert --format pdf car.svg --output car-rsvg.pdf time

Re: [NTG-context] TLS and externalfigure

2014-03-30 Thread Thangalin
Hi, Adding --insecure works. I think the option should be present by default, which could save people time trying to understand what part of the system is preventing the images from being downloaded. (For example, for me I first checked caching, directory permissions, web server configuration,

[NTG-context] Bug: Overlapping Text

2014-04-01 Thread Thangalin
Hi, The second page of the following document has overlapping text in the second column (this has been as minimal as I can get): \setuphead[section][before={\testcolumn[4]},] \starttext \startmixedcolumns[align=right, balance=yes, grid=strut,] \dorecurse{5}{ \startsection

[NTG-context] Bug? Missing items in nested columnar layout

2014-04-01 Thread Thangalin
Hi, \setuphead[subsection][after={\blank[small]},] \starttext \startcolumns \startmixedcolumns[balance=yes,] \startsubsection[title=title,] \startitemgroup[][packed][before=\empty] \dorecurse{10}{\startitem item \#\recurselevel{}.\stopitem} \stopitemgroup

Re: [NTG-context] Possible bug: definetextbackground and grid layout

2014-04-05 Thread Thangalin
http://wiki.contextgarden.net/TextBackground The first example works. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Line numbering in columns broken

2014-04-05 Thread Thangalin
Confirmed to work in version 2014.01.03 00:40. ___ 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

[NTG-context] Column Width

2014-04-16 Thread Thangalin
Hi, According to the columns manual, the following should produce a two-column layout with the first column being 1/3 and the second column being 2/3 the makeupwidth: \definecolumnset[example][n=2] \setupcolumnset[example][1][width=.33\makeupwidth] \starttext \startcolumnset[example]

Re: [NTG-context] Column Width

2014-04-16 Thread Thangalin
It seems a few examples from the columns manual -- http://www.pragma-ade.com/general/manuals/columns.pdf -- are broken. Here is another (from page 34): \definecolumnset[example][n=3] \definecolumnset[therest][n=4] \setupcolumnset[example] \setupcolumnset[therest] [distance=.5cm] [distance=.5cm]

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-18 Thread Thangalin
Hi Rik, The example isn't quite as minimal as it could be... Here is a simplified version demonstrating the problem: \setuplayout[backspace=4cm] \define[2]\MarginHead{\inmargin{#1 #2}} \setuphead[section][ alternative=text, command=\MarginHead, ] \defineitemgroup[itemz]

Re: [NTG-context] Unwanted whitespace for tables and enumerations after \inmargin headings

2014-04-19 Thread Thangalin
Hi, insidesection={\blank[overlay]}] This appears to require the latest beta. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Automated Regression Testing for Typeset Material

2014-04-19 Thread Thangalin
Hi, An idea to test the final output: # Create PDFs for all tests. cd $REGRESSION for i in *.tex; do context-beta $i done # Convert all PDF pages to images. for i in *.pdf; do convert $i $(basename $i .pdf)%0d.png done # Note any differences between images. for i in *.png; do if diff $i

[NTG-context] Open-Source Development Grant

2014-04-24 Thread Thangalin
https://stripe.com/blog/stripe-open-source-retreat Grant of $7500 per month, plus food, for working on OSS projects. If there's something that could use three months of F/T work that would be massively helpful for ConTeXt, it might be worthwhile submitting a proposal.

Re: [NTG-context] Synonyms and criterium

2014-04-28 Thread Thangalin
A couple of reasons for minimal examples: having an isolated issue is easier to debug and in the process of simplifying the code you might stumble on the solution yourself. For example, I have a book that uses dozens of files. When I encounter an issue, I concatenate the files and then start

Re: [NTG-context] Empty heads after leading whitespace

2014-05-01 Thread Thangalin
\setuphead[section][% placehead=empty, before=, after=] \setuphead[subsection][% placehead=yes, before=\empty, after={\blank[line]}] \setupheadertexts[section] \starttext \showframe \section{My section} \subsection{My subsection (whitespace before)} % Here is my problem.

  1   2   >