https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Serge&feedformat=atomWiki - User contributions [en]2024-03-28T12:01:25ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Bold_typewriter&diff=22177Bold typewriter2013-11-13T19:11:55Z<p>Serge: Removed a spam ad at the top of this page!</p>
<hr />
<div>< [[From LaTeX to ConTeXt]] ><br />
<br />
== ConTeXt ==<br />
<br />
The exact same thing can be done in ConTeXt, although the syntax is slightly more verbose.<br />
<br />
<texcode><br />
\definebodyfont [12pt] [tt] [bf=cmttb10 at 12pt]<br />
\definebodyfont [11pt] [tt] [bf=cmttb10 at 11pt]<br />
\definebodyfont [10pt] [tt] [bf=cmttb10]<br />
\definebodyfont [9pt] [tt] [bf=cmttb10 at 9pt]<br />
\definebodyfont [8pt] [tt] [bf=cmttb10 at 8pt]<br />
<br />
\starttext<br />
{\tt Normal and \bf bold Typewriter.}<br />
\stoptext<br />
</texcode><br />
<br />
However, instead of requiring that this be defined in each document, ConTeXt also provides the possibility of including it automatically as part of the default font setups. This can be done by putting the following typescript definitions in <code>/usr/share/texmf/tex/context/third/type-loc.tex</code>. The version shown here also uses the newer (and bolder) <code>cmbtt</code> family; to use the older <code>cmttb10</code> fonts, uncomment them and comment out the other set.<br />
<br />
<texcode><br />
\starttypescript [mono] [computer-modern] [size]<br />
% Newer, more-bold version of the bold typewriter fonts.<br />
\definebodyfont [12pt] [tt] [bf=cmbtt10 at 12pt]<br />
\definebodyfont [11pt] [tt] [bf=cmbtt10 at 11pt]<br />
\definebodyfont [10pt] [tt] [bf=cmbtt10]<br />
\definebodyfont [9pt] [tt] [bf=cmbtt9]<br />
\definebodyfont [8pt] [tt] [bf=cmbtt8]<br />
%% Older, less-bold version of the bold typewriter fonts.<br />
% \definebodyfont [12pt] [tt] [bf=cmttb10 at 12pt]<br />
% \definebodyfont [11pt] [tt] [bf=cmttb10 at 11pt]<br />
% \definebodyfont [10pt] [tt] [bf=cmttb10]<br />
% \definebodyfont [9pt] [tt] [bf=cmttb10 at 9pt]<br />
% \definebodyfont [8pt] [tt] [bf=cmttb10 at 8pt]<br />
\stoptypescript<br />
</texcode><br />
<br />
Then, the fonts can be accessed without any additional setup in the documents, as in this example:<br />
<texcode><br />
\starttext<br />
{\tt Normal and \bf bold Typewriter.}<br />
\stoptext<br />
</texcode><br />
<br />
The support for bold typewriter exists also as a module: http://pmrb.free.fr/work/OS/ConTeXt/<br />
<br />
(''But it would be great if those definitions were a part of [[source:type-siz.tex|type-siz.tex]]; --[[User:Mojca Miklavec|Mojca]]'')<br />
<br />
[[Category:Fonts]]<br />
[[Category:From LaTeX]]</div>Sergehttps://wiki.contextgarden.net/index.php?title=Talk:ConTeXt_Standalone&diff=22060Talk:ConTeXt Standalone2013-09-09T19:44:48Z<p>Serge: Additional ConTeXt Standalone instructions for Debian and derivatives</p>
<hr />
<div>== Debian & Derivatives ==<br />
I had trouble installing ConTeXt Standalone under LMDE, a Debian derivative.<br />
At the end, I solved my problem by adopting and adapting part of the ConTeXt Standalone instructions for Ubuntu. What I did, is explained at TeX.SE [http://tex.stackexchange.com/a/132464/26348].<br />
Considering the popularity of Debian, I would like to see this information also here. Furthermore, there is no link from this page to the Ubuntu Standalone instructions page.--[[User:Serge|Serge]] 21:44, 9 September 2013 (CEST)<br />
<br />
== Binary versions ==<br />
<br />
Mojca, what is the linux kernel version? There is a difference between binaries for 2.4.x and 2.6.x kernels. If ldd reports linux-gate.so, then it is a 2.6 binary and will not run on 2.4 kernels, regardless of glibc version. [[User:Taco|Taco]]<br />
<br />
: Garden uses kernel 2.6. If anyone starts complaining about too new kernel, we should start seeking an older machine (or maybe create a virtual machine somewhere). --[[User:Mojca Miklavec|Mojca]] 11:42, 21 April 2008 (CEST)<br />
<br />
== older content ==<br />
<br />
Installation is done by the <code>mtx-update.lua</code> which is already part of ConTeXt. If you already have a working installation, you should be able to use it through the generic <code>mtxrun</code>: [actually this is a little lie for the moment; even the most recent mtx-update.lua needs to be updated itself in order for the process to work].<br />
<br />
mtxrun --script update --platform=<your platform> --engine=<a TeX engine> --texroot=<install dir> --update<br />
<br />
Platform can be ''win'', ''linux'', ''linux-64'', ''osx-ppc'', ''osx-intel'' or ''sun'' (default: ''win'');<br />
engine can be ''pdftex'', ''xetex'', ''luatex'', ''all'', or a comma-separated list of any of those (default: ''all''). If you want to specify a list of engines, you would have to protect it on most shells: <code>--engine='xetex, luatex'</code>, for example. TeX root, obviously, is the location of your installation (the directory where texmf trees like texmf, texmf-local, etc. are to be found), default: ''tex'' (relative to the current directory).<br />
<br />
Most of the task of <code>mtx-update</code> is to run <code>rsync</code> to synchronize your local installation with the repository. It is assumed that Unix users (including Mac OS X) would have an rsync client installed by default on their system; for Windows an rsync binary is provided as part of the initial setup (see next paragraph).<br />
<br />
If you ''don't'' have an installed ConTeXt distribution, you must download from http://minimals.contextgarden.net/setup/ the appropriate zip archive for your system, and run the shell / batch script in the top-level directory (which should be called <code>context</code>); it is a very simple script that sets the necessary environment to run mtx-update, and it accepts exactly the same switches as mtx-update. By default it will install a ConTeXt distribution suitable for pdfTeX on your system; the top-level directory for that distribution will be <code>context/tex</code> until you tell it otherwise (with the <code>--texroot</code> switch).<br />
<br />
== More older content ==<br />
<br />
= Contents =<br />
<br />
The minimals contain:<br />
* '''ConTeXt''': current, beta + some older releases<br />
* '''Fonts''': most important TeX-aware ones<br />
* '''Binaries''': latest version of pdfTeX, XeTeX, LuaTeX, Metapost<br />
* '''Formats''' (need to be generated by user) for<br />
** ConTeXt, mptopdf and plain TeX for pdfTeX/XeTeX/LuaTeX<br />
** metafun and plain for Metapost<br />
<br />
See [[ConTeXt Minimals/Contents]].<br />
<br />
= Configuration =<br />
<br />
=== What to install ===<br />
* --'''platform'''=''name-of-platform'' (see supported platforms; default: the one we are working on)<br />
* --'''engines'''=''list-of-engines'' (options: luatex, xetex, pdftex, all; default: '''all''')<br />
* --'''context'''=''version'' (options: current, beta, alpha, ''yyyy.mm.dd''; default: '''beta''')<br />
<br />
=== What to do ===<br />
* --'''force''' (as opposed to --dryrun; do the real thing; this is '''needed''') ''needs to be fixed''<br />
* --'''update''' (update minimal tree)<br />
* --'''make''' (make formats and generate file databases)<br />
* --state (update tree using saved state) ''needs to be implemented/fixed''<br />
* --keep (as apposed to --delete; don't delete unused or obsolete files) ''needs to be improved''<br />
=== Where to install ===<br />
* --'''texroot'''=''path'' (installation path; default: '''tex''')<br />
=== Rsync Server ===<br />
''(currently there's only one anyway)''<br />
* --'''server'''=''repository-url'' (default: '''<code>rsync://contextgarden.net</code>''')<br />
* --'''module'''=''string'' (default: '''minimals''')<br />
* --'''rsync'''=''name-of-rsync-binary'' (default: '''rsync''') ''Why do we need this?''<br />
<br />
See also [[ConTeXt Minimals/Implementation]].<br />
<br />
== script cleanup ==<br />
<br />
line 5 in first-setup.sh tells me:<br />
<pre># feel free to suggest a more elegant solution</pre><br />
so i do.<br />
<br />
<pre>if which rsync &> /dev/null; then<br />
echo "OK" > /dev/null<br />
else<br />
echo "You need to install rsync first."<br />
exit<br />
fi<br />
</pre><br />
can be replaced with<br />
<pre><br />
if [ ! -x "`which rsync`" ]; then<br />
echo "You need to install rsync first."<br />
exit 1<br />
fi<br />
</pre><br />
<br />
or (as there is another such test below):<br />
<pre><br />
check_and_complain () {<br />
if [ ! -x "`which $1`" ]; then<br />
echo "You need to install $1 first."<br />
exit 1<br />
fi<br />
}<br />
check_and_complain rsync<br />
check_and_complain ruby<br />
</pre><br />
<br />
Tobias Florek (w/o user account)<br />
<br />
== Ruby version ==<br />
<br />
On that recent change to ruby 1.8 '''or newer''': has this actually been tested? Last I remember, there were big problems with ruby 1.9 because it is not upward compatible with ruby 12.8 sources [[User:Taco|Taco]] 14:32, 8 May 2010 (UTC)<br />
: I have no idea. I have 1.8 here and I'm not sure if I want to mess with my system. The user from Lithuania(?) who wrote that did not login, so maybe he wrote "or later" just because this usually is the case with programming languages. I have no idea to what extent the incompatibility goes. --[[User:Mojca Miklavec|Mojca]] 12:27, 10 May 2010 (UTC)<br />
<br />
:: Hans says that it "should" work [[User:Taco|Taco]] 12:39, 10 May 2010 (UTC)<br />
<br />
== Contextwriter: mac links ==<br />
<br />
There are a great many links to the internet that are potentially useful to people that have trouble handling their own computer, but those are not on topic for this wiki. Please don't add 'how to use your Apple' links on ConTeXt specific pages, it clutters the wiki with off-topic information. [[User:Taco|Taco]] 08:48, 11 August 2010 (UTC)<br />
<br />
: Actually, I thought for a moment that you were a commercial spammer because you don't have a user page and were posting links to external sites. If you really '''must''' have Mac-specific links on this wiki, please add them to [[Mac Fix]], that page seems to contain more of that. [[User:Taco|Taco]]</div>Sergehttps://wiki.contextgarden.net/index.php?title=Talk:ConTeXt_Standalone&diff=22059Talk:ConTeXt Standalone2013-09-09T19:43:11Z<p>Serge: Additional ConTeXt Standalone instructions for Debian and derivatives</p>
<hr />
<div>== Debian & Derivatives ==<br />
I had trouble installing ConTeXt Standalone under LMDE, a Debian derivative.<br />
At the end, I solved my problem by adopting and adapting part of the ConTeXt Standalone instructions for Ubuntu. What I did, is explained at TeX.SE [http://tex.stackexchange.com/a/132464/26348].<br />
Considering the popularity of Debian, I would like to see this information also here. Furthermore, there is no link from this page to the Ubuntu Standalone instructions page.<br />
<br />
== Binary versions ==<br />
<br />
Mojca, what is the linux kernel version? There is a difference between binaries for 2.4.x and 2.6.x kernels. If ldd reports linux-gate.so, then it is a 2.6 binary and will not run on 2.4 kernels, regardless of glibc version. [[User:Taco|Taco]]<br />
<br />
: Garden uses kernel 2.6. If anyone starts complaining about too new kernel, we should start seeking an older machine (or maybe create a virtual machine somewhere). --[[User:Mojca Miklavec|Mojca]] 11:42, 21 April 2008 (CEST)<br />
<br />
== older content ==<br />
<br />
Installation is done by the <code>mtx-update.lua</code> which is already part of ConTeXt. If you already have a working installation, you should be able to use it through the generic <code>mtxrun</code>: [actually this is a little lie for the moment; even the most recent mtx-update.lua needs to be updated itself in order for the process to work].<br />
<br />
mtxrun --script update --platform=<your platform> --engine=<a TeX engine> --texroot=<install dir> --update<br />
<br />
Platform can be ''win'', ''linux'', ''linux-64'', ''osx-ppc'', ''osx-intel'' or ''sun'' (default: ''win'');<br />
engine can be ''pdftex'', ''xetex'', ''luatex'', ''all'', or a comma-separated list of any of those (default: ''all''). If you want to specify a list of engines, you would have to protect it on most shells: <code>--engine='xetex, luatex'</code>, for example. TeX root, obviously, is the location of your installation (the directory where texmf trees like texmf, texmf-local, etc. are to be found), default: ''tex'' (relative to the current directory).<br />
<br />
Most of the task of <code>mtx-update</code> is to run <code>rsync</code> to synchronize your local installation with the repository. It is assumed that Unix users (including Mac OS X) would have an rsync client installed by default on their system; for Windows an rsync binary is provided as part of the initial setup (see next paragraph).<br />
<br />
If you ''don't'' have an installed ConTeXt distribution, you must download from http://minimals.contextgarden.net/setup/ the appropriate zip archive for your system, and run the shell / batch script in the top-level directory (which should be called <code>context</code>); it is a very simple script that sets the necessary environment to run mtx-update, and it accepts exactly the same switches as mtx-update. By default it will install a ConTeXt distribution suitable for pdfTeX on your system; the top-level directory for that distribution will be <code>context/tex</code> until you tell it otherwise (with the <code>--texroot</code> switch).<br />
<br />
== More older content ==<br />
<br />
= Contents =<br />
<br />
The minimals contain:<br />
* '''ConTeXt''': current, beta + some older releases<br />
* '''Fonts''': most important TeX-aware ones<br />
* '''Binaries''': latest version of pdfTeX, XeTeX, LuaTeX, Metapost<br />
* '''Formats''' (need to be generated by user) for<br />
** ConTeXt, mptopdf and plain TeX for pdfTeX/XeTeX/LuaTeX<br />
** metafun and plain for Metapost<br />
<br />
See [[ConTeXt Minimals/Contents]].<br />
<br />
= Configuration =<br />
<br />
=== What to install ===<br />
* --'''platform'''=''name-of-platform'' (see supported platforms; default: the one we are working on)<br />
* --'''engines'''=''list-of-engines'' (options: luatex, xetex, pdftex, all; default: '''all''')<br />
* --'''context'''=''version'' (options: current, beta, alpha, ''yyyy.mm.dd''; default: '''beta''')<br />
<br />
=== What to do ===<br />
* --'''force''' (as opposed to --dryrun; do the real thing; this is '''needed''') ''needs to be fixed''<br />
* --'''update''' (update minimal tree)<br />
* --'''make''' (make formats and generate file databases)<br />
* --state (update tree using saved state) ''needs to be implemented/fixed''<br />
* --keep (as apposed to --delete; don't delete unused or obsolete files) ''needs to be improved''<br />
=== Where to install ===<br />
* --'''texroot'''=''path'' (installation path; default: '''tex''')<br />
=== Rsync Server ===<br />
''(currently there's only one anyway)''<br />
* --'''server'''=''repository-url'' (default: '''<code>rsync://contextgarden.net</code>''')<br />
* --'''module'''=''string'' (default: '''minimals''')<br />
* --'''rsync'''=''name-of-rsync-binary'' (default: '''rsync''') ''Why do we need this?''<br />
<br />
See also [[ConTeXt Minimals/Implementation]].<br />
<br />
== script cleanup ==<br />
<br />
line 5 in first-setup.sh tells me:<br />
<pre># feel free to suggest a more elegant solution</pre><br />
so i do.<br />
<br />
<pre>if which rsync &> /dev/null; then<br />
echo "OK" > /dev/null<br />
else<br />
echo "You need to install rsync first."<br />
exit<br />
fi<br />
</pre><br />
can be replaced with<br />
<pre><br />
if [ ! -x "`which rsync`" ]; then<br />
echo "You need to install rsync first."<br />
exit 1<br />
fi<br />
</pre><br />
<br />
or (as there is another such test below):<br />
<pre><br />
check_and_complain () {<br />
if [ ! -x "`which $1`" ]; then<br />
echo "You need to install $1 first."<br />
exit 1<br />
fi<br />
}<br />
check_and_complain rsync<br />
check_and_complain ruby<br />
</pre><br />
<br />
Tobias Florek (w/o user account)<br />
<br />
== Ruby version ==<br />
<br />
On that recent change to ruby 1.8 '''or newer''': has this actually been tested? Last I remember, there were big problems with ruby 1.9 because it is not upward compatible with ruby 12.8 sources [[User:Taco|Taco]] 14:32, 8 May 2010 (UTC)<br />
: I have no idea. I have 1.8 here and I'm not sure if I want to mess with my system. The user from Lithuania(?) who wrote that did not login, so maybe he wrote "or later" just because this usually is the case with programming languages. I have no idea to what extent the incompatibility goes. --[[User:Mojca Miklavec|Mojca]] 12:27, 10 May 2010 (UTC)<br />
<br />
:: Hans says that it "should" work [[User:Taco|Taco]] 12:39, 10 May 2010 (UTC)<br />
<br />
== Contextwriter: mac links ==<br />
<br />
There are a great many links to the internet that are potentially useful to people that have trouble handling their own computer, but those are not on topic for this wiki. Please don't add 'how to use your Apple' links on ConTeXt specific pages, it clutters the wiki with off-topic information. [[User:Taco|Taco]] 08:48, 11 August 2010 (UTC)<br />
<br />
: Actually, I thought for a moment that you were a commercial spammer because you don't have a user page and were posting links to external sites. If you really '''must''' have Mac-specific links on this wiki, please add them to [[Mac Fix]], that page seems to contain more of that. [[User:Taco|Taco]]</div>Serge