Hello, how to translate in context the following plain tex: \font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian
Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works
\starttext \font\fgras = lmmonolt10-bold.otf {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext -- luigi
On Fri, 9 Apr 2010 11:27:38 +0200
luigi scarso
On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian
wrote: Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works
\starttext \font\fgras = lmmonolt10-bold.otf {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext
-- luigi
thanks luigi, it compiles with 'context 2010.01.26' but: - the "def" is not in bold - context adds \n between every line. my 76 pages of Python code rewritten in plain tex by a python script are "accetabile" (compile by pdftex) - so i will try to
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian
On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso
scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian
wrote: Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works
\starttext \font\fgras = lmmonolt10-bold.otf {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext
-- luigi
thanks luigi, it compiles with 'context 2010.01.26' but: - the "def" is not in bold "def" is bold (you can see it with pdffonts) only it's loaded at 10pt, while body font is 12pt (I believe)
- context adds \n between every line. hmm, If I cut-and-paste to vim I see the same as pdf , ie no extra \n anyway you can play with interlinespace
\starttext \font\fgras = lmmonolt10-bold.otf at 12pt {\tt\setupinterlinespace[line=1ex] {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext
my 76 pages of Python code rewritten in plain tex by a python script are "accetabile" (compile by pdftex) - so i will try to
thank you to remember me that I'm always on late with python pretty printer ... -- luigi
On Fri, 9 Apr 2010 14:32:08 +0200
luigi scarso
On Fri, Apr 9, 2010 at 1:35 PM, R. Bastian
wrote: On Fri, 9 Apr 2010 11:27:38 +0200 luigi scarso
scribit: On Fri, Apr 9, 2010 at 11:20 AM, R. Bastian
wrote: Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } not a solution, but this works
\starttext \font\fgras = lmmonolt10-bold.otf {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext
-- luigi
thanks luigi, it compiles with 'context 2010.01.26' but: - the "def" is not in bold "def" is bold (you can see it with pdffonts) only it's loaded at 10pt, while body font is 12pt (I believe)
it is true - i saw it just after sending the mail.
- context adds \n between every line. hmm, If I cut-and-paste to vim I see the same as pdf , ie no extra \n anyway you can play with interlinespace
ok \interlinespace works
\starttext \font\fgras = lmmonolt10-bold.otf at 12pt {\tt\setupinterlinespace[line=1ex] {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext
but remains that every {\bf xxxx} introduces a white space; how to force context to make a "backspace" ?
my 76 pages of Python code rewritten in plain tex by a python script are "accetabile" (compile by pdftex) - so i will try to
thank you to remember me that I'm always on late with python pretty printer ..
it would be fine ....
-- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, Apr 09 2010, R. Bastian wrote:
but remains that every {\bf xxxx} introduces a white space; how to force context to make a "backspace" ?
\setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
On Fri, Apr 9, 2010 at 5:24 PM, Peter Münster
On Fri, Apr 09 2010, R. Bastian wrote:
but remains that every {\bf xxxx} introduces a white space; how to force context to make a "backspace" ?
\setuplines[space=on] \starttext \startlines[style=mono] {\bf{}def} ra(): a = 3 b = 4 \stoplines \stoptext
Cheers, Peter
I'm not able to see any "white space" in mkiv \showframe \starttext \font\fgras = lmmonolt10-bold.otf at 12pt \ruledvbox{\tt\setupinterlinespace[line=1ex] {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 \vskip1\lineheight {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } } \stoptext -- luigi
On Fri, Apr 09 2010, luigi scarso wrote:
On Fri, Apr 09 2010, R. Bastian wrote:
but remains that every {\bf xxxx} introduces a white space;
I'm not able to see any "white space" in mkiv
Bastian refers to Wolfgang's solution with "\setuplines[space=on]". Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
Am 09.04.10 11:20, schrieb R. Bastian:
Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } }
MkII: \setuplines[space=on] \starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext Wolfgang
On Fri, 09 Apr 2010 12:00:05 +0200
Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian:
Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } }
MkII:
\setuplines[space=on]
\starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext
Wolfgang
Thanks Wolfhang. It goes better, but there is still a little bug: {\bf def} inserts a white space in front of the line Compare: {\bf def} ra(): def ra(): a = 3 b = 4 -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, 09 Apr 2010 12:00:05 +0200
Wolfgang Schuster
Am 09.04.10 11:20, schrieb R. Bastian:
Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } }
MkII:
\setuplines[space=on]
\starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext
Wolfgang
___________________________________________________________________________________
1. I use 'context -result=y source.tex'; is this mkii or mkiv ? (mkii seems to be an optional flag) 2. what is the Context font for cmitt10 ? -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, 16 Apr 2010 11:36:47 +0200
luigi scarso
On Fri, Apr 16, 2010 at 11:31 AM, R. Bastian
wrote: 1. I use 'context -result=y source.tex'; is this mkii or mkiv ? It's mkiv
For mkii use $> texexec source.tex
ok, but there is a bug in mkii: texte \input f.tex another text \input f.tex does not work (the second time, f.tex is not input) so i use context
-- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, Apr 16, 2010 at 11:49 AM, R. Bastian
On Fri, 16 Apr 2010 11:36:47 +0200 luigi scarso
scribit: On Fri, Apr 16, 2010 at 11:31 AM, R. Bastian
wrote: 1. I use 'context -result=y source.tex'; is this mkii or mkiv ? It's mkiv
For mkii use $> texexec source.tex
ok, but there is a bug in mkii:
texte
\input f.tex
another text
\input f.tex
does not work (the second time, f.tex is not input) so i use context sorry, I don't understand --- can you post a minimal example ?
-- luigi
On Fri, 16 Apr 2010 11:54:57 +0200
luigi scarso
On Fri, Apr 16, 2010 at 11:49 AM, R. Bastian
wrote: On Fri, 16 Apr 2010 11:36:47 +0200 [...] so i use context sorry, I don't understand --- can you post a minimal example ?
no, _i_ was the error :-)
-- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
On Fri, 16 Apr 2010 11:31:00 +0200
"R. Bastian"
On Fri, 09 Apr 2010 12:00:05 +0200 Wolfgang Schuster
scribit: Am 09.04.10 11:20, schrieb R. Bastian:
Hello,
how to translate in context the following plain tex:
\font\fgras = cmbtt10 {\tt {\obeylines {\fgras def} ra(): \ \ \ \ a = 3 \ \ \ \ b = 4 } }
MkII:
\setuplines[space=on]
\starttext \startlines\tt %\startlines[style=mono] % works only in MkIV {\bf def} ra(): a = 3 b = 4 \stoplines \stoptext
Wolfgang
___________________________________________________________________________________
1. I use 'context -result=y source.tex'; is this mkii or mkiv ? (mkii seems to be an optional flag)
2. what is the Context font for cmitt10 ?
{\it{} ...} works - but i would the same as \bold{}
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
Am 16.04.10 11:31, schrieb R. Bastian:
2. what is the Context font for cmitt10 ?
ConTeXt use Latin Modern by default, to get italic typewriter you can write \tt\it ... or \ttit ... or \definefont[italictypewriter][MonoItalic] and use the font with \italictypewriter ... or \definedfont[MonoItalic]... Wolfgang
On Fri, 09 Apr 2010 12:00:05 +0200
Wolfgang Schuster
\setuplines[space=on]
\starttext \startlines\tt %\startlines[style=mono] % works only in MkIV
compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono]
{\bf def} ra(): a = 3 b = 4 \stoplines \stoptext
Wolfgang
------------------------- the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs | <text> | the message: "File ended while use of \next" \type{|} works ------------------------- rrrr -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
Am 16.04.10 23:41, schrieb R. Bastian:
%\startlines[style=mono] % works only in MkIV
compiled by context (== mak iv ?) \startlines[style=mono] prints [style=mono]
Direct setups are now gone because they produced unwanted side effects. What you can in Mark 4 (MkIV) is to define you own lines environment. \definelines[code][style=mono,space=on] \startcode \bold{def} ra() ... \stopcode
the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |<text> |
the message: "File ended while use of \next"
\type{|} works
To keep the current font use \| or \letterbar Wolfgang
On Sat, 17 Apr 2010 06:37:02 +0200
Wolfgang Schuster
the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |<text> |
the message: "File ended while use of \next"
\type{|} works
To keep the current font use \| or \letterbar
Wolfgang
what is the sense of | <text> | ?
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/
Am 17.04.10 10:51, schrieb R. Bastian:
what is the sense of |<text> | ?
participants (4)
-
luigi scarso
-
Peter Münster
-
R. Bastian
-
Wolfgang Schuster