Re: [NTG-context] How to Centre Multi-line Verbatim Text
Thank you Wolfgang. On Saturday, March 14, 2015, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 13.03.2015 um 21:32 schrieb Emmanuel Asante emmanuela.asa...@gmail.com javascript:;: Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page? \setuptyping[TEX] \startTEX RSpec.describe Post, :type = :model do end \stopTEX You can add a framedtext environment around the verbatim text and use “location=middle” to center it. \setuptyping [TEX] [before={\startframedtext[location=middle]}, after=\stopframedtext] \starttext \startTEX RSpec.describe Post, :type = :model do end \stopTEX \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl javascript:; / 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 ___ ___ 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] How to Centre Multi-line Verbatim Text
Hello All, I am trying to centre a multi-line verbatim text horizontally on the page but I cannot figure out how to do that. With the code below how can I centre the whole block horizontally on the page? \setuptyping[TEX] \startTEX RSpec.describe Post, :type = :model do end \stopTEX Thanks Emmanuel ___ 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] How to Turn off the Table of Contents Title
On Thu, Mar 8, 2012 at 3:41 PM, Marco net...@lavabit.com wrote: On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: How do I turn off the title on the top of the table of contents ie the text Content that appears on top of the table? Use \placecontent instead of \completecontent Marco Thanks Marco for the solution. ___ 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 ___ ___ 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] Getting a Header Line to Start from Left Margin
Hi All, I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Thanks Emmanuel ___ 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] Getting a Header Line to Start from Left Margin
On Fri, Mar 9, 2012 at 10:32 AM, Marco net...@lavabit.com wrote: On 2012-03-09 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I have a chapter heading text starting in the left margin and a hairline below my header texts spanning the full width of the header. Since the chapter begins in the left margin, there is no line on top of the chapter heading text in the margin. How can I get the line to also start in the margin where the chapter heading text begins? Honestly, I had to read your post three times to understand what you want to achieve. \setuplayout [leftmargindistance=0pt] \setupbackgrounds [header] [leftmargin,text] [bottomframe=on] I'd like to know, if there's a simple solution (I would write a MetaPost three-liner for this) without touching the leftmargindis- tance. Regards Marco Thanks. I had to do some trial and error before I got what I wanted, but it pointed me in the right direction. ___ 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 ___ ___ 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] Text Indentation and Space Around Headers
Hi All, I want to indent all text in a document except the chapter header text by a given amount. I have used the following to achieve it: \setupnarrower[left=3cm] and \startnarrower[left] \stopnarrower But I have the feeling that there has to be a better way of doing it. Secondly, how do I control the space around headers? I would like to reduce the big between the chapter header and the first paragraph. Any help will be very much appreciated. Regards, Emmanuel ___ 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] Text Indentation and Space Around Headers
Thanks Wolfgang, it works. On Thu, Mar 8, 2012 at 10:37 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 08.03.2012 um 18:08 schrieb Emmanuel Asante: Hi All, I want to indent all text in a document except the chapter header text by a given amount. I have used the following to achieve it: \setupnarrower[left=3cm] and \startnarrower[left] \stopnarrower But I have the feeling that there has to be a better way of doing it. It’s easier to move the headings to the left. Secondly, how do I control the space around headers? I would like to reduce the big between the chapter header and the first paragraph. Any help will be very much appreciated. \setuphead[chapter][after={\blank[…]}] Wolfgang ___ 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 ___ ___ 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] Text Indentation and Space Around Headers
On Thu, Mar 8, 2012 at 10:41 AM, Marco net...@lavabit.com wrote: On 2012-03-08 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I want to indent all text in a document except the chapter header text by a given amount. That's a strange way of doing things, if I get it right what you mean. If you want to have the number in the margin, you can use \setupheads [alternative=inmargin] or you can provide a negative indent for the heads \setupheads [margin=-2cm] which has the same effect as indenting everything else. Secondly, how do I control the space around headers? \setuphead [chapter] [ after=, % To remove the space %after={\blank[1cm]}, %after={\blank[2cm]}, ] Marco Marco, No, I don't want the number in the margin. As you and Wolfgang have suggested, it is easier to move the headers to the left than to move the text to the right. I will play around with it and see what I get. Thanks ___ 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 ___ ___ 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] How to Turn off the Table of Contents Title
Hi All, How do I turn off the title on the top of the table of contents ie the text Content that appears on top of the table? Regards, Emmanuel ___ 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] Page Header Text with Two Lines
Hi All, I tried to setup a page header with two lines using a command like this: \setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] but the \crlf command gets ignored. How do I achieve this? Best regards, Emmanuel ___ 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] Page Header Text with Two Lines
On Wed, Mar 7, 2012 at 9:58 AM, Marco net...@lavabit.com wrote: On 2012-03-07 Emmanuel Asante emmanuela.asa...@gmail.com wrote: I tried to setup a page header with two lines using a command like this: \setupheadertexts[Left Text][Right Text 1. \crlf Right Text 2] but the \crlf command gets ignored. How do I achieve this? \setupheadertexts [Left Text] [\setups{header:right}] \startsetups header:right \framed [align=broad,frame=off] {Right Text 1. \\ Right Text 2} \stopsetups \starttext Foo Bar \stoptext Marco Thanks, Marco, for the solution. It works. ___ 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 ___ ___ 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] Offsetting the Item Symbol
Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. Thanks, Emmanuel ___ 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] Offsetting the Item Symbol
Thanks, Wolfgang. Your solution is exactly what I wanted. On Tue, Dec 27, 2011 at 1:58 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 27.12.2011 um 21:33 schrieb Emmanuel Asante: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. \starttext \startitemize \item One \item Two \stopitemize \startitemize[margin=4cm] \item One \item Two \stopitemize \stoptext Wolfgang ___ 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 ___ ___ 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] Offsetting the Item Symbol
Hi Otared, Thanks for your suggestion. Wolgang gave me a solution that did what I was looking for. On Tue, Dec 27, 2011 at 2:02 PM, Otared Kavian ota...@gmail.com wrote: Hi Emmanuel, Is this what you want? Probably you can adapt the key « distance » to obtain what you want: \showframe \starttext %\startitemize[n][width=3cm,itemalign=flushright,distance=1em] \startitemize[n][itemalign=flushright,distance=1em,stopper={)},style={bold}] \dorecurse{12}{\item test} \stopitemize \stoptext Best regards: OK On 27 déc. 2011, at 21:33, Emmanuel Asante wrote: Hi All, I would like to offset itemized lists including the item symbol itself and I cannot figure out how to achieve that. I have looked at the setupitemize options but I did not find any option that does what I want. Any help in doing this will be very much appreciated. Thanks, Emmanuel ___ 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 ___ ___ 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 ___ ___ 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] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 5:30 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, Nov 9, 2010 at 12:27, Peter Davis wrote: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. However note that if you will want to use LaTeX again, you will have to put that path lower than MikTeX's binary path again. Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) Mojca ___ 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 ___ You do not have to install Context minimal separately. Just run the package manager and select Context and install. Context will work without any problems. Emmanuel ___ 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 ___