* setupthinrules @ 2015-04-16 2:21 Thangalin 2015-04-16 15:04 ` setupthinrules Aditya Mahajan 0 siblings, 1 reply; 6+ messages in thread From: Thangalin @ 2015-04-16 2:21 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupthinrules 2015-04-16 2:21 setupthinrules Thangalin @ 2015-04-16 15:04 ` Aditya Mahajan 2015-04-16 19:37 ` setupthinrules Thangalin 0 siblings, 1 reply; 6+ messages in thread From: Aditya Mahajan @ 2015-04-16 15:04 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupthinrules 2015-04-16 15:04 ` setupthinrules Aditya Mahajan @ 2015-04-16 19:37 ` Thangalin 2015-04-16 20:10 ` setupthinrules Thangalin 2015-04-16 22:14 ` setupthinrules Aditya Mahajan 0 siblings, 2 replies; 6+ messages in thread From: Thangalin @ 2015-04-16 19:37 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupthinrules 2015-04-16 19:37 ` setupthinrules Thangalin @ 2015-04-16 20:10 ` Thangalin 2015-04-16 22:14 ` setupthinrules Aditya Mahajan 1 sibling, 0 replies; 6+ messages in thread From: Thangalin @ 2015-04-16 20:10 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setupthinrules 2015-04-16 19:37 ` setupthinrules Thangalin 2015-04-16 20:10 ` setupthinrules Thangalin @ 2015-04-16 22:14 ` Aditya Mahajan 1 sibling, 0 replies; 6+ messages in thread From: Aditya Mahajan @ 2015-04-16 22:14 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* setupthinrules @ 2006-01-22 21:43 Hans van der Meer 0 siblings, 0 replies; 6+ messages in thread From: Hans van der Meer @ 2006-01-22 21:43 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-16 22:14 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-04-16 2:21 setupthinrules Thangalin 2015-04-16 15:04 ` setupthinrules Aditya Mahajan 2015-04-16 19:37 ` setupthinrules Thangalin 2015-04-16 20:10 ` setupthinrules Thangalin 2015-04-16 22:14 ` setupthinrules Aditya Mahajan -- strict thread matches above, loose matches on Subject: below -- 2006-01-22 21:43 setupthinrules Hans van der Meer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).