[NTG-context] contextgarden down
It appears that the contexgarden.net website is down. Michael ___ 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] Compilation problem with latest beta
On Mon, Feb 21, 2011 at 9:49 AM, Hans Hagen pra...@wxs.nl wrote: On 21-2-2011 1:16, Michael Goerz wrote: It seems that the \Lower macro is no longer available. Is there a suitable replacement? it's not coming back as it was part of the TaBlE package and not part of context core code it look like you want {\blank{\bf ...}} behaviour Great, compilation now works with the latest beta. Thanks so much! Michael ___ 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] Switchting between betas
Hi everyone, I've been using ConTeXt (MKIV) through TeXLive 2010 until now, but wanted to try to use the Minimals installation. The installation went fine, but the latest beta version was not able to compile my document (I'll be posting about that separately). What I'm confused about is this: Does only the beta-version have MkIV/LuaTeX support? It seems that I cannot make the MKIV format if I install one of the dated versions: goerz@ophelia:~/context ./first-setup.sh --context=2010.07.30 [ ... ] goerz@ophelia:~/context mtxrun --selfupdate MTXrun | forcing cache reload MTXrun | resolvers: loading configuration file '/Users/goerz/context/tex/texmf/web2c/texmfcnf.lua' MTXrun | resolvers MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: to be replaced old script /Users/goerz/context/tex/texmf-osx-64/bin/mtxrun MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: unable to locate new script Is there a way of getting a version of minimals that has MKIV and is equivalent to the TeXLive 2010 installation, so that I can compile my document? More generally, is there a way to switch to the beta version of a specific date? Considering that new betas might break the compilation of existing documents, there would have to be a way for me to tell people compile this document with version -- even if it's just a specific revision number. Otherwise, there wouldn't be any reproducible way of compiling documents. Thanks, Michael Goerz ___ 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] Compilation problem with latest beta
Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the Minimals installation. The compilations fails with the following error: [...] pagesflushing realpage 6, userpage 1 pagesflushing realpage 7, userpage 1 ) system end file vol_vii_3/frontmatter at line 14 pagesflushing realpage 8, userpage 1 ! Missing control sequence inserted. system tex error on line 11 in file vol_vii_3/vol_vii_3.tex: Missing control sequence inserted ... 1 %\overfullrule5\points % show overfull boxes 2 \startproduct vol_vii_3/vol_vii_3 3 \project project 4 5 \enablemode[doublesided] 6 7 %\showframe % show the layout boxes on each page 8 9 \startfrontmatter 10 \setupheadertexts[{}][{}][{}][{}] 11 12 \setuppagenumbering[state=stop] 13 14 \component vol_vii_3/frontmatter 15 16 \page[yes, odd] 17 18 { % ToC 19 \IJDEvol{Summer 2011}{Volume VII.3} 20 \FMTitle{Contents} 21 \blank[big] inserted text \inaccessible to be read again { \currentconvertfont ...tchtobodyfont [14pt]\edef { smallcaps}\attribute \zero... \dosetfontattribute ...me #1#2\@EA \endcsname \fi \empty \dosetlistattributes ...bute \fontattributehash #1 \fi \ifx \colorattributeha... argument ...setlistattributes \c!style \c!color \!!widthb \hsize \doifelse... ... l.23 \page [left] ? I have absolutely no clue what the error message is trying to tell me, or how to go about making the document compile. Does anyone have any suggestions? Thanks, Michael Goerz ___ 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] Compilation problem with latest beta
On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 21:44 schrieb Michael Goerz: Hi everyone, I was compiling a document with the version of ConTeXt that comes with TeXLive 2010, and now tried to compile it the latest beta of the Minimals installation. The compilations fails with the following error: The problem should be somewhere here: 18 { % ToC 19 \IJDEvol{Summer 2011}{Volume VII.3} 20 \FMTitle{Contents} 21 \blank[big] I have absolutely no clue what the error message is trying to tell me, or how to go about making the document compile. Does anyone have any suggestions? Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the Table of Contents. The \placecontent is already enough to produce the error, but only in combination with the definitions in my env.tex file. If I don't place the TOC, or don't load my env settings, the documents compiles. Can you make a minimal example or send me the files off list. I've attached the files for a minimal example: . |-- env.tex |-- project.tex `-- vol_vii_3 `-- vol_vii_3.tex Thanks, Michael env.tex Description: TeX document project.tex Description: TeX document vol_vii_3.tex Description: TeX 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] Compilation problem with latest beta
On Sun, Feb 20, 2011 at 10:59 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 20.02.2011 um 22:52 schrieb Michael Goerz: On Sun, Feb 20, 2011 at 10:08 PM, Wolfgang Schuster Can you comment the part where you insert the table of contents in your document, something fails here but it’s not able to tell what from your example. Indeed, it has something to do with the Table of Contents. The \placecontent is already enough to produce the error, but only in combination with the definitions in my env.tex file. If I don't place the TOC, or don't load my env settings, the documents compiles. Change these defintions from \def to \unexpanded\def % Font Features Macros \def\orn{\setfontfeature{ornaments}} \def\itsw{\setfontfeature{swash}\it} \def\sw{\setfontfeature{swash}} \def\smcp{\setfontfeature{smallcaps}} \def\lnfigures{\setfontfeature{lining}} \def\tabfigures{\addfontfeaturetofont{tabular}} \def\lntabfigures{\setfontfeature{tabular}} Indeed, that works perfectly. However, there's another problem now, going beyond my minimal example. The following macro that I have in env.tex no longer works in the latest beta: \def\TocAuthors#1{\writebetweenlist[chapter]{\Lower(1cm){\bf #1}}{}} It seems that the \Lower macro is no longer available. Is there a suitable replacement? To reproduce this in the minimal example, I've added a file vol_vii_3/articles with the following content: \startcomponent bla \product vol_vii_3/vol_vii_3 \project project \TocAuthors{Me} \chapter{Some Title} bla and added it in vol_vii_3.tex: [...] \startbodymatter \part{bla} \component vol_vii_3/articles/bla [...] Thanks, Michael Goerz ___ 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] linebreak in part title
On Tue, Nov 9, 2010 at 6:26 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 09.11.2010 um 00:30 schrieb Michael Goerz: I want part titles to appear on the own (empty) page, centered horizontally and vertically, and in small caps. To this end, I've set up the \part command as [...] \definefont[PartStyle][Caps sa 1] \setuphead [part] [placehead=yes, number=no, before={\startstandardmakeup[align={middle,lohi}]}, after=\stopstandardmakeup, style=PartStyle, %align=middle, %page={yes,header,footer,right}, %header=high, %footer=high, prefix=no] Works great! I ended up with \definefont[PartStyle][Caps sa 1] \definepagebreak [mychapterpagebreak] [yes,header,right] \setuphead[part] [placehead=yes, page=mychapterpagebreak, number=no, before={\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[18pt]}, after=\stopstandardmakeup, style=PartStyle, align=middle, prefix=no] The only things I had to add were the mychapterpagebreak, which makes sure the (left) page before the part title is empty, and the fontsize. Thanks! Michael ___ 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] linebreak in part title
Hi everyone, I want part titles to appear on the own (empty) page, centered horizontally and vertically, and in small caps. To this end, I've set up the \part command as \def\Partcommand#1#2{\centerline{\smcp #2}} \setuphead[part][ placehead=yes, number=no, page=mychapterpagebreak, header=high, footer=high, before={\hbox{}\vfill}, command=\Partcommand, after={\vfill}, prefix=no, ] However, this does not seem to allow line breaks in a part title, which is a problem with very long titles, e.g. \part{Perspectives on Decision Ethics from the USA, Russian Federation, Egypt, and the Czech Republic} Is there any way to get a line break on the part page? I should note that in the TOC, the part title is broken properly, and also observes \crlf. Thanks, Michael ___ 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] linebreak in part title
Hi Michael! Thanks for your answer! On Tue, Nov 9, 2010 at 1:01 AM, Michael Murphy michael.mur...@uni-ulm.de wrote: On 09/11/2010 00:30, Michael Goerz wrote: Hi everyone, I want part titles to appear on the own (empty) page, centered horizontally and vertically, and in small caps. To this end, I've set up the \part command as \def\Partcommand#1#2{\centerline{\smcp #2}} \setuphead[part][ placehead=yes, number=no, page=mychapterpagebreak, header=high, footer=high, before={\hbox{}\vfill}, command=\Partcommand, after={\vfill}, prefix=no, ] The problem is that \centerline puts things in a hbox, which won't break across lines. That's probably right... just removing centerline doesn't lead to linebreaks, however The solution below might not be the most ConTeXt-y way, but is perhaps the TeX way: \def\raggedcenter{% \hyphenpenalty=1 % no hyphenation \parindent=0pt \rightskip0pt plus1em % add stretchy glue to left \leftskip0pt plus1em % and right \spaceskip.em \xspaceskip.5em \parfillskip=0pt % reg. word spacing \hbadness=1 % Last line will usually be underfull, so turn off % badness reporting. } \def\Partcommand#1#2{{\raggedcenter\smcp #2}} \setuphead[part][ placehead=yes, number=no, page=mychapterpagebreak, header=high, footer=high, before={\hbox{}\vfill}, command=\Partcommand, after={\vfill}, prefix=no, ] Hmm... that doesn't seem to do linebreaks. It shifts the part title a bit horizontally. It also does weird things to some my *chapter* titles (add a large space after the first word), which is configured as \setuphead[chapter][ page=mychapterpagebreak, number=no, alternative=c, align={center, nothyphenated, verytolerant}, style={\switchtobodyfont[16pt]}, header=high, footer=chapterpage, ] WTF? Very very strange! Michael ___ 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] fitting page around content
Hi Everyone! is there a way to tell ConTeXt to fit the page tightly around the content? In LaTeX, I can do this with \usepackage[active,tightpage]{preview} The purpose is to create a standalone tikz figure of potentially unknown size. Thanks, Michael ___ 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] fitting page around content
On Mon, Oct 4, 2010 at 8:02 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On Oct 4, 2010, at 7:57 PM, Michael Goerz wrote: is there a way to tell ConTeXt to fit the page tightly around the content? In LaTeX, I can do this with \usepackage[active,tightpage]{preview} The purpose is to create a standalone tikz figure of potentially unknown size. I have no idea what the LaTeX code does, but from your description, this sounds like what you're looking for: http://archive.contextgarden.net/message/20100307.022718.c28f4594.en.html Yes! Perfect! Thanks! Michael ___ 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] hoffset and voffset have no effect
Hi everyone, I cannot see any effect when using voffset and hoffset as a parameter for \startstandardmakeup. For example: \startstandardmakeup[headerstate=none, footerstate=none, hoffset=1in, hoffset=1in, width=4in, height=7.0in] ... \stopstandardmakeup I'd expect them to shift the page content up and to the right, respectively. This is guessing from their name: I actually cannot find any documentation on these parameters. Am I missing something? Thanks, Michael ___ 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] varying headers, footers, page numbers
Hi, I'm trying to create a book where the front matter has no headers/footers, except roman numeral page numbers at the top outside of the page. The main matter should have Arabic numeral page numbers (restarting with '1') at the top outside of each page, plus the name of the book in the header of each even page and the name of the chapter in the header of each odd page, with no footer. However, on the pages where a new chapter starts (which is set to always be an odd page), there should be no header, and the page number should appear centered at the bottom of the page. I'm quite confused about how to achieve this in ConTeXt. An excerpt from the project structure is ./env.tex ./project.tex ./book/book.tex ./book/chapters/chapter1.tex The following is a shortened excerpt from book.tex: \startfrontmatter \setuppagenumbering[state=stop] % nothing for now, should be roman page % numbers later \component book/frontmatter % ToC ... \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \setupheadertexts [{Name of Chapter}] [{}] [{}] [{Name of Book}] \setuppagenumbering[ alternative=doublesided, % mirrored even/odd pages location={header,margin}, style=small] \component vol04_1/articles/azimov \stopbodymatter This leads to my first question: I generally try to keep all formatting definitions in env.tex. However, it seems to me that since I want to have different settings in the frontmatter compared to the mainmatter, I need to put the \setuppagenumbering and \setupheadertexts in book.tex, which slightly bothers me. The way I intuitively feel it should work is that I would define various headertexts and pagenumberings under some label in env.tex, and then activate the different configurations in book.tex via that label. Is there anything in ConTeXt that I may have overlooked that makes something like that (centrally defining several alternative header/footer/pagenumber configurations) possible? Next, the problem of having a different header/footer/pagenumber on pages where a new chapter starts. In env.tex, I have \setuphead[chapter][ page=mychapterpagebreak, number=no, alternative=c, align={center, nothyphenated, verytolerant}, style={\switchtobodyfont[16pt]}, header=high, footer=none, ] This causes the chapter pages to have no header/footer/pagenumber at all, which is halfway what I want. But actually, I don't really understands why that works either. My understanding is that header=high means there should be no header on the first page and the normal header on all subsequent pages. The way I've set it up though, the page number is not really part of the header (it's separately set up through \setuppagenumbering). So why does the page number disappear as well? And, of course, the main question: How do I get the page number centered in the bottom of that page? Again, I feel if there was some way to define different configurations for the header/footer/pagenumbers under different labels, e.g. a label 'chapterfooter', it would then make sense to do something like 'footer=chapterfooter', instead of 'footer=none'. But I guess that's not the way it works -- so how *does* it work? Thanks, Michael ___ 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] varying headers, footers, page numbers
On Tue, Aug 24, 2010 at 6:01 PM, Michael Goerz go...@physik.fu-berlin.de wrote: I'm trying to create a book where the front matter has no headers/footers, except roman numeral page numbers at the top outside of the page. The main matter should have Arabic numeral page numbers (restarting with '1') at the top outside of each page, plus the name of the book in the header of each even page and the name of the chapter in the header of each odd page, with no footer. However, on the pages where a new chapter starts (which is set to always be an odd page), there should be no header, and the page number should appear centered at the bottom of the page. I'm quite confused about how to achieve this in ConTeXt. An excerpt from the project structure is ./env.tex ./project.tex ./book/book.tex ./book/chapters/chapter1.tex The following is a shortened excerpt from book.tex: \startfrontmatter \setuppagenumbering[state=stop] % nothing for now, should be roman page % numbers later \component book/frontmatter % ToC ... \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \setupheadertexts [{Name of Chapter}] [{}] [{}] [{Name of Book}] \setuppagenumbering[ alternative=doublesided, % mirrored even/odd pages location={header,margin}, style=small] \component vol04_1/articles/azimov \stopbodymatter This leads to my first question: I generally try to keep all formatting definitions in env.tex. However, it seems to me that since I want to have different settings in the frontmatter compared to the mainmatter, I need to put the \setuppagenumbering and \setupheadertexts in book.tex, which slightly bothers me. The way I intuitively feel it should work is that I would define various headertexts and pagenumberings under some label in env.tex, and then activate the different configurations in book.tex via that label. Is there anything in ConTeXt that I may have overlooked that makes something like that (centrally defining several alternative header/footer/pagenumber configurations) possible? Next, the problem of having a different header/footer/pagenumber on pages where a new chapter starts. In env.tex, I have \setuphead[chapter][ page=mychapterpagebreak, number=no, alternative=c, align={center, nothyphenated, verytolerant}, style={\switchtobodyfont[16pt]}, header=high, footer=none, ] This causes the chapter pages to have no header/footer/pagenumber at all, which is halfway what I want. But actually, I don't really understands why that works either. My understanding is that header=high means there should be no header on the first page and the normal header on all subsequent pages. The way I've set it up though, the page number is not really part of the header (it's separately set up through \setuppagenumbering). So why does the page number disappear as well? And, of course, the main question: How do I get the page number centered in the bottom of that page? Again, I feel if there was some way to define different configurations for the header/footer/pagenumbers under different labels, e.g. a label 'chapterfooter', it would then make sense to do something like 'footer=chapterfooter', instead of 'footer=none'. But I guess that's not the way it works -- so how *does* it work? Digging deeper in the reference manual, it seems that \definetext[chapter][footer][pagenumber] together with \setuphead[chapter][ page=mychapterpagebreak, number=no, alternative=c, align={center, nothyphenated, verytolerant}, style={\switchtobodyfont[16pt]}, header=high, footer=chapter, ] is the answer. Do I understand it correctly that \definetext[chapter][footer]... is exactly the same as \setupfootertext... but with the extra label chapter? So that would be exactly what my intuition said should exist. Can I only use the chapter label inside of \setuphead, like in the above example, or could I also somehow use \definetext to setup different headers/footers for the frontmatter/mainmatter, for example? Thanks, Michael ___ 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] associating setuptex.bat with cmd shortcut
Hi everyone, at the end of the context essentials installation on Windows, it says When you want to use context, you need to initialize the tree with: C:\context\tex\setuptex.bat C:\context\tex You can associate this command with a shortcut to the cmd prompt. What does that mean, and how do I do that (associating the command with a shortcut to cmd)? Sorry, haven't had to do anything serious on Windows for years... Thanks, Michael ___ 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] associating setuptex.bat with cmd shortcut
On Mon, Jul 19, 2010 at 3:20 PM, Vnpenguin vnpeng...@vnoss.org wrote: On Mon, Jul 19, 2010 at 19:52, Michael Goerz go...@physik.fu-berlin.de wrote: at the end of the context essentials installation on Windows, it says When you want to use context, you need to initialize the tree with: C:\context\tex\setuptex.bat C:\context\tex You can associate this command with a shortcut to the cmd prompt. What does that mean, and how do I do that (associating the command with a shortcut to cmd)? I have a shortcut of cmd.exe on my desktop (WinXP) and I add after cmd.exe like following : C:\WINDOWS\system32\cmd.exe /K C:\context\tex\setuptex.bat Ah, it's the /K switch that I wasn't aware of. Thanks so much! Michael ___ 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] horizontal alignment
On Fri, Jul 9, 2010 at 7:13 AM, Michael Murphy michael.mur...@uni-ulm.de wrote: On 09/07/10 01:32, Michael Goerz wrote: I'm trying to do some horizontal alignment, for typesetting poetry. How would you solve this kind of problem? I've considered defining a macro \BrokenLine[line1][line2] that does the above. But, there are also instances where there are two or more lines as a continuation of one previous line. Maybe there is a possibility to mark a horizontal position temporarily, and then jump to that position later? Anyway, this is a crappy solution and you could probably make it better. As far as I'm aware, there is no way to get the current horizontal position across the page at any particular moment. The method below essentially just measures the length of the line that you want to enter, and sets this as the indent. \dimendef\indentl=10 \def\savewidth#1{% \setbox0=\hbox{#1}% \copy0% \indentl=\wd0% } \def\addtosavewidth#1{% \setbox0=\hbox{#1}% \mindent\copy0% \advance\indentl by \wd0% } \def\mindent{\hskip\indentl} Thanks, Michael, that works great! Just out of interest: why does \savewidth create a newline if there's more text on the same line, (like this: \savewidth{start of line} and some more text ) while \addtosavewidth does not? The difference is the \hskip in front of the \copy0%; if I add \hskip0pt in front of the the \copy in \savewidth, there's also no newline -- but how does that make sense? Michael ___ 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] horizontal alignment
Hi everyone, I'm trying to do some horizontal alignment, for typesetting poetry. There are lines that are continuations of the previous line, and should be aligned to the end of that previous line. Currently, I'm doing this by using \phantom text, which for some reason I also have to wrap into an \mbox to avoid a line break. As an example: \startlines here we now see you ~~ already in grief as you see ~~ yourselves ~~ as the last of the lasts we are mirrors of your consciousness \mbox{\phantom{we are mirrors of your consciousness} as you see the end} and you see us ~~ deep in the spring of the universe seeing you deep ~~ in the gravity well of the heat death we are dying ~~ in the spring as we watch you die we are grieving in the spring as you begin to grieve for all we are talking about bone-dry at the bottom of the well of time we are already parched \mbox{\phantom{we are already parched} for time is transparent} and we are all rats in the glassy \mbox{\phantom{and we are all rats in the glassy} labyrinth of time. \stoplines How would you solve this kind of problem? I've considered defining a macro \BrokenLine[line1][line2] that does the above. But, there are also instances where there are two or more lines as a continuation of one previous line. Maybe there is a possibility to mark a horizontal position temporarily, and then jump to that position later? Thanks, Michael ___ 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 ___