[NTG-context] Typesetting Markdown - Part 8

2020-04-27 Thread Thangalin
Hi folks! Second last part in the series. The project, product, component, and environment relations were a bit finicky. Those willing to point out improvements that can be made---Hans, Taco, Wolfgang, Aditya, and others---would be very much appreciated. Specifically, it seems that some project e

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Thangalin
Jan-Erik, after you have installed all the required software (and fonts!) and unzipped the book.zip and themes.zip archives, you can build a book using: cd $HOME/dev/writing/book ./build -V -c -y -i jekyll-hyde -d standard-ebooks/jekyll-hyde \ -b robert-louis-stevenson_the-strange-case-of-dr-jekyl

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Thangalin
Hi Jan, > 1. Nameing and organizing the project, product and environments files. I > am currently reorganising the files for my cooperative. I think that > besides some nameing conventions it is more or less up to me how I > organise our print work. Any recommendations welcome. Download "themes.z

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
Would something like this work? \setupbackgrounds[page][ background={BookIllustrationLayer}, ] \definelayer[BookIllustrationLayer][ width=\paperwidth, height=.5\paperheight, y=.5\paperheight, position=no, repeat=no, ] \setlayer[BookIllustrationLayer]{% \clip[x=\doifelseoddpage{

Re: [NTG-context] Blank page added after pagecolumns

2020-05-10 Thread Thangalin
Bump. See also: https://tex.stackexchange.com/q/542993/2148 On Mon, May 4, 2020 at 11:46 AM Joey McCollum wrote: > > After continuing to look into this a bit, I noticed that a similar issue > involving the insertion of a blank page after a columnset environment has > been discussed on the mail

[NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
$ inkscape --version Inkscape 1.0 (4035a4fb49, 2020-05-01) Pango version: 1.44.7 With the new release of Inkscape, --export-pdf no longer exists. The new options appear to be: --export=type=pdf --export=pdf-version=1.5 (or 1.4) --export-filename=filename.pdf Aditya has shown a work-aro

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
Minor correction: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export-type=pdf --export-filename="%newname%" ]], pngargument=[[ "%oldname%" --export-dpi=600 --export-type=png --export-filename="%

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
As a work around, rename /usr/bin/inkscape to new-inkscape, such as: # mv /usr/bin/inkscape /usr/bin/new-inkscape Then change /usr/bin/inkscape to intercept and replace the command line argument: #!/usr/bin/env bash /usr/bin/new-inkscape \ $(echo "$@" | sed 's/--export-pdf/--export-type=pdf --

[NTG-context] ConTeXt, KeenWrite, Markdown, and XHTML

2021-03-06 Thread Thangalin
How would you convert the first class attribute of XHTML div elements to ConTeXt LMTX-specific start/stop environments? For example: Whose woods these are I think I know. And miles to go before I sleep. Becomes (the equivalent of?): \startpoem \startstanza Whose woods these are I think I

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
Here's a fairly minimal example showing an issue, using ConTeXt LMTX. Save the following as "main.tex": % SOF \startbuffer[document] \stopbuffer \startbuffer[csvg] http://www.w3.org/2000/svg";> \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{body|img}{xml:*} \stopxmlsetups

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Thangalin
Thanks, Hans. The image is now rendered. Here's a picture of the output from ConTeXt (left) and the expected output using Apache Batik: https://i.ibb.co/zPqfhjK/metapost-svg.png Would a copy of the SVG file be useful for unit testing? Thanks again. > I probably need to add that wrapper in a fe

[NTG-context] Build fails on fresh installs

2021-03-20 Thread Thangalin
VirtualBox 6.1.18 + ConTeXt Perform OS installations using defaults and the following values: - Set regular username to: username - Set guest computer name to: computer Use ConTeXt binaries appropriate for OS: - FreeBSD - http://lmtx.pragma-ade.nl/install-lmtx/context-freebsd-amd64.z

[NTG-context] Radial gradient stops in SVG images

2021-03-28 Thread Thangalin
In the latest release, SVG radial gradients appear to apply colour stops as solid black. Removing the elements produces a solid colour, but without a radial gradient. Hans may be aware of the issue. Meanwhile, here's an MWE. Save as gradient.svg: http://www.w3.org/2000/svg"; viewBox="0 0 215.9

[NTG-context] Output result to specified file path

2021-03-29 Thread Thangalin
How do you set the target output path and file name? Consider: % SOF \starttext Hello \stoptext % EOF Save as $HOME/test.tex and then: mkdir /tmp/subdir context --result=/tmp/subdir/test.pdf $HOME/test.tex Expected: PDF file is created in /tmp/subdir directory. Actual: PDF file is created in

Re: [NTG-context] Output result to specified file path

2021-03-30 Thread Thangalin
>From https://wiki.contextgarden.net/Run_scripts context --jit prd_${PRD} --result=_pdf/$RESULT --mode=$MOD Does this mean the example is incorrect? Or did it once work and the behaviour has since changed? Or is it that relative directories are fine but absolute paths won't work? Let me know and

[NTG-context] Combine purgeall and result options

2021-03-30 Thread Thangalin
Given test.tex: % SOF \starttext Guten abend \stoptext % EOF Run: context --puregeall --result=out.pdf test.tex Expected: All .tuc and .log files are deleted. Actual: out.log and out.tuc are not deleted. Context version: 2021.03.27 19:09 Cheers! ___

Re: [NTG-context] Combine purgeall and result options

2021-03-30 Thread Thangalin
Typo, sorry list! Please ignore. Works as expected. On Tue, Mar 30, 2021 at 7:02 PM Thangalin wrote: > Given test.tex: > > % SOF > \starttext > Guten abend > \stoptext > % EOF > > Run: context --puregeall --result=out.pdf test.tex > > Expected: All .tuc and .

[NTG-context] KeenWrite + ConTeXt: a sneak peek

2021-03-31 Thread Thangalin
Hi all! Here's a screenshot showing a PDF file created using ConTeXt, exported from my text editor, KeenWrite: https://ibb.co/SNg19Sn Notice the areas highlighted with rounded red rectangles: * Export PDF button (top-left) * Exported file name and ConTeXt processing time (lower-left) * Settings

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Thangalin
A starting list of English non-ligatures: https://english.stackexchange.com/a/50957/22099 The entire SE thread has additional resources and is quite informative. ___ If your question is of interest to others as well,

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg";> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Black circle, no border, comment lines ignored. Actual: Empty squa

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Thangalin
Untested. Lists are not subject to copyright, so public domain should be legal, even though SE posts are CC-BY-SA. When a word has a single suffix or prefix (e.g., safflower/s), the two words are listed together, rather than using an explicit suffix/prefix section. return { name = "engli

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
A bug report exists for the -inkscape-font-specification issue: https://bugs.launchpad.net/inkscape/+bug/1324809 I've migrated it, so hopefully it'll get some traction: https://gitlab.com/inkscape/inbox/-/issues/4704 It'd be nice to support that particular extension; however, the reason for not

[NTG-context] Set luatex cache directory path

2021-04-05 Thread Thangalin
Peter Münster once asked: > What should I do please, to prevent ConTeXt from creating $HOME/luatex-cache? I'd like to do the same: $ cd $HOME $ ls luatex-cache ls: cannot access 'luatex-cache': No such file or directory $ context test.tex $ ls luatex-cache/ context $ rm -rf luatex-cache $ export

Re: [NTG-context] Set luatex cache directory path

2021-04-06 Thread Thangalin
Thanks Aditya. What do you think of changing the default luatex-cache directory to the system's temporary directory? Consider: - The $HOME directory is sacrosanct (4784 people agree: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1575053) - The temp directory is cleared on Linux (U

Re: [NTG-context] Set luatex cache directory path

2021-04-06 Thread Thangalin
Perfect, thank you. Will be Wikified. ___ 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 :

Re: [NTG-context] Set luatex cache directory path

2021-04-10 Thread Thangalin
Are two runs always required to generate a PDF when TEXMFCACHE is set? $ sudo su - $ mkdir -p /opt/context $ cd /opt/context $ wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip $ unzip *zip $ sh install.sh $ exit $ cat test.tex \starttext Test \stoptext $ export TEXMFCACHE=/tmp $ rm

Re: [NTG-context] Set luatex cache directory path

2021-04-11 Thread Thangalin
$ sudo su - $ rm -rf /opt/context $ mkdir -p /opt/context $ cd /opt/context $ wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip $ unzip *zip $ export TEXMFCACHE=/tmp $ sh install.sh $ exit $ cat test.tex \starttext Test \stoptext $ export TEXMFCACHE=/tmp $ sudo rm -rf /tmp/luatex-cac

[NTG-context] SVG stroked path colours

2021-04-14 Thread Thangalin
A regression? % SOF \startbuffer[svg] http://www.w3.org/2000/svg"; width="179" height="126" viewBox="0 0 134 94"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Green box, black outline. Actual: Green box, no outline. I believe the bord

[NTG-context] SVG transparent stroke shown

2021-05-06 Thread Thangalin
Hi again! % SOF\startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: No border around the outer white box, border around the inner green box. Actual: Border around both boxes. Version: 2021.05.06 Additional details: The SVG

[NTG-context] Hyphen collapsing

2021-05-06 Thread Thangalin
Not sure if this is a regression: % SOF \nohyphencollapsing \setuphead[chapter][align={nothyphenated}] \starttext \chapter{Such --- Emdashery} \stoptext % EOF Expected: No collapsed hyphens. Actual: Hyphens are collapsed. Workaround: Remove the nothyphenated option or insert \nohyphencollap

Re: [NTG-context] Hyphen collapsing

2021-05-07 Thread Thangalin
\setuphead[chapter][align={nothyphenated,notcollapsed}] Would that mean there's no way to collapse the hyphenation throughout the entire document from a single location? That is: \nohyphencollapsing \setuphead[section][align={nothyphenated,notcollapsed}] \setuphead[subsection][align={nothyphenate

[NTG-context] Update setpath to set the path

2021-05-09 Thread Thangalin
Thoughts on updating the setpath.bat file to persist setting the path? Here's an updated version that sets the system environment variable while preserving the existing unexpanded PATH value: rem SOF echo off set OWNPATH=%~dp0 set PLATFORM=mswin if defined ProgramFiles(x86)

Re: [NTG-context] Update setpath to set the path

2021-05-09 Thread Thangalin
Here's a version that persits the current user's PATH (i.e., not system-wide): rem SOF @echo off set "OWNPATH=%~dp0" set "PLATFORM=mswin" if defined ProgramFiles(x86)set "PLATFORM=win64" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set "PLATFORM=win64" if exist "%OW

[NTG-context] KeenWrite 2.0

2021-05-09 Thread Thangalin
Happy to announce that invoking ConTeXt from KeenWrite is now possible. Here's a screenshot showing three different PDFs compiled from the same plain text document: https://github.com/DaveJarvis/keenwrite/blob/master/docs/screenshots.md#pdf-themes Here are the installation instructions for ConTe

Re: [NTG-context] Update setpath to set the path

2021-05-10 Thread Thangalin
> One of the benefits of context minimals is that you can install multiple > versions in parallel, which allows the user to update frequently without > the risk of breaking something for long-term projects. Specifically, you > can keep a "frozen" version of context for long-term projects and instal

Re: [NTG-context] KeenWrite 2.0

2021-05-10 Thread Thangalin
hese types of reflection calls have been deprecated. In this particular case, it's fine, but this third-party library needs to be updated soon. Cheers! On Mon, May 10, 2021 at 2:47 AM Floris van Manen wrote: > > > On 10/05/2021 07:40, Thangalin wrote: > > https://github.com

Re: [NTG-context] KeenWrite 2.0

2021-05-10 Thread Thangalin
wrote: > On 5/10/2021 11:46 AM, Floris van Manen wrote: > > > > > > On 10/05/2021 07:40, Thangalin wrote: > >> https://github.com/DaveJarvis/keenwrite#download > >> <https://github.com/DaveJarvis/keenwrite#download> > >> > >> Stay safe eve

[NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Thangalin
I've written a Java-based lexer/parser that can convert straight quotes to curly quotes for English prose. It's a one-pass algorithm (O(n)) that uses neither look-behind nor regex. Here's a list of test cases it handles: https://raw.githubusercontent.com/DaveJarvis/keenquotes/main/lib/src/test/res

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Thangalin
Hraban, > In what kind of workflows does your program make sense? Have you looked around the web lately? KeenWrite (https://github.com/DaveJarvis/keenwrite), my plain text editor, can neither convert nor easily type curly quotes into the application. Recently, I added ConTeXt integration for exp

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Thangalin
The csquotes package can curl straight quotes: https://ctan.org/pkg/csquotes I don't know how smart its smart quote feature is, though, with respect to apostrophes. ___ If your question is of interest to others as wel

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Thangalin
> In HTML you should be able to use – I know that doesn’t work reliably in browsers (some add straight quotes to my CSS-configured guillemets). The Converter class maps token replacements: https://github.com/DaveJarvis/keenquotes/blob/d6c9761f8fe1ae96391f25dc73be52050a148e37/src/main/java/com/wh

[NTG-context] Initial caps with short paragraph

2021-07-08 Thread Thangalin
This has come up before on the mailing list, but I was wondering if LMTX has a more elegant solution than using a transparent/invisible capture of the drop-cap. Consider: \setupinitial[n=2, style=\tfd, location=text]\setuphead[chapter][after={\placeinitial}] \starttext \chapter Hello world!

[NTG-context] Re: Why is the fonts database not updated?

2023-07-07 Thread Thangalin
I've used the following without any troubles for a few years now: $ cat ~/bin/fontcache #!/usr/bin/env bash fc-cache -fv mtxrun --generate mtxrun --script fonts --reload ___ If your question is of interest to others a

[NTG-context] Parallel columns using start/stop setups

2023-08-08 Thread Thangalin
Two concurrent situations can happen, which I'd like to typeset as two parallel columns while keeping the overall page layout (i.e., headers, footers, margins, and such). current version: 2023.07.18 22:07 I'd like to find a way to set up start/stop environments, if possible, to come up with a gen

[NTG-context] Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
Hello! A Markdown document resembles the following: ::: {.concurrent title="Berth 5" location="San Diego"} Text Goes Here ::: ::: {.concurrent title="Road" location="Beale AFB"} Different Text Goes Here ::: The XHTML generated from that document resembles: Text Goes Here Different Text Goes

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Thangalin
mlatt{\getvariable {div} {concurrent} {title}}}, ] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext % EOT It doesn't look like the variables are taking, regardless of whether {title} or {data-title} are used. On Thu, Aug 10, 2023 at 12:44 AM Hans Hagen wrote: > On 8/10/2023 9:10

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
Did arguments regress in 2023.08.10 02:59? $ cat u.tex \starttext Feisty arguments \stoptext $ context u.tex $ ls -la *.pdf -rw-r--r-- 1 username username 6279 Aug 10 18:28 u.pdf $ context --arguments=x=y u.tex | grep error tex error > tex error on line 13 in file : Use of \getrawparameters

[NTG-context] Re: upload

2023-08-11 Thread Thangalin
That works Hans, thank you. line 802 in core-env should be: > > \permanent\tolerant\protected\def\setupenv >{\syst_variables_set\getrawparameters[\s!environment]} > > (seems i forgot that one when doing some cleanup) > > Hans > >

[NTG-context] Re: Why overbar is so big

2023-08-11 Thread Thangalin
Looks fine to me. Current version: 2023.08.10 02:59 Running on Linux. What fonts are you using? On Fri, Aug 11, 2023 at 12:38 PM Xavier B. wrote: > If you run > > \starttext > > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod > tempor incididunt ut labore et dolore mag

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text doesn't always appear. Instead, there's a sma

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution). This meant that th

[NTG-context] Re: Pass string into text background graphic

2023-08-13 Thread Thangalin
Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > > {text:\number\numexpr1+\

[NTG-context] Markdown to HTML cross-references

2023-11-21 Thread Thangalin
Hi list, I'm looking to implement a consistent syntax for cross-references in KeenWrite and am wondering what you think would make the most sense for translating into ConTeXt commands. First, some background (the first two give an overview, the others are cross-reference

[NTG-context] Converting XHTML captions to ConTeXt captions

2023-11-26 Thread Thangalin
I'd like to capture a caption and apply it to the block-level element that immediately follows. In the MWE, is there a more "ConTeXt way" to accomplish the task of adding captions to tables, figures, blockquotes, etc? % SOT \startbuffer[demo] Caption 1 table 1 with caption table 2 without captio

[NTG-context] externalfigure regression?

2023-12-03 Thread Thangalin
Hi, >From the wiki : "When the file extension is .auto or method=auto is used, ConTeXt reads the first few bytes of the file to determine the filetype. Such an auto-discovery is useful for remote images that do not have a file extension." cu

[NTG-context] Re: Problem with PNG images in the latest standalone version

2024-05-23 Thread Thangalin
Hajtmar, please provide a complete, self-contained, minimal working example. See http://www.sscce.org/ for details. On Thu, May 23, 2024 at 3:43 PM Hajtmar Jaroslav wrote: > Hello. > After a long time of using ConText from TeXlive installation I tried the > standalone version again. > I found t

[NTG-context] Quotation mark in drop caps

2024-07-07 Thread Thangalin
Hi list! I have a three-part question. First, when using \placeinitial, how would you detect whether the first character is a quotation mark, and, if so, override the setupinitial to use m=2? Second, when using m=2 to capture a quotation mark, how would you change the font size of only the quota

[NTG-context] Re: Quotation mark in drop caps

2024-07-10 Thread Thangalin
>From TeX.SE, the following solution works; however, it doesn't feel like the "ConTeXt way": % SOT \setuplocalboxes[leftmargin][ style=\bfd, color=darkred, distance=0pt, ] \unprotect \define\quoteinitial{% \futureexpandisap“\quoteinitial_true\quoteinitial_false% } \define\quotein

[NTG-context] Re: Quotation mark in drop caps

2024-07-10 Thread Thangalin
Thank you Hans. That's pretty close. Is there a way to make the opening quotation mark smaller? Ideally, control the font and colour? Cheers! On Wed, Jul 10, 2024 at 12:25 AM Hans Hagen via ntg-context < ntg-context@ntg.nl> wrote: > On 7/10/2024 9:10 AM, Thangalin wrote: > &g

[NTG-context] Re: Quotation mark in drop caps

2024-07-10 Thread Thangalin
Hi again, The output shows a closing red opening quotation mark, which is the opposite of what I'd like to achieve. Using \quotation won't work in my situation because the text mixes and matches numerous types of quotation marks and the user is writing in Markdown. Matching against “ would work fo

[NTG-context] Re: Quotation mark in drop caps

2024-07-11 Thread Thangalin
he initial quotation mark" to "rewrite your prose." ;-) https://i.imgur.com/ne991lZ.jpeg TX On Wed, Jul 10, 2024 at 11:35 PM vm via ntg-context wrote: > > > On 11/07/2024 01:55, Thangalin wrote: > > > > Any other ideas? > > Yes, change/edit the text to avoid th

[NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
Hi, Possible problem converting SVG to PDF. $ context --version mtx-context | ConTeXt Process Management 0.63 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2016.07.18 16:46 cd $HOME

Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
$ inkscape -V Inkscape 0.92pre1 unknown (Jul 30 2016) https://launchpad.net/~inkscape.dev/+archive/ubuntu/trunk I'm not sure if this version of Inkscape is at fault. It'd be cool if there was a way to specify the SVG to PDF converter program (e.g., to use rsvg-converter instead) from the command

[NTG-context] Blank page introduced by setmathfont?

2017-01-27 Thread Thangalin
Example: \usemodule[simplefonts] \setmathfont[modern] \starttext \startfrontmatter \input knuth \stopfrontmatter \stoptext Expected Results The text is on the first page. Actual Results The text is on the second page, the first page is blank. Work Around Remove \setmathfont[modern].

[NTG-context] Missing Chapter Numbers

2017-05-19 Thread Thangalin
\setuphead[chapter][number=yes,] \setuphead[section][number=no,] \setuphead[subsection][placehead=hidden,] \definehead[scenesubsection][subsection] \starttext \dorecurse{5}{ \chapter{Chapter Name} \section{Section Name} \startscenesubsection \input tufte \stopscenesubsection

Re: [NTG-context] Missing Chapter Numbers

2017-10-22 Thread Thangalin
The following code does not hide the headings: \setuphead[subsection][ placehead=no, number=no, ] % placehead=hidden breaks the counters? \setuphead[subsubsection][ placehead=no, number=no, ] \starttext \chapter{chapter} chapter \section{section} section \section{subsection}

[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 fit.

[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 va

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] Documentation for EPUB conversion

2013-08-28 Thread Thangalin
Hi, I ran the following simple document through ConTeXt: \setupbackend[export=yes,xhtml=yes] \enableregime[utf-8] \mainlanguage[en] \language[en] \setupexport[ title={A nice book}, author={John Doe}, firstpage={cover.jpg}, ] \starttext \startitemize \item First \item Second

[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}, locatio

[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: 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" version="

[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 - http://www.w3.o

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Thangalin
Hi. of course we could alternatively export all as > 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][ xml={\starttag[h1]#1\stoptag} ] Would produce

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Thangalin
Hi, > > > > > 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: \startfrontmatter \startstandardmakeup Title page

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 >

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 like

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 http://wiki.contextgarden.net/ep

[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 man

[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 regard

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! mai

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)} } \vski

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

[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 t

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 documentation . It seems that assigning different colours for inte

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-23 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 b

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 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. > > > > http://

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 tho

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 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 getting email, a

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 aaa

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@

[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 out

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

  1   2   3   4   >