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

Re: [NTG-context] bug in hyphenation?

2014-09-16 Thread Thangalin
Hi Pablo, Are you able to avoid \hsize in favour of something like start/stopnarrower? \setuppapersize[A8] \starttext \startnarrower[-left] \startlinenumbering sentence sentence sentence \stoplinenumbering \stopnarrower \startnarrower[-left] sentence sentence sentence \stopnarrower \stoptext

[NTG-context] Use url to hyperlink bibliography title

2014-09-16 Thread Thangalin
Hi List, How do you make a hyperlink for a bibtex entry's title using the entry's URL? The bibtex entries include articles, techreports, inproceedings, books, and so forth. I can work around the issue by duplicating the URL as follows. For example, save this as sources.bib:

[NTG-context] Līberum Cōnsilium: an example ConTeXt document

2014-08-17 Thread Thangalin
Hi, Here technical document in ConTeXt. It goes a bit beyond the basics but is not complex. The source code is available: https://bitbucket.org/djarvis/world-politics/src/master/xml/tex/ The output: https://bytebucket.org/djarvis/world-politics/raw/master/xml/tex/manual.pdf Comments,

Re: [NTG-context] Class diagram in Ctx?

2014-08-13 Thread Thangalin
Hi, Another option is to use graphviz (dot) to create the graph as an SVG file and then include that graphic. For example: -- graph.dot -- digraph CL { Home - {Summary Account}; Summary - {Proposal Resources Hypothesis Discuss}; Discuss - {Support}; } -- Run GraphViz -- dot -Tsvg

Re: [NTG-context] Citation Sort Order

2014-08-10 Thread Thangalin
Thank you, Rik. I wanted to list all the bibliography entries (including unreferenced citations) with referenced citations ordered chronologically. I suppose that would require maintaining two separate bibliography files... It's not all that important, though. Kindest regards.

[NTG-context] Superscript Citation References

2014-08-07 Thread Thangalin
Hi, I would like to cite bibliography references using a superscript font. Here is the setup: \setupbibtex[database=sources] \setuppublications[ refcommand=num, numbering=yes ] \setupcite[num][ left=\empty, right=\empty, ] \starttext Citation.\cite[kattamuri@debate] \stoptext Here

[NTG-context] Citation Sort Order

2014-08-07 Thread Thangalin
The documentation (http://www.ntg.nl/maps/26/12.pdf) suggests that the order of citations can be changed using sorttype=cite. The example code below writes a 6 in the document. I thought by setting the sorttype to cite that the bibliography order would be determined based on the order that the

[NTG-context] ConTeXt Garden Examples Maintenance

2014-05-16 Thread Thangalin
Hi, The ConText Garden wiki has numerous short example sprinkled throughout its pages. I presume that they are hard-coded in the page. if the example breaks (due to a ConTeXt bug or backwards-incompatible enhancement), I imagine there is no notification. What do you think about creating a

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

2014-05-05 Thread Thangalin
Avoid vskip. http://wiki.contextgarden.net/Command/vskip ___ 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] Empty heads after leading whitespace

2014-05-05 Thread Thangalin
\setuphead [section] [placehead=empty, page=yes, after={\blank[0em]\blank[disable]}] That works for me. I don't know if it is better, but if it works for you as well then it is probably the way to go. mtx-context | current version: 2014.01.03 00:40

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.

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

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

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]

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

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

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

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

  1   2   >