Re: [NTG-context] setupthinrules
On Wed, 15 Apr 2015, Thangalin wrote: Pandoc uses thinrule (probably because it spans the page by default) when generating ConTeXt documents. Using only thinrule, how would you go about making a totally sweet (ornamental) horizontal rule, such as those shown at: http://tex.stackexchange.com/a/76555/2148 Have a look at the fancybreak module. Aditya ___ 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 : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupthinrules
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, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupthinrules
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, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupthinrules
On Thu, 16 Apr 2015, Thangalin wrote: \define\thinrule\fancybreak Or \definefancybreak[thinrule][symbol=star] I wish there was a custom context-writer for pandoc, where markdown elements were mapped to semantic commands rather than visual commands (pandoc maps **text** to {\bf text}, which is worse). Aditya ___ 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 : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupthinrules
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 \input knuth \thinrule \input knuth \stoptext This does not produce the expected output; it appears as though the before/after/inbetween commands, as documented on the wiki, have no behaviour. Pandoc uses thinrule (probably because it spans the page by default) when generating ConTeXt documents. Using only thinrule, how would you go about making a totally sweet (ornamental) horizontal rule, such as those shown at: http://tex.stackexchange.com/a/76555/2148 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 : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] setupthinrules
Doing thinrules one can place a number of them. However the interlinespace seems fixed to whatever has been chosen for small, medium, big. I looked into the code but could not find a more flexible mechanism, as for example interlinedistance=dimension Trying to get the rules close to one another I tried \setupthinrules[height=2pt,depth=0pt,interlinespace=medium] \thinrule\godown[1pt]\thinrule But the natural height of the lines then interfers. Setting \godown [negative amount] will work, of course, but seems unnatural to me. At least I feel it condems me to trial and error between the rule dimensions and the amount of backspace. I therefore suggest making the interlinespace accessible as a distance settable by the user and being the separation between the bottom of the upper and the top of the lowerline in the case of \thinrules[n=2]. By the way, doesn't that give thinrules then the same option as in setuptextrules[distance=dimension]? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context