[NTG-context] sections, subsections, indenting, startnarrower, alignment
I do not understand what you mean. Could you explain? I stopped trying to use sections because I read somewhere in the archives that sections cannot be used 'recursively' like this. I have instead been trying to use definitions. With regards to other approaches, I have been trying to use several different dimensions to solve this problem but none of them seem to work as expected inside the head of a definition inside a narrowed, such as \localhsize and \makeupwidth, which mangle things in unexpected ways. Can anyone tell me however if there is some dimension that corresponds to the local amount of indentation (made with narrower)? -A Wouldn't be easier to achieve this using section personalized section numbering ? Best, Amaël Le vendredi 22 mai 2009 à 14:40 -0700, afsmith a écrit : Hi again ntg-context. I have been working on my own CV/Resume module. Up until now I've just been asking about specific bits of the implementation of this thing I want to do, but perhaps that was a mistake as it hasn't really helped progress much, so: What I am trying to achieve is to define some three-argument command to give a section/subject header and a date, and then a block of text. The header and date should be on the same line, but aligned in either direction (subject aligned left, date aligned right) This block of text underneath it should be indented and able to include an instance of the same command. Let me try to explain the desired output in a little monospaced text diagram.. |(Subject)___(Date)| |__(Subsubject)__(Date)| |texttexttexttexttexttexttexttext__| |textmoretextmoretextmoretexttext__| |__(Subsubject)__(Date)| |texttexttexttexttexttextexttext___| |textmoretextmoretextmoretexttext__| The subject and subsubject parts don't need to literally use \subject , for example I also tried to use \start(description){... for this purpose as well but that failed equally. Just something that works reasonably as a section header. I promise I have looked in the archives before asking :) for example http://www.mail-archive.com/ntg-context@ntg.nl/msg2.html http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html And here is an example of something I was playing with... --- \definehead[mysubject][subject] \defineframed[lrframe][ width=\localhsize, align=normal, rulethickness=1pt] \setuphead[mysubject][style={\bf}] \define[3]\CHRONSUBJ {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower} \showframe[text] \starttext \CHRONSUBJ {This happened from June 08 to June 09} {06/08--06/09} {\CHRONSUBJ {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONSUBJ {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \stoptext --- -A ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] sections, subsections, indenting, startnarrower, alignment
Hi again ntg-context. I have been working on my own CV/Resume module. Up until now I've just been asking about specific bits of the implementation of this thing I want to do, but perhaps that was a mistake as it hasn't really helped progress much, so: What I am trying to achieve is to define some three-argument command to give a section/subject header and a date, and then a block of text. The header and date should be on the same line, but aligned in either direction (subject aligned left, date aligned right) This block of text underneath it should be indented and able to include an instance of the same command. Let me try to explain the desired output in a little monospaced text diagram.. |(Subject)___(Date)| |__(Subsubject)__(Date)| |texttexttexttexttexttexttexttext__| |textmoretextmoretextmoretexttext__| |__(Subsubject)__(Date)| |texttexttexttexttexttextexttext___| |textmoretextmoretextmoretexttext__| The subject and subsubject parts don't need to literally use \subject , for example I also tried to use \start(description){... for this purpose as well but that failed equally. Just something that works reasonably as a section header. I promise I have looked in the archives before asking :) for example http://www.mail-archive.com/ntg-context@ntg.nl/msg2.html http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html And here is an example of something I was playing with... --- \definehead[mysubject][subject] \defineframed[lrframe][ width=\localhsize, align=normal, rulethickness=1pt] \setuphead[mysubject][style={\bf}] \define[3]\CHRONSUBJ {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower} \showframe[text] \starttext \CHRONSUBJ {This happened from June 08 to June 09} {06/08--06/09} {\CHRONSUBJ {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONSUBJ {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \stoptext --- -A ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] formula-style alignment
Thanks Wolfgang. That works... Now how about inside a definition or subject header? Here is an example. \localhsize in this case seems to resolve to a width of 0, making the contained text break as often as it can... \defineframed[lrframe][ width=\localhsize, align=normal, rulethickness=1pt] \setuplayout[header=0pt,footer=0pt] \definedescription[topdesc][ inbetween={\blank[none]}, headstyle={\bf}, style={\tf\rm}, location=top, width=broad] \define[3]\CHRONDESC {\starttopdesc {\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower \stoptopdesc} \definehead[mysubject][subject] \setuphead[mysubject][style={\bf}] \define[3]\CHRONSUB {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}} \startnarrower[left]{#3}\stopnarrower} \showframe[text] \starttext \startnarrower[left] \dontleavehmode\lrframe[width=broad] {leftleftleft \hfill right rightrightright} \stopnarrower \crlf \startnarrower[left] \dontleavehmode\lrframe[width=\localhsize] {leftleftleftleft\hfill right rightrightright} \stopnarrower \crlf \CHRONDESC {This happened from June 08 to June 09} {06/08--06/09} {\CHRONDESC {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONDESC {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \CHRONDESC {This happened from June 09 to July 09} {06/09-07/09} {\input knuth } \crlf \CHRONSUB {This happened from June 08 to June 09} {06/08--06/09} {\CHRONSUB {This happened from June 08 to December 08} {06/08--12/08} {\input tufte } \CHRONSUB {This happened from January 09 to June 09} {01/09--06/09} {\input zapf }} \crlf \stoptext Am 17.05.2009 um 21:23 schrieb afsmith: Hey again, ntg-context. I would like to align one piece of a line to the left, and another piece of the same line to the right, sort of like numbered math equations, except not math. Additionally I would like to do this inside a narrowed block \starttext \input knuth \startnarrower \input knuth \dontleavehmode\framed[width=\localhsize,align=normal]{left\hfill right} \stopnarrower \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] formula-style alignment
Hey again, ntg-context. I would like to align one piece of a line to the left, and another piece of the same line to the right, sort of like numbered math equations, except not math. Additionally I would like to do this inside a narrowed block How can I do this? I have tried side-by-side-frames-inside-a-frame but the two pieces of the line just stay clumped together. I have tried '\startalign' and '\(left|right)aligned' to no avail. I have tried '\hfill' but that pushes things past into/past the right margin... ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MKIV, fonts, confusion
Hi ntg-context. I'm very confused about accomplishing something that to me seems as though it should be quite simple, but has proven for weeks of occasional attempts to be very confusing. I'm finding existing information from the contextgarden wiki and ntg-context archives to be very newbie-unfriendly and inconsistent. I'm compelled to improve the wiki, if only I could comprehend what I would be documenting. What I would like to do is use the full range of TeX-Gyre fonts (and later possibly others) for my existing documents. It is not clear to me... Whether or not I am using MKIV, nor how to determine which engine I am running. If not running MKIV/XeTeX, how to determine which fonts are installed. What the items from the output of fc-list or mtxrun --script fonts --list correspond to. How to use available fonts, nor where to draw valid parameters from for use in font commands. How to determine what font configurations are available for a given font. Whether I need to write typescripts, nor how to find any existing ones. Whether I need to concern myself with .map or any other font files. Whether I need to configure anything, move any files, etcetera. ...As well as anything else I might need to install or use a font For what it's worth, I have been using the command texexec to process my tex files, am using a context minimals downloaded about two months ago, and am running Linux. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV, fonts, confusion
Luigi, Hans, and Wolfgang, thank you for your responses. I'm still unclear on several things. (comments on your responses follow afterwards) Let me try asking these things as questions. Specifically, could someone please tell me... 1. How do I determine whether I am using MKII, MKIV, or XeTeX to process my documents? 2. Given the line from a typescript... \definefontsynonym[LiberationSerif] [name:liberationserif] ... how do I determine which file name:liberationserif corresponds to? 3. In both MKII and MKIV, how can I determine which typescripts exist? In other words, how do I determine working arguments for \usetypescriptfile? 3b. Specifically, in the case of... \usetypescript[palatino][ec] ... in which typescript is this defined? (given a vanilla context minimals installation) 4. What defines the output of fc-list or mtxrun --script fonts --list? Do they correspond to files? Type synonyms? etc. 5. Do I need to bother with map files for MKII? 6. Is it particularly recommended that I use MKIV? How stable is it compared to MKII? Luigi, what do you mean by and look into base/*? Which 'base'? Are you talking about in the context minimals distribution? some specific online repository? I have seen the two documents you mentioned. Re-reading them has clarified things a little bit. Wolfgang, Currently the module you linked to (http://bitbucket.org/wolfs/simplefonts/) is beyond my understanding... I would first like to understand the mechanism your module operates on before trying to automate it. Hans, I am aware that there are such types of parameters that must be defined for fonts. I understand 'it is complicated' but this does not really help make things clearer to me. The inner workings of fonts are of little concern to me to me at the moment. Right now I do not even know where to look. I have seen the examples you gave for palatino, such as... \usetypescript[palatino][ec] ...but I have no idea where those arguments come from Thanks. On 5/13/09, afsmith adventurecompl...@gmail.com wrote: ... What I would like to do is use the full range of TeX-Gyre fonts (and later possibly others) for my existing documents. It is not clear to me... Whether or not I am using MKIV, nor how to determine which engine I am running. If not running MKIV/XeTeX, how to determine which fonts are installed. What the items from the output of fc-list or mtxrun --script fonts --list correspond to. How to use available fonts, nor where to draw valid parameters from for use in font commands. How to determine what font configurations are available for a given font. Whether I need to write typescripts, nor how to find any existing ones. Whether I need to concern myself with .map or any other font files. Whether I need to configure anything, move any files, etcetera. ...As well as anything else I might need to install or use a font For what it's worth, I have been using the command texexec to process my tex files, am using a context minimals downloaded about two months ago, and am running Linux. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] scratch commands, getparameters, blank, doattributes
Can anyone please explain what is going on in... http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution (in case your browser does not redirect you to it as intended, I specifically mean the A more advanced solution section) If I know what's going on I'll gladly expand on the wiki's explanations to to make it more newbie-friendly ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___