Re: [NTG-context] \placeinitial to account for quotation mark

2021-09-25 Thread Thangalin via ntg-context
Henri Menke provided a partial solution: \defineinitial[two][method={first,auto}] \setuphead[chapter][ after={\placeinitial[two]}, page=no, ] \starttext \chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the

[NTG-context] \placeinitial to account for quotation mark

2021-09-06 Thread Thangalin via ntg-context
Hi list, The following example shows a lettrine that stylizes a quotation mark: \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext\chapter{Harriet Tubman} "Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion

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

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:

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

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

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

Re: [NTG-context] KeenWrite 2.0

2021-05-10 Thread Thangalin
: > 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 everyone

Re: [NTG-context] KeenWrite 2.0

2021-05-10 Thread Thangalin
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/DaveJarvis/kee

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

[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

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

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

[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

[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

[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

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

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 $

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

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

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

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 =

[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

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] KeenWrite + ConTeXt: a sneak peek

2021-04-01 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) *

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

[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

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

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

[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

[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

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

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

[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

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

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]{%

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

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

[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

[NTG-context] Project Gutenberg Projects

2020-04-12 Thread Thangalin
Hi list! Another blog post for you all, tangentially related to ConTeXt: https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects In particular, the conversion from XHTML to Markdown so that pandoc can convert Markdown to ConTeXt may be of interest:

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
If it helps, here's why I thought it would work: https://wiki.contextgarden.net/Command/definefirstline The wiki page shows that the macro takes a style option. The style option links to: https://wiki.contextgarden.net/Style_Alternatives This page has a list of predefined styles and describes

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
Looking to uppercase the first word of a poem: \setupindenting[yes, 0.75em] \setupinitial[ state=start, n=2, distance=\zeropoint, ] % This does not appear to work? \definealternativestyle[PoemFirstWord][\WORD][] \definefirstline[PoemFirstLine][ alternative=word, style=PoemFirstWord,

[NTG-context] Impacts Project: Two-Page Spread

2020-01-14 Thread Thangalin
Hi all! Pleased to share with you a new two-page spread of the Impacts project: https://impacts.to/downloads/lowres/impacts-dual.pdf Best viewed in "Dual" (or "Even Spreads") mode. Compare with the original single-page spread: https://impacts.to/downloads/lowres/impacts.pdf If you'd like a

[NTG-context] GraphicsMagick corrupts TIFF upon PDF conversion

2019-12-15 Thread Thangalin
FYI, there appears to be a bug with GraphicsMagick. gm convert -density 600x600 illustration.tif m_k_i_v_illustration.tif.pdf Produces: 38812848 Dec 15 22:51 m_k_i_v_illustration.tif.pdf https://i.imgur.com/EByrH6r.png Whereas ImageMagck: convert -density 600x600 illustration.tif

Re: [NTG-context] Blank page inserted when text reaches column's end

2019-12-10 Thread Thangalin
Commenting out the \page_grd_command_flush_page macro seems to have reversed the effect. Any pages having columnar text that does not extend to the last line are now suppressed. How would I go about adding a conditional that checks to see whether the column is filled before deciding if a page

Re: [NTG-context] Blank page inserted when text reaches column's end

2019-12-09 Thread Thangalin
Thank you both. Neither approach removes the blank page with either version 2019.06.11 or 2019.12.06 on Linux. Is there a specific version of ConTeXt required? The code to generate the document resembles: \setuppagenumbering[alternative=doublesided,page=no] \installpagebreakhandler{last}{}

[NTG-context] Blank page inserted when text reaches column's end

2019-12-08 Thread Thangalin
When text reaches the end of a column, it appears to trigger inserting a blank page. In the following code, \dorecurse{3} causes a blank page to appear but \dorecurse{2} does not. The only difference is that when set to 3, the additional text is written on the last line of the last column. This

[NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
Hi there, How do I suppress the blank page in the following document while maintaining the asymmetrical multicolumn layout? The problem centres around "page=yes," whereby removing it eliminates the blank page, but then wreaks havoc on the document layout.

[NTG-context] Impacts Project

2019-12-05 Thread Thangalin
Hi list! Thank you for helping to answer so many questions and remove so many roadblocks with my project. The result is a photobook written in Markdown, piped through pandoc to generate ConTeXt code, then stylized using a series of .tex files. The coolest ConTeX part, IMO, is the orange dot in

[NTG-context] Typesetting Markdown – Part 7: Mathematics

2019-08-06 Thread Thangalin
https://dave.autonoma.ca/blog/2019/08/06/typesetting-markdown-part-7/ This installment tackles a cost-benefit analysis problem comparing electric to gasoline-powered vehicles, calls into R for amortization, typesets math and a repayment schedule, continues to explore the separation of content

[NTG-context] Theses Examples

2019-07-15 Thread Thangalin
Hi all! I know of two people who are considering writing their theses using ConTeXt. I've started to update the wiki with a list: https://www.contextgarden.net/Sample_documents#Theses Any others to add to the list? Thank you.

[NTG-context] Typesetting Markdown – Part 6: Computation

2019-07-11 Thread Thangalin
This part of the series describes a way to produce and typeset dynamic documents using R Markdown and ConTeXt. https://dave.autonoma.ca/blog/2019/07/11/typesetting-markdown-part-6/ Comments or suggestions for improvement?

Re: [NTG-context] Split extreme tables across pages

2019-07-10 Thread Thangalin
Got it. \setupfloat[table][default={here,split}] See: https://wiki.contextgarden.net/Command/setupfloat#Example On Wed, Jul 10, 2019 at 7:32 PM Thangalin wrote: > > Sorry! The subject line should be, "Split extreme tables across pages"... > > > This does the job,

Re: [NTG-context] Split extreme tables across pages

2019-07-10 Thread Thangalin
Sorry! The subject line should be, "Split extreme tables across pages"... > This does the job, but it doesn't feel like the ConTeXt way. > > How would you use setups to enable page splitting on extreme tables? > > Thank you!

[NTG-context] Split extreme tables across tables

2019-07-10 Thread Thangalin
The following document does not split across tables, which is a little surprising: \starttext \startplacetable[title={Average Annual Temperatures}] \startxtable \startxtablehead[head] \startxrow \startxcell[align=middle,width={0.10\textwidth}] Year \stopxcell

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-09 Thread Thangalin
> You can reach the person managing the list at >> ntg-context-ow...@ntg.nl >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of ntg-context digest..." >> >> >> Today's Topics: >> &

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-08 Thread Thangalin
\completecontent{}. Modes are probably the way to go, though. Thank you. On Sun, Jul 7, 2019 at 12:18 PM Aditya Mahajan wrote: > > On Sun, 7 Jul 2019, Thangalin wrote: > > > Thank you Aditya. > > > > The main.tex file is meant to be reusable for different document styles. > By

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-07 Thread Thangalin
sable"; making modifications to "main.tex" --- or creating a copy --- would subvert that goal. On Sun, Jul 7, 2019 at 7:17 AM Aditya Mahajan wrote: > On Sat, 6 Jul 2019, Thangalin wrote: > > > Hello again! > > > > This part of the series describes how to referenc

[NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-06 Thread Thangalin
Hello again! This part of the series describes how to reference *interpolated* strings inside Markdown documents. https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/ There's a section at the end about eliminating the table of contents from a reusable document template. I would

[NTG-context] Typesetting Markdown – Part 4: Theme Style

2019-06-23 Thread Thangalin
Hi all! This part of the series describes a way to define colours, fonts, and layout such that content is separated from presentation. https://dave.autonoma.ca/blog/2019/06/23/typesetting-markdown-part-4/ Questions, corrections, and improvements are welcome.

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

2019-06-17 Thread Thangalin
> Maybe some instructions as how to adjust/redefine the pandoc output? Please elaborate. > e.g. how to include different style templates for ConTeXt. Definitely. Part 4 will be about themes. Thank you! ___ If your

[NTG-context] Typesetting Markdown -- Part 3

2019-06-16 Thread Thangalin
Hi all! The third part of the series describes a way to perform continuous integration when writing Markdown that is typeset using ConTeXt. https://dave.autonoma.ca/blog/2019/06/16/typesetting-markdown-part-3/ Suggestions for improvement are welcome. Thank you.

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

2019-05-30 Thread Thangalin
> > sense to check all these mappings onto context, for instance I think > that pandoc uses \section and such while in fact it should use > \startsectionlevel[title={}] ... \stopsectionlevel so that one can embed > documents in other documents. > https://github.com/jgm/pandoc/issues/5539 Feel

[NTG-context] Typesetting Markdown -- Part 2

2019-05-29 Thread Thangalin
Hi all, The second part describes how to create a PDF file from a Markdown file using pandoc and ConTeXt: https://dave.autonoma.ca/blog/2019/05/29/typesetting-markdown-part-2/ If anyone has suggestions to improve the ConTeXt-related portions, please pass them along. I've considered using

Re: [NTG-context] Typesetting Markdown

2019-05-25 Thread Thangalin
> For Markdown --> ConTeXt usage, math is not my primary concern, but > wonder what do you think about the Pandoc's "cons" as stated on > pandoc-xhtml site, iow: > > * Main document language information. > * Markup for language in text portions. > * Any or elements markup. > For the document

Re: [NTG-context] Typesetting Markdown

2019-05-23 Thread Thangalin
Hi Gour, I added an abstract, an overview section with the plan, and an RSS feed: https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/ One of the reasons I chose Pandoc's Markdown is for its support of classes and annotations. I looked into the pandoc-xhtml link and it looked

[NTG-context] Typesetting Markdown

2019-05-22 Thread Thangalin
Hi folks! I'm thinking about writing a series of blog posts about how to typeset Markdown using ConTeXt. I've written the first part and am wondering if anyone would be interested in reading more: https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/ Thank you!

[NTG-context] columnset vs columns

2018-12-22 Thread Thangalin
Minimal example: \definepapersize[PaperSize][ width=400mm, height=100mm, ] \setuppapersize[PaperSize] \starttext \startcolumnset[n=3] \dorecurse{3}{\input knuth} \stopcolumnset \stoptext The old-columnsets module fails with an error. The following works as expected:

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

[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

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

Re: [NTG-context] Fill up "bottom" space of page with some content

2015-12-03 Thread Thangalin
Hi Joseph, Mind posting a minimum working example to illustrate what you're trying to accomplish? ___ 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] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-03 Thread Thangalin
The problem persisted with Courier New, not only Source Sans Pro (SSP). The font file for Source Sans Pro came directly from the Google's font service. The SSP (on my machine) works fine in Inkscape. The exact same font was also working before the ConTeXt upgrade.

Re: [NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
The answer from a SE question has provided a little light: http://tex.stackexchange.com/q/274582/2148 Directories listed in OSFONTDIR are not recursively scanned for font files. That's a bit inconvenient. I borrowed from the answer in that question to do the following: rm -rf $HOME/.fonts mkdir

[NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
Hi. Installation: http://wiki.contextgarden.net/Ubuntu#With_ConTeXt_Standalone_.E2.80.93_should_work_with_all_Ubuntu_versions Font (OTF): https://www.google.com/fonts/specimen/Source+Sans+Pro = MWE (test.tex) = \definefont[VersionFont][name:sourcesanspro] \starttext \VersionFont Hello,

Re: [NTG-context] Upgrade to 2015.11.19 breaks OTF reader?

2015-12-02 Thread Thangalin
$ locate -i sourcesanspro /home/.../luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/sourcesanspro-regular.tma /home/.../luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/sourcesanspro-regular.tmc /usr/local/share/fonts/google/s/SourceSansPro-Black.ttf

Re: [NTG-context] setupthinrules

2015-04-16 Thread Thangalin
Thank you. Here is an example that changes the \thinrule to something fancier: \usemodule[fancybreak] \setupfancybreak[symbol=star] \define\thinrule\fancybreak ___ If your question is of interest to others as well,

Re: [NTG-context] setupthinrules

2015-04-16 Thread Thangalin
Wikified. http://wiki.contextgarden.net/Command/setupfancybreak http://wiki.contextgarden.net/Modules/fancybreak Might need some corrections and additions. ___ If your question is of interest to others as well,

[NTG-context] setupthinrules

2015-04-15 Thread Thangalin
Hi, From http://wiki.contextgarden.net/Command/setupthinrules : \define\BeforeCommand{Before} \define\AfterCommand{After} \define\BetweenCommand{Between} \setupthinrules[ before=\BeforeCommand, after=\AfterCommand, inbetween=\BetweenCommand, color=gray, height=1em, ] \starttext

Re: [NTG-context] Error Messages

2014-10-27 Thread Thangalin
What do you think about a wiki structure that directly corresponds to errors? http://wiki.contextgarden.net/Errors/tex/1 http://wiki.contextgarden.net/Errors/context/1 http://wiki.contextgarden.net/Errors/metapost/1 When ConTeXt encounters a TeX error, the software writes the error

[NTG-context] Error Messages

2014-10-26 Thread Thangalin
Hi, After upgrading to version 2014.10.07, I recompiled a document that had gathered some dust and was greeted with: tex error error on line 34 in file ...: ! Math error: parameter \Umathquad\displaystyle is not set The document compiled using a previous version, and no changes were made prior

Re: [NTG-context] Error with alternative (interactive) TOC

2014-10-10 Thread Thangalin
Thank you, Wolfgang. This fixes the issue. I worry, though, that these types of solutions are a bit brittle. If the interactive alternative definition changes, then the TOC code could break. If the definition in strc-lst.mkvi were to change to something like: % Perform a half-line adjustment in

[NTG-context] Error with alternative (interactive) TOC

2014-10-09 Thread Thangalin
Hi, How do you make a custom TOC entry that links to the correct page? In the following example, the last TOC item is not hyperlinked, and all the section hyperlinks are incorrect (off by one). Note that the chapters and sections are separate pages. \setupinteraction[state=start,]

Re: [NTG-context] Possibly bug: misalignment with matrix

2014-10-09 Thread Thangalin
Hi Xan, It's not exactly what you want, but maybe it'll give you some other ideas: \definemathmatrix[pmatrix][ left={\left(\,}, right={\,\right)}, ] \definenumber[pmatrix] \resetnumber[pmatrix] \define\nextmatrix{ \incrementnumber[pmatrix] \getnumber[pmatrix]. } \define[2]\pmatrices{

Re: [NTG-context] LuaTeX Crashes

2014-10-09 Thread Thangalin
Hi, This Heisenbug was arduous to nail down. The following code causes the stack overflow on the first run: http://pastebin.com/raw.php?i=qwGGBrJf If the file is changed to compile successfully, then the compile will succeed on subsequent attempts, even if the changes are reverted to the

[NTG-context] LuaTeX Crashes

2014-10-08 Thread Thangalin
Hi, It seems tostring is calling itself indefinitely, causing it to crash: C stack overflow stack traceback: [C]: in function 'tostring' ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:388: in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:371 [C]:

Re: [NTG-context] Possibly bug: misalignment with matrix

2014-10-07 Thread Thangalin
Looks like a bug; adding blank rows works around the problem (but looks terrible): \definemathmatrix[pmatrix] [left={\left(\,},right={\,\right)}] \starttext Digueu quines de les matrius següents són regulars. Quan ho siguin, trobeu la inversa \startitemize[a,columns,four] \item

Re: [NTG-context] (MKIV beta) APA citations: et al. incorrectly written

2014-10-05 Thread Thangalin
Hi, One more note about et al.: the period can get duplicated. For example: Mohammad Allahbakhsh, Aleksandar Ignjatovic, Boualem Bena- tallah, Seyed-Mehdi-Reza Beheshti and Norman Foo et al.. An analytic approach to people evaluation in crowdsourcing systems. @article{allahbakhsh@crowdsourcing,

Re: [NTG-context] spacing with enumeration...

2014-10-05 Thread Thangalin
Try this: \defineenumeration[OtherMeaning][ text=, headstyle=normal, alternative={left}, %,serried distance=0pt, width=20pt, stopper=\high{o}, inbetween=, before={\blank[small]}, after={\blank[small]}, inbetween=, ] \setupnarrower[ before={\blank[big]},

Re: [NTG-context] whitespace in \setuplist[chapter]

2014-10-04 Thread Thangalin
Try: \setuplist[chapter][ before={\blank[4*big]} ] \starttext \completecontent \dorecurse{50}{\chapter{My Chapter}} \stoptext See also: http://wiki.contextgarden.net/Command/setuplist http://tex.stackexchange.com/questions/89758/

Re: [NTG-context] Use url to hyperlink bibliography title

2014-10-03 Thread Thangalin
Hi Alan, (Of course you are using the bibliography/bibtex module here which is currently being re-implemented but is not quite production ready...) I didn't know that. Am looking forward to using it, thank you. Most bibliography styles ask that the url (or doi) appear at the end of the list

[NTG-context] Set: The Card Game

2014-09-25 Thread Thangalin
Hi, Another ConTeXt example. https://bitbucket.org/djarvis/salish-card-set/src/ Included is a script (svg2mp.sh) that converts SVG files into MetaPost code. This allows for editing the image shapes in Inkscape (or similar) then manipulating them in MetaPost. This example code produces a

Re: [NTG-context] Use url to hyperlink bibliography title

2014-09-25 Thread Thangalin
Hi, The question is also posted here: http://tex.stackexchange.com/questions/201357/context-use-url-parameter-to-hyperlink-bibliography-title-references My concern is that every bibtex entry type must be modified. Unless I'm mistaken, every bibtex entry has a title, so (in theory) that title

  1   2   3   >