[NTG-context] Vertical rules in multiple column mode
Hello, the following code generates 3column pages: --- \starttext \startcolumns[n=3,rule=on] \dorecurse{5}{\section{\recurselevel}\input knuth} \stopcolumns \stoptext --- You can see that the vertical bars on the page 1 don't reach the "real" bottom of the "text height", whilst they do on the next page. It seems that the length (or "range") of the vertical bar is given by the height of the FIRST column. It seems to me that the rule height should rather be given as (or related to): 1) MAXIMUM of height of all columns 2) or height of i-th rule as maximum of height of i- and (i+1)-th column (each two ADJACENT columns). Is there a way how to effect this? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-Cols.mkiv Description: Binary data t-Cols.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] context does not hyphenate compounds correctly
>> I get lots of overfull \hbox with compounds because context does not >> hyphenate at the hyphen: >> >> \showframe >> \starttext >> averyverylongword averyverylongword averyverylongword averyverylongword >> three-component\par % overfull >> averyverylongword averyverylongword averyverylongword averyverylongword >> threecomponent\par % correct hyphenation >> \stoptext >> >> How can I fix this? > > MkIV: \setbreakpoints[compound] Yes, exactly what I was looking for. Thanks! Florian ___ 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] Pipe symbol
\starttext a \textbar\ b \letterbar\ c \type{|} d ||| e \stoptext Wolfgang Even more thanks! P.S. Searching Wiki for "pipe symbol" gives no useful results. At what section I can wikify this? -- Best Regards, Vyatcheslav Yatskovsky ___ 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] [PATCH] mtxrun: Typo. s/sometims/sometimes/
Date: Mon, 24 Jan 2011 02:05:06 +0100 The following command was used. $ git grep -l sometims | xargs sed -i 's/sometims/sometimes/' Signed-off-by: Paul Menzel --- I cloned [1] and created the patch against that tree. [1] http://gitorious.org/context --- scripts/context/lua/mtxrun.lua |4 ++-- scripts/context/stubs/mswin/mtxrun.lua |4 ++-- scripts/context/stubs/unix/mtxrun |4 ++-- tex/context/base/l-os.lua |4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index 75a5271..085ffaf 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -2175,7 +2175,7 @@ elseif os.type == "windows" then elseif name == "linux" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" @@ -2253,7 +2253,7 @@ elseif name == "freebsd" then elseif name == "kfreebsd" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "kfreebsd-amd64" diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index 75a5271..085ffaf 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -2175,7 +2175,7 @@ elseif os.type == "windows" then elseif name == "linux" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" @@ -2253,7 +2253,7 @@ elseif name == "freebsd" then elseif name == "kfreebsd" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "kfreebsd-amd64" diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index 75a5271..085ffaf 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -2175,7 +2175,7 @@ elseif os.type == "windows" then elseif name == "linux" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" @@ -2253,7 +2253,7 @@ elseif name == "freebsd" then elseif name == "kfreebsd" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "kfreebsd-amd64" diff --git a/tex/context/base/l-os.lua b/tex/context/base/l-os.lua index c2e2298..0448710 100644 --- a/tex/context/base/l-os.lua +++ b/tex/context/base/l-os.lua @@ -212,7 +212,7 @@ elseif os.type == "windows" then elseif name == "linux" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" @@ -290,7 +290,7 @@ elseif name == "freebsd" then elseif name == "kfreebsd" then function os.resolvers.platform(t,k) --- we sometims have HOSTTYPE set so let's check that first +-- we sometimes have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "kfreebsd-amd64" -- 1.7.2.3 signature.asc Description: This is a digitally signed message part __
Re: [NTG-context] Minimals/MTXrun: 32-bit system with 64-bit kernel: `MTXrun | no 'texmf-linux-64'`
On Mon, 24 Jan 2011, Paul Menzel wrote: Dear ConTeXt folks, I am running a 32-bit system with a 64-bit kernel. So relying on uname -m to determine the architecture leads to problems [1]. So I do `cpu = "i686` manually in `first-setup.sh` but I still do get the the following error message. sent 1145 bytes received 8908331 bytes 774737.04 bytes/sec total size is 31230200 speedup is 3.51 MTXrun | mtx update: updating mtxrun for linux: rsync -tgo --chmod=a+x /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua /opt/context/tex/texmf-linux/bin/mtxrun MTXrun | run: rsync -tgo --chmod=a+x /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua /opt/context/tex/texmf-linux/bin/mtxrun → MTXrun | no 'texmf-linux-64' under tree /opt/context/tex When you want to use context, you need to initialize the tree by typing: . /opt/context/tex/setuptex `first-setup.sh` executes the following command # download or update the distribution # you may remove the --context=beta switch if you want to use "current" mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all --context=beta --platform=$platform --texroot=$PWD/tex $@ but `mtxrun` or `mtx-update.lua` does not seem to honor the option `--platform` all the way. I tried to even hardcode `platform` to `linux` in `mtxrun` but it does not help.¹ elseif name == "linux" then function os.resolvers.platform(t,k) -- we sometims have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" elseif find(architecture,"ppc") then platform = "linux-ppc" else platform = "linux" end os.setenv("MTX_PLATFORM",platform) os.platform = platform → return "linux" end Could you please tell me, where the path for the `texmf` directory is determined and how I can force that to a certain platform. You could try setting HOSTTYPE to anything other than ppc or x86_64. 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 ___
[NTG-context] Minimals/MTXrun: 32-bit system with 64-bit kernel: `MTXrun | no 'texmf-linux-64'`
Dear ConTeXt folks, I am running a 32-bit system with a 64-bit kernel. So relying on uname -m to determine the architecture leads to problems [1]. So I do `cpu = "i686` manually in `first-setup.sh` but I still do get the the following error message. sent 1145 bytes received 8908331 bytes 774737.04 bytes/sec total size is 31230200 speedup is 3.51 MTXrun | mtx update: updating mtxrun for linux: rsync -tgo --chmod=a+x /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua /opt/context/tex/texmf-linux/bin/mtxrun MTXrun | run: rsync -tgo --chmod=a+x /opt/context/tex/texmf-context/scripts/context/lua/mtxrun.lua /opt/context/tex/texmf-linux/bin/mtxrun → MTXrun | no 'texmf-linux-64' under tree /opt/context/tex When you want to use context, you need to initialize the tree by typing: . /opt/context/tex/setuptex `first-setup.sh` executes the following command # download or update the distribution # you may remove the --context=beta switch if you want to use "current" mtxrun --verbose --script ./bin/mtx-update.lua --update --make --force --engine=all --context=beta --platform=$platform --texroot=$PWD/tex $@ but `mtxrun` or `mtx-update.lua` does not seem to honor the option `--platform` all the way. I tried to even hardcode `platform` to `linux` in `mtxrun` but it does not help.¹ elseif name == "linux" then function os.resolvers.platform(t,k) -- we sometims have HOSTTYPE set so let's check that first local platform, architecture = "", os.getenv("HOSTTYPE") or os.resultof("uname -m") or "" if find(architecture,"x86_64") then platform = "linux-64" elseif find(architecture,"ppc") then platform = "linux-ppc" else platform = "linux" end os.setenv("MTX_PLATFORM",platform) os.platform = platform → return "linux" end Could you please tell me, where the path for the `texmf` directory is determined and how I can force that to a certain platform. Thanks, Paul [1] http://tug.org/pipermail/tex-live/2009-June/021119.html [2] http://tug.org/pipermail/tex-live/2009-June/021124.html signature.asc Description: This is a digitally signed message part ___ 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] Pipe symbol
\char124 or \textbar Thanks you! -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Pipe symbol
Am 24.01.2011 um 00:26 schrieb Vyatcheslav Yatskovsky: > Hi, > > How to use a pipe symbol (|) in a text? > > Both | and \| give errors. \starttext a \textbar\ b \letterbar\ c \type{|} d ||| e \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 ___
Re: [NTG-context] context does not hyphenate compounds correctly
Am 24.01.2011 um 00:10 schrieb Florian Wobbe: > Hello, > > I get lots of overfull \hbox with compounds because context does not > hyphenate at the hyphen: > > \showframe > \starttext > averyverylongword averyverylongword averyverylongword averyverylongword > three-component\par % overfull > averyverylongword averyverylongword averyverylongword averyverylongword > threecomponent\par % correct hyphenation > \stoptext > > How can I fix this? MkIV: \setbreakpoints[compound] 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 ___
Re: [NTG-context] Pipe symbol
2011/1/24 Vyatcheslav Yatskovsky : > Hi, > > How to use a pipe symbol (|) in a text? > > Both | and \| give errors. > \char124 or \textbar -- Best regards, Li Yanrui (李延瑞) ___ 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] Pipe symbol
Hi, How to use a pipe symbol (|) in a text? Both | and \| give errors. Regards, Vyatcheslav ___ 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] context does not hyphenate compounds correctly
On 24-1-2011 12:10, Florian Wobbe wrote: Hello, I get lots of overfull \hbox with compounds because context does not hyphenate at the hyphen: \showframe \starttext averyverylongword averyverylongword averyverylongword averyverylongword three-component\par % overfull averyverylongword averyverylongword averyverylongword averyverylongword threecomponent\par % correct hyphenation \stoptext three|-|component - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] context does not hyphenate compounds correctly
Hello, I get lots of overfull \hbox with compounds because context does not hyphenate at the hyphen: \showframe \starttext averyverylongword averyverylongword averyverylongword averyverylongword three-component\par % overfull averyverylongword averyverylongword averyverylongword averyverylongword threecomponent\par % correct hyphenation \stoptext How can I fix this? Best, Florian ___ 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] Labels in MetaPost (MetaObj)
On 23.01.2011 18:22, Aditya Mahajan wrote: On Sun, 23 Jan 2011, Stefan Müller wrote: Sorry for double posting... The method with "if not flag" is a bit arkward, because assignObj isn't the only problem. "rotateObj(s, 90)" would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations may became redundant (my script is rather complex and I'm not sure why some of the equations cause trouble). Depends on the internal implementation of MetaObj (I have not looked at that). You can try to iteratively add stuff and see what breaks, and then add if not flag around them. Okay, that's what I do now. It seems it's savest to just put "if not flags" around the object constructors, object transformations and definition of inter-object relations. This does not produce graphical output, so it should be save to run it only once. Sorry, but I do not know a more elegant way around this. In the worst case, you can switch to MkII to draw your figures :-\ Aditya Thank you very much! Stefan. ___ 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] Downloading long urls
On Sun, 23 Jan 2011, Hans Hagen wrote: I made this ... as this is rather specialized tuning (that might confuse users) it's a directive: \starttext \enabletrackers [resolvers.schemes] \enabledirectives[schemes.cleanmethod=md5] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \stoptext currently 'strip' is default but we can decide on md5 Thanks. I'll test it with my 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 ___
Re: [NTG-context] Downloading long urls
On 23-1-2011 9:34, Aditya Mahajan wrote: On Sun, 23 Jan 2011, Hans Hagen wrote: On 22-1-2011 1:20, Aditya Mahajan wrote: A simple algorithm with assume that everything following the dot is the extension, while that is certainly not the case here. We can definitely restrict the search of extension to the last 10 or so characters of the url, but there will be cases when such heuristics will fail. it's not that complicated ... say that you patch this way: function schemes.cleanname(specification) return (gsub(specification.original,"[^%a%d%.]+","-")) end local function fetch(specification) local original = specification.original local scheme = specification.scheme local cleanname = schemes.cleanname(specification) that will be the current method. Now you can experiment with: Can cleanname be passed as a parameter of the specification? Then we can have local cleanname = specification.cleanname or schemes.cleanname(specification) This way, I can only change the cleanname of the files that are downloaded by my module without affecting the cleanname for any other command that might want to download a file. I made this ... as this is rather specialized tuning (that might confuse users) it's a directive: \starttext \enabletrackers [resolvers.schemes] \enabledirectives[schemes.cleanmethod=md5] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \externalfigure[http://contextgarden.files.wordpress.com/2008/08/logo-alt41.png][width=3cm] \stoptext currently 'strip' is default but we can decide on md5 Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Downloading long urls
On Sun, 23 Jan 2011, Hans Hagen wrote: On 22-1-2011 1:20, Aditya Mahajan wrote: A simple algorithm with assume that everything following the dot is the extension, while that is certainly not the case here. We can definitely restrict the search of extension to the last 10 or so characters of the url, but there will be cases when such heuristics will fail. it's not that complicated ... say that you patch this way: function schemes.cleanname(specification) return (gsub(specification.original,"[^%a%d%.]+","-")) end local function fetch(specification) local original = specification.original local scheme= specification.scheme local cleanname = schemes.cleanname(specification) that will be the current method. Now you can experiment with: Can cleanname be passed as a parameter of the specification? Then we can have local cleanname = specification.cleanname or schemes.cleanname(specification) This way, I can only change the cleanname of the files that are downloaded by my module without affecting the cleanname for any other command that might want to download a file. 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 ___
Re: [NTG-context] Downloading long urls
On 22-1-2011 1:20, Aditya Mahajan wrote: A simple algorithm with assume that everything following the dot is the extension, while that is certainly not the case here. We can definitely restrict the search of extension to the last 10 or so characters of the url, but there will be cases when such heuristics will fail. it's not that complicated ... say that you patch this way: function schemes.cleanname(specification) return (gsub(specification.original,"[^%a%d%.]+","-")) end local function fetch(specification) local original = specification.original local scheme= specification.scheme local cleanname = schemes.cleanname(specification) that will be the current method. Now you can experiment with: \startluacode function resolvers.schemes.cleanname(specification) local name = specification.original local hash = file.addsuffix(md5.hex(name),file.suffix(specification.path)) logs.simple("%s => %s",name,hash) return hash end \stopluacode Just see how that works out Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] MTXrun
On 23-1-2011 6:43, Vedran Miletić wrote: 2011/1/23 Herbert Voss What is the meaning of MTX in the name of the script? Herbert Could be MetaTeX. indeed it refers to the hybrid usage of metapost and tex Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Feature request: setuppapersize
On 22-1-2011 5:34, Aditya Mahajan wrote: On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Can this also be added to page-lay.mkii. Will make it much easier to document the feature. ok - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] delimitedtext, spacebefore and grid
>>> I want to have both a halfline space before and after blockquotations. >>> Normally, this works fine; after the quotation the main text snaps >>> back to the grid (see page 3 of the example file). >>> >>> \setupdelimitedtext >>> [blockquote] >>> [spacebefore=halfline] >> >> spacebefore={force,halfline} > > Hello Wolfgang, thank you for your answer. Sadly, your solution only > works for blockquotes starting at the top of the page. When blockquotes > are broken up between two pages the main text doesn't find its way back > to the grid (see page 2 of my minimal example). I think I've discovered another little problem of the same sort if directly after the quotation a blank line is requested: --- \setuplayout [grid=yes] \setupdelimitedtext [quotation] [spacebefore=halfline] \showgrid \starttext \input tufte \startquotation \input tufte \stopquotation \blank \input tufte \stoptext --- Unfortunately the trailing main text doesn't align with the grid either. Any solution to both problems? Best wishes, Oliver ___ 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] MTXrun
2011/1/23 Herbert Voss > What is the meaning of MTX in the name of the script? > > Herbert > Could be MetaTeX. Regards, Vedran ___ 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] Labels in MetaPost (MetaObj)
On Sun, 23 Jan 2011, Stefan Müller wrote: Sorry for double posting... The method with "if not flag" is a bit arkward, because assignObj isn't the only problem. "rotateObj(s, 90)" would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations may became redundant (my script is rather complex and I'm not sure why some of the equations cause trouble). Depends on the internal implementation of MetaObj (I have not looked at that). You can try to iteratively add stuff and see what breaks, and then add if not flag around them. Sorry, but I do not know a more elegant way around this. In the worst case, you can switch to MkII to draw your figures :-\ 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 ___
[NTG-context] MTXrun
What is the meaning of MTX in the name of the script? Herbert ___ 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] Forming paragraphs
Hello, thanks for the link, this seems to do the job. Lukas On Sun, 23 Jan 2011 14:35:24 +0100, Stefan Müller wrote: Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote: Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. <-- \textwidth -->| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is "clean" enough and/or there is a better way, especially via a kind of \setup command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas ___ 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] Forming paragraphs
Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Procházka Lukáš wrote: Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. <-- \textwidth -->| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is "clean" enough and/or there is a better way, especially via a kind of \setup command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas ___ 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] Forming paragraphs
Hello, I would need to form paragraphs to such a shape: Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. <-- \textwidth -->| I.e. paragraphs whose first lines are always \textwidth in width and whose next lines are always somehow indented. I achieved the desired shape by the following combination of \setupnarrower and \setupindenting: --- \starttext \setupnarrower[left=2em] \startnarrower[1*left,0*right] \setupindenting[yes,-2em] \input knuth \stopnarrower \stoptext --- But I would like to ask whether this way is "clean" enough and/or there is a better way, especially via a kind of \setup command, e.g. something like: \setupparagraph[MySpecialParagraph][first=0pt,next=2em] ... \startparagraph[MySpecialParagraph] Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopparagraph % or: \startMySpecialParagraph Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. \stopMySpecialParagraph Kind regards, Lukas t-Para.mkiv Description: Binary data t-Para.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Labels in MetaPost (MetaObj)
On 23.01.2011 12:40, Stefan Müller wrote: On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. \startMPinclusions path a ; \stopMPinclusions \startMPinclusions a := (0,0) -- (1cm,0) ; \stopMPinclusions will fail, because the second inclusions overwrites the first. If you use [+], then the second inclusions in appended after the first. Thank you for the explanation. So if I only have one "inclusions section" it doesn't matter? Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. The trick is to ensure that the offending code (assignObj) is not run twice. Your example works perfect. Many thanks for that as well. I didn't realize, that assignObj is causing the trouble, but now it's obvious. I'm just curious: the MP-code is only run twice by context if it contains labels, right? Otherwise I don't understand why the assignObj isn't always failing. Sorry for double posting... The method with "if not flag" is a bit arkward, because assignObj isn't the only problem. "rotateObj(s, 90)" would rotate the object 180 degrees instead of 90; when defining the relation between several objects some equations may became redundant (my script is rather complex and I'm not sure why some of the equations cause trouble). Stefan ___ 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] Labels in MetaPost (MetaObj)
On 22.01.2011 17:30, Aditya Mahajan wrote: On Sat, 22 Jan 2011, Stefan Müller wrote: So its either using text or using metaobj? Too bad, metaobj is quite fun... I still hope you guys can fix this, but it's not urgent (to me). Anyway, what does the [+] after \startMPinclusions? I did not find documentation for that on the wiki. \startMPinclusions path a ; \stopMPinclusions \startMPinclusions a := (0,0) -- (1cm,0) ; \stopMPinclusions will fail, because the second inclusions overwrites the first. If you use [+], then the second inclusions in appended after the first. Thank you for the explanation. So if I only have one "inclusions section" it doesn't matter? Just as a wild guess I tested the example below today, trying to make use of the things Aditya said, but to no avail. The trick is to ensure that the offending code (assignObj) is not run twice. Your example works perfect. Many thanks for that as well. I didn't realize, that assignObj is causing the trouble, but now it's obvious. I'm just curious: the MP-code is only run twice by context if it contains labels, right? Otherwise I don't understand why the assignObj isn't always failing. @Hans, can we have a `trialtypesetting` for MP code? Aditya Stefan ___ 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 ___