Re: [NTG-context] methods for numbered paragraphs (ii)
On Sat, 05 Aug 2017 14:08:28 -0600, Idris Samawi Hamid ادريس سماوي حامدwrote: [Sent this a couple of days ago, maybe will get some takers this time -)] Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em] \starttext \startsection[title=Section 1] \startsubsection \input ward \stopsubsection \startsubsection[title=Paragraph 2] \input ward \stopsubsection \startsubsection \startparagraph \input ward \stopparagraph \stopsubsection \stopsection \stoptext == See attached output. In paragraphs 1 and 2, there is too much distance between the subsection number (subsection number + title in paragraph 2) and between the text. The distance parameter is not appropriate here, it is the distance *after* the section head that needs adjustment (even if the text portion of the head (i.e., the section title) is empty). Question 1: How do we fix the post-head distance? The parameter insidesection= helps: \setupwhitespace[big] \def\SPACE#1{#1\hskip2em\hbox{}} \setuphead[section] [style=\bf, after={\blank[big]}, before={\blank[big,medium]}, color=walayahgreen, alternative=text, insidesection=\hskip-1.2em] % textcommand=\SPACE] \setuphead[subsection] [style=\bf, after={\blank[big]}, before={\blank[big,medium]}, color=walayahgreen, alternative=text, insidesection=\hskip-1.2em] \setuphead[subsubsection] [style=\bf, after={\blank[big]}, before={\blank[big,medium]}, color=walayahgreen, alternative=text, insidesection=\hskip-1.2em] \define[1]\PARHEAD {{\bf{#1}}} \starttext \starttitle[title=Section 1] \startsection[title=Paragraph 1] \input ward \stopsection \startsection \PARHEAD{Paragraph 2.} \input ward \startparagraph \input ward \stopparagraph \startsubsection \input ward \startsubsubsection \input ward \stopsubsubsection \stopsubsection \stopsection \startsection \input ward \startsubsubsection \input ward \stopsubsubsection \stopsection \stoptitle \stoptext Paragraph 1 shows that we cannot use the normal title= mechanism and maintain consistent spacing. Paragraph 2 does not use the \start|stopparagraph mechanism, but the succeeding non-numbered paragraph does. CHALLENGES: 1. See the following: https://www.dropbox.com/s/wckt0zm0zfpx721/numbered-paragraphs-indent.pdf?dl=0 The first numbered paragraph is not indented, but the second onward is. How can we automate this? 2. See attached. Consider the following snippet: \startsection \input ward \startsubsubsection \input ward \stopsubsubsection \stopsection The paragraph number comes out as 3, but the subsubparagraph as 1. What we want is 3 3.01 The '0' indicates that there is no subsection. Here is an example: https://www.dropbox.com/s/gy3e93x7jqt6ivx/numbered-paragraphs-indent-01.pdf?dl=0 How can we automate this? Thanks in advance for any guidance and pointers. Best wishes Idris Paragraph three shows that one apparently cannot mix this sectioning approach with the \start-stopparagraph mechanism. Question 2: Is there a way to mix \start-stopparagraph with the above subsection approach to par numbering? I suppose that as long as I maintain exactly one paragraph per subsection, then structured output (xml etc.) should look ok. Question 3: Is there a wiser way to handle this kind of par numbering in mkiv? Thanks in advance! Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 section-intext.pdf Description: Adobe PDF document ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] methods for numbered paragraphs (ii)
[Sent this a couple of days ago, maybe will get some takers this time -)] Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em] \starttext \startsection[title=Section 1] \startsubsection \input ward \stopsubsection \startsubsection[title=Paragraph 2] \input ward \stopsubsection \startsubsection \startparagraph \input ward \stopparagraph \stopsubsection \stopsection \stoptext == See attached output. In paragraphs 1 and 2, there is too much distance between the subsection number (subsection number + title in paragraph 2) and between the text. The distance parameter is not appropriate here, it is the distance *after* the section head that needs adjustment (even if the text portion of the head (i.e., the section title) is empty). Question 1: How do we fix the post-head distance? Paragraph three shows that one apparently cannot mix this sectioning approach with the \start-stopparagraph mechanism. Question 2: Is there a way to mix \start-stopparagraph with the above subsection approach to par numbering? I suppose that as long as I maintain exactly one paragraph per subsection, then structured output (xml etc.) should look ok. Question 3: Is there a wiser way to handle this kind of par numbering in mkiv? Thanks in advance! Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 section-intext.pdf Description: Adobe PDF document ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors
On 08/05/2017 03:36 PM, Jean-Pierre Delange wrote: > [...] > You only have to configure two things : the path where texworks > finds context executable (~/home/context/tex/texmf-linux32/bin or > /.../linux64/bin, and the same for Microsoft Windows). And a to give > a little parameter to TeXworks. Many thanks for your explanation, Jean-Pierre. I have tried to set it up before, but with the wrong path to binaries. I thought they were located in the ~/context/bin directory, when they actually were located in the ~/context/tex/texmf-linux/bin directory. Everything works now as expected. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors
On 08/05/2017 01:50 PM, Arthur Reutenauer wrote: >> Does anyone know how to make the previous commands work with TeXworks? > > Not off the top of my head; you’ll probably find more help on the > TeXworks list (http://tug.org/mailman/listinfo/texworks), I’m sure I’ve > seen this question discussed before. I think it’s as simple as putting > the command in question in a small script file that you place in > TeXworks’ configuration directory. Hi Arthur, I opened an issue on this topic at GitHub, but I didn’t know there were a mailing list. I have just subscribed to the list, but it seems I have to wait for moderation ;-). I read in the wiki (at GitHub) that adding a script could be an option. But this would be an option for me. Not for a newbie. I mean, I wouldn’t mind to add the script in a computer for a friend. But I would do that myself. Otherwise, it doesn’t have to be dangerous, but it would be extremely hard for people without previous experience. > I agree that TeXworks is probably on the best choices for newcomers. On the top of the feature that TeXworks is newcomers-friendly, it has also been designed with ConTeXt in mind. One of the weirdest things in the TeX world can be summarized in a single question: why do we say TeX when we only mean LaTeX? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors
Hi Pablo, I use to work (to compile) on ConTeXt documents only with TeXworks (on Linux and Windows). Then I guess you're much more able to work with TeXWork than me ! It's very useful and it allows double windows simultaneously : on left your ctx code, on right the pdf output. You only have to configure two things : the path where texworks finds context executable (~/home/context/tex/texmf-linux32/bin or /.../linux64/bin, and the same for Microsoft Windows). And a to give a little parameter to TeXworks. I am afraid that you have to read my French explanation here : https://fr.wikibooks.org/wiki/ConTeXt#Installation_et_configuration_de_TeXWorks But I translate the most important (point 3 of the link given above): When TeXworks is open, go to "Typesetting/Composition" within the "Edition =>Preferences" menu. The inferior table "Processing Tools", just create a new tool by clicking on "+" and write "ConTeXt MKIV". In the field "Program", give the path to "context.exe", the same given above. Inside the mask "Arguments" add "$fullname" AND THAT'S ALL ! (Now you are under TeXworks : you must have "ConTeXt MKIV" just beside the green arrow. If your compilation doesn't work maybe it is because you are trying to compile your *.tex file with another executable (pdftex, pdflatex, or anything else...). Very good idea to build some Spanish documentation on ConTeXt ! Hope it may helps ! JP - Mail original - De: "Pablo Rodriguez"À: "mailing list for ConTeXt users" Envoyé: Samedi 5 Août 2017 13:40:40 Objet: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors Dear list, I’m writing an introduction to ConTeXt in Spanish. Before any new user can start compiling ConTeXt sources, I realize that I have to explain how to configure an editor for ConTeXt. Since I plan to deal with the latest beta from the ConTeXt Suite, I need to explain how to deploy it. I use Geany in Linux and Notepad++ in Windows. But they are too complex for newbies. TeXworks seems the best option to start with (and to explain to newcomers). I compile my documents with the following commands: source ~/context/tex/setuptex && contextjit document.tex I had never problems with that. But as soon as I started to test Qt applications, I cannot use this. I mean, the commands above don’t work either with TeXworks or TexitEasy. Does anyone know how to make the previous commands work with TeXworks? Setting paths is something I want to avoid, since it is potentially dangerous for newbies. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXworks or TeXItEasy as ConTeXt editors
Hi Pablo, > I’m writing an introduction to ConTeXt in Spanish. Great initiative! > Does anyone know how to make the previous commands work with TeXworks? Not off the top of my head; you’ll probably find more help on the TeXworks list (http://tug.org/mailman/listinfo/texworks), I’m sure I’ve seen this question discussed before. I think it’s as simple as putting the command in question in a small script file that you place in TeXworks’ configuration directory. I agree that TeXworks is probably on the best choices for newcomers. > Setting paths is something I want to avoid, since it is potentially > dangerous for newbies. It really shouldn’t be necessary. Best, Arthur ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] TeXworks or TeXItEasy as ConTeXt editors
Dear list, I’m writing an introduction to ConTeXt in Spanish. Before any new user can start compiling ConTeXt sources, I realize that I have to explain how to configure an editor for ConTeXt. Since I plan to deal with the latest beta from the ConTeXt Suite, I need to explain how to deploy it. I use Geany in Linux and Notepad++ in Windows. But they are too complex for newbies. TeXworks seems the best option to start with (and to explain to newcomers). I compile my documents with the following commands: source ~/context/tex/setuptex && contextjit document.tex I had never problems with that. But as soon as I started to test Qt applications, I cannot use this. I mean, the commands above don’t work either with TeXworks or TexitEasy. Does anyone know how to make the previous commands work with TeXworks? Setting paths is something I want to avoid, since it is potentially dangerous for newbies. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___